GdssList.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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/GrademajorBindComboGridOptions"),
  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="padding-left: 5px;">校区:</li>
  153. <li class="sv">
  154. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, 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. </ul>
  170. <ul>
  171. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  172. <li class="sv">
  173. @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" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  176. <li class="sv">
  177. @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" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">学制:</li>
  180. <li class="sv">
  181. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  182. </li>
  183. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  184. <li class="sv">
  185. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  186. </li>
  187. </ul>
  188. <ul>
  189. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  190. <li class="sv">
  191. @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" } })
  192. </li>
  193. <li class="sn" style="padding-left: 5px;">是否有照片:</li>
  194. <li class="sv">
  195. @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" } })
  196. </li>
  197. @*<li class="sn" style="padding-left: 5px;">是否是圆梦计划:</li>
  198. <li class="sv">
  199. @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" } })
  200. </li>*@
  201. <li class="sn" style="padding-left: 5px;">注册状态:</li>
  202. <li class="sv">
  203. @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" } })
  204. </li>
  205. <li class="sn" style="padding-left: 5px; ">是否毕业生:</li>
  206. <li class="sv">
  207. @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" } })
  208. </li>
  209. </ul>
  210. @*<ul>
  211. <li class="sn" style="padding-left: 3px;">预计毕业时间:</li>
  212. <li class="sv">
  213. @Html.ComboGrid(cgopPlanningGraduate, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  214. </li>
  215. </ul>*@
  216. <ul>
  217. @*导出数据*@
  218. <li style="display:none" class="sv" >
  219. <input id="UserIDs" name="UserIDs" type="text" value="" />
  220. </li>
  221. </ul>
  222. </div>
  223. </div>
  224. </form>
  225. <div class="p_title">
  226. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  227. 学生信息列表
  228. </div>
  229. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  230. </div>
  231. @Html.PositionBatchModify()
  232. <div class="search_list">
  233. @Html.DataGrid(new DataGridOptions
  234. {
  235. Columns = new List<DataGridColumn>()
  236. {
  237. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  238. new LinkButtonColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=0.12, Handle="edit" },
  239. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  240. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03},
  241. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center, Width=0.04 },
  242. new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  243. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.15 },
  244. //new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.15 },
  245. //new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", Align=AlignStyle.Center, Width=0.04 },
  246. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  247. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  248. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, Width=0.04 },
  249. new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, Width=0.04} ,
  250. new BoundFieldColumn { FieldName="IsPhotoUrl", HeaderText="是否有照片", Align=AlignStyle.Center, Width=0.05} ,
  251. new BoundFieldColumn { FieldName="IsProofreadStr", HeaderText="是否核对", Align=AlignStyle.Center, Width=0.05} ,
  252. },
  253. PageSize = 50,
  254. IsCheckOnSelect = true,
  255. DataSourceUrl = Url.Content("~/Students/GdssList"),
  256. ID = "dgStudentList",
  257. IsPagination = true,
  258. IsShowRowNumbers = true,
  259. IsSingleSelect = false,
  260. IsAutoHeight = false,
  261. })
  262. </div>
  263. </div>