StudentBatchSelect.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "学生信息";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "cbgCampus",
  12. ID = "cbgCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  18. },
  19. //OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopCollege = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. OnSelect = "queryCollege",
  32. Name = "cbgCollege",
  33. ID = "cbgCollege",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopStandard = new ComboGridOptions
  49. {
  50. TextField = "StandardName",
  51. ValueField = "StandardID",
  52. OnSelect = "queryStandard",
  53. Name = "cbgStandard",
  54. ID = "cbgStandard",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/Common/StudentBatchSelect.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. <div class="p_title">
  77. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  78. </div>
  79. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("StudentBatchSelect")</div>
  80. </div>
  81. <div class="p_SearchTitle">
  82. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  83. 查询条件
  84. </div>
  85. </div>
  86. <form id="formQuery" method="post">
  87. @Html.PositionCondition("StudentBatchSelect", null)
  88. <div class="search_keyword">
  89. <div class="search_input">
  90. <ul>
  91. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  98. </li>
  99. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  100. <li class="sv">
  101. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "ddlEducation", Name = "ddlEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  102. </li>
  103. <li class="sn" style="padding-left: 5px;">年级:</li>
  104. <li class="sv">
  105. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  106. </li>
  107. </ul>
  108. <ul>
  109. <li class="sn" style="padding-left: 5px;">专业:</li>
  110. <li class="sv">
  111. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  114. <li class="sv">
  115. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { ID = "ddlLearningform", Name = "ddlLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">班序:</li>
  118. <li class="sv">
  119. @Html.NumberRangeDropdownList(1, 4, new DropdownListOptions { ID = "ddlClassNum", Name = "ddlClassNum", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  120. </li>
  121. <li class="sn" style="padding-left: 5px;">学籍状态:</li>
  122. <li class="sv">
  123. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, new DropdownListOptions { ID = "ddlStudentStatus", Name = "ddlStudentStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  124. </li>
  125. </ul>
  126. <ul>
  127. <li class="sn" style="padding-left: 5px;">是否有照片:</li>
  128. <li class="sv">
  129. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlHasPhoto", Name = "ddlHasPhoto", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  130. </li>
  131. <li class="sv">
  132. @Html.CheckBox("chkOnlyGraduation", new Dictionary<string, object> { { "data-condition", "dgList" } })<label>限定毕业班</label>&nbsp;&nbsp;
  133. @Html.CheckBox("chkPreviousNotGraduated", new Dictionary<string, object> { { "data-condition", "dgList" } })<label>往届未毕业生</label>&nbsp;&nbsp;
  134. @*Html.CheckBox("chkShowPicture", new Dictionary<string, object> { { "data-condition", "dgStudentList" } })<label>显示照片</label>*@
  135. </li>
  136. </ul>
  137. </div>
  138. </div>
  139. </form>
  140. <div class="search_list">
  141. @Html.DataGrid(new DataGridOptions
  142. {
  143. Columns = new List<DataGridColumn>()
  144. {
  145. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  146. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  147. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  148. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  149. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay },
  150. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  151. new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center },
  152. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center },
  153. new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center },
  154. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center }
  155. },
  156. IsCheckOnSelect = true,
  157. DataSourceUrl = Url.Content("~/Students/BatchSelectList"),
  158. ID = "dgList",
  159. IsPagination = true,
  160. IsShowRowNumbers = true,
  161. IsSingleSelect = false
  162. })
  163. </div>
  164. </div>