List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  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, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  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("~/Facultymajor/Standard"),
  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/UniversityManage/SpecialtyClassManage/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;">查询条件</div>
  104. </div>
  105. <form id="formQuery" method="post" action="@Url.Content("~/Grademajor/Excel")">
  106. @Html.PositionCondition()
  107. <div class="search_keyword">
  108. <div class="search_input">
  109. <ul>
  110. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  111. <li class="sv">
  112. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  115. <li class="sv">
  116. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">年级:</li>
  119. <li class="sv">
  120. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  121. new ComboGridOptions
  122. {
  123. ID = "DictionaryGrade",
  124. Name = "DictionaryGrade",
  125. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  126. OnSelect = "reload"
  127. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  128. </li>
  129. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  130. <li class="sv">
  131. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  132. </li>
  133. </ul>
  134. <ul>
  135. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  136. <li class="sv">
  137. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  138. new ComboGridOptions
  139. {
  140. ID = "DictionaryEducation",
  141. Name = "DictionaryEducation",
  142. OnSelect = "reload"
  143. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  144. </li>
  145. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  146. <li class="sv">
  147. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  148. new ComboGridOptions
  149. {
  150. ID = "DictionaryLearningform",
  151. Name = "DictionaryLearningform",
  152. OnSelect = "reload"
  153. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  154. </li>
  155. <li class="sn" style="padding-left: 5px;">学制:</li>
  156. <li class="sv">
  157. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  160. <li class="sv">
  161. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  162. {
  163. ID = "DictionaryInschoolStatus",
  164. Name = "DictionaryInschoolStatus",
  165. BindType = DropdownListBindType.SelectAll,
  166. OnSelect = "reload",
  167. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  168. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  169. </li>
  170. </ul>
  171. </div>
  172. </div>
  173. </form>
  174. <div class="p_title">
  175. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">年级专业列表</div>
  176. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  177. </div>
  178. @Html.PositionBatchModify()
  179. <div class="search_list">
  180. @Html.DataGrid(new DataGridOptions
  181. {
  182. Columns = new List<DataGridColumn>()
  183. {
  184. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  185. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  186. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  187. //new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业名称", Align=AlignStyle.Center, Width=0.1 },
  188. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  189. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  190. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.08 },
  191. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04 },
  192. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  193. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  194. new BoundFieldColumn { FieldName="SemesterName", HeaderText="入学学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.04 },
  195. new BoundFieldColumn { FieldName="GraduateSchoolyearCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  196. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  197. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  198. new LinkButtonColumn { FieldName="ClassmajorCount", HeaderText="班级数", Align=AlignStyle.Center, Handle="editClassmajorCount", Width=0.03 },
  199. new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editStudentCount", Width=0.03 }
  200. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03 }
  201. },
  202. IsCheckOnSelect = true,
  203. DataSourceUrl = Url.Content("~/Grademajor/List"),
  204. ID = "dgGrademajorList",
  205. IsPagination = true,
  206. IsShowRowNumbers = true,
  207. IsSingleSelect = false
  208. })
  209. </div>
  210. </div>