Select.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopProject = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationProjectID",
  10. ID = "PreposeProjectID",
  11. Name = "PreposeProjectID",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center ,Width=0.4},
  17. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.2}
  18. },
  19. PageSize = 5,
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. },
  26. OnSelect = "reload",
  27. };
  28. ComboGridOptions cgopExamType = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationTypeID",
  32. ID = "ExaminationTypeID",
  33. Name = "ExaminationTypeID",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  39. },
  40. PageSize = 5,
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. },
  47. OnSelect = "reload"
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/ExamManage/Select.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. <div class="p_SearchTitle">
  58. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  59. 查询条件</div>
  60. </div>
  61. <form id="formQuery" method="post" action="@Url.Content("~/ChargeProject/ProjectExcel")">
  62. <div class="search_keyword">
  63. <div class="search_input">
  64. <ul>
  65. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  66. <li class="sv">
  67. @Html.TextBox(new TextBoxOptions { Name = "Name", ID = "Name" }, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;width: 110px;">发证机关:</li>
  70. <li class="sv">
  71. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_Issuer, new DropdownListOptions { ID = "IssuedByID", Name = "IssuedByID", OnSelect = "reload", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  72. </li>
  73. <li class="sv">
  74. <a class="easyui-linkbutton l-btn" onclick="reload()" href="#;" data-options="iconCls:'icon-search'">
  75. 查询
  76. </a>
  77. </li>
  78. </ul>
  79. <ul>
  80. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  81. <li class="sv">
  82. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;width: 110px; ">报考限定通过项目:</li>
  85. <li class="sv">
  86. @Html.ComboGrid(cgopProject, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  87. </li>
  88. <li class="sn" style="padding-left: 5px;">级别:</li>
  89. <li class="sv">
  90. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationLevel, new DropdownListOptions { ID = "ExaminationLevelID", Name = "ExaminationLevelID", Width=100, OnSelect = "reload", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  91. </li>
  92. </ul>
  93. </div>
  94. </div>
  95. </form>
  96. <div class="p_title">
  97. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  98. 考试项目信息列表</div>
  99. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Select")</div>
  100. </div>
  101. <div class="search_list">
  102. @Html.DataGrid(new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectID"},
  107. new LinkButtonColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width=0.06, Handle="edit" },
  108. new BoundFieldColumn { FieldName="ExaminationLevelText", HeaderText="级别", Align=AlignStyle.Center, Width=0.1},
  109. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center, Width=0.1 },
  110. new BoundFieldColumn { FieldName="IssuedByIDText", HeaderText="发证机关", Align=AlignStyle.Center, Width=0.1 },
  111. new TextBoxColumn { FieldName="Remark", HeaderText="需提交资料及注意事项", Align=AlignStyle.Center, Width=0.1 },
  112. },
  113. IsCheckOnSelect = true,
  114. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
  115. ID = "dgSelectList",
  116. IsPagination = true,
  117. IsShowRowNumbers = true,
  118. IsSingleSelect = false,
  119. IsPostBack = true
  120. })
  121. </div>
  122. </div>