List.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "reload",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/CollegePriority.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. var college = '@EMIS.Utility.RSL.Get("College")';
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_SearchTitle">
  60. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  61. 查询条件</div>
  62. </div>
  63. <form id="formQuery" method="post" action="@Url.Content("~/CollegePriority/Excel")">
  64. @Html.PositionCondition()
  65. <div class="search_keyword">
  66. <div class="search_input">
  67. <ul>
  68. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  69. <li class="sv">
  70. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("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;color:red;">日期范围:</li>
  77. <li class="sv">
  78. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtDateRange"}, new Dictionary<string, string> { { "data-condition", "dgCollegePriorityList" } })
  79. </li>
  80. @*<li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  81. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>*@
  82. </ul>
  83. </div>
  84. </div>
  85. </form>
  86. <div class="p_title">
  87. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  88. 院系控制列表</div>
  89. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  90. </div>
  91. @Html.PositionBatchModify()
  92. <div class="search_list">
  93. @Html.DataGrid(new DataGridOptions
  94. {
  95. Columns = new List<DataGridColumn>()
  96. {
  97. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegePriorityID" },
  98. new LinkButtonColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Handle="edit", Width=0.04 },
  99. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  100. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.04 },
  101. new BoundFieldColumn { FieldName="Priority", HeaderText="优先级", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  102. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 },
  103. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  104. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  105. new BoundFieldColumn { FieldName="OpenDays", HeaderText="开放天数", Align=AlignStyle.Center, OrderFieldName="", Width=0.04 },
  106. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.05 }
  107. },
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/CollegePriority/List"),
  110. ID = "dgCollegePriorityList",
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. })
  115. </div>
  116. </div>