ChargeDelay.cshtml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 = "ChangeDelay";
  7. var isEdit = (Request["StudentChargeID"] ?? "") == "";
  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. @section scripts{
  51. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargeEdit.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. @*$(document).ready(function () {
  54. var studentChargeIDs = top.$("#@(Request["WindowID"])").data("inputData");
  55. $("#studentChargeIDs").val(studentChargeIDs);//将json字符串赋值给隐藏域
  56. });*@
  57. </script>
  58. }
  59. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  60. @using (Ajax.BeginForm(new AjaxOptions
  61. {
  62. OnSuccess = "EMISFunction.FormSuccess",
  63. OnBegin = "EMISFunction.FormSubmit",
  64. OnComplete = "EMISFunction.FormComplete"
  65. }))
  66. {
  67. <div class="p_title">
  68. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  69. </div>
  70. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("DelayApply")</div>
  71. </div>
  72. <div class="search_list">
  73. @Html.HiddenFor(x => x.StudentChargeID)
  74. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  75. <tr>
  76. <td>
  77. @Html.LabelFor(x => x.StudentNo):
  78. </td>
  79. <td>
  80. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  81. </td>
  82. <td>
  83. @Html.LabelFor(x => x.UserName):
  84. </td>
  85. <td>
  86. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. @Html.LabelFor(x => x.ChargeYear):
  92. </td>
  93. <td>
  94. @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
  95. {
  96. IsEnabled = isEdit
  97. })
  98. </td>
  99. <td>
  100. @Html.LabelFor(x => x.ChargeProjectStr):
  101. </td>
  102. <td>
  103. @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject)
  104. </td>
  105. </tr>
  106. <tr>
  107. <td style="color: red">
  108. @Html.LabelFor(x => x.Amount):
  109. </td>
  110. <td>
  111. @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
  112. </td>
  113. <td>
  114. @Html.LabelFor(x => x.ChargeTag):
  115. </td>
  116. <td>
  117. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
  118. </td>
  119. </tr>
  120. <tr>
  121. <td style="color: red">
  122. @Html.LabelFor(x => x.ChargeAmount):
  123. </td>
  124. <td>
  125. @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false })
  126. </td>
  127. <td style="color: red">
  128. @Html.LabelFor(x => x.ActualAmount):
  129. </td>
  130. <td>
  131. @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false })
  132. </td>
  133. </tr>
  134. <tr>
  135. <td style="color: red">
  136. @Html.LabelFor(x => x.PaidAmount):
  137. </td>
  138. <td>
  139. @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
  140. </td>
  141. <td style="color: red">
  142. @Html.LabelFor(x => x.PassDelayAmount):
  143. </td>
  144. <td>
  145. @Html.TextBoxFor(x => x.PassDelayAmount, new TextBoxOptions() { IsEnabled = false })
  146. </td>
  147. </tr>
  148. <tr>
  149. <td style="color: red; font-weight: bold;">
  150. @Html.LabelFor(x => x.CanDelayAmount):
  151. </td>
  152. <td>
  153. @Html.TextBoxFor(x => x.CanDelayAmount, new TextBoxOptions() { IsEnabled = false })
  154. </td>
  155. <td style="color: red">
  156. @Html.LabelFor(x => x.ApplyDelayAmount):
  157. </td>
  158. <td>
  159. @Html.TextBoxFor(x => x.ApplyDelayAmount, new TextBoxOptions() { IsEnabled = false })
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. @Html.LabelFor(x=>x.DelayAmount):
  165. </td>
  166. <td>
  167. @*@Html.RadioButton("Delaychoose", true)*@
  168. @Html.TextBoxFor(x=>x.DelayAmount)
  169. </td>
  170. <td>
  171. @Html.LabelFor(x=>x.DelayPercent):
  172. </td>
  173. <td>
  174. @*@Html.RadioButton("Delaychoose", true)*@
  175. @Html.TextBoxFor(x => x.DelayPercent)%
  176. </td>
  177. </tr>
  178. <tr>
  179. <td>
  180. @Html.LabelFor(x => x.Reason):
  181. </td>
  182. <td colspan="3">
  183. @Html.TextAreaFor(x => x.Reason, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  184. </td>
  185. </tr>
  186. </table>
  187. </div>
  188. }
  189. </div>