UserList.cshtml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/DQPSystem/SOCDocUserList.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.DQP_SOCDocType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlSOCDocType", ID = "ddlSOCDocType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCDocumentList" } })
  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", "dgSOCDocumentList" } })
  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>
  59. </form>
  60. <div class="search_list">
  61. @Html.DataGrid(new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new BoundFieldColumn { FieldName="SOCDocTypeDesc", HeaderText="文献类型", Align=AlignStyle.Center, Width=60 },
  66. new LinkButtonColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=250, Handle="SOCDoc_View" },
  67. new BoundFieldColumn { FieldName="CreateCollegeName", HeaderText="部门", Align=AlignStyle.Center, Width=100 },
  68. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发布人", Align=AlignStyle.Center, Width=50 },
  69. new BoundFieldColumn { FieldName="CreateTime", HeaderText="发布时间", Align=AlignStyle.Center, Width=60, Formatter=Formatter.OnlyYearMonthDay }
  70. },
  71. IsCheckOnSelect = true,
  72. DataSourceUrl = Url.Content("~/SOCDoc/UserList"),
  73. ID = "dgSOCDocumentList",
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false
  77. })
  78. </div>
  79. </div>