Approve.cshtml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. @model EMIS.ViewModel.StudentManage.StudentChange.StudentChangeView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Web.Controllers.StudentManage.OnlineChecking;
  5. @{
  6. ViewBag.Title = "Approve";
  7. var isEnable = (Request["studentChangeID"] ?? "") == "";
  8. var config = Request["isEnable"] != "false" ? true : false;
  9. //学生信息
  10. ComboGridOptions cgopStudent = new ComboGridOptions
  11. {
  12. TextField = "StudentNo",
  13. ValueField = "UserID",
  14. OnSelect = "queryStudent",
  15. IsEnabled = isEnable,
  16. GridOptions = new DataGridOptions
  17. {
  18. Columns = new List<DataGridColumn>()
  19. {
  20. new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Width=0.2, Align=AlignStyle.Center },
  21. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.08, Align=AlignStyle.Center },
  22. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StandardID", OverflowLength=6 },
  23. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Width=0.06, Align=AlignStyle.Center, OverflowLength=6 },
  24. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.1, Align=AlignStyle.Center, OverflowLength=6 },
  25. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", CustomFormatFun="SetRedColumn" }
  26. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StudentStatus", CustomFormatFun="SetRedColumn" }
  27. },
  28. PageSize = 10,
  29. IsCheckOnSelect = true,
  30. DataSourceUrl = Url.Content("~/Student/StudentBaseInSchoolList?userID=" + Model.UserID),
  31. IsPagination = true,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. }
  35. };
  36. //班级信息(异动前)
  37. ComboGridOptions cgopBeforeClassmajor = new ComboGridOptions
  38. {
  39. TextField = "Name",
  40. ValueField = "ClassmajorID",
  41. IsEnabled = false,
  42. GridOptions = new DataGridOptions
  43. {
  44. Columns = new List<DataGridColumn>()
  45. {
  46. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  47. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  48. },
  49. PageSize = 5,
  50. IsCheckOnSelect = true,
  51. DataSourceUrl = Url.Content("~/Classmajor/List"),
  52. IsPagination = true,
  53. IsShowRowNumbers = true,
  54. IsSingleSelect = false
  55. }
  56. };
  57. //班级信息(异动后)
  58. ComboGridOptions cgopAfterClassmajor = new ComboGridOptions
  59. {
  60. TextField = "Name",
  61. ValueField = "ClassmajorID",
  62. OnSelect = "queryAfterClassmajor",
  63. IsEnabled = config,
  64. GridOptions = new DataGridOptions
  65. {
  66. Columns = new List<DataGridColumn>()
  67. {
  68. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  69. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  70. },
  71. PageSize = 5,
  72. IsCheckOnSelect = true,
  73. DataSourceUrl = Url.Content("~/Classmajor/List"),
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false
  77. }
  78. };
  79. //院系所(异动前)
  80. ComboGridOptions cgopBeforeCollege = new ComboGridOptions
  81. {
  82. TextField = "Name",
  83. ValueField = "CollegeID",
  84. IsEnabled = false,
  85. GridOptions = new DataGridOptions
  86. {
  87. Columns = new List<DataGridColumn>()
  88. {
  89. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  90. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  91. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  92. },
  93. PageSize = 5,
  94. IsCheckOnSelect = true,
  95. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  96. IsPagination = true,
  97. IsShowRowNumbers = true,
  98. IsSingleSelect = false
  99. }
  100. };
  101. //院系所(异动后)
  102. ComboGridOptions cgopAfterCollege = new ComboGridOptions
  103. {
  104. TextField = "Name",
  105. ValueField = "CollegeID",
  106. OnSelect = "queryAfterCollege",
  107. IsEnabled = config,
  108. GridOptions = new DataGridOptions
  109. {
  110. Columns = new List<DataGridColumn>()
  111. {
  112. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  113. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  114. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  115. },
  116. PageSize = 5,
  117. IsCheckOnSelect = true,
  118. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  119. IsPagination = true,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false
  122. }
  123. };
  124. }
  125. @{
  126. var listAction = ViewBag.ListAction as List<DropdownListItem>;
  127. var defaultAction = listAction.FirstOrDefault(x => true);
  128. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  129. }
  130. <style type="text/css">
  131. .mark
  132. {
  133. color: Red;
  134. }
  135. </style>
  136. @section scripts{
  137. <script src="~/Scripts/Business/StudentManage/StudentChange/ChangeApproveSubmit.js" type="text/javascript"></script>
  138. }
  139. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  140. @using (Ajax.BeginForm(new AjaxOptions
  141. {
  142. OnSuccess = "EMISFunction.FormSuccess",
  143. OnBegin = "EMISFunction.FormSubmit",
  144. OnComplete = "EMISFunction.FormComplete"
  145. }))
  146. {
  147. <div class="p_title">
  148. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  149. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Approve")</div>
  150. </div>
  151. <div class="search_list">
  152. @Html.HiddenFor(x => x.StudentChangeID)
  153. <table id="changeapprove">
  154. <tr>
  155. <td style="color: red;">
  156. @Html.LabelFor(x => x.SchoolyearCode):
  157. </td>
  158. <td>
  159. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  160. {
  161. TextField = "Text",
  162. ValueField = "Value",
  163. BindType = DropdownListBindType.PleaseSelect,
  164. IsEnabled = false,
  165. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  166. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  167. })
  168. </td>
  169. <td style="color: red;">
  170. @Html.LabelFor(x => x.ChangeTypeName):
  171. </td>
  172. <td>
  173. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_ChangeType, (x => x.ChangeTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  174. </td>
  175. </tr>
  176. <tr>
  177. <td style="color: red;">
  178. @Html.LabelFor(x => x.StudentNo):
  179. </td>
  180. <td>
  181. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  182. </td>
  183. <td>
  184. @Html.LabelFor(x => x.Name):
  185. </td>
  186. <td>
  187. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })
  188. </td>
  189. </tr>
  190. <tr>
  191. <td>
  192. @Html.LabelFor(x => x.SexName):
  193. </td>
  194. <td>
  195. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  196. </td>
  197. <td>
  198. @Html.LabelFor(x => x.ChangeReasonName):
  199. </td>
  200. <td>
  201. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_ChangeReason, (x => x.ChangeReasonID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  202. </td>
  203. </tr>
  204. <tr>
  205. <td>
  206. @Html.LabelFor(x => x.ChangeDate):
  207. </td>
  208. <td>
  209. @Html.TextBoxFor(x => x.ChangeDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  210. </td>
  211. <td>
  212. @Html.LabelFor(x => x.ReturnSchoolyearCode):
  213. </td>
  214. <td>
  215. @Html.DropdownListFor((x => x.ReturnSchoolyearID), new DropdownListOptions
  216. {
  217. TextField = "Text",
  218. ValueField = "Value",
  219. BindType = DropdownListBindType.PleaseSelect,
  220. IsEnabled = isEnable,
  221. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  222. })
  223. </td>
  224. </tr>
  225. <tr>
  226. <td colspan="4" style="padding:1px;height:10px;">
  227. <div id="beforeExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  228. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  229. onclick="swapBefore();">
  230. </div>
  231. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapBefore();">
  232. 异动前信息
  233. </div>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td>
  238. @Html.LabelFor(x => x.BeforeCollegeName):
  239. </td>
  240. <td>
  241. @Html.ComboGridFor(x => x.BeforeCollegeID, cgopBeforeCollege)
  242. </td>
  243. <td>
  244. @Html.LabelFor(x => x.BeforeGradeName):
  245. </td>
  246. <td>
  247. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.BeforeGradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  248. </td>
  249. </tr>
  250. <tr>
  251. <td>
  252. @Html.LabelFor(x => x.BeforeStandardName):
  253. </td>
  254. <td>
  255. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.BeforeStandardID), DropdownListBindType.PleaseSelect,
  256. new ComboGridOptions
  257. {
  258. IsEnabled = false,
  259. GridOptions = new DataGridOptions
  260. {
  261. Columns = new List<DataGridColumn>()
  262. {
  263. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  264. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  265. }
  266. }
  267. })
  268. </td>
  269. <td>
  270. @Html.LabelFor(x => x.BeforeStandardCode):
  271. </td>
  272. <td>
  273. @Html.TextBoxFor(x => x.BeforeStandardCode, new TextBoxOptions() { IsEnabled = false })
  274. </td>
  275. </tr>
  276. <tr>
  277. <td>
  278. @Html.LabelFor(x => x.BeforeEducationName):
  279. </td>
  280. <td>
  281. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.BeforeEducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  282. </td>
  283. <td>
  284. @Html.LabelFor(x => x.BeforeLearningformName):
  285. </td>
  286. <td>
  287. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.BeforeLearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  288. </td>
  289. </tr>
  290. <tr>
  291. <td>
  292. @Html.LabelFor(x => x.BeforeLearnSystem):
  293. </td>
  294. <td>
  295. @Html.TextBoxFor(x => x.BeforeLearnSystem, new TextBoxOptions() { IsEnabled = false })
  296. </td>
  297. <td style="color: red;">
  298. @Html.LabelFor(x => x.BeforeClassmajorName):
  299. </td>
  300. <td>
  301. @Html.ComboGridFor(x => x.BeforeClassmajorID, cgopBeforeClassmajor)
  302. </td>
  303. </tr>
  304. <tr>
  305. <td style="color: red;">
  306. @Html.LabelFor(x => x.BeforeInSchoolStatusName):
  307. </td>
  308. <td>
  309. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.BeforeInSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  310. </td>
  311. <td style="color: red;">
  312. @Html.LabelFor(x => x.BeforeStudentStatusName):
  313. </td>
  314. <td>
  315. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.BeforeStudentStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  316. </td>
  317. </tr>
  318. <tr>
  319. <td colspan="4" style="padding:1px;height:10px;">
  320. <div id="afterExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  321. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  322. onclick="swapAfter();">
  323. </div>
  324. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapAfter();">
  325. 异动后信息
  326. </div>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td>
  331. @Html.LabelFor(x => x.AfterCollegeName):
  332. </td>
  333. <td>
  334. @Html.ComboGridFor(x => x.AfterCollegeID, cgopAfterCollege)
  335. </td>
  336. <td>
  337. @Html.LabelFor(x => x.AfterGradeName):
  338. </td>
  339. <td>
  340. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.AfterGradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = config })
  341. </td>
  342. </tr>
  343. <tr>
  344. <td>
  345. @Html.LabelFor(x => x.AfterStandardName):
  346. </td>
  347. <td>
  348. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.AfterStandardID), DropdownListBindType.PleaseSelect,
  349. new ComboGridOptions
  350. {
  351. IsEnabled = config,
  352. OnSelect = "queryAfterStandard",
  353. GridOptions = new DataGridOptions
  354. {
  355. Columns = new List<DataGridColumn>()
  356. {
  357. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  358. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  359. }
  360. }
  361. })
  362. </td>
  363. <td>
  364. @Html.LabelFor(x => x.AfterStandardCode):
  365. </td>
  366. <td>
  367. @Html.TextBoxFor(x => x.AfterStandardCode, new TextBoxOptions() { IsEnabled = config })
  368. </td>
  369. </tr>
  370. <tr>
  371. <td>
  372. @Html.LabelFor(x => x.AfterEducationName):
  373. </td>
  374. <td>
  375. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.AfterEducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = config })
  376. </td>
  377. <td>
  378. @Html.LabelFor(x => x.AfterLearningformName):
  379. </td>
  380. <td>
  381. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.AfterLearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = config })
  382. </td>
  383. </tr>
  384. <tr>
  385. <td>
  386. @Html.LabelFor(x => x.AfterLearnSystem):
  387. </td>
  388. <td>
  389. @Html.TextBoxFor(x => x.AfterLearnSystem, new TextBoxOptions() { IsEnabled = config })
  390. </td>
  391. <td style="color: red;">
  392. @Html.LabelFor(x => x.AfterClassmajorName):
  393. </td>
  394. <td>
  395. @Html.ComboGridFor(x => x.AfterClassmajorID, cgopAfterClassmajor)
  396. </td>
  397. </tr>
  398. <tr>
  399. <td style="color: red;">
  400. @Html.LabelFor(x => x.AfterInSchoolStatusName):
  401. </td>
  402. <td>
  403. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = config })
  404. </td>
  405. <td style="color: red;">
  406. @Html.LabelFor(x => x.AfterStudentStatusName):
  407. </td>
  408. <td>
  409. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = config })
  410. </td>
  411. </tr>
  412. <tr>
  413. <td>
  414. @Html.LabelFor(x => x.Description):
  415. </td>
  416. <td colspan="3">
  417. @if (!isEnable)
  418. {
  419. @Html.TextAreaFor(x => x.Description, new Dictionary<string, object>
  420. {
  421. { "style", "width: 85%;min-height: 15px" },
  422. { "disabled", "true" }
  423. })
  424. }
  425. else
  426. {
  427. @Html.TextAreaFor(x => x.Description, new Dictionary<string, object> { { "style", "width: 85%;min-height: 35px" } })
  428. }
  429. </td>
  430. </tr>
  431. <tr>
  432. <td>
  433. @Html.LabelFor(x => x.Remark):
  434. </td>
  435. <td colspan="3">
  436. @if (!isEnable)
  437. {
  438. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  439. {
  440. { "style", "width: 85%;min-height: 15px" },
  441. { "disabled", "true" }
  442. })
  443. }
  444. else
  445. {
  446. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 85%;min-height: 25px" } })
  447. }
  448. </td>
  449. </tr>
  450. <tr>
  451. <td style="color: red;">
  452. @Html.LabelFor(x => x.Action):
  453. </td>
  454. <td colspan="3">
  455. @Html.DropdownList(new DropdownListOptions
  456. {
  457. BindType = DropdownListBindType.None,
  458. ID = "ddlAction",
  459. Name = "ddlAction",
  460. ItemList = listAction,
  461. SelectedValue = defaultActionValue
  462. })
  463. </td>
  464. </tr>
  465. <tr>
  466. <td style="color: red;">
  467. @Html.LabelFor(x => x.Comment):
  468. </td>
  469. <td colspan="3">
  470. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  471. {
  472. { "style", "width: 98%;min-height: 15px" }
  473. })
  474. </td>
  475. </tr>
  476. </table>
  477. </div>
  478. }
  479. </div>