List.cshtml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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 = "queryBatch",
  13. //IsEnabled = false,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. //OnLoadSuccessFun = "queryBatch",
  26. }
  27. };
  28. ComboGridOptions cgopExaminationType = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationTypeID",
  32. Name = "cgExaminationType",
  33. ID = "cgExaminationType",
  34. OnSelect = "queryType",
  35. //IsEnabled = false,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. //OnLoadSuccessFun = "queryType",
  48. }
  49. };
  50. ComboGridOptions cgopExaminationProject = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ExaminationProjectID",
  54. Name = "cgExaminationProject",
  55. ID = "cgExaminationProject",
  56. OnSelect = "reload",
  57. //IsEnabled = false,
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. //OnLoadSuccessFun = "queryProject",
  70. }
  71. };
  72. //ComboGridOptions cgopSchoolYear = new ComboGridOptions
  73. //{
  74. // TextField = "Code",
  75. // ValueField = "SchoolYearID",
  76. // ID = "SchoolYearCode",
  77. // Name = "SchoolYearCode",
  78. // GridOptions = new DataGridOptions
  79. // {
  80. // Columns = new List<DataGridColumn>()
  81. // {
  82. // new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
  83. // new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
  84. // new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
  85. // },
  86. // PageSize = 5,
  87. // IsCheckOnSelect = true,
  88. // DataSourceUrl = Url.Content("~/SchoolYear/List"),
  89. // IsPagination = true,
  90. // IsShowRowNumbers = true,
  91. // IsSingleSelect = false,
  92. // },
  93. // SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  94. // OnChange = "cgopSchoolYearSelect",
  95. // OnSelect = "cgopSchoolYearSelect"
  96. //};
  97. //ComboGridOptions cgopBatch = new ComboGridOptions
  98. //{
  99. // TextField = "Name",
  100. // ValueField = "ExaminationBatchID",
  101. // ID = "ExaminationBatchID",
  102. // Name = "ExaminationBatchID",
  103. // GridOptions = new DataGridOptions
  104. // {
  105. // Columns = new List<DataGridColumn>()
  106. // {
  107. // new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3}
  108. // },
  109. // PageSize = 5,
  110. // IsCheckOnSelect = true,
  111. // DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  112. // IsPagination = true,
  113. // IsShowRowNumbers = true,
  114. // IsSingleSelect = false
  115. // },
  116. // OnSelect = "cgopBatchSelect"
  117. //};
  118. //ComboGridOptions cgopExamType = new ComboGridOptions
  119. //{
  120. // TextField = "Name",
  121. // ValueField = "ExaminationTypeID",
  122. // ID = "ExaminationTypeID",
  123. // Name = "ExaminationTypeID",
  124. // GridOptions = new DataGridOptions
  125. // {
  126. // Columns = new List<DataGridColumn>()
  127. // {
  128. // new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  129. // },
  130. // PageSize = 5,
  131. // IsCheckOnSelect = true,
  132. // DataSourceUrl = Url.Content("~/ExamProjectControl/GetControlExamTypeListViewGrid"),
  133. // IsPagination = true,
  134. // IsShowRowNumbers = true,
  135. // IsSingleSelect = false
  136. // },
  137. // OnSelect = "cgopExamTypeSelect"
  138. //};
  139. //ComboGridOptions cgopBatchProject = new ComboGridOptions
  140. //{
  141. // TextField = "Name",
  142. // ValueField = "ExaminationProjectID",
  143. // ID = "ExaminationProjectID",
  144. // Name = "ExaminationProjectID",
  145. // GridOptions = new DataGridOptions
  146. // {
  147. // Columns = new List<DataGridColumn>()
  148. // {
  149. // new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  150. // },
  151. // PageSize = 5,
  152. // IsCheckOnSelect = true,
  153. // DataSourceUrl = Url.Content("~/ExamProjectControl/GetControlProjectListViewGrid"),
  154. // IsPagination = true,
  155. // IsShowRowNumbers = true,
  156. // IsSingleSelect = false
  157. // }
  158. // ,
  159. // OnSelect = "reload"
  160. //};
  161. ComboGridOptions cgopCollege = new ComboGridOptions
  162. {
  163. TextField = "Name",
  164. ValueField = "CollegeID",
  165. Name = "CollegeID",
  166. ID = "CollegeID",
  167. GridOptions = new DataGridOptions
  168. {
  169. Columns = new List<DataGridColumn>()
  170. {
  171. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  172. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  173. },
  174. //OnLoadSuccessFun = "queryClass",
  175. IsCheckOnSelect = true,
  176. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  177. IsPagination = true,
  178. IsShowRowNumbers = true,
  179. IsSingleSelect = false,
  180. },
  181. OnSelect = "reload"
  182. };
  183. ComboGridOptions cgopClassmajor = new ComboGridOptions
  184. {
  185. TextField = "Name",
  186. ValueField = "ClassmajorID",
  187. Name = "ClassmajorID",
  188. ID = "ClassmajorID",
  189. OnSelect = "reload",
  190. GridOptions = new DataGridOptions
  191. {
  192. Columns = new List<DataGridColumn>()
  193. {
  194. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  195. },
  196. IsCheckOnSelect = true,
  197. DataSourceUrl = Url.Content("~/Classmajor/List"),
  198. IsPagination = true,
  199. IsShowRowNumbers = true,
  200. IsSingleSelect = false
  201. }
  202. };
  203. ComboGridOptions cgopStandard = new ComboGridOptions
  204. {
  205. TextField = "StandardName",
  206. ValueField = "StandardID",
  207. OnSelect = "reload",
  208. Name = "StandardDictionaryDropDown",
  209. ID = "StandardDictionaryDropDown",
  210. GridOptions = new DataGridOptions
  211. {
  212. Columns = new List<DataGridColumn>()
  213. {
  214. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  215. },
  216. IsCheckOnSelect = true,
  217. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  218. IsPagination = true,
  219. IsShowRowNumbers = true,
  220. IsSingleSelect = false,
  221. }
  222. };
  223. }
  224. @section scripts{
  225. <script src="~/Scripts/Business/CerificateManage/CertisfierDistribute.js" type="text/javascript"></script>
  226. <script type="text/javascript">
  227. var nonSelect = "@DropdownList.SELECT_ALL";
  228. </script>
  229. }
  230. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  231. @Html.Position()
  232. <form id="formQuery" method="post" action="@Url.Content("~/CertisfierDistribute/Excel")">
  233. <input type="hidden" name="qpararms" id="qpararms" />
  234. @Html.Hidden("SelectedID")
  235. @Html.PositionCondition()
  236. <div class="search_keyword">
  237. <div class="search_input">
  238. <ul>
  239. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  240. <li class="sv">
  241. @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", "dgList" } })
  242. </li>
  243. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  244. <li class="sv">
  245. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgList" } })
  246. </li>
  247. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  248. <li class="sv">
  249. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgList" } })
  250. </li>
  251. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  252. <li class="sv">
  253. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
  254. </li>
  255. </ul>
  256. @*<ul>
  257. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  258. <li class="sv">
  259. @Html.ComboGrid(cgopSchoolYear, new Dictionary<string, string> { { "data-condition", "dgList" } })
  260. </li>
  261. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  262. <li class="sv">
  263. @Html.ComboGrid(cgopBatch, new Dictionary<string, string> { { "data-condition", "" } })
  264. </li>
  265. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  266. <li class="sv">
  267. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "" } })
  268. </li>
  269. </ul>*@
  270. <ul>
  271. <li class="sn" style="padding-left: 5px;">院系所:</li>
  272. <li class="sv">
  273. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  274. </li>
  275. <li class="sn" style="padding-left: 5px;">校区:</li>
  276. <li class="sv">
  277. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolAreaID", Name = "SchoolAreaID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  278. </li>
  279. <li class="sn" style="padding-left: 5px;">年级:</li>
  280. <li class="sv">
  281. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "Years", Name = "Years", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  282. </li>
  283. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  284. <li class="sv">
  285. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgList" } })
  286. </li>
  287. </ul>
  288. <ul>
  289. <li class="sn" style="padding-left: 5px;">专业:</li>
  290. <li class="sv">
  291. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  292. @*@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StandardID", Name = "StandardID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  293. </li>
  294. <li class="sn" style="padding-left: 5px;">领取方式:</li>
  295. <li class="sv">
  296. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DistributeTypeID", Name = "DistributeTypeID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  297. </li>
  298. <li class="sn" style="padding-left: 5px;">领取状态:</li>
  299. <li class="sv">
  300. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "RecordStatus", Name = "RecordStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  301. </li>
  302. </ul>
  303. </div>
  304. </div>
  305. <div class="p_title">
  306. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  307. 证书领取列表
  308. </div>
  309. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  310. </div>
  311. </form>
  312. @Html.PositionBatchModify()
  313. <div class="search_list">
  314. @Html.DataGrid(new DataGridOptions
  315. {
  316. Columns = new List<DataGridColumn>()
  317. {
  318. new CheckBoxFieldColumn{ HeaderText="", FieldName="CertisfierDistributeID"},
  319. new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center },
  320. new BoundFieldColumn { FieldName="ProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
  321. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center },
  322. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  323. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.04 },
  324. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width = 0.12 },
  325. new BoundFieldColumn { FieldName="SaveNo", HeaderText="存放编号", Align=AlignStyle.Center,Width = 0.06 },
  326. new BoundFieldColumn { FieldName="DistributeStateName", HeaderText="领取状态", Align=AlignStyle.Center, Width = 0.06 },
  327. new LinkButtonColumn { FieldName="DistributeTypeName", HeaderText="领取方式", Align=AlignStyle.Center, Handle="view" },
  328. new BoundFieldColumn { FieldName="ContactPerson", HeaderText="联系人", Align=AlignStyle.Center },
  329. new BoundFieldColumn { FieldName="ContactNo", HeaderText="联系电话", Align=AlignStyle.Center },
  330. new BoundFieldColumn { FieldName="DeliveryNoteNo", HeaderText="邮寄单号", Align=AlignStyle.Center },
  331. new BoundFieldColumn { FieldName="Distributer", HeaderText="领取人", Align=AlignStyle.Center },
  332. new BoundFieldColumn { FieldName="DistributeTime", HeaderText="领取时间", Align=AlignStyle.Center, Formatter= Formatter.CHSOnlyYearMonthDay },
  333. new BoundFieldColumn { FieldName="No", HeaderText="领取单号", Align=AlignStyle.Center },
  334. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center },
  335. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  336. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center },
  337. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center },
  338. },
  339. IsCheckOnSelect = true,
  340. DataSourceUrl = Url.Content("~/CertisfierDistribute/List"),
  341. ID = "dgList",
  342. IsPagination = true,
  343. IsShowRowNumbers = true,
  344. IsSingleSelect = false,
  345. OnLoadSuccessFun = "loadSuccess"
  346. })
  347. <div style="font-weight: bold; margin-left: 10px; margin-top: 10px;">
  348. 汇总: 证书总数<span id="lbCount" style="color: Red"></span>个、 已领人数<span id="lbAlready"
  349. style="color: Red"></span>个、 未领人数<span id="lbNotReceived" style="color: Red"></span>个
  350. </div>
  351. </div>
  352. <form id="formEms" method="post" action="@Url.Content("~/CertisfierDistribute/EmsExcel")"></form>
  353. </div>
  354. <iframe id="frmPrintDetail" width="0" height="0"></iframe>