PicComparison.cshtml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "PicComparison";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //年级
  50. ComboGridOptions cgopGrade = new ComboGridOptions
  51. {
  52. TextField = "GradeID",
  53. ValueField = "GradeID",
  54. ID = "DictionaryGrade",
  55. Name = "DictionaryGrade",
  56. OnSelect = "queryGrade",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. }
  69. };
  70. //专业名称
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. ID = "DictionaryStandard",
  76. Name = "DictionaryStandard",
  77. OnSelect = "queryStandard",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  83. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. };
  92. //学制
  93. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  94. {
  95. TextField = "LearnSystem",
  96. ValueField = "LearnSystem",
  97. ID = "DictionaryLearnSystem",
  98. Name = "DictionaryLearnSystem",
  99. OnSelect = "queryLearnSystem",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  105. },
  106. IsCheckOnSelect = true,
  107. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  108. IsPagination = true,
  109. IsShowRowNumbers = true,
  110. IsSingleSelect = false,
  111. IsShowHeader = false
  112. }
  113. };
  114. //班级信息
  115. ComboGridOptions cgopClassmajor = new ComboGridOptions
  116. {
  117. TextField = "Name",
  118. ValueField = "ClassmajorID",
  119. Name = "ClassmajorComboGrid",
  120. ID = "ClassmajorComboGrid",
  121. OnSelect = "reload",
  122. GridOptions = new DataGridOptions
  123. {
  124. Columns = new List<DataGridColumn>()
  125. {
  126. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.12, Align=AlignStyle.Center },
  127. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  128. },
  129. PageSize = 5,
  130. IsCheckOnSelect = true,
  131. DataSourceUrl = Url.Content("~/Classmajor/List"),
  132. IsPagination = true,
  133. IsShowRowNumbers = true,
  134. IsSingleSelect = false
  135. }
  136. };
  137. }
  138. @section scripts{
  139. <script src="~/Scripts/Business/StudentManage/StudentProfile/StudentPicComparison.js" type="text/javascript"></script>
  140. <script type="text/javascript">
  141. var nonSelect = "@DropdownList.SELECT_ALL";
  142. </script>
  143. }
  144. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  145. <div class="p_SearchTitle">
  146. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  147. </div>
  148. <form id="formQuery" method="post" action="@Url.Content("~/Student/PicComparison_Excel")">
  149. @Html.PositionCondition("StudentPicComparison")
  150. <div class="search_keyword">
  151. <div class="search_input">
  152. <ul>
  153. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  160. </li>
  161. <li class="sn" style="padding-left: 5px;">年级:</li>
  162. <li class="sv">
  163. @*@Html.ComboGrid(cgopGrade, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })*@
  164. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  165. new ComboGridOptions
  166. {
  167. ID = "DictionaryGrade",
  168. Name = "DictionaryGrade",
  169. OnSelect = "queryGrade"
  170. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  171. </li>
  172. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  173. <li class="sv">
  174. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  175. </li>
  176. </ul>
  177. <ul>
  178. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  179. <li class="sv">
  180. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  181. new ComboGridOptions
  182. {
  183. ID = "DictionaryEducation",
  184. Name = "DictionaryEducation",
  185. OnSelect = "reload"
  186. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  187. </li>
  188. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  189. <li class="sv">
  190. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  191. new ComboGridOptions
  192. {
  193. ID = "DictionaryLearningform",
  194. Name = "DictionaryLearningform",
  195. SelectedValue = BaseExtensions.GetDefaultLearnformForList(),
  196. OnSelect = "reload"
  197. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  198. </li>
  199. <li class="sn" style="padding-left: 5px;">学制:</li>
  200. <li class="sv">
  201. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  202. </li>
  203. <li class="sn" style="padding-left: 5px;">班级信息:</li>
  204. <li class="sv">
  205. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  206. </li>
  207. </ul>
  208. <ul>
  209. <li class="sn" style="padding-left: 5px;color: red;">录取照片:</li>
  210. <li class="sv">
  211. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, DropdownListBindType.SelectAll,
  212. new ComboGridOptions
  213. {
  214. ID = "IsRecruitPhotoDropdown",
  215. Name = "IsRecruitPhotoDropdown",
  216. OnSelect = "reload"
  217. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  218. </li>
  219. <li class="sn" style="padding-left: 5px;color: red;">学籍照片:</li>
  220. <li class="sv">
  221. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, DropdownListBindType.SelectAll,
  222. new ComboGridOptions
  223. {
  224. ID = "IsPhotoDropdown",
  225. Name = "IsPhotoDropdown",
  226. OnSelect = "reload"
  227. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  228. </li>
  229. <li class="sn" style="padding-left: 5px;color: red;">学历照片:</li>
  230. <li class="sv">
  231. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, DropdownListBindType.SelectAll,
  232. new ComboGridOptions
  233. {
  234. ID = "IsGraduationPhotoDropdown",
  235. Name = "IsGraduationPhotoDropdown",
  236. OnSelect = "reload"
  237. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  238. </li>
  239. <li class="sn" style="padding-left: 5px;color: red;">是否比对:</li>
  240. <li class="sv">
  241. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  242. {
  243. ID = "DictionaryIsPhotoComparison",
  244. Name = "DictionaryIsPhotoComparison",
  245. BindType = DropdownListBindType.SelectAll,
  246. SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsNo,
  247. OnSelect = "reload"
  248. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  249. </li>
  250. <li class="sn" style="padding-left: 5px;color: red;">在校状态:</li>
  251. <li class="sv">
  252. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions
  253. {
  254. ID = "DictionaryInschoolStatus",
  255. Name = "DictionaryInschoolStatus",
  256. BindType = DropdownListBindType.SelectAll,
  257. SelectedValue = (int)EMIS.ViewModel.CF_InschoolStatus.InSchool,
  258. OnSelect = "reload"
  259. }, new Dictionary<string, string> { { "data-condition", "dgStudentPicComparisonList" } })
  260. </li>
  261. </ul>
  262. <ul style="display:none">
  263. <li style="display:none" class="sv" >
  264. <input id="UserIDs" name="UserIDs" type="text" value="" />
  265. </li>
  266. </ul>
  267. </div>
  268. </div>
  269. </form>
  270. <div class="p_title">
  271. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">照片比对信息列表</div>
  272. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("PicComparison")</div>
  273. </div>
  274. <div class="search_list">
  275. @Html.Hidden("studentViewList")
  276. <table cellpadding="0" cellspacing="0" id="piccomparisontable">
  277. <tr>
  278. <td>
  279. @Html.DataGrid(new DataGridOptions
  280. {
  281. Columns = new List<DataGridColumn>()
  282. {
  283. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  284. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.08, CustomFormatFun="SetRedColumn" },
  285. //new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Width=0.08 },
  286. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  287. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.02 },
  288. //new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
  289. //new BoundFieldColumn { FieldName="NationName", HeaderText="民族", Align=AlignStyle.Center, OrderFieldName="NationID", Width=0.03 },
  290. //new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", Align=AlignStyle.Center, OrderFieldName="PoliticsID", Width=0.04 },
  291. //new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=0.12 },
  292. //new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  293. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04, CustomFormatFun="SetRedColumn" },
  294. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  295. //new BoundFieldColumn { FieldName="ClassNum", HeaderText="班序", Align=AlignStyle.Center, Width=0.02 },
  296. //new BoundFieldColumn { FieldName="ClassmajorNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 },
  297. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=12 },
  298. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  299. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.08 },
  300. //new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04 },
  301. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.06 },
  302. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  303. //new BoundFieldColumn { FieldName="StartSchoolyearCode", HeaderText="入学学期", Align=AlignStyle.Center, Width=0.06 },
  304. //new BoundFieldColumn { FieldName="GraduateSchoolyearCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.06 },
  305. //new BoundFieldColumn { FieldName="PlanningGraduateDate", HeaderText="预计毕业日期", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
  306. //new BoundFieldColumn { FieldName="GraduateCardNo", HeaderText="毕结业证书编号", Align=AlignStyle.Center, Width=0.12, OverflowLength=15 },
  307. //new BoundFieldColumn { FieldName="Mobile", HeaderText="移动电话", Align=AlignStyle.Center, Width=0.08 },
  308. //new BoundFieldColumn { FieldName="Email", HeaderText="电子邮箱", Align=AlignStyle.Center, Width=0.06 },
  309. //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  310. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  311. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  312. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=10 },
  313. new BoundFieldColumn { FieldName="IsPhotoComparisonName", HeaderText="比对", Align=AlignStyle.Center, OrderFieldName="IsPhotoComparison", Width=0.02, CustomFormatFun="SetRedColumn" },
  314. new ImageButtonColumn { FieldName="RecruitPictureUrlStr", HeaderText="录取照片", Align=AlignStyle.Center, OrderFieldName="RecruitPictureHasValue", Width=0.06, ImageWidth=100, ImageHeight=100 },
  315. new ImageButtonColumn { FieldName="PhotoUrlStr", HeaderText="学籍照片", Align=AlignStyle.Center, OrderFieldName="PhotoHasValue", Width=0.06, ImageWidth=100, ImageHeight=100 },
  316. new ImageButtonColumn { FieldName="GraduationPictureUrlStr", HeaderText="学历照片", Align=AlignStyle.Center, OrderFieldName="GraduationPictureHasValue", Width=0.06, ImageWidth=100, ImageHeight=100 }
  317. //new BoundFieldColumn { FieldName="IsProofreadName", HeaderText="核对", Align=AlignStyle.Center, OrderFieldName="IsProofread", Width=0.02 },
  318. //new LinkButtonColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, Handle="editReport", OrderFieldName="ReportStatus", Width=0.04 },
  319. //new BoundFieldColumn { FieldName="AccountStatusName", HeaderText="帐号状态", Align=AlignStyle.Center, OrderFieldName="AccountStatus", Width=0.04, CustomFormatFun="SetRedColumn" }
  320. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=5 }
  321. },
  322. IsCheckOnSelect = true,
  323. DataSourceUrl = Url.Content("~/Student/PicComparison"),
  324. ID = "dgStudentPicComparisonList",
  325. IsPagination = true,
  326. IsShowRowNumbers = true,
  327. IsSingleSelect = false
  328. })
  329. </td>
  330. </tr>
  331. </table>
  332. </div>
  333. </div>