StudentList.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopSpecialty = new ComboGridOptions
  7. {
  8. TextField = "StandardName",
  9. ValueField = "StandardID",
  10. OnSelect = "queryClass",
  11. Name = "Standard",
  12. ID = "Standard",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "queryClass",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  28. {
  29. TextField = "LearnSystem",
  30. ValueField = "LearnSystem",
  31. OnSelect = "queryClass",
  32. Name = "DictionaryLearnSystem",
  33. ID = "DictionaryLearnSystem",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. IsShowHeader = false
  46. }
  47. };
  48. ComboGridOptions cgopClassmajor = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ClassmajorID",
  52. Name = "ClassmajorDropdown",
  53. ID = "ClassmajorDropdown",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Classmajor/List"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. <script src="~/Scripts/Business/System/StudentUser.js" type="text/javascript"></script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Position()
  78. <div class="p_SearchTitle">
  79. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  80. 查询条件</div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Content("~/User/StudentExcel")">
  83. @Html.PositionCondition()
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCollege" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  92. <li class="sv">
  93. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">年级:</li>
  96. <li class="sv">
  97. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolYear", Name = "SchoolYear", OnSelect = "queryClass", SelectedValue = BaseExtensions.GetCurrentYearID() }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  98. </li>
  99. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  100. <li class="sv">
  101. @Html.ComboGrid(cgopSpecialty, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  102. </li>
  103. </ul>
  104. <ul>
  105. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  106. <li class="sv">
  107. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "Education", Name = "Education", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  110. <li class="sv">
  111. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "Learningform", Name = "Learningform", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">学制:</li>
  114. <li class="sv">
  115. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  118. <li class="sv">
  119. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  120. </li>
  121. @*<li class="sn" style="padding-left: 5px;">班级名称:</li>
  122. <li class="sv">
  123. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  124. </li>*@
  125. </ul>
  126. </div>
  127. </div>
  128. <div class="p_title">
  129. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  130. 学生用户列表</div>
  131. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  132. </div>
  133. </form>
  134. @Html.PositionBatchModify()
  135. <div class="search_list">
  136. @Html.DataGrid(new DataGridOptions
  137. {
  138. Columns = new List<DataGridColumn>()
  139. {
  140. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  141. new BoundFieldColumn { FieldName="LoginID", HeaderText="用户名", Align=AlignStyle.Center, Width=0.08 },
  142. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  143. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 },
  144. new BoundFieldColumn { FieldName="GradeName", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  145. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.15 },
  146. new BoundFieldColumn { FieldName="InSchoolName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  147. new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  148. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="帐号状态", Align=AlignStyle.Center, Width=0.04 },
  149. new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 },
  150. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 }
  151. },
  152. PageSize = 20,
  153. IsCheckOnSelect = true,
  154. DataSourceUrl = Url.Content("~/User/StudentList"),
  155. ID = "dgUserList",
  156. IsPagination = true,
  157. IsShowRowNumbers = true,
  158. IsSingleSelect = false
  159. })
  160. </div>
  161. </div>