List.cshtml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "reload",
  10. Name = "cgbCollege",
  11. ID = "cgbCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/PaymentManage/WorktimeRate.js" type="text/javascript"></script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. @Html.Position()
  31. <div class="p_SearchTitle">
  32. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  33. 查询条件
  34. </div>
  35. </div>
  36. <form id="formQuery" method="post" action="@Url.Content("~/WorktimeRate/List")">
  37. @Html.PositionCondition()
  38. <div class="search_keyword">
  39. <div class="search_input">
  40. <ul>
  41. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  42. <li class="sv">
  43. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeRateList" } })
  44. </li>
  45. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  46. <li class="sv">
  47. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, "dgWorktimeRateList", new DropdownListOptions { ID = "ddlTeachingMode", Name = "ddlTeachingMode", OnSelect = "reload" })
  48. </li>
  49. <li class="sn" style="padding-left: 5px;">任课方式:</li>
  50. <li class="sv">
  51. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, "dgWorktimeRateList", new DropdownListOptions { ID = "ddlTeachingMethod", Name = "ddlTeachingMethod", OnSelect = "reload" })
  52. </li>
  53. <li class="sn" style="padding-left: 5px;">课酬级别:</li>
  54. <li class="sv">
  55. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.TP_PaymentLevel, "dgWorktimeRateList", new DropdownListOptions { ID = "ddlPaymentLevel", Name = "ddlPaymentLevel", OnSelect = "reload" })
  56. </li>
  57. </ul>
  58. </div>
  59. </div>
  60. <div class="p_title">
  61. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  62. 工作量系数列表
  63. </div>
  64. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  65. </div>
  66. </form>
  67. @Html.PositionBatchModify()
  68. <div class="search_list">
  69. @Html.DataGrid(new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeRateID" },
  74. new BoundFieldColumn { FieldName="PaymentLevelDesc", HeaderText="课酬级别", Align=AlignStyle.Center },
  75. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="TeachingModeDesc", HeaderText="授课方式", Align=AlignStyle.Center },
  77. new BoundFieldColumn { FieldName="TeachingMethodDesc", HeaderText="任课方式", Align=AlignStyle.Center },
  78. new BoundFieldColumn { FieldName="StudentCountStart", HeaderText="人数(起)", Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="StudentCountEnd", HeaderText="人数(止)", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="WorktimeRate", HeaderText="系数", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" }
  81. },
  82. IsCheckOnSelect = true,
  83. DataSourceUrl = Url.Content("~/WorktimeRate/List"),
  84. ID = "dgWorktimeRateList",
  85. IsPagination = true,
  86. IsShowRowNumbers = true,
  87. IsSingleSelect = false
  88. })
  89. </div>
  90. </div>