List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. @section scripts{
  95. <script src="~/Scripts/Business/Specialtyclass/Grademajor.js" type="text/javascript"></script>
  96. <script type="text/javascript">
  97. var nonSelect = "@DropdownList.SELECT_ALL";
  98. </script>
  99. }
  100. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  101. @Html.Position()
  102. <div class="p_SearchTitle">
  103. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  104. 查询条件
  105. </div>
  106. </div>
  107. <form id="formQuery" method="post" action="@Url.Content("~/Grademajor/Excel")">
  108. @Html.PositionCondition()
  109. <div class="search_keyword">
  110. <div class="search_input">
  111. <ul>
  112. <li class="sn" style="padding-left: 5px;">校区:</li>
  113. <li class="sv">
  114. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  117. <li class="sv">
  118. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">年级:</li>
  121. <li class="sv">
  122. @*@Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })*@
  123. @Html.SchoolYearDropDownList(new DropdownListOptions
  124. {
  125. ID = "DictionarySchoolyear",
  126. Name = "DictionarySchoolyear",
  127. BindType = DropdownListBindType.SelectAll,
  128. OnSelect = "queryStandard",
  129. SelectedValue = BaseExtensions.GetCurrentYearID()
  130. },
  131. new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  132. </li>
  133. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  134. <li class="sv">
  135. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  136. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryStandard", Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList", ItemSourceUrl = Url.Content("~/Facultymajor/FacultymajorBindDropdownList") }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })*@
  137. </li>
  138. </ul>
  139. <ul>
  140. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  141. <li class="sv">
  142. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  143. new ComboGridOptions
  144. {
  145. ID = "DictionaryEducation",
  146. Name = "DictionaryEducation",
  147. OnSelect = "reload"
  148. },
  149. new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  150. </li>
  151. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  152. <li class="sv">
  153. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  154. new ComboGridOptions
  155. {
  156. ID = "DictionaryLearningform",
  157. Name = "DictionaryLearningform",
  158. OnSelect = "reload"
  159. },
  160. new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  161. </li>
  162. <li class="sn" style="padding-left: 5px;">学制:</li>
  163. <li class="sv">
  164. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  165. </li>
  166. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  167. <li class="sv">
  168. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  169. {
  170. ID = "DictionaryInschoolStatus",
  171. Name = "DictionaryInschoolStatus",
  172. BindType = DropdownListBindType.SelectAll,
  173. OnSelect = "reload",
  174. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  175. },
  176. new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  177. </li>
  178. </ul>
  179. </div>
  180. </div>
  181. </form>
  182. <div class="p_title">
  183. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  184. 年级专业列表
  185. </div>
  186. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  187. </div>
  188. @Html.PositionBatchModify()
  189. <div class="search_list">
  190. @Html.DataGrid(new DataGridOptions
  191. {
  192. Columns = new List<DataGridColumn>()
  193. {
  194. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  195. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center , Handle="edit", Width=0.08 },
  196. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  197. //new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业名称", Align=AlignStyle.Center, Width=0.1 },
  198. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  199. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  200. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  201. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  202. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 },
  203. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  204. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="入学学期", Align=AlignStyle.Center, Width=0.04 },
  205. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  206. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center, Width=0.06 },
  207. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  208. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  209. new LinkButtonColumn { FieldName="ClassmajorCount", HeaderText="班级数", Align=AlignStyle.Center, Handle="editClassmajorCount", Width=0.03 },
  210. new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editStudentCount", Width=0.03 }
  211. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03 }
  212. },
  213. IsCheckOnSelect = true,
  214. DataSourceUrl = Url.Content("~/Grademajor/List"),
  215. ID = "dgGrademajorList",
  216. IsPagination = true,
  217. IsShowRowNumbers = true,
  218. IsSingleSelect = false
  219. })
  220. </div>
  221. </div>