GraduateCardApplyBatchAdd.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. @model EMIS.ViewModel.GraduationManage.GraduateCardManage.GraduateCardApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "GraduateCardApplyBatchAdd";
  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/GraduateCardManage/GraduateCardApplyBatchAdd.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("GraduateCardStudentListSelect")
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })*@
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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. OnSelect = "reload",
  199. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  200. }, new Dictionary<string, string> { { "data-condition", "dgGraduateCardStudentList" } })
  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", "dgGraduateCardStudentList" } })
  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("graduationStudentViewList")
  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="UserID" },
  233. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  234. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  235. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", OrderFieldName="Sex", Align=AlignStyle.Center, Width=0.03 },
  236. //new BoundFieldColumn { FieldName="ClassNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 },
  237. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  238. //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  239. //new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  240. //new BoundFieldColumn { FieldName="EnteringSchoolYearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.06 },
  241. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), OrderFieldName="EducationID", Align=AlignStyle.Center, Width=0.04 },
  242. //new BoundFieldColumn { FieldName="EducationTypeName", HeaderText="培养类型", OrderFieldName="EducationTypeID", Align=AlignStyle.Center, Width=0.04 },
  243. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", OrderFieldName="LearningformID", Align=AlignStyle.Center, Width=0.04 },
  244. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  245. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", OrderFieldName="InSchoolStatusID", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  246. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="预毕业学期", Align=AlignStyle.Center, Width=0.08, CustomFormatFun="SetRedColumn" },
  247. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 }
  248. },
  249. IsPostBack = true,
  250. IsCheckOnSelect = true,
  251. DataSourceUrl = Url.Content("~/GraduateCardApply/GraduationStudentList"),
  252. ID = "dgGraduateCardStudentList",
  253. IsPagination = true,
  254. IsShowRowNumbers = true,
  255. IsSingleSelect = false
  256. })
  257. </td>
  258. </tr>
  259. </table>
  260. </div>
  261. }
  262. </div>