List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. ID = "CollegeDropdown",
  11. Name = "CollegeDropdown",
  12. OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //年级(暂时无效)
  28. ComboGridOptions cgopSchoolyear = new ComboGridOptions
  29. {
  30. TextField = "SchoolyearID",
  31. ValueField = "SchoolyearID",
  32. ID = "DictionarySchoolyear",
  33. Name = "DictionarySchoolyear",
  34. OnSelect = "querySchoolyear",
  35. SelectedValue = BaseExtensions.GetCurrentYearID(),
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/SchoolyearBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //专业名称
  50. ComboGridOptions cgopStandard = new ComboGridOptions
  51. {
  52. TextField = "StandardName",
  53. ValueField = "StandardID",
  54. ID = "DictionaryStandard",
  55. Name = "DictionaryStandard",
  56. OnSelect = "queryStandard",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  62. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. //学制
  72. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  73. {
  74. TextField = "LearnSystem",
  75. ValueField = "LearnSystem",
  76. ID = "DictionaryLearnSystem",
  77. Name = "DictionaryLearnSystem",
  78. OnSelect = "reload",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. IsShowHeader = false
  91. }
  92. };
  93. //年级专业
  94. ComboGridOptions cgopGrademajor = new ComboGridOptions
  95. {
  96. TextField = "Name",
  97. ValueField = "GrademajorID",
  98. Name = "GrademajorComboGrid",
  99. ID = "GrademajorComboGrid",
  100. OnSelect = "queryGrademajor",
  101. GridOptions = new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  106. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  107. },
  108. PageSize = 5,
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Grademajor/List"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. }
  115. };
  116. }
  117. @section scripts{
  118. <script src="~/Scripts/Business/Specialtyclass/Classmajor.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  124. @Html.Position()
  125. <div class="p_SearchTitle">
  126. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  127. 查询条件</div>
  128. </div>
  129. <form id="formQuery" method="post" action="@Url.Content("~/Classmajor/Excel")">
  130. @Html.Hidden("ids")
  131. @Html.PositionCondition()
  132. <div class="search_keyword">
  133. <div class="search_input">
  134. <ul>
  135. <li class="sn" style="padding-left: 5px;">校区:</li>
  136. <li class="sv">
  137. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  138. </li>
  139. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  140. <li class="sv">
  141. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  142. </li>
  143. <li class="sn" style="padding-left: 5px;">年级:</li>
  144. <li class="sv">
  145. @*@Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })*@
  146. @Html.SchoolYearDropDownList(new DropdownListOptions
  147. {
  148. ID = "DictionarySchoolyear",
  149. Name = "DictionarySchoolyear",
  150. BindType = DropdownListBindType.SelectAll,
  151. OnSelect = "queryStandard",
  152. SelectedValue = BaseExtensions.GetCurrentYearID()
  153. },
  154. new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  155. </li>
  156. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  159. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryStandard", Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList", ItemSourceUrl = Url.Content("~/Facultymajor/FacultymajorBindDropdownList") }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })*@
  160. </li>
  161. </ul>
  162. <ul>
  163. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  164. <li class="sv">
  165. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  166. new ComboGridOptions
  167. {
  168. ID = "DictionaryEducation",
  169. Name = "DictionaryEducation",
  170. OnSelect = "reload"
  171. },
  172. new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  173. </li>
  174. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  175. <li class="sv">
  176. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  177. new ComboGridOptions
  178. {
  179. ID = "DictionaryLearningform",
  180. Name = "DictionaryLearningform",
  181. OnSelect = "reload"
  182. },
  183. new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  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", "dgClassmajorList" } })
  188. </li>
  189. <li class="sn" style="padding-left: 5px;color:red;">年级专业:</li>
  190. <li class="sv">
  191. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  192. </li>
  193. </ul>
  194. <ul>
  195. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  196. <li class="sv">
  197. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  198. {
  199. ID = "DictionaryInschoolStatus",
  200. Name = "DictionaryInschoolStatus",
  201. BindType = DropdownListBindType.SelectAll,
  202. OnSelect = "reload",
  203. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  204. },
  205. new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  206. </li>
  207. </ul>
  208. </div>
  209. </div>
  210. </form>
  211. <div class="p_title">
  212. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  213. 班级信息列表</div>
  214. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  215. </div>
  216. @Html.PositionBatchModify()
  217. <div class="search_list">
  218. @Html.DataGrid(new DataGridOptions
  219. {
  220. Columns = new List<DataGridColumn>()
  221. {
  222. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  223. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center , Handle="edit", Width=0.08 },
  224. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  225. //new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  226. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  227. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  228. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  229. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  230. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  231. //new BoundFieldColumn { FieldName="AssistantUserName", HeaderText="辅导员", Align=AlignStyle.Center, Width=0.04 },
  232. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center, Width=0.04 },
  233. new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center , Handle="editStudentCount", Width=0.03 },
  234. new BoundFieldColumn { FieldName="ClassNum", HeaderText="班序", Align=AlignStyle.Center, Width=0.02 },
  235. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  236. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.06 },
  237. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  238. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  239. //new BoundFieldColumn { FieldName="Remarks", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=2 }
  240. },
  241. IsCheckOnSelect = true,
  242. DataSourceUrl = Url.Content("~/Classmajor/List"),
  243. ID = "dgClassmajorList",
  244. IsPagination = true,
  245. IsShowRowNumbers = true,
  246. IsSingleSelect = false
  247. })
  248. </div>
  249. </div>