Edit.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.StudentChargeView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "Edit";
  7. var isEdit = (Request["StudentChargeID"] ?? "") == "";
  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. @section scripts{
  53. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargeEdit.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.StudentChargeID)
  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.Amount):
  98. </td>
  99. <td>
  100. @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>
  105. @Html.LabelFor(x => x.ActualAmount):
  106. </td>
  107. <td>
  108. @Html.TextBoxFor(x => x.ActualAmount)
  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)
  115. </td>
  116. </tr>
  117. <tr>
  118. <td>
  119. @Html.LabelFor(x => x.Remark):
  120. </td>
  121. <td colspan="3">
  122. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  123. </td>
  124. </tr>
  125. </table>
  126. </div>
  127. }
  128. </div>