List.cshtml 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. @section scripts{
  29. <script src="~/Scripts/Business/UniversityManage/AdministrativeOrgan/College.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
  33. </script>
  34. }
  35. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  36. @Html.Position()
  37. <div class="p_SearchTitle">
  38. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  39. </div>
  40. <form id="formQuery" method="post" action="@Url.Content("~/College/Excel")">
  41. @Html.PositionCondition()
  42. <div class="search_keyword">
  43. <div class="search_input">
  44. <ul>
  45. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  46. <li class="sv">
  47. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
  48. </li>
  49. <li class="sn" style="padding-left: 5px;color:red;">单位类别:</li>
  50. <li class="sv">
  51. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, DropdownListBindType.SelectAll,
  52. new ComboGridOptions
  53. {
  54. ID = "DictionaryUnitCategory",
  55. Name = "DictionaryUnitCategory",
  56. OnSelect = "reload"
  57. }, new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
  58. </li>
  59. </ul>
  60. </div>
  61. </div>
  62. </form>
  63. <div class="p_title">
  64. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">@EMIS.Utility.RSL.Get("College")信息列表</div>
  65. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  66. </div>
  67. @Html.PositionBatchModify()
  68. <div class="search_list">
  69. @Html.DataGrid(new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  74. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Handle="edit", Width=0.06 },
  75. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.12 },
  76. new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  77. new BoundFieldColumn { FieldName="PoliticalManagerName", HeaderText="党务负责人", Align=AlignStyle.Center, Width=0.05 },
  78. new BoundFieldColumn { FieldName="AdministrativeManagerName", HeaderText="行政负责人", Align=AlignStyle.Center, Width=0.05 },
  79. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.05 },
  80. //new BoundFieldColumn { FieldName="FoundDate", HeaderText="建立年月", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
  81. new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 },
  82. new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  83. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  84. new LinkButtonColumn { FieldName="DepartmentCount", HeaderText="教研室数", Align=AlignStyle.Center, Handle="editDepartmentCount", Width=0.04 },
  85. new LinkButtonColumn { FieldName="StaffCount", HeaderText="教师人数", Align=AlignStyle.Center, Handle="editStaffCount", Width=0.04 },
  86. new LinkButtonColumn { FieldName="FacultymajorCount", HeaderText="院系专业数", Align=AlignStyle.Center, Handle="editFacultymajorCount", Width=0.05 },
  87. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  88. },
  89. IsCheckOnSelect = true,
  90. DataSourceUrl = Url.Content("~/College/List"),
  91. ID = "dgCollegeList",
  92. IsPagination = true,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false
  95. })
  96. </div>
  97. </div>