Edit.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. @model EMIS.ViewModel.DifferentDynamic.DifferentDynamicApprovalView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ViewBag.Title = "异动申请审核";
  7. var cgopLoginIDcharge = new ComboGridOptions
  8. {
  9. TextField = "LoginID",
  10. ValueField = "UserID",
  11. IsEnabled = false,
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  20. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center },
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Action("AbleDifferentDynamicApplyStudentList"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. ComboGridOptions cgopClassmajor = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "ClassmajorID",
  33. OnSelect = "QueryClassmajorGrid",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Classmajor/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgopStandard = new ComboGridOptions
  48. {
  49. TextField = "StandardNameStr",
  50. ValueField = "StandardID",
  51. OnSelect = "QueryAfterStandardGrid",
  52. Name = "StandardDictionaryDropDown",
  53. ID = "StandardDictionaryDropDown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new BoundFieldColumn { FieldName="StandardNameStr", HeaderText="专业名称", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/Grademajor/ListWithoutRange"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false,
  65. }
  66. };
  67. var listAction = ViewBag.ListAction as List<DropdownListItem>;
  68. var defaultAction = listAction.FirstOrDefault(x => x.Text == "请选择");
  69. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  70. }
  71. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  72. @using (Ajax.BeginForm(new AjaxOptions
  73. {
  74. OnSuccess = "EMISFunction.FormSuccess",
  75. OnBegin = "EMISFunction.FormSubmit",
  76. OnComplete = "EMISFunction.FormComplete"
  77. }))
  78. {
  79. <div class="p_title">
  80. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  81. 异动申请信息
  82. </div>
  83. @if (Request["isView"] != "1")
  84. {
  85. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  86. }
  87. </div>
  88. <div class="search_list">
  89. @Html.HiddenFor(m => m.EntityID)
  90. @Html.HiddenFor(m => m.ApplyTypeID)
  91. <table cellpadding="0" cellspacing="1">
  92. <tr>
  93. <th>@Html.LabelFor(m => m.SchoolyearID):
  94. </th>
  95. <td>
  96. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = false })
  97. </td>
  98. <th>@Html.LabelFor(m => m.DifferentDynamicType):
  99. </th>
  100. <td>
  101. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = false })
  102. </td>
  103. </tr>
  104. <tr>
  105. <th>@Html.LabelFor(m => m.UserID):
  106. </th>
  107. <td>
  108. @Html.ComboGridFor(x => x.UserID, cgopLoginIDcharge)
  109. </td>
  110. <th>@Html.LabelFor(m => m.ReturnSchoolyearID):
  111. </th>
  112. <td>
  113. @Html.DropdownListFor(x => x.ReturnSchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value" })
  114. </td>
  115. </tr>
  116. <tr>
  117. <th>@Html.LabelFor(m => m.InSchoolStatusID):
  118. </th>
  119. <td>
  120. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false })
  121. </td>
  122. <th>@Html.LabelFor(m => m.AfterInSchoolStatusID):
  123. </th>
  124. <td>
  125. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID))
  126. </td>
  127. </tr>
  128. <tr>
  129. <th>@Html.LabelFor(m => m.StudentStatus):
  130. </th>
  131. <td>
  132. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false })
  133. </td>
  134. <th>@Html.LabelFor(m => m.AfterStudentStatus):
  135. </th>
  136. <td>
  137. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus))
  138. </td>
  139. </tr>
  140. <tr>
  141. <th>@Html.LabelFor(m => m.StandardID):
  142. </th>
  143. <td>
  144. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false })
  145. </td>
  146. <th>@Html.LabelFor(m => m.AfterStandardID):
  147. </th>
  148. <td>
  149. @Html.ComboGridFor(x => x.AfterStandardID, cgopStandard)
  150. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.AfterStandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "QueryAfterStandardGrid" })*@
  151. @* @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { OnSelect = "QueryAfterStandardGrid" })*@
  152. </td>
  153. </tr>
  154. <tr>
  155. <th>@Html.LabelFor(m => m.ClassmajorID):
  156. </th>
  157. <td>
  158. @Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false })
  159. </td>
  160. <th>@Html.LabelFor(m => m.AfterClassmajorID):
  161. </th>
  162. <td>
  163. @Html.ComboGridFor(x => x.AfterClassmajorID, cgopClassmajor)
  164. @*@Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value" })*@
  165. </td>
  166. </tr>
  167. <tr>
  168. <th>@Html.LabelFor(m => m.BeginTime):
  169. </th>
  170. <td>
  171. @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  172. </td>
  173. <th>@Html.LabelFor(m => m.EndTime):
  174. </th>
  175. <td>
  176. @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  177. </td>
  178. </tr>
  179. <tr>
  180. <th>@Html.LabelFor(m => m.Reason):
  181. </th>
  182. <td colspan="3">
  183. @*@Html.TextAreaFor(m => m.Reason, new Dictionary<string, object> { { "style", "width:540px;" }, { "disabled", "disabled" } })*@
  184. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicReason, x => x.Reason, DropdownListBindType.PleaseSelect,
  185. new ComboGridOptions
  186. {
  187. OnSelect = "",
  188. GridOptions = new DataGridOptions
  189. {
  190. OnLoadSuccessFun = ""
  191. }
  192. }, new Dictionary<string, string> { { "disabled", "disabled" } })
  193. @Html.HiddenFor(m => m.Reason)
  194. </td>
  195. </tr>
  196. <tr>
  197. <th>@Html.LabelFor(m => m.ApplyRemark):
  198. </th>
  199. <td colspan="3">
  200. @Html.TextAreaFor(m => m.ApplyRemark, new Dictionary<string, object> { { "style", "width:540px;" }, { "disabled", "disabled" } })
  201. @Html.HiddenFor(m => m.ApplyRemark)
  202. </td>
  203. </tr>
  204. @* <tr>
  205. <th>@Html.LabelFor(m => m.Source):
  206. </th>
  207. <td colspan="3">
  208. @Html.TextAreaFor(m => m.Source, new Dictionary<string, object> { { "style", "width:540px;" } })
  209. </td>
  210. </tr>
  211. <tr>
  212. <th>@Html.LabelFor(m => m.Direction):
  213. </th>
  214. <td colspan="3">
  215. @Html.TextAreaFor(m => m.Direction, new Dictionary<string, object> { { "style", "width:540px;" } })
  216. </td>
  217. </tr>*@
  218. @* <tr>
  219. <th>@Html.LabelFor(m => m.Remark):
  220. </th>
  221. <td colspan="3">
  222. @Html.TextAreaFor(m => m.Remark, new Dictionary<string, object> { { "style", "width:540px;" } })
  223. </td>
  224. </tr>*@
  225. <tr>
  226. <td>处理动作:
  227. </td>
  228. <td colspan="3">
  229. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>
  234. <label>
  235. 处理意见:</label>
  236. </td>
  237. <td colspan="3">@Html.TextArea("txtComment", new Dictionary<string, object> { { "style", "width:540px;" } })
  238. </td>
  239. </tr>
  240. </table>
  241. </div>
  242. }
  243. <div class="search_list">
  244. <table cellpadding="0" cellspacing="0" id="specialtytable">
  245. </table>
  246. </div>
  247. </div>
  248. @section scripts{
  249. <script src="~/Scripts/Business/DifferentDynamic/ApprovalEdit.js" type="text/javascript"></script>
  250. <script type="text/javascript">
  251. var nonSelect = "@DropdownList.SELECT_ALL";
  252. </script>
  253. <style type="text/css">
  254. textarea {
  255. min-height: 45px;
  256. }
  257. </style>
  258. }