SpecialtyApplyBatchAdd.cshtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. @model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "SpecialtyApplyBatchAdd";
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. OnLoadSuccessFun = "reload",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. //学制
  29. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  30. {
  31. TextField = "LearnSystem",
  32. ValueField = "LearnSystem",
  33. ID = "DictionaryLearnSystem",
  34. Name = "DictionaryLearnSystem",
  35. OnSelect = "reload",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. IsShowHeader = false
  48. }
  49. };
  50. }
  51. @section scripts{
  52. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyApplyBatchAdd.js" type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. var college = '@EMIS.Utility.RSL.Get("College")';
  56. </script>
  57. }
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. @using (Ajax.BeginForm(new AjaxOptions
  60. {
  61. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  62. OnSuccess = "formSuccessReloadNoClose",
  63. OnBegin = "EMISFunction.FormSubmit",
  64. OnComplete = "EMISFunction.FormComplete"
  65. }))
  66. {
  67. <div class="p_SearchTitle">
  68. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  69. </div>
  70. @Html.PositionCondition("SpecialtyApplySelect")
  71. <div class="search_keyword">
  72. <div class="search_input">
  73. <ul>
  74. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  75. <li class="sv">
  76. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  77. new ComboGridOptions
  78. {
  79. ID = "DictionaryStandard",
  80. Name = "DictionaryStandard",
  81. OnSelect = "reload",
  82. GridOptions = new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  87. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  88. }
  89. }
  90. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("EducationID"):</li>
  93. <li class="sv">
  94. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  95. new ComboGridOptions
  96. {
  97. ID = "DictionaryEducation",
  98. Name = "DictionaryEducation",
  99. OnSelect = "reload"
  100. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  103. <li class="sv">
  104. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  105. new ComboGridOptions
  106. {
  107. ID = "DictionaryLearningform",
  108. Name = "DictionaryLearningform",
  109. OnSelect = "reload"
  110. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">学制:</li>
  113. <li class="sv">
  114. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  115. </li>
  116. </ul>
  117. <ul>
  118. <li class="sn" style="padding-left: 5px;">专业科类:</li>
  119. <li class="sv">
  120. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, DropdownListBindType.SelectAll,
  121. new ComboGridOptions
  122. {
  123. ID = "DictionaryScienceclass",
  124. Name = "DictionaryScienceclass",
  125. OnSelect = "reload"
  126. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  127. </li>
  128. <li class="sn" style="padding-left: 5px;color:red;">学期:</li>
  129. <li class="sv">
  130. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.None,
  131. new ComboGridOptions
  132. {
  133. SelectedValue = BaseExtensions.GetEntranceSemesterID(),
  134. OnSelect = "reload"
  135. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  136. </li>
  137. <li class="sn" style="padding-left: 5px;color:red;">年级:</li>
  138. <li class="sv">
  139. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.None,
  140. new ComboGridOptions
  141. {
  142. SelectedValue = BaseExtensions.GetNextYearID(),
  143. OnSelect = "reload"
  144. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;color:red;">@EMIS.Utility.RSL.Get("College"):</li>
  147. <li class="sv">
  148. @Html.ComboGridFor(x => x.CollegeID, cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoApplyList" } })
  149. </li>
  150. </ul>
  151. </div>
  152. </div>
  153. <div class="p_title">
  154. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">专业信息列表</div>
  155. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  156. </div>
  157. <div class="search_list">
  158. @Html.Hidden("specialtyIDs")
  159. <table cellpadding="0" cellspacing="0" id="specialtytable">
  160. <tr>
  161. <td>
  162. @Html.DataGrid(new DataGridOptions
  163. {
  164. Columns = new List<DataGridColumn>()
  165. {
  166. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" },
  167. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.06 },
  168. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  169. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  170. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  171. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  172. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, OrderFieldName="ScienceclassID", Width=0.05 },
  173. new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, OrderFieldName="PropertyID", Width=0.05 },
  174. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="启用状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.05 }
  175. },
  176. IsPostBack = true,
  177. IsAutoLoad = false,
  178. IsCheckOnSelect = true,
  179. DataSourceUrl = Url.Content("~/SpecialtyApply/SpecialtyNoApplyList"),
  180. ID = "dgSpecialtyNoApplyList",
  181. IsPagination = true,
  182. IsShowRowNumbers = true,
  183. IsSingleSelect = false
  184. })
  185. </td>
  186. </tr>
  187. </table>
  188. </div>
  189. }
  190. </div>