List.cshtml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/ExaminationSubjects.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("~/ExaminationSubjects/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.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ExaminationFormDropdown", ID = "ExaminationFormDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectList" } })
  20. @*@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" } })*@
  21. </li>
  22. </ul>
  23. </div>
  24. </div>
  25. <div class="p_title">
  26. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  27. 考试科目列表</div>
  28. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  29. </div>
  30. </form>
  31. @Html.PositionBatchModify()
  32. <div class="search_list">
  33. @Html.DataGrid(new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectID"},
  38. new LinkButtonColumn { FieldName="Name", HeaderText="考试科目", Align=AlignStyle.Center , Handle="edit" },
  39. //new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.CHSOnlyYearMonthDay, Align=AlignStyle.Center },
  40. //new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试性质", Align=AlignStyle.Center },
  42. //new BoundFieldColumn { FieldName="ExaminationTypeID", HeaderText="考试类型", Align=AlignStyle.Center, IsHidden=true },
  43. //new BoundFieldColumn { FieldName="ExaminationFormID", HeaderText="考试类别", Align=AlignStyle.Center, IsHidden=true },
  44. //new BoundFieldColumn { FieldName="PeopleNumLimit", HeaderText="最大报名人数", Align=AlignStyle.Center },
  45. //new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="考试学年学期", Align=AlignStyle.Center }
  46. },
  47. IsCheckOnSelect = true,
  48. DataSourceUrl = Url.Content("~/ExaminationSubjects/List"),
  49. ID = "dgExaminationSubjectList",
  50. IsPagination = true,
  51. IsShowRowNumbers = true,
  52. IsSingleSelect = false
  53. })
  54. </div>
  55. </div>