List.cshtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopExamType = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationTypeID",
  10. ID = "ExaminationTypeID",
  11. Name = "ExaminationTypeID",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  17. },
  18. PageSize = 5,
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. },
  25. OnSelect = "cgopExamTypeSelect"
  26. };
  27. ComboGridOptions cgopProject = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ExaminationProjectID",
  31. ID="ExaminationProjectID",
  32. Name="ExaminationProjectID",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.2}
  38. },
  39. PageSize = 5,
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. },
  46. Width = 400,
  47. OnSelect = "reload"
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/ExamManage/ChargeProject.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var EMIS_CampusLabel = '@EMIS.Utility.RSL.Get("Campus")';
  54. </script>
  55. }
  56. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  57. @Html.Position()
  58. <div class="p_SearchTitle">
  59. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  60. 查询条件</div>
  61. </div>
  62. <form id="formQuery" method="post" action="@Url.Content("~/ChargeProject/FeeExcel")">
  63. @Html.Hidden("SelectedID")
  64. @Html.PositionCondition()
  65. <div class="search_keyword">
  66. <div class="search_input">
  67. <ul>
  68. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  69. <li class="sv">
  70. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgChargeProjectList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  73. <li class="sv">
  74. @Html.ComboGrid(cgopProject, new Dictionary<string, string> { { "data-condition", "dgChargeProjectList" } })
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. </form>
  80. <div class="p_title">
  81. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  82. 收费项目信息列表</div>
  83. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  84. </div>
  85. <div class="search_list">
  86. @Html.DataGrid(new DataGridOptions
  87. {
  88. Columns = new List<DataGridColumn>()
  89. {
  90. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectFeeID"},
  91. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center, Width=0.06 },
  92. new LinkButtonColumn { FieldName="ProjectName", HeaderText="项目名称", Align=AlignStyle.Center, Width=0.1, Handle="edit" },
  93. new BoundFieldColumn { FieldName="Name", HeaderText="收费标准名称", Align=AlignStyle.Center, Width=0.1 },
  94. },
  95. IsCheckOnSelect = true,
  96. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectFeeListViewGrid"),
  97. ID = "dgChargeProjectList",
  98. IsPagination = true,
  99. IsShowRowNumbers = true,
  100. IsSingleSelect = false,
  101. IsPostBack=true
  102. })
  103. </div>
  104. </div>