Edit.cshtml 6.3 KB

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