List.cshtml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  7. //{
  8. // TextField = "Name",
  9. // ValueField = "ExaminationBatchID",
  10. // ID = "cgExaminationBatch",
  11. // Name = "cgExaminationBatch",
  12. // OnSelect = "queryProject",
  13. // GridOptions = new DataGridOptions
  14. // {
  15. // Columns = new List<DataGridColumn>()
  16. // {
  17. // new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center }
  18. // },
  19. // OnLoadSuccessFun = "reload",
  20. // IsCheckOnSelect = true,
  21. // DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  22. // IsPagination = true,
  23. // IsShowRowNumbers = true,
  24. // IsSingleSelect = false,
  25. // }
  26. //};
  27. //ComboGridOptions cgopExaminationType = new ComboGridOptions
  28. //{
  29. // TextField = "Name",
  30. // ValueField = "ExaminationTypeID",
  31. // Name = "cgExaminationType",
  32. // ID = "cgExaminationType",
  33. // OnSelect = "queryProject",
  34. // GridOptions = new DataGridOptions
  35. // {
  36. // Columns = new List<DataGridColumn>()
  37. // {
  38. // new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center }
  39. // },
  40. // IsCheckOnSelect = true,
  41. // DataSourceUrl = Url.Content("~/ExaminationType/List"),
  42. // IsPagination = true,
  43. // IsShowRowNumbers = true,
  44. // IsSingleSelect = false
  45. // }
  46. //};
  47. //ComboGridOptions cgopExaminationProject = new ComboGridOptions
  48. //{
  49. // TextField = "Name",
  50. // ValueField = "ExaminationProjectID",
  51. // Name = "cgExaminationProject",
  52. // ID = "cgExaminationProject",
  53. // OnSelect = "reload",
  54. // GridOptions = new DataGridOptions
  55. // {
  56. // Columns = new List<DataGridColumn>()
  57. // {
  58. // new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center }
  59. // },
  60. // IsCheckOnSelect = true,
  61. // DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  62. // IsPagination = true,
  63. // IsShowRowNumbers = true,
  64. // IsSingleSelect = false
  65. // }
  66. //};
  67. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  68. {
  69. TextField = "Name",
  70. ValueField = "ExaminationBatchID",
  71. ID = "cgExaminationBatch",
  72. Name = "cgExaminationBatch",
  73. OnSelect = "queryBatch",
  74. //IsEnabled = false,
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false,
  86. //OnLoadSuccessFun = "queryBatch",
  87. }
  88. };
  89. ComboGridOptions cgopExaminationType = new ComboGridOptions
  90. {
  91. TextField = "Name",
  92. ValueField = "ExaminationTypeID",
  93. Name = "cgExaminationType",
  94. ID = "cgExaminationType",
  95. OnSelect = "queryType",
  96. //IsEnabled = false,
  97. GridOptions = new DataGridOptions
  98. {
  99. Columns = new List<DataGridColumn>()
  100. {
  101. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
  102. },
  103. IsCheckOnSelect = true,
  104. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"),
  105. IsPagination = true,
  106. IsShowRowNumbers = true,
  107. IsSingleSelect = false,
  108. //OnLoadSuccessFun = "queryType",
  109. }
  110. };
  111. ComboGridOptions cgopExaminationProject = new ComboGridOptions
  112. {
  113. TextField = "Name",
  114. ValueField = "ExaminationProjectID",
  115. Name = "cgExaminationProject",
  116. ID = "cgExaminationProject",
  117. OnSelect = "reload",
  118. //IsEnabled = false,
  119. GridOptions = new DataGridOptions
  120. {
  121. Columns = new List<DataGridColumn>()
  122. {
  123. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
  124. },
  125. IsCheckOnSelect = true,
  126. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false,
  130. //OnLoadSuccessFun = "queryProject",
  131. }
  132. };
  133. ComboGridOptions cgopCampus = new ComboGridOptions
  134. {
  135. TextField = "Name",
  136. ValueField = "CampusID",
  137. ID = "cgCampus",
  138. Name = "cgCampus",
  139. OnSelect = "queryCollege",
  140. GridOptions = new DataGridOptions
  141. {
  142. Columns = new List<DataGridColumn>()
  143. {
  144. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  145. },
  146. OnLoadSuccessFun = "reload",
  147. IsCheckOnSelect = true,
  148. DataSourceUrl = Url.Content("~/Campus/List"),
  149. IsPagination = true,
  150. IsShowRowNumbers = true,
  151. IsSingleSelect = false,
  152. }
  153. };
  154. ComboGridOptions cgopCollege = new ComboGridOptions
  155. {
  156. TextField = "Name",
  157. ValueField = "CollegeID",
  158. ID = "cgCollege",
  159. Name = "cgCollege",
  160. OnSelect = "queryClassmajor",
  161. GridOptions = new DataGridOptions
  162. {
  163. Columns = new List<DataGridColumn>()
  164. {
  165. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  166. },
  167. //OnLoadSuccessFun = "reload",
  168. IsCheckOnSelect = true,
  169. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  170. IsPagination = true,
  171. IsShowRowNumbers = true,
  172. IsSingleSelect = false,
  173. }
  174. };
  175. ComboGridOptions cgopStandard = new ComboGridOptions
  176. {
  177. TextField = "StandardName",
  178. ValueField = "StandardID",
  179. OnSelect = "queryClassmajor",
  180. Name = "DictionaryStandard",
  181. ID = "DictionaryStandard",
  182. GridOptions = new DataGridOptions
  183. {
  184. Columns = new List<DataGridColumn>()
  185. {
  186. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  187. },
  188. IsCheckOnSelect = true,
  189. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  190. IsPagination = true,
  191. IsShowRowNumbers = true,
  192. IsSingleSelect = false
  193. }
  194. };
  195. ComboGridOptions cgopClassmajor = new ComboGridOptions
  196. {
  197. TextField = "Name",
  198. ValueField = "ClassmajorID",
  199. Name = "cgClassmajor",
  200. ID = "cgClassmajor",
  201. OnSelect = "reload",
  202. GridOptions = new DataGridOptions
  203. {
  204. Columns = new List<DataGridColumn>()
  205. {
  206. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  207. },
  208. IsCheckOnSelect = true,
  209. DataSourceUrl = Url.Content("~/Classmajor/List"),
  210. IsPagination = true,
  211. IsShowRowNumbers = true,
  212. IsSingleSelect = false
  213. }
  214. };
  215. }
  216. @section scripts{
  217. <script src="~/Scripts/Business/ScoreManage/ExaminationScore.js" type="text/javascript"></script>
  218. <script type="text/javascript">
  219. var nonSelect = "@DropdownList.SELECT_ALL";
  220. </script>
  221. }
  222. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  223. @Html.Position()
  224. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationScore/Excel")">
  225. @Html.PositionCondition()
  226. <div class="search_keyword">
  227. @Html.Hidden("SelectedID")
  228. <div class="search_input">
  229. <ul>
  230. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  231. <li class="sv">
  232. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "querySchoolYear", OnLoadSuccess = "querySchoolYear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  233. </li>
  234. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  235. <li class="sv">
  236. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  237. </li>
  238. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  239. <li class="sv">
  240. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  241. </li>
  242. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  243. <li class="sv">
  244. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  245. </li>
  246. </ul>
  247. @*<ul>
  248. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  249. <li class="sv">
  250. @Html.DropdownList(new DropdownListOptions
  251. {
  252. BindType = DropdownListBindType.SelectAll,
  253. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  254. ID = "ddlSchoolyear",
  255. Name = "ddlSchoolyear",
  256. OnSelect = "schoolyearChange",
  257. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  258. OnLoadSuccess = "schoolyearChange"
  259. },
  260. new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  261. </li>
  262. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  263. <li class="sv">
  264. @Html.DropdownList(new DropdownListOptions
  265. {
  266. BindType = DropdownListBindType.SelectAll,
  267. ID = "ddlExaminationBatch",
  268. Name = "ddlExaminationBatch",
  269. OnSelect = "examinationBatchChange",
  270. OnLoadSuccess = "examinationBatchChange"
  271. },
  272. new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  273. </li>
  274. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  275. <li class="sv">
  276. @Html.DropdownList(new DropdownListOptions
  277. {
  278. BindType = DropdownListBindType.SelectAll,
  279. ID = "ddlExaminationType",
  280. Name = "ddlExaminationType",
  281. OnSelect = "examinationTypeChange",
  282. OnLoadSuccess = "examinationTypeChange"
  283. },
  284. new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  285. </li>
  286. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  287. <li class="sv">
  288. @Html.DropdownList(new DropdownListOptions
  289. {
  290. BindType = DropdownListBindType.SelectAll,
  291. ID = "ddlExaminationProject",
  292. Name = "ddlExaminationProject",
  293. OnSelect = "reload",
  294. },
  295. new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  296. </li>
  297. </ul>*@
  298. <ul>
  299. <li class="sn" style="padding-left: 5px;">校区:</li>
  300. <li class="sv">
  301. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  302. </li>
  303. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  304. <li class="sv">
  305. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  306. </li>
  307. <li class="sn" style="padding-left: 5px;">年级:</li>
  308. <li class="sv">
  309. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  310. </li>
  311. <li class="sn" style="padding-left: 5px;">专业:</li>
  312. <li class="sv">
  313. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  314. </li>
  315. </ul>
  316. <ul>
  317. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  318. <li class="sv">
  319. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgExaminationScoreList" } })
  320. </li>
  321. </ul>
  322. </div>
  323. </div>
  324. <div class="p_title">
  325. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  326. 项目成绩
  327. </div>
  328. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  329. </div>
  330. </form>
  331. @Html.PositionBatchModify()
  332. <div class="search_list">
  333. @Html.DataGrid(new DataGridOptions
  334. {
  335. Columns = new List<DataGridColumn>()
  336. {
  337. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationScoreID",Width=0.05},
  338. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.04},
  339. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center,Width=0.04},
  340. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center,Width=0.04},
  341. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center,Width=0.08 },
  342. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目考核项", Align=AlignStyle.Center,Width=0.03},
  343. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center,Width=0.05 },
  344. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系", Align=AlignStyle.Center,Width=0.08 },
  345. new BoundFieldColumn { FieldName="SchoolyearNumID", HeaderText="年级", Align=AlignStyle.Center,Width=0.03 },
  346. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center,Width=0.08 },
  347. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width=0.08 },
  348. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.03 },
  349. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center,Width=0.05 },
  350. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.12 },
  351. new BoundFieldColumn { FieldName="Score", HeaderText="成绩", Align=AlignStyle.Center, Width=0.02 },
  352. new BoundFieldColumn { FieldName="Expire", HeaderText="有效日期", Align=AlignStyle.Center, Width=0.04, Formatter=Formatter.OnlyYearMonthDay},
  353. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02},
  354. },
  355. IsCheckOnSelect = true,
  356. DataSourceUrl = Url.Content("~/ExaminationScore/List"),
  357. ID = "dgExaminationScoreList",
  358. IsPagination = true,
  359. IsShowRowNumbers = true,
  360. IsSingleSelect = false
  361. })
  362. </div>
  363. </div>