List.cshtml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 = "Code",
  9. ValueField = "SchoolYearID",
  10. ID = "SchoolYearID",
  11. Name = "SchoolYearID",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
  17. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
  18. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
  19. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. },
  27. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  28. OnChange="reload",
  29. OnSelect = "reload",
  30. };
  31. }
  32. @section scripts{
  33. <script src="~/Scripts/Business/ExamManage/ExaminationBatchList.js" type="text/javascript"></script>
  34. <script type="text/javascript">
  35. var EMIS_CampusLabel = '@EMIS.Utility.RSL.Get("Campus")';
  36. </script>
  37. }
  38. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  39. @Html.Position()
  40. <div class="p_SearchTitle">
  41. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  42. 查询条件</div>
  43. </div>
  44. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationBatch/Excel")">
  45. @Html.Hidden("SelectedID")
  46. @Html.PositionCondition()
  47. <div class="search_keyword">
  48. <div class="search_input">
  49. <ul>
  50. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  51. <li class="sv">
  52. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgList" } })
  53. </li>
  54. <li class="sn" style="padding-left: 5px;">报名起始时间:</li>
  55. <li class="sv">
  56. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "StartDate", ID = "StartDate", OnSelect="reload"}, new Dictionary<string, string> { { "data-condition", "dgList" } })
  57. </li>
  58. <li class="sn" style="padding-left: 5px; width: 150px;">报名结束时间:</li>
  59. <li class="sv">
  60. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "EndDate", ID = "EndDate", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  61. </li>
  62. </ul>
  63. <ul>
  64. <li class="sn" style="padding-left: 5px;">备注:</li>
  65. <li class="sv">
  66. @Html.TextBox(new TextBoxOptions { Name = "Remark", ID = "Remark", }, new Dictionary<string, string> { { "data-condition", "dgList" }, { "onchange", "reload()" } })
  67. </li>
  68. </ul>
  69. </div>
  70. </div>
  71. </form>
  72. <div class="p_title">
  73. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  74. 考试批次设置信息列表</div>
  75. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  76. </div>
  77. <div class="search_list">
  78. @Html.DataGrid(new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectFeeID"},
  83. new LinkButtonColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06, Handle="edit" },
  84. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width=0.1},
  85. new BoundFieldColumn { FieldName="StartDate", HeaderText="报名起始时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  86. new BoundFieldColumn { FieldName="EndDate", HeaderText="报名结束时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  87. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.1 },
  88. },
  89. IsCheckOnSelect = true,
  90. DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  91. ID = "dgList",
  92. IsPagination = true,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false,
  95. IsPostBack = true
  96. })
  97. </div>
  98. </div>