AdminList.cshtml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCreateCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "cgbCreateCollege",
  10. ID = "cgbCreateCollege",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/College/List"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false,
  22. }
  23. };
  24. ComboGridOptions optTargetCollege = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "CollegeID",
  28. Name = "cgbTargetCollege",
  29. ID = "cgbTargetCollege",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  35. },
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/College/List"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false,
  41. }
  42. };
  43. ComboGridOptions optRole = new ComboGridOptions
  44. {
  45. TextField = "RoleName",
  46. ValueField = "RoleID",
  47. Name = "cbgRole",
  48. ID = "cbgRole",
  49. GridOptions = new DataGridOptions
  50. {
  51. Columns = new List<DataGridColumn>()
  52. {
  53. new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center }
  54. },
  55. IsCheckOnSelect = true,
  56. DataSourceUrl = Url.Content("~/Role/List"),
  57. IsPagination = true,
  58. IsShowRowNumbers = true,
  59. IsSingleSelect = false,
  60. }
  61. };
  62. }
  63. @section scripts{
  64. <script src="~/Scripts/Business/DQPSystem/SOCDocAdminList.js" type="text/javascript"></script>
  65. <script type="text/javascript">
  66. var nonSelect = "@DropdownList.SELECT_ALL";
  67. </script>
  68. }
  69. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  70. @Html.Position()
  71. <div class="p_SearchTitle">
  72. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  73. 查询条件
  74. </div>
  75. </div>
  76. <form id="formQuery" method="post">
  77. @Html.PositionCondition()
  78. <div class="search_keyword">
  79. <div class="search_input">
  80. <ul>
  81. <li class="sn" style="padding-left: 5px;">文献类型:</li>
  82. <li class="sv">
  83. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.DQP_SOCDocType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlSOCDocType", ID = "ddlSOCDocType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCDocumentList" } })
  84. </li>
  85. <li class="sn" style="padding-left: 5px;">发布部门:</li>
  86. <li class="sv">
  87. @Html.ComboGrid(optCreateCollege, new Dictionary<string, string> { { "data-condition", "dgSOCDocumentList" } })
  88. </li>
  89. <li class="sn" style="padding-left: 5px;">面向对象:</li>
  90. <li class="sv">
  91. @Html.ComboGrid(optRole, new Dictionary<string, string> { { "data-condition", "dgSOCDocumentList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">面向部门:</li>
  94. <li class="sv">
  95. @Html.ComboGrid(optTargetCollege, new Dictionary<string, string> { { "data-condition", "dgSOCDocumentList" } })
  96. </li>
  97. </ul>
  98. </div>
  99. </div>
  100. <div class="p_title">
  101. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  102. 文献管理
  103. </div>
  104. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  105. </div>
  106. </form>
  107. <div class="search_list">
  108. @Html.DataGrid(new DataGridOptions
  109. {
  110. Columns = new List<DataGridColumn>()
  111. {
  112. new CheckBoxFieldColumn{ HeaderText="", FieldName="DocumentID" },
  113. new BoundFieldColumn { FieldName="SOCDocTypeDesc", HeaderText="文献类型", Align=AlignStyle.Center, Width=60 },
  114. new BoundFieldColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=250 },
  115. new BoundFieldColumn { FieldName="CreateCollegeName", HeaderText="部门", Align=AlignStyle.Center, Width=100 },
  116. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发布人", Align=AlignStyle.Center, Width=50 },
  117. new BoundFieldColumn { FieldName="CreateTime", HeaderText="发布时间", Align=AlignStyle.Center, Width=60, Formatter=Formatter.OnlyYearMonthDay },
  118. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否显示", Align=AlignStyle.Center, Width=40 },
  119. new BoundFieldColumn { FieldName="RoleName", HeaderText="面向对象", Align=AlignStyle.Center, Width=100 },
  120. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="面向部门", Align=AlignStyle.Center, Width=100 }
  121. },
  122. IsCheckOnSelect = true,
  123. DataSourceUrl = Url.Content("~/SOCDoc/AdminList"),
  124. ID = "dgSOCDocumentList",
  125. IsPagination = true,
  126. IsShowRowNumbers = true,
  127. IsSingleSelect = false
  128. })
  129. </div>
  130. </div>