ClassmajorSelect.cshtml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassmajorList";
  5. //ComboGridOptions cgop = new ComboGridOptions
  6. //{
  7. // TextField = "Name",
  8. // ValueField = "CampusID",
  9. // OnSelect = "QueryCampusComboGridList",
  10. // Name = "CampusDropdown",
  11. // ID = "CampusDropdown",
  12. // GridOptions = new DataGridOptions
  13. // {
  14. // Columns = new List<DataGridColumn>()
  15. // {
  16. // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  17. // new BoundFieldColumn { FieldName="Name", HeaderText="校区名称", Align=AlignStyle.Center }
  18. // },
  19. // IsCheckOnSelect = true,
  20. // DataSourceUrl = Url.Content("~/Campus/List"),
  21. // IsPagination = true,
  22. // IsShowRowNumbers = true,
  23. // IsSingleSelect = false,
  24. // }
  25. //};
  26. //ComboGridOptions cgopCollege = new ComboGridOptions
  27. //{
  28. // TextField = "Name",
  29. // ValueField = "CollegeID",
  30. // OnSelect = "QueryCollegeComboGridList",
  31. // Name = "CollegeDropdown",
  32. // ID = "CollegeDropdown",
  33. // GridOptions = new DataGridOptions
  34. // {
  35. // Columns = new List<DataGridColumn>()
  36. // {
  37. // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. // new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. // },
  40. // IsCheckOnSelect = true,
  41. // DataSourceUrl = Url.Content("~/College/List"),
  42. // IsPagination = true,
  43. // IsShowRowNumbers = true,
  44. // IsSingleSelect = false,
  45. // }
  46. //};
  47. //ComboGridOptions cgopGrademajor = new ComboGridOptions
  48. //{
  49. // TextField = "Name",
  50. // ValueField = "GrademajorID",
  51. // Name = "GrademajorComboGrid",
  52. // ID = "GrademajorComboGrid",
  53. // OnSelect = "reload",
  54. // GridOptions = new DataGridOptions
  55. // {
  56. // Columns = new List<DataGridColumn>()
  57. // {
  58. // // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  59. // new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  60. // },
  61. // IsCheckOnSelect = true,
  62. // DataSourceUrl = Url.Content("~/Grademajor/List"),
  63. // IsPagination = true,
  64. // IsShowRowNumbers = true,
  65. // IsSingleSelect = false
  66. // }
  67. //};
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/Common/ClassmajorSelector.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. <div class="p_title">
  77. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  78. 班级信息列表</div>*@
  79. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  80. <div class="current_navbar toolbar">
  81. <div class="func_info">
  82. <a class="easyui-linkbutton" href="javascript:Class_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  83. onfocus="this.blur()">选中</a>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. @*<form id="formQuery" method="post">
  89. @Html.PositionCondition("ClassmajorSelect")
  90. <div class="search_keyword">
  91. <div class="search_input">
  92. <ul>
  93. <li class="sn" style="padding-left: 5px;">校区:</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">年级:</li>
  102. <li class="sv">
  103. @Html.SchoolYearDropDownList(new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">年级专业:</li>
  106. <li class="sv">
  107. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  108. </li>
  109. </ul>
  110. </div>
  111. </div>
  112. <div class="search_keyword">
  113. <div class="search_input">
  114. <ul>
  115. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  116. <li class="sv">
  117. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  120. <li class="sv">
  121. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryEducationDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  124. <li class="sv">
  125. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  126. </li>
  127. </ul>
  128. </div>
  129. </div>
  130. </form>
  131. <div class="p_title">
  132. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  133. 班级信息列表</div>
  134. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  135. </div>*@
  136. @* @Html.PositionBatchModify()*@
  137. <div class="search_list">
  138. @Html.DataGrid(new DataGridOptions
  139. {
  140. Columns = new List<DataGridColumn>()
  141. {
  142. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  143. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 },
  144. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  145. //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  146. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  147. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  148. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  149. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.05 },
  150. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 },
  151. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  152. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  153. //new BoundFieldColumn { FieldName="AssistantUserName", HeaderText="辅导员", Align=AlignStyle.Center, Width=0.04 },
  154. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.02 }
  155. },
  156. PageSize = 20,
  157. IsCheckOnSelect = true,
  158. DataSourceUrl = Url.Content("~/OptionalCourseSetting/ChooseClassList?GrademajorID=" + ViewBag.GrademajorID),
  159. ID = "dgClassmajorList",
  160. IsPagination = true,
  161. IsShowRowNumbers = true,
  162. IsSingleSelect = false
  163. })
  164. </div>
  165. </div>