List.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. Name = "CampusDropdown",
  11. ID = "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. Name = "CollegeDropdown",
  33. ID = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  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/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/UniversityManage/AdministrativeOrgan/Department.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. </script>
  55. }
  56. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  57. @Html.Position()
  58. <div class="p_SearchTitle">
  59. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  60. </div>
  61. <form id="formQuery" method="post" action="@Url.Content("~/Department/Excel")">
  62. @Html.PositionCondition()
  63. <div class="search_keyword">
  64. <div class="search_input">
  65. <ul>
  66. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  67. <li class="sv">
  68. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgDepartmentList" } })
  69. </li>
  70. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  71. <li class="sv">
  72. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgDepartmentList" } })
  73. </li>
  74. </ul>
  75. </div>
  76. </div>
  77. </form>
  78. <div class="p_title">
  79. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">教研室信息列表</div>
  80. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  81. </div>
  82. @Html.PositionBatchModify()
  83. <div class="search_list">
  84. @Html.DataGrid(new DataGridOptions
  85. {
  86. Columns = new List<DataGridColumn>()
  87. {
  88. new CheckBoxFieldColumn{ HeaderText="", FieldName="DepartmentID" },
  89. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  90. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.1 },
  91. new BoundFieldColumn { FieldName="SimpleName", HeaderText="教研室简称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  92. new BoundFieldColumn { FieldName="DirectorName", HeaderText="主任姓名", Align=AlignStyle.Center, Width=0.05 },
  93. new BoundFieldColumn { FieldName="DeputyDirectorName", HeaderText="副主任姓名", Align=AlignStyle.Center, Width=0.05 },
  94. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  95. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1, OverflowLength=8 },
  96. new LinkButtonColumn { FieldName="StaffCount", HeaderText="教师人数", Align=AlignStyle.Center , Handle="editStaffCount", Width=0.04 },
  97. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/Department/List"),
  101. ID = "dgDepartmentList",
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false
  105. })
  106. </div>
  107. </div>