Approve.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. @model EMIS.ViewModel.DegreeManage.DegreeManage.DegreeApplyView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "Approve";
  7. var isEdit = (Request["degreeApplyID"] ?? "") == "";
  8. //学生信息
  9. ComboGridOptions cgopStudent = new ComboGridOptions
  10. {
  11. TextField = "LoginID",
  12. ValueField = "UserID",
  13. IsEnabled = isEdit,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. //班级信息
  29. ComboGridOptions cgopClassmajor = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "ClassmajorID",
  33. Name = "ClassmajorComboGrid",
  34. IsEnabled = isEdit,
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Classmajor/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //院系所
  50. ComboGridOptions cgopCollege = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "CollegeID",
  54. ID = "CollegeDropdown",
  55. Name = "CollegeDropdown",
  56. IsEnabled = isEdit,
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. //学位公式
  72. ComboGridOptions cgopDegreeConditionPackage = new ComboGridOptions
  73. {
  74. TextField = "Title",
  75. ValueField = "DegreeConditionPackageID",
  76. ID = "DegreeConditionPackageDropdown",
  77. Name = "DegreeConditionPackageDropdown",
  78. IsEnabled = isEdit,
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="Title", HeaderText="学位公式", Align=AlignStyle.Center, Width=150 },
  84. new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=60 }
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/DegreeConditionPackage/List"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false,
  91. }
  92. };
  93. }
  94. @{
  95. var listAction = ViewBag.ListAction as List<DropdownListItem>;
  96. var defaultAction = listAction.FirstOrDefault(x => true);
  97. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  98. }
  99. @section scripts{
  100. <script src="~/Scripts/Business/DegreeManage/DegreeManage/DegreeApproveSubmit.js" type="text/javascript"></script>
  101. }
  102. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  103. @using (Ajax.BeginForm(new AjaxOptions
  104. {
  105. OnSuccess = "EMISFunction.FormSuccess",
  106. OnBegin = "EMISFunction.FormSubmit",
  107. OnComplete = "EMISFunction.FormComplete"
  108. }))
  109. {
  110. <div class="p_title">
  111. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  112. </div>
  113. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  114. @Html.ContextMenuBar("Approve")
  115. </div>
  116. </div>
  117. <div class="search_list">
  118. @Html.HiddenFor(x => x.DegreeApplyID)
  119. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  120. <tr>
  121. <td>
  122. @Html.LabelFor(x => x.StudentNo):
  123. </td>
  124. <td>
  125. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  126. </td>
  127. <td>
  128. @Html.LabelFor(x => x.UserName):
  129. </td>
  130. <td>
  131. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = isEdit })
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. @Html.LabelFor(x => x.SexName):
  137. </td>
  138. <td>
  139. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, x => x.SexID, new DropdownListOptions() { IsEnabled = isEdit })
  140. </td>
  141. <td>
  142. @Html.LabelFor(x => x.InSchoolStatusName):
  143. </td>
  144. <td>
  145. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, x => x.InSchoolStatusID, new DropdownListOptions() { IsEnabled = isEdit })
  146. </td>
  147. </tr>
  148. <tr>
  149. <td>
  150. @Html.LabelFor(x => x.ClassName):
  151. </td>
  152. <td>
  153. @Html.ComboGridFor(x => x.ClassID, cgopClassmajor)
  154. </td>
  155. <td>
  156. @Html.LabelFor(x => x.CollegeName):
  157. </td>
  158. <td>
  159. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  160. </td>
  161. </tr>
  162. <tr>
  163. <td style="color: red">
  164. @Html.LabelFor(x => x.ApplySchoolyearCode):
  165. </td>
  166. <td>
  167. @Html.DropdownListFor((x => x.ApplySchoolyearID), new DropdownListOptions
  168. {
  169. BindType = DropdownListBindType.PleaseSelect,
  170. TextField = "Text",
  171. ValueField = "Value",
  172. IsEnabled = isEdit,
  173. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  174. })
  175. </td>
  176. <td style="color: red">
  177. @Html.LabelFor(x => x.GraduatingSemesterCode):
  178. </td>
  179. <td>
  180. @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions
  181. {
  182. BindType = DropdownListBindType.PleaseSelect,
  183. TextField = "Text",
  184. ValueField = "Value",
  185. IsEnabled = isEdit,
  186. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  187. })
  188. </td>
  189. </tr>
  190. <tr>
  191. <td style="color: red">
  192. @Html.LabelFor(x => x.GraduationTypeName):
  193. </td>
  194. <td>
  195. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_GraduationType, x => x.GraduationTypeID, new DropdownListOptions() { IsEnabled = isEdit })
  196. </td>
  197. <td style="color: red">
  198. @Html.LabelFor(x => x.Title):
  199. </td>
  200. <td>
  201. @Html.ComboGridFor(x => x.DegreeConditionPackageID, cgopDegreeConditionPackage)
  202. </td>
  203. </tr>
  204. <tr>
  205. <td style="color: red">
  206. @Html.LabelFor(x => x.DegreeBatchName):
  207. </td>
  208. <td>
  209. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeBatch, x => x.DegreeBatchID, new DropdownListOptions() { IsEnabled = isEdit })
  210. </td>
  211. <td style="color: red">
  212. @Html.LabelFor(x => x.DegreeResultName):
  213. </td>
  214. <td>
  215. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeResult, x => x.DegreeResult, new DropdownListOptions() { IsEnabled = isEdit })
  216. </td>
  217. @*<td style="color: red">
  218. @Html.LabelFor(x => x.ApprovalResult):
  219. </td>
  220. <td>
  221. @Html.TextBoxFor(x => x.ApprovalResult, new TextBoxOptions() { IsEnabled = isEdit })
  222. </td>*@
  223. </tr>
  224. <tr>
  225. <td>
  226. @Html.LabelFor(x => x.Remark):
  227. </td>
  228. <td colspan="3">
  229. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  230. {
  231. { "style", "width: 90%;min-height: 25px" },
  232. { "disabled", "true" }
  233. })
  234. </td>
  235. </tr>
  236. <tr>
  237. <td style="color: red;">
  238. @Html.LabelFor(x => x.Action):
  239. </td>
  240. <td colspan="3">
  241. @Html.DropdownList(new DropdownListOptions
  242. {
  243. BindType = DropdownListBindType.None,
  244. ID = "ddlAction",
  245. Name = "ddlAction",
  246. ItemList = listAction,
  247. SelectedValue = defaultActionValue
  248. })
  249. </td>
  250. </tr>
  251. <tr>
  252. <td>
  253. 处理意见:
  254. </td>
  255. <td colspan="3">
  256. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  257. {
  258. { "style", "width: 90%;min-height: 50px" }
  259. })
  260. </td>
  261. </tr>
  262. </table>
  263. </div>
  264. }
  265. </div>