List.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/CalendarManage/SchoolYear.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件</div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Content("~/SchoolYear/Excel")">
  17. @Html.PositionCondition()
  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.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "IsCurrentDropDown", OnSelect = "QueryIsCurrentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgSchoolYearList" } })
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. </form>
  29. <div class="p_title">
  30. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  31. 学年学期列表</div>
  32. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  33. </div>
  34. @Html.PositionBatchModify()
  35. <div class="search_list">
  36. @Html.DataGrid(new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="SchoolYearID"},
  41. new LinkButtonColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center , Handle="edit" , Width = 0.08},
  42. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center , Width = 0.03},
  43. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center , Width = 0.03},
  44. new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width = 0.03 },
  45. new BoundFieldColumn { FieldName="FirstWeek", HeaderText="首周周一日期",Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width = 0.06 },
  46. new BoundFieldColumn { FieldName="WeekDays", HeaderText="每周工作天数", Align=AlignStyle.Center, Width = 0.06 },
  47. new BoundFieldColumn { FieldName="Current", HeaderText="是否当前学期", Align=AlignStyle.Center, Width = 0.06 }
  48. },
  49. IsCheckOnSelect = true,
  50. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  51. ID = "dgSchoolYearList",
  52. IsPagination = true,
  53. IsShowRowNumbers = true,
  54. IsSingleSelect = false
  55. })
  56. </div>
  57. </div>