List.cshtml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/ExaminationApply/ExaminationSubject.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationSubject/Excel")">
  13. @Html.PositionCondition()
  14. <div class="search_keyword">
  15. <div class="search_input">
  16. <ul>
  17. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  18. <li class="sv">
  19. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectList" } })
  20. </li>
  21. </ul>
  22. </div>
  23. </div>
  24. <div class="p_title">
  25. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  26. 考试科目列表</div>
  27. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  28. </div>
  29. </form>
  30. @Html.PositionBatchModify()
  31. <div class="search_list">
  32. @Html.DataGrid(new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectID"},
  37. new LinkButtonColumn { FieldName="Name", HeaderText="考试科目", Align=AlignStyle.Center , Handle="edit" },
  38. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.CHSOnlyYearMonthDay, Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="ExaminationTypeID", HeaderText="考试类型", Align=AlignStyle.Center, IsHidden=true },
  42. new BoundFieldColumn { FieldName="ExaminationFormID", HeaderText="考试类别", Align=AlignStyle.Center, IsHidden=true },
  43. //new BoundFieldColumn { FieldName="PeopleNumLimit", HeaderText="最大报名人数", Align=AlignStyle.Center },
  44. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="考试学年学期", Align=AlignStyle.Center }
  45. },
  46. IsCheckOnSelect = true,
  47. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  48. ID = "dgExaminationSubjectList",
  49. IsPagination = true,
  50. IsShowRowNumbers = true,
  51. IsSingleSelect = false
  52. })
  53. </div>
  54. </div>