List.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CampusID",
  9. OnSelect = "reload",
  10. Name = "CampusDropdown",
  11. ID = "CampusDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Campus/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. OnSelect = "reload",
  31. Name = "CollegeDropdown",
  32. ID = "CollegeDropdown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. }
  48. <script src="~/Scripts/Business/SchedulingManage/SchedulingApproval/CollegeSchedulingApproval.js"
  49. type="text/javascript"></script>
  50. <script type="text/javascript">
  51. var startStatus = @ViewBag.StartStatus;
  52. var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
  53. </script>
  54. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  55. @Html.Position()
  56. <div class="p_SearchTitle">
  57. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  58. 查询条件</div>
  59. </div>
  60. <form id="formQuery" method="post" action="@Url.Content("~/Classmajor/Excel")">
  61. <div class="search_keyword">
  62. <div class="search_input">
  63. <ul>
  64. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  65. <li class="sv">
  66. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, SelectedValue = @ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "reload", Name = "SchoolyearDropdownList", ID = "SchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  67. </li>
  68. @*<li class="sn" style="padding-left: 5px;">校区:</li>
  69. <li class="sv">
  70. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  71. </li>*@
  72. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  73. <li class="sv">
  74. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  75. </li>
  76. <li class="sn" style="padding-left: 5px;">状态:</li>
  77. <li class="sv">
  78. @Html.DropdownList(new DropdownListOptions { Name = "DictionaryApprovalStatus", ItemSourceUrl = Url.Content("~/CollegeScheduleApproval/GetStatusList"), TextField = "Text", ValueField = "Value", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  79. </li>
  80. </ul>
  81. </div>
  82. </div>
  83. </form>
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 院系课表审核列表</div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  88. </div>
  89. @Html.PositionBatchModify()
  90. <div class="search_list">
  91. @Html.DataGrid(new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeScheduleStatusID" },
  96. //new BoundFieldColumn { FieldName="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  97. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  98. //new BoundFieldColumn { FieldName="Priority", HeaderText="优先级", Align=AlignStyle.Center },
  99. //new BoundFieldColumn { FieldName="StartDate", HeaderText="开始日期", Formatter=Formatter.LongDate, Align=AlignStyle.Center },
  100. //new BoundFieldColumn { FieldName="EndDate", HeaderText="结束日期", Formatter=Formatter.LongDate, Align=AlignStyle.Center },
  101. new ApproveStatusColumn { FieldName="StatusName", TableName=typeof(EMIS.Entities.ES_CollegeScheduleStatus).Name, IDFieldName="CollegeScheduleStatusID",
  102. HeaderText="状态", Align=AlignStyle.Center },
  103. //new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center },
  104. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="操作人", Align=AlignStyle.Center },
  105. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="操作时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center },
  106. },
  107. PageSize = 30,
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/CollegeScheduleApproval/List"),
  110. ID = "dgCollegePriorityList",
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. })
  115. </div>
  116. </div>