List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. ID = "DictionaryLearnSystem",
  55. Name = "DictionaryLearnSystem",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/RecruitSpecialty.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  82. </div>
  83. <form id="formQuery" method="post" action="@Url.Content("~/RecruitSpecialty/Excel")">
  84. @Html.PositionCondition()
  85. <div class="search_keyword">
  86. <div class="search_input">
  87. <ul>
  88. <li class="sn">@EMIS.Utility.RSL.Get("Campus"):</li>
  89. <li class="sv">
  90. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  93. <li class="sv">
  94. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">年级:</li>
  97. <li class="sv">
  98. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  99. new ComboGridOptions
  100. {
  101. ID = "DictionaryGrade",
  102. Name = "DictionaryGrade",
  103. //SelectedValue = BaseExtensions.GetNextYearID(),
  104. OnSelect = "queryGrade"
  105. }, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  108. <li class="sv">
  109. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions
  110. {
  111. ID = "DictionaryStandard",
  112. Name = "DictionaryStandard",
  113. OnSelect = "queryStandard",
  114. GridOptions = new DataGridOptions
  115. {
  116. Columns = new List<DataGridColumn>()
  117. {
  118. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  119. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  120. }
  121. }
  122. }, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  123. </li>
  124. </ul>
  125. <ul>
  126. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  127. <li class="sv">
  128. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  129. new ComboGridOptions
  130. {
  131. ID = "DictionaryEducation",
  132. Name = "DictionaryEducation",
  133. OnSelect = "reload"
  134. }, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  135. </li>
  136. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  137. <li class="sv">
  138. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  139. new ComboGridOptions
  140. {
  141. ID = "DictionaryLearningform",
  142. Name = "DictionaryLearningform",
  143. OnSelect = "reload"
  144. }, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;">学制:</li>
  147. <li class="sv">
  148. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  149. </li>
  150. <li class="sn" style="padding-left:5px;color:red;">生成状态:</li>
  151. <li class="sv">
  152. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  153. {
  154. ID = "DictionaryIsGenerated",
  155. Name = "DictionaryIsGenerated",
  156. BindType = DropdownListBindType.SelectAll,
  157. //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsNo,
  158. OnSelect = "reload"
  159. }, new Dictionary<string, string> { { "data-condition", "dgRecruitSpecialtyList" } })
  160. </li>
  161. </ul>
  162. </div>
  163. </div>
  164. </form>
  165. <div class="p_title">
  166. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">招生专业列表</div>
  167. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  168. </div>
  169. <div class="search_list">
  170. @Html.DataGrid(new DataGridOptions
  171. {
  172. Columns = new List<DataGridColumn>()
  173. {
  174. new CheckBoxFieldColumn{ HeaderText="", FieldName="RecruitSpecialtyID" },
  175. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Handle="edit", Width=0.06 },
  176. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  177. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  178. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  179. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  180. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  181. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  182. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, OrderFieldName="ScienceclassID", Width=0.05 },
  183. new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, OrderFieldName="PropertyID", Width=0.04 },
  184. //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, OrderFieldName="StandardTitle", Width=0.04 },
  185. //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="专业级别", Align=AlignStyle.Center, OrderFieldName="StandardLevel", Width=0.04 },
  186. new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  187. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 },
  188. //new BoundFieldColumn { FieldName="ClassNumber", HeaderText="班级个数", Align=AlignStyle.Center, Width=0.04 },
  189. new BoundFieldColumn { FieldName="isGeneratedName", HeaderText="生成状态", Align=AlignStyle.Center, OrderFieldName="isGenerated", Width=0.04, CustomFormatFun="SetRedColumn" },
  190. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  191. },
  192. CustomerRowStyleFun = "SetRedGrid",
  193. IsCheckOnSelect = true,
  194. DataSourceUrl = Url.Content("~/RecruitSpecialty/List"),
  195. ID = "dgRecruitSpecialtyList",
  196. IsPagination = true,
  197. IsShowRowNumbers = true,
  198. IsSingleSelect = false
  199. })
  200. </div>
  201. </div>