List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "CampusDropdown",
  12. ID = "CampusDropdown",
  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 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  19. },
  20. //OnLoadSuccessFun = "reload",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. OnSelect = "queryCollege",
  33. Name = "CollegeDropdown",
  34. ID = "CollegeDropdown",
  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 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  41. },
  42. //OnLoadSuccessFun = "queryClass",
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. ComboGridOptions cgopClassmajor = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ClassmajorID",
  54. Name = "ClassmajorDropdown",
  55. ID = "ClassmajorDropdown",
  56. OnSelect = "queryClass",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Classmajor/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. OnSelect = "queryStandard",
  76. Name = "StandardDictionaryDropDown",
  77. ID = "StandardDictionaryDropDown",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  83. },
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false,
  89. }
  90. };
  91. ComboGridOptions cgopPlanningGraduate = new ComboGridOptions
  92. {
  93. TextField = "PlanningGraduateStr",
  94. ValueField = "PlanningGraduateStr",
  95. OnSelect = "reload",
  96. Name = "PlanningGraduateDropDown",
  97. ID = "PlanningGraduateDropDown",
  98. GridOptions = new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new BoundFieldColumn { FieldName="PlanningGraduateStr", HeaderText="毕业学期", Align=AlignStyle.Center }
  103. },
  104. IsCheckOnSelect = true,
  105. DataSourceUrl = Url.Content("~/Students/PlanningGraduateList"),
  106. IsPagination = true,
  107. IsShowRowNumbers = true,
  108. IsSingleSelect = false,
  109. }
  110. };
  111. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  112. {
  113. TextField = "LearnSystem",
  114. ValueField = "LearnSystem",
  115. OnSelect = "queryClass",
  116. Name = "DictionaryLearnSystem",
  117. ID = "DictionaryLearnSystem",
  118. GridOptions = new DataGridOptions
  119. {
  120. Columns = new List<DataGridColumn>()
  121. {
  122. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  123. },
  124. IsCheckOnSelect = true,
  125. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  126. IsPagination = true,
  127. IsShowRowNumbers = true,
  128. IsSingleSelect = false,
  129. IsShowHeader = false
  130. }
  131. };
  132. }
  133. @section scripts{
  134. <script src="../../Scripts/Business/Studentfile/Student.js" type="text/javascript"></script>
  135. <script type="text/javascript">
  136. var nonSelect = "@DropdownList.SELECT_ALL";
  137. </script>
  138. }
  139. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  140. @Html.Position()
  141. <div class="p_SearchTitle">
  142. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  143. 查询条件
  144. </div>
  145. </div>
  146. <form id="formQuery" method="post" action="@Url.Content("~/Students/Excel")">
  147. @Html.PositionCondition()
  148. @Html.Hidden("SelectedIDs")
  149. <div class="search_keyword">
  150. <div class="search_input">
  151. <ul>
  152. <li class="sn" style="display:none;">@EMIS.Utility.RSL.Get("Campus"):</li>
  153. <li class="sv" style="display:none;">
  154. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  155. </li>
  156. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  159. </li>
  160. <li class="sn" style="padding-left: 5px;">年级:</li>
  161. <li class="sv">
  162. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass"}, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  163. </li>
  164. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  165. <li class="sv">
  166. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  167. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })*@
  168. </li>
  169. <li class="sn" style="padding-left:5px;">@Html.RSLabel("EducationID"):</li>
  170. <li class="sv">
  171. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  172. </li>
  173. @*<li class="sn" style="padding-left:2px;width:35px;">
  174. @Html.CheckBox("isPhoto", new Dictionary<string, object> { { "data-condition", "dgStudentList" } })
  175. </li>
  176. <li class="sv" style="color:red;font-weight:bold;">
  177. 照片
  178. </li>*@
  179. </ul>
  180. <ul>
  181. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  182. <li class="sv">
  183. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  184. </li>
  185. <li class="sn" style="padding-left: 5px;">学制:</li>
  186. <li class="sv">
  187. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  188. </li>
  189. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  190. <li class="sv">
  191. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  192. </li>
  193. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  194. <li class="sv">
  195. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "InSchoolStatusDictionaryDropDown", Name = "InSchoolStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  196. </li>
  197. @*<li class="sn" style="padding-left:2px;width:35px;">
  198. @Html.CheckBox("gra", new Dictionary<string, object> { { "data-condition", "dgStudentList" } })
  199. </li>
  200. <li class="sv" style="color:red;font-weight:bold;">
  201. 毕业生
  202. </li>*@
  203. </ul>
  204. <ul>
  205. <li class="sn" style="padding-left: 5px;">是否有照片:</li>
  206. <li class="sv">
  207. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YesOrNoStatusDictionaryDropDown", Name = "YesOrNoStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  208. </li>
  209. @*<li class="sn" style="padding-left: 5px;">是否是圆梦计划:</li>
  210. <li class="sv">
  211. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YesOrNoStatus", Name = "YesOrNoStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  212. </li>*@
  213. <li class="sn" style="padding-left: 5px;">注册状态:</li>
  214. <li class="sv">
  215. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ReportStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ReportStatusDictionaryDropDown", Name = "ReportStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  216. </li>
  217. <li class="sn" style="padding-left: 5px; ">是否毕业生:</li>
  218. <li class="sv">
  219. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsNo, ID = "GeneralPurposeDictionaryDropDown", Name = "GeneralPurposeDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  220. </li>
  221. <li class="sn" style="padding-left: 5px;width: 85px;">预计毕业时间:</li>
  222. <li class="sv">
  223. @Html.ComboGrid(cgopPlanningGraduate, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  224. </li>
  225. </ul>
  226. <ul>
  227. @*导出数据*@
  228. <li style="display:none" class="sv" >
  229. <input id="UserIDs" name="UserIDs" type="text" value="" />
  230. </li>
  231. </ul>
  232. </div>
  233. </div>
  234. </form>
  235. <div class="p_title">
  236. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  237. 学生信息列表
  238. </div>
  239. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  240. </div>
  241. @Html.PositionBatchModify()
  242. <div class="search_list">
  243. @Html.DataGrid(new DataGridOptions
  244. {
  245. Columns = new List<DataGridColumn>()
  246. {
  247. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  248. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  249. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  250. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="Sex", Width=0.03},
  251. new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  252. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.15 },
  253. new BoundFieldColumn { FieldName="NationName", HeaderText="民族", Align=AlignStyle.Center, OrderFieldName="Nation", Width=0.03 },
  254. new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", Align=AlignStyle.Center, OrderFieldName="Politics", Width=0.04 },
  255. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=0.12 },
  256. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04 },
  257. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04 },
  258. new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, OrderFieldName="ReportStatusID", Width=0.04} ,
  259. new BoundFieldColumn { FieldName="IsPhotoUrl", HeaderText="是否有照片", Align=AlignStyle.Center, Width=0.05} ,
  260. new BoundFieldColumn { FieldName="IsProofreadStr", HeaderText="是否核对", Align=AlignStyle.Center, OrderFieldName="IsProofread", Width=0.05} ,
  261. },
  262. IsCheckOnSelect = true,
  263. DataSourceUrl = Url.Content("~/Students/List"),
  264. ID = "dgStudentList",
  265. IsPagination = true,
  266. IsShowRowNumbers = true,
  267. IsSingleSelect = false,
  268. IsAutoHeight = false,
  269. })
  270. </div>
  271. </div>