List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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 cgopSchoolyear = new ComboGridOptions
  51. //{
  52. // TextField = "SchoolyearID",
  53. // ValueField = "SchoolyearID",
  54. // ID = "DictionarySchoolyear",
  55. // Name = "DictionarySchoolyear",
  56. // OnSelect = "querySchoolyear",
  57. // GridOptions = new DataGridOptions
  58. // {
  59. // Columns = new List<DataGridColumn>()
  60. // {
  61. // new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  62. // },
  63. // IsCheckOnSelect = true,
  64. // DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  65. // IsPagination = true,
  66. // IsShowRowNumbers = true,
  67. // IsSingleSelect = false,
  68. // }
  69. //};
  70. //专业名称
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. ID = "DictionaryStandard",
  76. Name = "DictionaryStandard",
  77. OnSelect = "queryStandard",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  83. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. };
  92. //学制
  93. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  94. {
  95. TextField = "LearnSystem",
  96. ValueField = "LearnSystem",
  97. ID = "DictionaryLearnSystem",
  98. Name = "DictionaryLearnSystem",
  99. OnSelect = "reload",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  105. },
  106. IsCheckOnSelect = true,
  107. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  108. IsPagination = true,
  109. IsShowRowNumbers = true,
  110. IsSingleSelect = false,
  111. IsShowHeader = false
  112. }
  113. };
  114. }
  115. @section scripts{
  116. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationStandard.js" type="text/javascript"></script>
  117. <script type="text/javascript">
  118. var nonSelect = "@DropdownList.SELECT_ALL";
  119. </script>
  120. }
  121. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  122. @Html.Position()
  123. <div class="p_SearchTitle">
  124. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  125. 查询条件</div>
  126. </div>
  127. <form id="formQuery" method="post" action="@Url.Content("~/GraduationStandard/Excel")">
  128. @Html.PositionCondition()
  129. <div class="search_keyword">
  130. <div class="search_input">
  131. <ul>
  132. <li class="sn" style="padding-left: 5px;">毕业学期:</li>
  133. <li class="sv">
  134. @Html.DropdownList(new DropdownListOptions
  135. {
  136. ID = "GradSchoolyearDropdown",
  137. Name = "GradSchoolyearDropdown",
  138. BindType = DropdownListBindType.SelectAll,
  139. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  140. SelectedValue = BaseExtensions.GetGradSchoolYearID(),
  141. OnSelect = "reload"
  142. }, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  143. </li>
  144. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  145. <li class="sv">
  146. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  149. <li class="sv">
  150. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  151. </li>
  152. <li class="sn" style="padding-left: 5px;">年级:</li>
  153. <li class="sv">
  154. @Html.SchoolYearDropDownList(new DropdownListOptions
  155. {
  156. BindType = DropdownListBindType.SelectAll,
  157. ID = "DictionarySchoolyear",
  158. Name = "DictionarySchoolyear",
  159. OnSelect = "queryClass"
  160. }, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  161. </li>
  162. </ul>
  163. <ul>
  164. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  165. <li class="sv">
  166. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  167. </li>
  168. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  169. <li class="sv">
  170. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  171. new ComboGridOptions
  172. {
  173. ID = "DictionaryEducation",
  174. Name = "DictionaryEducation",
  175. OnSelect = "reload"
  176. }, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  177. </li>
  178. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  179. <li class="sv">
  180. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  181. new ComboGridOptions
  182. {
  183. ID = "DictionaryLearningform",
  184. Name = "DictionaryLearningform",
  185. OnSelect = "reload"
  186. }, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  187. </li>
  188. <li class="sn" style="padding-left: 5px;">学制:</li>
  189. <li class="sv">
  190. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  191. </li>
  192. </ul>
  193. <ul>
  194. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">在校状态:</li>
  195. <li class="sv">
  196. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  197. {
  198. ID = "DictionaryInschoolStatus",
  199. Name = "DictionaryInschoolStatus",
  200. BindType = DropdownListBindType.SelectAll,
  201. OnSelect = "reload",
  202. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  203. }, new Dictionary<string, string> { { "data-condition", "dgGraduationStandardList" } })
  204. </li>
  205. </ul>
  206. </div>
  207. </div>
  208. </form>
  209. <div class="p_title">
  210. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  211. 毕业标准列表</div>
  212. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  213. </div>
  214. @Html.PositionBatchModify()
  215. <div class="search_list">
  216. @Html.DataGrid(new DataGridOptions
  217. {
  218. Columns = new List<DataGridColumn>()
  219. {
  220. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationStandardID" },
  221. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  222. new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  223. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  224. //new BoundFieldColumn { FieldName="EnteringSchoolYearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.08 },
  225. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), OrderFieldName="EducationID", Align=AlignStyle.Center, Width=0.04 },
  226. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", OrderFieldName="LearningformID", Align=AlignStyle.Center, Width=0.04 },
  227. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  228. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  229. new LinkButtonColumn { FieldName="PlanCourseCount", HeaderText="计划门数", Align=AlignStyle.Center, Handle="editSpecialtyPlan", Width=0.04 },
  230. new BoundFieldColumn { FieldName="SpecialtyRequireCreditTotal", HeaderText="必修学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  231. new BoundFieldColumn { FieldName="OptionalCreditTotal", HeaderText="限选学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  232. new BoundFieldColumn { FieldName="FreeSelectionCreditTotal", HeaderText="任选学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  233. new BoundFieldColumn { FieldName="SpecialtyCreditTotal", HeaderText="计划学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  234. new LinkButtonColumn { FieldName="ExecCourseCount", HeaderText="执行门数", Align=AlignStyle.Center, Handle="editExecutablePlan", Width=0.04 },
  235. new BoundFieldColumn { FieldName="ExecutableCreditTotal", HeaderText="执行学分", Align=AlignStyle.Center, Width=0.04 },
  236. new BoundFieldColumn { FieldName="RequireCourseCount", HeaderText="毕业门数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  237. new BoundFieldColumn { FieldName="GraduationCredit", HeaderText="毕业学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  238. new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editStudentCount", Width=0.03 }
  239. },
  240. //CustomerRowStyleFun = "SetRedGrid",
  241. IsCheckOnSelect = true,
  242. DataSourceUrl = Url.Content("~/GraduationStandard/List"),
  243. ID = "dgGraduationStandardList",
  244. IsPagination = true,
  245. IsShowRowNumbers = true,
  246. IsSingleSelect = false
  247. })
  248. </div>
  249. </div>