Edit.cshtml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 = "Edit";
  7. var isEdit = (Request["ChargeDelayID"] ?? "") == "";
  8. //学生信息
  9. ComboGridOptions cgopStudent = new ComboGridOptions
  10. {
  11. TextField = "LoginID",
  12. ValueField = "UserID",
  13. IsEnabled = isEdit,
  14. OnSelect = "queryChargeDelayStandard",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
  20. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. //收费项目
  30. ComboGridOptions cgopChargeProject = new ComboGridOptions
  31. {
  32. TextField = "ChrageProjectName",
  33. ValueField = "ChargeProjectID",
  34. ID = "ChargeProjectComboGrid",
  35. Name = "ChargeProjectComboGrid",
  36. IsEnabled = isEdit,
  37. OnSelect = "queryChargeDelayStandard",
  38. GridOptions = new DataGridOptions
  39. {
  40. Columns = new List<DataGridColumn>()
  41. {
  42. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. }
  50. };
  51. }
  52. @section scripts{
  53. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeDelayEdit.js" type="text/javascript"></script>
  54. }
  55. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  56. @using (Ajax.BeginForm(new AjaxOptions
  57. {
  58. OnSuccess = "EMISFunction.FormSuccess",
  59. OnBegin = "EMISFunction.FormSubmit",
  60. OnComplete = "EMISFunction.FormComplete"
  61. }))
  62. {
  63. <div class="p_title">
  64. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  65. </div>
  66. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  67. @if (Request["Type"] != "1")
  68. {
  69. @Html.ContextMenuBar("Edit")
  70. }
  71. </div>
  72. </div>
  73. <div class="search_list">
  74. @Html.HiddenFor(x => x.ChargeDelayID)
  75. @Html.HiddenFor(x => x.RecordStatus)
  76. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  77. <tr>
  78. <td>
  79. @Html.LabelFor(x => x.StudentNo):
  80. </td>
  81. <td>
  82. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  83. </td>
  84. <td>
  85. @Html.LabelFor(x => x.UserName):
  86. </td>
  87. <td>
  88. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>
  93. @Html.LabelFor(x => x.ChargeYear):
  94. </td>
  95. <td>
  96. @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
  97. {
  98. OnSelect = "queryChargeDelayStandard",
  99. IsEnabled = isEdit
  100. })
  101. </td>
  102. <td>
  103. @Html.LabelFor(x => x.ChargeProjectStr):
  104. </td>
  105. <td>
  106. @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject)
  107. </td>
  108. </tr>
  109. <tr>
  110. <td style="color: red">
  111. @Html.LabelFor(x => x.Amount):
  112. </td>
  113. <td>
  114. @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
  115. </td>
  116. <td>
  117. @Html.LabelFor(x => x.ChargeTag):
  118. </td>
  119. <td>
  120. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
  121. </td>
  122. </tr>
  123. <tr>
  124. <td style="color: red">
  125. @Html.LabelFor(x => x.ChargeAmount):
  126. </td>
  127. <td>
  128. @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false })
  129. </td>
  130. <td style="color: red">
  131. @Html.LabelFor(x => x.ActualAmount):
  132. </td>
  133. <td>
  134. @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false })
  135. </td>
  136. </tr>
  137. <tr>
  138. <td style="color: red">
  139. @Html.LabelFor(x => x.PaidAmount):
  140. </td>
  141. <td>
  142. @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
  143. </td>
  144. <td style="color: red">
  145. @Html.LabelFor(x => x.PassDelayAmount):
  146. </td>
  147. <td>
  148. @Html.TextBoxFor(x => x.PassDelayAmount, new TextBoxOptions() { IsEnabled = false })
  149. </td>
  150. </tr>
  151. <tr>
  152. <td style="color: red; font-weight: bold;">
  153. @Html.LabelFor(x => x.CanDelayAmount):
  154. </td>
  155. <td>
  156. @Html.TextBoxFor(x => x.CanDelayAmount, new TextBoxOptions() { IsEnabled = false })
  157. </td>
  158. <td style="color: red">
  159. @Html.LabelFor(x => x.ApplyDelayAmount):
  160. </td>
  161. <td>
  162. @Html.TextBoxFor(x => x.ApplyDelayAmount, new TextBoxOptions() { IsEnabled = false })
  163. </td>
  164. </tr>
  165. <tr>
  166. <td>
  167. @Html.LabelFor(x => x.DelayAmount):
  168. </td>
  169. <td>
  170. @*@Html.RadioButton("Delaychoose", true)*@
  171. @Html.TextBoxFor(x => x.DelayAmount)
  172. </td>
  173. <td>
  174. @Html.LabelFor(x => x.DelayPercent):
  175. </td>
  176. <td>
  177. @*@Html.RadioButton("Delaychoose", true)*@
  178. @Html.TextBoxFor(x => x.DelayPercent)%
  179. </td>
  180. </tr>
  181. <tr>
  182. <td>
  183. @Html.LabelFor(x => x.Reason):
  184. </td>
  185. <td colspan="3">
  186. @Html.TextAreaFor(x => x.Reason, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  187. </td>
  188. </tr>
  189. </table>
  190. </div>
  191. }
  192. </div>