FeeEdit.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @model EMIS.ViewModel.ExaminationProjectFeeView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.Entities;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. ComboGridOptions cgopProject = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "ExaminationProjectID",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  16. },
  17. PageSize = 5,
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. },
  24. Width = 400
  25. };
  26. ComboGridOptions cgopExamType = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "ExaminationTypeID",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  35. },
  36. PageSize = 5,
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false
  42. },
  43. OnSelect = "cgopProjectSelect"
  44. };
  45. }
  46. @section scripts{
  47. <script src="~/Scripts/Business/ExamManage/ChargeProjectFee.js" type="text/javascript"></script>
  48. <script type="text/javascript">
  49. </script>
  50. }
  51. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  52. @using (Ajax.BeginForm(new AjaxOptions
  53. {
  54. OnSuccess = "EMISFunction.FormSuccess",
  55. OnBegin = "EMISFunction.FormSubmit",
  56. OnComplete = "EMISFunction.FormComplete"
  57. }))
  58. {
  59. <div class="p_title">
  60. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  61. </div>
  62. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  63. @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
  64. {
  65. @Html.ContextMenuBar("Edit")
  66. }
  67. </div>
  68. </div>
  69. <div class="search_list">
  70. <input type="hidden" name="ExaminationProjectFeeID" id="ExaminationProjectFeeID" value="@( Model.ExaminationProjectFeeID)"/>
  71. <table cellpadding="0" cellspacing="0" id="Campustable">
  72. <tr>
  73. <td>
  74. @Html.LabelFor(x => x.ExaminationTypeID):
  75. </td>
  76. <td>
  77. @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>
  82. @Html.LabelFor(x => x.ProjectName):
  83. </td>
  84. <td>
  85. @Html.ComboGridFor(x => x.ExaminationProjectID, cgopProject)
  86. </td>
  87. </tr>
  88. <tr>
  89. <td>
  90. @Html.LabelFor(x => x.Name):
  91. </td>
  92. <td>
  93. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary<string, string> { { "style", "width:85%;" } })
  94. </td>
  95. </tr>
  96. <tr>
  97. <td colspan="2">
  98. <div class="p_title">
  99. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  100. 收费项目信息列表</div>
  101. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  102. @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
  103. {
  104. @Html.ContextMenuBar("EditList")}</div>
  105. </div>
  106. <div class="search_list">
  107. @Html.DataGrid(new DataGridOptions
  108. {
  109. Columns = new List<DataGridColumn>()
  110. {
  111. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectFeeTypeID"},
  112. new LinkButtonColumn { FieldName="FeeTypeName", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06, Handle="editFee" },
  113. new BoundFieldColumn { FieldName="Fee", HeaderText="费用", Align=AlignStyle.Center, Width=0.1 },
  114. new BoundFieldColumn { FieldName="IsResitText", HeaderText="是否补考项目", Align=AlignStyle.Center, Width=0.1 },
  115. new BoundFieldColumn { FieldName="IsTrainingFeeText", HeaderText="是否需要培训", Align=AlignStyle.Center,Width=0.06 },
  116. new BoundFieldColumn { FieldName="IsMaterialText", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.1 },
  117. },
  118. IsCheckOnSelect = true,
  119. DataSourceUrl = Url.Content("~/ChargeProject/List?ExaminationProjectFeeID=" + Model.ExaminationProjectFeeID),
  120. ID = "dgProjectFeeTypeList",
  121. IsPagination = true,
  122. IsShowRowNumbers = true,
  123. IsPostBack = true,
  124. QueryParams = new { ExaminationProjectFeeID = Model.ExaminationProjectFeeID },
  125. IsSingleSelect = false
  126. })
  127. </div>
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. }
  133. </div>