List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "queryUser",
  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 optStudentCollege = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "CollegeID",
  29. OnSelect = "queryStandard",
  30. Name = "cgbStudentCollege",
  31. ID = "cgbStudentCollege",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false,
  43. }
  44. };
  45. ComboGridOptions optCourseCollege = new ComboGridOptions
  46. {
  47. TextField = "Name",
  48. ValueField = "CollegeID",
  49. OnSelect = "reload",
  50. Name = "cgbCourseCollege",
  51. ID = "cgbCourseCollege",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false,
  63. }
  64. };
  65. ComboGridOptions optStandard = new ComboGridOptions
  66. {
  67. TextField = "StandardName",
  68. ValueField = "StandardID",
  69. OnSelect = "reload",
  70. Name = "cgbStandard",
  71. ID = "cgbStandard",
  72. GridOptions = new DataGridOptions
  73. {
  74. Columns = new List<DataGridColumn>()
  75. {
  76. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  77. },
  78. IsCheckOnSelect = true,
  79. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  80. IsPagination = true,
  81. IsShowRowNumbers = true,
  82. IsSingleSelect = false,
  83. IsShowHeader = false
  84. }
  85. };
  86. ComboGridOptions optUser = new ComboGridOptions
  87. {
  88. TextField = "Name",
  89. ValueField = "UserID",
  90. OnSelect = "reload",
  91. ID = "cgbUser",
  92. Name = "cgbUser",
  93. GridOptions = new DataGridOptions
  94. {
  95. Columns = new List<DataGridColumn>()
  96. {
  97. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/Staff/List"),
  101. IsPagination = true,
  102. IsShowRowNumbers = true,
  103. IsSingleSelect = false,
  104. IsAutoLoad = true
  105. }
  106. };
  107. ComboGridOptions optCourse = new ComboGridOptions
  108. {
  109. TextField = "CourseName",
  110. ValueField = "CoursematerialID",
  111. OnSelect = "reload",
  112. Name = "cgbCourse",
  113. GridOptions = new DataGridOptions
  114. {
  115. Columns = new List<DataGridColumn>()
  116. {
  117. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  118. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  119. },
  120. IsCheckOnSelect = true,
  121. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  122. IsPagination = true,
  123. IsShowRowNumbers = true,
  124. IsSingleSelect = false,
  125. }
  126. };
  127. }
  128. @section scripts{
  129. <script src="~/Scripts/Business/PaymentManage/WorktimeAddition.js" type="text/javascript"></script>
  130. <script type="text/javascript">
  131. var nonSelect = "@DropdownList.SELECT_ALL";
  132. </script>
  133. }
  134. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  135. @Html.Position()
  136. <div class="p_SearchTitle">
  137. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  138. 查询条件
  139. </div>
  140. </div>
  141. <form id="formQuery" method="post" action="@Url.Content("~/WorktimeAddition/Excel")">
  142. @Html.PositionCondition()
  143. <div class="search_keyword">
  144. <div class="search_input">
  145. <ul>
  146. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  147. <li class="sv">
  148. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  149. </li>
  150. <li class="sn" style="padding-left: 5px;">教师@(EMIS.Utility.RSL.Get("College")):</li>
  151. <li class="sv">
  152. @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  153. </li>
  154. <li class="sn" style="padding-left: 5px;">教师:</li>
  155. <li class="sv">
  156. @Html.ComboGrid(optUser, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  157. </li>
  158. <li class="sn" style="padding-left: 5px;">学生@(EMIS.Utility.RSL.Get("College")):</li>
  159. <li class="sv">
  160. @Html.ComboGrid(optStudentCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  161. </li>
  162. </ul>
  163. <ul>
  164. <li class="sn" style="padding-left: 5px;">年级:</li>
  165. <li class="sv">
  166. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Grade, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", OnSelect = "queryStandard" })
  167. </li>
  168. <li class="sn" style="padding-left: 5px;">专业:</li>
  169. <li class="sv">
  170. @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  171. </li>
  172. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("CourseCollege")):</li>
  173. <li class="sv">
  174. @Html.ComboGrid(optCourseCollege, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">课程:</li>
  177. <li class="sv">
  178. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdditionList" } })
  179. </li>
  180. </ul>
  181. <ul>
  182. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  183. <li class="sv">
  184. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlTeachingMode", Name = "ddlTeachingMode", OnSelect = "reload" })
  185. </li>
  186. <li class="sn" style="padding-left: 5px;">月份:</li>
  187. <li class="sv">
  188. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Month, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlMonth", Name = "ddlMonth", OnSelect = "reload" })
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. <div class="p_title">
  194. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  195. 课时补登
  196. </div>
  197. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  198. </div>
  199. </form>
  200. @Html.PositionBatchModify()
  201. <div class="search_list">
  202. @Html.DataGrid(new DataGridOptions
  203. {
  204. Columns = new List<DataGridColumn>()
  205. {
  206. new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeAdditionID" },
  207. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  208. new BoundFieldColumn { FieldName="CollegeName", HeaderText="教师单位", Align=AlignStyle.Center },
  209. new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师姓名", Align=AlignStyle.Center },
  210. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center },
  211. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center },
  212. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  213. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  214. new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText=EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center },
  215. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名", Align=AlignStyle.Center },
  216. new BoundFieldColumn { FieldName="TeachingModeDesc", HeaderText="授课方式", Align=AlignStyle.Center },
  217. new BoundFieldColumn { FieldName="TeachTypeDesc", HeaderText="任课方式", Align=AlignStyle.Center },
  218. new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center },
  219. new BoundFieldColumn { FieldName="CourseTime", HeaderText="课时数", Align=AlignStyle.Center },
  220. new BoundFieldColumn { FieldName="Month", HeaderText="月份", Align=AlignStyle.Center },
  221. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center }
  222. },
  223. IsCheckOnSelect = true,
  224. DataSourceUrl = Url.Content("~/WorktimeAddition/List"),
  225. ID = "dgWorktimeAdditionList",
  226. IsPagination = true,
  227. IsShowRowNumbers = true,
  228. IsSingleSelect = false
  229. })
  230. </div>
  231. </div>