List.cshtml 5.5 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 = "QueryCampusComboGridList",
  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/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;">
  39. 查询条件
  40. </div>
  41. </div>
  42. <form id="formQuery" method="post" action="@Url.Content("~/College/Excel")">
  43. @Html.PositionCondition()
  44. <div class="search_keyword">
  45. <div class="search_input">
  46. <ul>
  47. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  48. <li class="sv">
  49. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, DropdownListBindType.SelectAll,
  50. new ComboGridOptions
  51. {
  52. ID = "CampusDropdown",
  53. Name = "CampusDropdown",
  54. OnSelect = "reload"
  55. },
  56. new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
  57. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
  58. </li>*@
  59. <li class="sn" style="padding-left: 5px;color:red;">单位类别:</li>
  60. <li class="sv">
  61. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, DropdownListBindType.SelectAll,
  62. new ComboGridOptions
  63. {
  64. ID = "DictionaryUnitCategory",
  65. Name = "DictionaryUnitCategory",
  66. OnSelect = "reload"
  67. },
  68. new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. </form>
  74. <div class="p_title">
  75. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  76. @EMIS.Utility.RSL.Get("College")信息列表
  77. </div>
  78. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  79. </div>
  80. @Html.PositionBatchModify()
  81. <div class="search_list">
  82. @Html.DataGrid(new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  87. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center , Handle="edit", Width=0.06 },
  88. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.12 },
  89. new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.08, OverflowLength=6 },
  90. new BoundFieldColumn { FieldName="PoliticalManagerName", HeaderText="党务负责人", Align=AlignStyle.Center, Width=0.05 },
  91. new BoundFieldColumn { FieldName="AdministrativeManagerName", HeaderText="行政负责人", Align=AlignStyle.Center, Width=0.05 },
  92. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, Width=0.05 },
  93. new BoundFieldColumn { FieldName="FoundDate", HeaderText="建立年月", Align=AlignStyle.Center, Width=0.08, Formatter = Formatter.OnlyYearMonthDay },
  94. new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 },
  95. new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  96. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.08 },
  97. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/College/List"),
  101. ID = "dgCollegeList",
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false
  105. })
  106. </div>
  107. </div>