Edit.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.StudentChargePaymenView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "Edit";
  7. var isEdit = (Request["StudentChargePaymentID"] ?? "") == "";
  8. //学生信息
  9. ComboGridOptions cgopStudent = new ComboGridOptions
  10. {
  11. TextField = "LoginID",
  12. ValueField = "UserID",
  13. OnSelect = "queryStudentChargeAmount",
  14. IsEnabled = isEdit,
  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. OnSelect = "queryStudentChargeAmount",
  37. IsEnabled = isEdit,
  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. @{
  53. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargePaymenEdit.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;">@Html.ContextMenuBar("Edit")</div>
  67. </div>
  68. <div class="search_list">
  69. @Html.HiddenFor(x => x.StudentChargePaymentID)
  70. <table cellpadding="0" cellspacing="0" id="studentchargetable">
  71. <tr>
  72. <td>
  73. @Html.LabelFor(x => x.StudentNo):
  74. </td>
  75. <td>
  76. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  77. </td>
  78. <td>
  79. @Html.LabelFor(x => x.ChargeYear):
  80. </td>
  81. <td>
  82. @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
  83. {
  84. OnSelect = "queryStudentChargeAmount",
  85. IsEnabled = isEdit
  86. })
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. @Html.LabelFor(x => x.ChargeProjectStr):
  92. </td>
  93. <td>
  94. @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject)
  95. </td>
  96. <td>
  97. @Html.LabelFor(x => x.StandardAmount):
  98. </td>
  99. <td>
  100. @Html.TextBoxFor(x => x.StandardAmount, new TextBoxOptions() { IsEnabled = false })
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>
  105. @Html.LabelFor(x => x.ChargeAmount):
  106. </td>
  107. <td>
  108. @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false })
  109. </td>
  110. <td>
  111. @Html.LabelFor(x => x.ChargeTag):
  112. </td>
  113. <td>
  114. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
  115. </td>
  116. </tr>
  117. <tr>
  118. <td style="color: red;">
  119. @Html.LabelFor(x => x.ActualAmount):
  120. </td>
  121. <td>
  122. @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false })
  123. </td>
  124. <td style="color: red;">
  125. @Html.LabelFor(x => x.PaidAmount):
  126. </td>
  127. <td>
  128. @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>
  133. @Html.LabelFor(x => x.Amount):
  134. </td>
  135. <td>
  136. @Html.TextBoxFor(x => x.Amount)
  137. </td>
  138. <td>
  139. @Html.LabelFor(x => x.ChargeDate):
  140. </td>
  141. <td>
  142. @Html.TextBoxFor(x => x.ChargeDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>
  147. @Html.LabelFor(x => x.Remark):
  148. </td>
  149. <td colspan="3">
  150. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  151. </td>
  152. </tr>
  153. </table>
  154. </div>
  155. }
  156. </div>