Approve.cshtml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.ChargeDelayView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "Approve";
  7. var isEdit = (Request["ChargeDelayID"] ?? "") == "";
  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 cgopChargeProject = new ComboGridOptions
  30. {
  31. TextField = "ChrageProjectName",
  32. ValueField = "ChargeProjectID",
  33. ID = "ChargeProjectComboGrid",
  34. Name = "ChargeProjectComboGrid",
  35. IsEnabled = isEdit,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. }
  50. @{
  51. var listAction = ViewBag.ListAction as List<DropdownListItem>;
  52. var defaultAction = listAction.FirstOrDefault(x => true);
  53. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  54. }
  55. @section scripts{
  56. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeDelayApprove.js" type="text/javascript"></script>
  57. }
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. @using (Ajax.BeginForm(new AjaxOptions
  60. {
  61. OnSuccess = "EMISFunction.FormSuccess",
  62. OnBegin = "EMISFunction.FormSubmit",
  63. OnComplete = "EMISFunction.FormComplete"
  64. }))
  65. {
  66. <div class="p_title">
  67. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  68. </div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  70. @Html.ContextMenuBar("Approve")
  71. </div>
  72. </div>
  73. <div class="search_list">
  74. @Html.HiddenFor(x => x.ChargeDelayID)
  75. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  76. <tr>
  77. <td>
  78. @Html.LabelFor(x => x.StudentNo):
  79. </td>
  80. <td>
  81. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  82. </td>
  83. <td>
  84. @Html.LabelFor(x => x.UserName):
  85. </td>
  86. <td>
  87. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
  88. </td>
  89. </tr>
  90. <tr>
  91. <td>
  92. @Html.LabelFor(x => x.ChargeYear):
  93. </td>
  94. <td>
  95. @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
  96. {
  97. OnSelect = "queryChargeDelayStandard",
  98. IsEnabled = isEdit
  99. })
  100. </td>
  101. <td>
  102. @Html.LabelFor(x => x.ChargeProjectStr):
  103. </td>
  104. <td>
  105. @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject)
  106. </td>
  107. </tr>
  108. <tr>
  109. <td style="color: red">
  110. @Html.LabelFor(x => x.Amount):
  111. </td>
  112. <td>
  113. @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
  114. </td>
  115. <td>
  116. @Html.LabelFor(x => x.ChargeTag):
  117. </td>
  118. <td>
  119. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
  120. </td>
  121. </tr>
  122. <tr>
  123. <td style="color: red">
  124. @Html.LabelFor(x => x.ChargeAmount):
  125. </td>
  126. <td>
  127. @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false })
  128. </td>
  129. <td style="color: red">
  130. @Html.LabelFor(x => x.ActualAmount):
  131. </td>
  132. <td>
  133. @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false })
  134. </td>
  135. </tr>
  136. <tr>
  137. <td style="color: red">
  138. @Html.LabelFor(x => x.PaidAmount):
  139. </td>
  140. <td>
  141. @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
  142. </td>
  143. <td style="color: red">
  144. @Html.LabelFor(x => x.PassDelayAmount):
  145. </td>
  146. <td>
  147. @Html.TextBoxFor(x => x.PassDelayAmount, new TextBoxOptions() { IsEnabled = false })
  148. </td>
  149. </tr>
  150. <tr>
  151. <td style="color: red; font-weight: bold;">
  152. @Html.LabelFor(x => x.CanDelayAmount):
  153. </td>
  154. <td>
  155. @Html.TextBoxFor(x => x.CanDelayAmount, new TextBoxOptions() { IsEnabled = false })
  156. </td>
  157. <td style="color: red">
  158. @Html.LabelFor(x => x.ApplyDelayAmount):
  159. </td>
  160. <td>
  161. @Html.TextBoxFor(x => x.ApplyDelayAmount, new TextBoxOptions() { IsEnabled = false })
  162. </td>
  163. </tr>
  164. <tr>
  165. <td>
  166. @Html.LabelFor(x => x.DelayAmount):
  167. </td>
  168. <td>
  169. @*@Html.RadioButton("Delaychoose", true)*@
  170. @Html.TextBoxFor(x => x.DelayAmount, new TextBoxOptions() { IsEnabled = false })
  171. </td>
  172. <td>
  173. @Html.LabelFor(x => x.DelayPercent):
  174. </td>
  175. <td>
  176. @*@Html.RadioButton("Delaychoose", true)*@
  177. @Html.TextBoxFor(x => x.DelayPercent, new TextBoxOptions() { IsEnabled = false })%
  178. </td>
  179. </tr>
  180. <tr>
  181. <td>
  182. @Html.LabelFor(x => x.Reason):
  183. </td>
  184. <td colspan="3">
  185. @Html.TextAreaFor(x => x.Reason ,new Dictionary<string, object>
  186. {
  187. { "style", "width: 90%;min-height: 40px" },
  188. { "disabled", "true" }
  189. })
  190. </td>
  191. </tr>
  192. <tr>
  193. <td style="color: red;">
  194. @Html.LabelFor(x => x.Action):
  195. </td>
  196. <td colspan="3">
  197. @Html.DropdownList(new DropdownListOptions
  198. {
  199. BindType = DropdownListBindType.None,
  200. ID = "ddlAction",
  201. Name = "ddlAction",
  202. ItemList = listAction,
  203. SelectedValue = defaultActionValue
  204. })
  205. </td>
  206. </tr>
  207. <tr>
  208. <td>
  209. 处理意见:
  210. </td>
  211. <td colspan="3">
  212. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  213. {
  214. { "style", "width: 90%;min-height: 50px" }
  215. })
  216. </td>
  217. </tr>
  218. </table>
  219. </div>
  220. }
  221. </div>