List.cshtml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. }
  25. @section scripts{
  26. <script src="~/Scripts/Business/SupervisionManage/SupDocumentList.js" type="text/javascript"></script>
  27. <script type="text/javascript">
  28. var nonSelect = "@DropdownList.SELECT_ALL";
  29. </script>
  30. }
  31. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  32. @Html.Position()
  33. <div class="p_SearchTitle">
  34. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  35. 查询条件
  36. </div>
  37. </div>
  38. <form id="formQuery" method="post">
  39. @Html.PositionCondition()
  40. <div class="search_keyword">
  41. <div class="search_input">
  42. <ul>
  43. <li class="sn" style="padding-left: 5px;">文件类型:</li>
  44. <li class="sv">
  45. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.SUP_DocumentType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "DocumentType", ID = "DocumentType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSupDocumentList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">发布部门:</li>
  48. <li class="sv">
  49. @Html.ComboGrid(optCreateCollege, new Dictionary<string, string> { { "data-condition", "dgSupDocumentList" } })
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. <div class="p_title">
  55. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  56. 督导文件
  57. </div>
  58. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  59. </div>
  60. </form>
  61. <div class="search_list">
  62. @Html.DataGrid(new DataGridOptions
  63. {
  64. Columns = new List<DataGridColumn>()
  65. {
  66. new CheckBoxFieldColumn { FieldName="DocumentID", Align=AlignStyle.Center },
  67. new BoundFieldColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=250, },
  68. new BoundFieldColumn { FieldName="DocumentTypeDesc", HeaderText="文件类型", Align=AlignStyle.Center, Width=60 },
  69. new BoundFieldColumn { FieldName="CreateCollegeName", HeaderText="发布人部门", Align=AlignStyle.Center, Width=100 },
  70. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发布人", Align=AlignStyle.Center, Width=50 },
  71. new BoundFieldColumn { FieldName="CreateTime", HeaderText="发布时间", Align=AlignStyle.Center, Width=60, Formatter=Formatter.OnlyYearMonthDay },
  72. new LinkButtonColumn { FieldName="Download", HeaderText="操作", Align=AlignStyle.Center, Width=40, Handle="Download" },
  73. },
  74. IsCheckOnSelect = true,
  75. DataSourceUrl = Url.Content("~/SupDocument/List"),
  76. ID = "dgSupDocumentList",
  77. IsPagination = true,
  78. IsShowRowNumbers = true,
  79. IsSingleSelect = false
  80. })
  81. </div>
  82. </div>