List.cshtml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCourse = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. Name = "CoursematerialIDDropdownGridBo",
  11. ID = "CoursematerialIDDropdownGridBo",
  12. OnSelect = "QueryCoursematerialComboGrid",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions cgopCampus = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CampusID",
  31. OnSelect = "queryCollege",
  32. Name = "CampusDropdown",
  33. ID = "CampusDropdown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  40. },
  41. //OnLoadSuccessFun = "reload",
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Campus/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. ComboGridOptions cgopCollege = new ComboGridOptions
  50. {
  51. TextField = "Name",
  52. ValueField = "CollegeID",
  53. OnSelect = "queryCollege",
  54. Name = "CollegeDropdown",
  55. ID = "CollegeDropdown",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  62. },
  63. OnLoadSuccessFun = "reload",
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. ComboGridOptions cgopClassmajor = new ComboGridOptions
  72. {
  73. TextField = "Name",
  74. ValueField = "ClassmajorID",
  75. Name = "ClassmajorDropdown",
  76. ID = "ClassmajorDropdown",
  77. OnSelect = "reload",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  83. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Classmajor/List"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false
  90. }
  91. };
  92. ComboGridOptions cgopStandard = new ComboGridOptions
  93. {
  94. TextField = "SpecialtyName",
  95. ValueField = "StandardID",
  96. OnSelect = "queryStandard",
  97. Name = "StandardDictionaryDropDown",
  98. ID = "StandardDictionaryDropDown",
  99. GridOptions = new DataGridOptions
  100. {
  101. Columns = new List<DataGridColumn>()
  102. {
  103. new BoundFieldColumn { FieldName="SpecialtyName", HeaderText="专业名称", Align=AlignStyle.Center }
  104. },
  105. IsCheckOnSelect = true,
  106. DataSourceUrl = Url.Content("~/TeachingPlan/SpecialtyList"),
  107. IsPagination = true,
  108. IsShowRowNumbers = true,
  109. IsSingleSelect = false,
  110. }
  111. };
  112. }
  113. @section scripts{
  114. <script src="~/Scripts/Business/SelectCourseManage/SelectCourseOpenControlSetting.js"
  115. type="text/javascript"></script>
  116. <script type="text/javascript">
  117. var nonSelect = "@DropdownList.SELECT_ALL";
  118. </script>
  119. }
  120. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  121. @Html.Position()
  122. <div class="p_SearchTitle">
  123. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  124. 查询条件</div>
  125. </div>
  126. <form id="formQuery" method="post" action="@Url.Content("~/SelectCourseOpenControlSetting/Excel")">
  127. @Html.PositionCondition()
  128. <div class="search_keyword">
  129. <div class="search_input">
  130. <ul>
  131. <li class="sn" style="display:none" >@EMIS.Utility.RSL.Get("Campus"):</li>
  132. <li class="sv" style="display:none">
  133. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgOpenControlSettingList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  136. <li class="sv">
  137. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgOpenControlSettingList" } })
  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", "dgOpenControlSettingList" } })
  142. </li>
  143. <li class="sn" style="padding-left: 5px;">年级:</li>
  144. <li class="sv">
  145. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgOpenControlSettingList" } })
  146. </li>
  147. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  148. <li class="sv">
  149. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgOpenControlSettingList" } })
  150. </li>
  151. </ul>
  152. </div>
  153. </div>
  154. <div class="p_title">
  155. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  156. 限选控制列表</div>
  157. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  158. </div>
  159. </form>
  160. @Html.PositionBatchModify()
  161. <div class="search_list">
  162. @Html.DataGrid(new DataGridOptions
  163. {
  164. Columns = new List<DataGridColumn>()
  165. {
  166. new CheckBoxFieldColumn{ HeaderText="", FieldName="SelectCourseOpenControlSettingID"},
  167. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  168. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  169. new BoundFieldColumn { FieldName="YearName", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  170. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.06 },
  171. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  172. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  173. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  174. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  175. new BoundFieldColumn { FieldName="MaxSelectCount", HeaderText="门数上限", Align=AlignStyle.Center, Width=0.04 },
  176. new BoundFieldColumn { FieldName="MinSelectCount", HeaderText="门数下限", Align=AlignStyle.Center, Width=0.04 },
  177. new BoundFieldColumn { FieldName="MaxCredit", HeaderText="学分上限", Align=AlignStyle.Center, Width=0.04 },
  178. new BoundFieldColumn { FieldName="MinCredit", HeaderText="学分下限", Align=AlignStyle.Center, Width=0.04 },
  179. new BoundFieldColumn { FieldName="StartTime", HeaderText="开始时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.12 },
  180. new BoundFieldColumn { FieldName="EndTime", HeaderText="结束时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.12 }
  181. },
  182. IsCheckOnSelect = true,
  183. DataSourceUrl = Url.Content("~/SelectCourseOpenControlSetting/List"),
  184. ID = "dgOpenControlSettingList",
  185. IsPagination = true,
  186. IsShowRowNumbers = true,
  187. IsSingleSelect = false
  188. })
  189. </div>
  190. </div>