GraduationStandardBatchAdd.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. @model EMIS.ViewModel.GraduationManage.GraduationSetting.GraduationStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "GraduationStandardBatchAdd";
  7. //校区
  8. ComboGridOptions cgopCampus = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CampusID",
  12. ID = "CampusDropdown",
  13. Name = "CampusDropdown",
  14. OnSelect = "queryCampus",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Campus/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //院系所
  30. ComboGridOptions cgopCollege = new ComboGridOptions
  31. {
  32. TextField = "Name",
  33. ValueField = "CollegeID",
  34. ID = "CollegeDropdown",
  35. Name = "CollegeDropdown",
  36. OnSelect = "queryCollege",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. ////年级(暂时无效)
  52. //ComboGridOptions cgopSchoolyear = new ComboGridOptions
  53. //{
  54. // TextField = "SchoolyearID",
  55. // ValueField = "SchoolyearID",
  56. // ID = "DictionarySchoolyear",
  57. // Name = "DictionarySchoolyear",
  58. // OnSelect = "querySchoolyear",
  59. // GridOptions = new DataGridOptions
  60. // {
  61. // Columns = new List<DataGridColumn>()
  62. // {
  63. // new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  64. // },
  65. // IsCheckOnSelect = true,
  66. // DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  67. // IsPagination = true,
  68. // IsShowRowNumbers = true,
  69. // IsSingleSelect = false,
  70. // }
  71. //};
  72. //专业名称
  73. ComboGridOptions cgopStandard = new ComboGridOptions
  74. {
  75. TextField = "StandardName",
  76. ValueField = "StandardID",
  77. ID = "DictionaryStandard",
  78. Name = "DictionaryStandard",
  79. OnSelect = "queryStandard",
  80. GridOptions = new DataGridOptions
  81. {
  82. Columns = new List<DataGridColumn>()
  83. {
  84. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  85. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false,
  92. }
  93. };
  94. //学制
  95. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  96. {
  97. TextField = "LearnSystem",
  98. ValueField = "LearnSystem",
  99. ID = "DictionaryLearnSystem",
  100. Name = "DictionaryLearnSystem",
  101. OnSelect = "reload",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  107. },
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  110. IsPagination = true,
  111. IsShowRowNumbers = true,
  112. IsSingleSelect = false,
  113. IsShowHeader = false
  114. }
  115. };
  116. }
  117. @section scripts{
  118. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationStandardBatchAdd.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  124. @using (Ajax.BeginForm(new AjaxOptions
  125. {
  126. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  127. OnSuccess = "formSuccessReloadNoClose",
  128. OnBegin = "EMISFunction.FormSubmit",
  129. OnComplete = "EMISFunction.FormComplete"
  130. }))
  131. {
  132. <div class="p_SearchTitle">
  133. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  134. 查询条件</div>
  135. </div>
  136. @Html.PositionCondition("GraduationStandardGrademajor")
  137. <div class="search_keyword">
  138. <div class="search_input">
  139. <ul>
  140. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  141. <li class="sv">
  142. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  143. </li>
  144. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  145. <li class="sv">
  146. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">年级:</li>
  149. <li class="sv">
  150. @*@Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })*@
  151. @Html.SchoolYearDropDownList(new DropdownListOptions
  152. {
  153. ID = "DictionarySchoolyear",
  154. Name = "DictionarySchoolyear",
  155. BindType = DropdownListBindType.SelectAll,
  156. OnSelect = "queryStandard"
  157. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  158. </li>
  159. </ul>
  160. <ul>
  161. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  162. <li class="sv">
  163. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  164. </li>
  165. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  166. <li class="sv">
  167. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  168. new ComboGridOptions
  169. {
  170. ID = "DictionaryEducation",
  171. Name = "DictionaryEducation",
  172. OnSelect = "reload"
  173. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  176. <li class="sv">
  177. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  178. new ComboGridOptions
  179. {
  180. ID = "DictionaryLearningform",
  181. Name = "DictionaryLearningform",
  182. OnSelect = "reload"
  183. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  184. </li>
  185. </ul>
  186. <ul>
  187. <li class="sn" style="padding-left: 5px;">学制:</li>
  188. <li class="sv">
  189. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  190. </li>
  191. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  192. <li class="sv">
  193. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  194. {
  195. ID = "DictionaryInschoolStatus",
  196. Name = "DictionaryInschoolStatus",
  197. BindType = DropdownListBindType.SelectAll,
  198. //SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  199. OnSelect = "reload"
  200. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  201. </li>
  202. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">毕业学期:</li>
  203. <li class="sv">
  204. @Html.DropdownList(new DropdownListOptions
  205. {
  206. ID = "GradSchoolyearDropdown",
  207. Name = "GradSchoolyearDropdown",
  208. BindType = DropdownListBindType.SelectAll,
  209. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  210. SelectedValue = BaseExtensions.GetGradSchoolYearID(),
  211. OnSelect = "reload"
  212. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })
  213. </li>
  214. </ul>
  215. </div>
  216. </div>
  217. <div class="p_title">
  218. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  219. 年级专业信息列表
  220. </div>
  221. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  222. </div>
  223. <div class="search_list">
  224. @Html.Hidden("grademajorIDList")
  225. <table cellpadding="0" cellspacing="0" id="specialtytable">
  226. <tr>
  227. <td>
  228. @Html.DataGrid(new DataGridOptions
  229. {
  230. Columns = new List<DataGridColumn>()
  231. {
  232. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  233. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08, CustomFormatFun="SetRedColumn" },
  234. new BoundFieldColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  235. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  236. //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  237. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  238. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  239. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), OrderFieldName="EducationID", Align=AlignStyle.Center, Width=0.04 },
  240. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", OrderFieldName="LearningformID", Align=AlignStyle.Center, Width=0.04 },
  241. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  242. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  243. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" }
  244. },
  245. IsPostBack = true,
  246. IsCheckOnSelect = true,
  247. DataSourceUrl = Url.Content("~/GraduationStandard/GraduationStandardNoAddList"),
  248. ID = "dgGrademajorList",
  249. IsPagination = true,
  250. IsShowRowNumbers = true,
  251. IsSingleSelect = false
  252. })
  253. </td>
  254. </tr>
  255. </table>
  256. </div>
  257. }
  258. </div>