List.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "reload",
  10. Name = "CollegeDropdown",
  11. ID = "CollegeDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions ddCollege = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. OnSelect = "reload",
  32. Name = "DDCollegeDropdown",
  33. ID = "DDCollegeDropdown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  40. },
  41. OnLoadSuccessFun = "reload",
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. ComboGridOptions teacher = new ComboGridOptions
  50. {
  51. TextField = "Name",
  52. ValueField = "UserID",
  53. OnSelect = "reload",
  54. ID = "StaffDropdown",
  55. Name = "StaffDropdown",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Staff/List"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsAutoLoad = true
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/SupervisionManage/SupervisionUserList.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: right; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件
  83. </div>
  84. </div>
  85. <form id="formQuery" method="post" action="@Url.Content("~/ProjectRecord/Excel")">
  86. @Html.PositionCondition()
  87. <div class="search_keyword">
  88. @Html.Hidden("SelectedID")
  89. <div class="search_input">
  90. <ul>
  91. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSupervisionUserList" } })
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. </form>
  99. <div class="p_title">
  100. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  101. 督导组成员列表
  102. </div>
  103. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  104. </div>
  105. @*@Html.PositionBatchModify()*@
  106. <div class="search_list">
  107. @Html.DataGrid(new DataGridOptions
  108. {
  109. Columns = new List<DataGridColumn>()
  110. {
  111. new CheckBoxFieldColumn{ HeaderText="", FieldName="SupervisionUserID" },
  112. new BoundFieldColumn { FieldName="LoginID", HeaderText="工号", Align=AlignStyle.Center,Width=0.05 },
  113. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05, },
  114. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center, Width=0.1, },
  115. },
  116. IsAutoLoad = false,
  117. IsCheckOnSelect = true,
  118. DataSourceUrl = Url.Content("~/SupervisionUser/List"),
  119. ID = "dgSupervisionUserList",
  120. IsPagination = true,
  121. IsShowRowNumbers = true,
  122. IsSingleSelect = false
  123. })
  124. </div>
  125. </div>