List.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 = "queryDepartment",
  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/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions cgopDepartment = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "DepartmentID",
  29. OnSelect = "queryUser",
  30. Name = "cgbDepartment",
  31. ID = "cgbDepartment",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Department/List"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false,
  43. }
  44. };
  45. ComboGridOptions cgopUser = new ComboGridOptions
  46. {
  47. TextField = "Name",
  48. ValueField = "UserID",
  49. OnSelect = "reload",
  50. ID = "cgbUser",
  51. Name = "cgbUser",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/Staff/List"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false,
  63. IsAutoLoad = true
  64. }
  65. };
  66. }
  67. @section scripts{
  68. <script src="~/Scripts/Business/PaymentManage/StaffStandard.js" type="text/javascript"></script>
  69. <script type="text/javascript">
  70. var nonSelect = "@DropdownList.SELECT_ALL";
  71. </script>
  72. }
  73. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  74. @Html.Position()
  75. <div class="p_SearchTitle">
  76. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  77. 查询条件</div>
  78. </div>
  79. <form id="formQuery" method="post" action="@Url.Content("~/Staff/Excel")">
  80. @Html.PositionCondition()
  81. <div class="search_keyword">
  82. <div class="search_input">
  83. <ul>
  84. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  85. <li class="sv">
  86. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStaffStandardList" } })
  87. </li>
  88. <li class="sn" style="padding-left: 5px;">教研室:</li>
  89. <li class="sv">
  90. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgStaffStandardList" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">教师:</li>
  93. <li class="sv">
  94. @Html.ComboGrid(cgopUser, new Dictionary<string, string> { { "data-condition", "dgStaffStandardList" } })
  95. </li>
  96. </ul>
  97. </div>
  98. </div>
  99. </form>
  100. <div class="p_title">
  101. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  102. 教师标准课酬列表</div>
  103. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  104. </div>
  105. @Html.PositionBatchModify()
  106. <div class="search_list">
  107. @Html.DataGrid(new DataGridOptions
  108. {
  109. Columns = new List<DataGridColumn>()
  110. {
  111. new CheckBoxFieldColumn{ HeaderText="", FieldName="StaffStandardID" },
  112. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.15 },
  113. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 },
  114. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.2 },
  115. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center, Width=0.2 },
  116. new BoundFieldColumn { FieldName="Amount", HeaderText="标准课酬", Align=AlignStyle.Center, Width=0.15 }
  117. },
  118. IsCheckOnSelect = true,
  119. DataSourceUrl = Url.Content("~/StaffStandard/List"),
  120. ID = "dgStaffStandardList",
  121. IsPagination = true,
  122. IsShowRowNumbers = true,
  123. IsSingleSelect = false
  124. })
  125. </div>
  126. </div>