ClassmajorViewSelect.cshtml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @*期末设定补考设定专用*@
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "TeacherSelect";
  6. string CollegeID = ViewBag.CollegeID;
  7. string GradeYearID = ViewBag.GradeYearID;
  8. string StandardID = ViewBag.StandardID;
  9. ComboGridOptions cgopCollege = new ComboGridOptions
  10. {
  11. TextField = "Name",
  12. ValueField = "CollegeID",
  13. OnSelect = "QueryCollegeComboGridList",
  14. Name = "CollegeDropdown",
  15. ID = "CollegeDropdown",
  16. SelectedValue=CollegeID,
  17. GridOptions = new DataGridOptions
  18. {
  19. Columns = new List<DataGridColumn>()
  20. {
  21. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  22. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
  23. },
  24. IsCheckOnSelect = true,
  25. DataSourceUrl = Url.Content("~/College/List"),
  26. IsPagination = true,
  27. IsShowRowNumbers = true,
  28. IsSingleSelect = false,
  29. }
  30. };
  31. ComboGridOptions cgopGrademajor = new ComboGridOptions
  32. {
  33. TextField = "Name",
  34. ValueField = "GrademajorID",
  35. Name = "GrademajorComboGrid",
  36. ID = "GrademajorComboGrid",
  37. OnSelect = "queryClass",
  38. GridOptions = new DataGridOptions
  39. {
  40. Columns = new List<DataGridColumn>()
  41. {
  42. //new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  43. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  44. },
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/Grademajor/List"),
  47. IsPagination = true,
  48. IsShowRowNumbers = true,
  49. IsSingleSelect = false
  50. }
  51. };
  52. ComboGridOptions cgopStandard = new ComboGridOptions
  53. {
  54. TextField = "StandardName",
  55. ValueField = "StandardID",
  56. OnSelect = "QueryStandardDropdownList",
  57. Name = "DictionaryStandard",
  58. ID = "DictionaryStandard",
  59. SelectedValue=StandardID,
  60. GridOptions = new DataGridOptions
  61. {
  62. Columns = new List<DataGridColumn>()
  63. {
  64. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  65. },
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. }
  72. };
  73. }
  74. @section scripts{
  75. <script src="~/Scripts/Business/Common/ClassmajorViewSelecte.js" type="text/javascript"></script>
  76. <script type="text/javascript">
  77. var nonSelect = "@DropdownList.SELECT_ALL";
  78. //获取选中的数据
  79. function validChooseTM() {
  80. var d = [];
  81. $.each($("#dgClassmajorList").cmsXDataTable("getSelections"), function (index) {
  82. d.push(this);
  83. });
  84. return d;
  85. }
  86. function Classmajor_Confirm() {
  87. var listData = validChooseTM();
  88. if (listData.length < 1) {
  89. $.messager.alert("系统提示", "请选择班级。");
  90. return;
  91. }
  92. top.$("#@(Request["WindowID"])").data("resultData", validChoose());
  93. top.$("#@(Request["WindowID"])").dialog("close");
  94. }
  95. </script>
  96. }
  97. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  98. <div class="p_title">
  99. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  100. 班级信息列表</div>*@
  101. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  102. <div class="current_navbar toolbar">
  103. <div class="func_info">
  104. <a class="easyui-linkbutton" href="javascript:Classmajor_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  105. onfocus="this.blur()">选中</a>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <form id="formQuery" method="post">
  111. <div class="search_keyword">
  112. <div class="search_input">
  113. <ul>
  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", "dgClassmajorList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">年级:</li>
  119. <li class="sv">
  120. @Html.SchoolYearDropDownList(new DropdownListOptions { ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, SelectedValue = GradeYearID, OnSelect = "QueryLearningformDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  121. </li>
  122. </ul>
  123. <ul>
  124. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  127. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryStandard", Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList", ItemSourceUrl = Url.Content("~/Facultymajor/Standard") }, new Dictionary<string, string> { { "data-condition", "dgFacultymajorList" } })*@
  128. </li>
  129. <li class="sn" style="display:none;">年级专业:</li>
  130. <li class="sv" style="display:none;">
  131. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  132. </li>
  133. <li class="sn" style="display:none;">@Html.RSLabel("EducationID"):</li>
  134. <li class="sv" style="display:none;">
  135. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryEducationDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  136. </li>
  137. <li class="sn" style="display:none;">学习形式:</li>
  138. <li class="sv" style="display:none;">
  139. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  140. </li>
  141. <li>
  142. <a class="easyui-linkbutton l-btn" onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">查询
  143. </a>
  144. </li>
  145. </ul>
  146. </div>
  147. </div>
  148. </form>
  149. <div class="search_list">
  150. @Html.DataGrid(new DataGridOptions
  151. {
  152. Columns = new List<DataGridColumn>()
  153. {
  154. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  155. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 },
  156. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  157. //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  158. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  159. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  160. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  161. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.05 },
  162. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 },
  163. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  164. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  165. //new BoundFieldColumn { FieldName="AssistantUserName", HeaderText="辅导员", Align=AlignStyle.Center, Width=0.04 },
  166. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.02 }
  167. },
  168. PageSize = 20,
  169. IsCheckOnSelect = true,
  170. DataSourceUrl = Url.Content("~/Classmajor/List"),
  171. ID = "dgClassmajorList",
  172. IsPagination = true,
  173. IsShowRowNumbers = true,
  174. IsSingleSelect = false
  175. })
  176. </div>
  177. </div>