List.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/EducationManage/TrainingClass.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <form id="formQuery" method="post" action="@Url.Content("~/TrainingClass/Excel")">
  16. @Html.PositionCondition()
  17. @Html.Hidden("selectedIDs")
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions
  24. {
  25. BindType = DropdownListBindType.SelectAll,
  26. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  27. ID = "ddlSchoolyear",
  28. Name = "ddlSchoolyear",
  29. OnSelect = "schoolyearChange",
  30. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  31. OnLoadSuccess = "schoolyearChange"
  32. },
  33. new Dictionary<string, string> { { "data-condition", "dgTrainingClassList" } })
  34. </li>
  35. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  36. <li class="sv">
  37. @Html.DropdownList(new DropdownListOptions
  38. {
  39. BindType = DropdownListBindType.SelectAll,
  40. ID = "ddlExaminationBatch",
  41. Name = "ddlExaminationBatch",
  42. OnSelect = "examinationBatchChange",
  43. OnLoadSuccess = "examinationBatchChange"
  44. },
  45. new Dictionary<string, string> { { "data-condition", "dgTrainingClassList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  48. <li class="sv">
  49. @Html.DropdownList(new DropdownListOptions
  50. {
  51. BindType = DropdownListBindType.SelectAll,
  52. ID = "ddlExaminationType",
  53. Name = "ddlExaminationType",
  54. OnSelect = "examinationTypeChange",
  55. OnLoadSuccess = "examinationTypeChange"
  56. },
  57. new Dictionary<string, string> { { "data-condition", "dgTrainingClassList" } })
  58. </li>
  59. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  60. <li class="sv">
  61. @Html.DropdownList(new DropdownListOptions
  62. {
  63. BindType = DropdownListBindType.SelectAll,
  64. ID = "ddlExaminationProject",
  65. Name = "ddlExaminationProject",
  66. OnSelect = "reload",
  67. OnLoadSuccess = "reload"
  68. },
  69. new Dictionary<string, string> { { "data-condition", "dgTrainingClassList" } })
  70. </li>
  71. </ul>
  72. <ul>
  73. <li class="sn" style="padding-left: 5px;">校区:</li>
  74. <li class="sv">
  75. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions
  76. {
  77. BindType = DropdownListBindType.SelectAll,
  78. ID = "ddlSchoolArea",
  79. Name = "ddlSchoolArea",
  80. OnSelect = "reload"
  81. },
  82. new Dictionary<string, string> { { "data-condition", "dgTrainingClassList" } })
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. <div class="p_title">
  88. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  89. 培训班级列表
  90. </div>
  91. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  92. </div>
  93. </form>
  94. <div class="search_list">
  95. @Html.DataGrid(new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new CheckBoxFieldColumn{ HeaderText="", FieldName="TrainingClassID"},
  100. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  101. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center },
  102. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  103. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目名称", Align=AlignStyle.Center },
  104. new BoundFieldColumn { FieldName="Name", HeaderText="培训班名", Align=AlignStyle.Center },
  105. new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Handle="studentList" }
  106. },
  107. IsAutoLoad = false,
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/TrainingClass/List"),
  110. ID = "dgTrainingClassList",
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. })
  115. </div>
  116. </div>