List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 cgop = new ComboGridOptions
  50. {
  51. TextField = "CourseName",
  52. ValueField = "CoursematerialID",
  53. OnSelect = "reload",
  54. Name = "CoursematerialComboGrid",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. ComboGridOptions time = new ComboGridOptions
  69. {
  70. TextField = "time_starTime_endTime",
  71. ValueField = "CoursesTimeID",
  72. OnSelect = "reload",
  73. Name = "TimeComboGrid",
  74. ID = "TimeComboGrid",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. }
  87. };
  88. ComboGridOptions classroom = new ComboGridOptions
  89. {
  90. TextField = "Name",
  91. ValueField = "ClassroomID",
  92. OnSelect = "reload",
  93. ID = "ClassroomDropdown",
  94. Name = "ClassroomDropdown",
  95. GridOptions = new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
  101. },
  102. IsCheckOnSelect = true,
  103. DataSourceUrl = Url.Content("~/Classroom/List"),
  104. IsPagination = true,
  105. IsShowRowNumbers = true,
  106. IsSingleSelect = false,
  107. IsAutoLoad = false,
  108. OnLoadSuccessFun = ""//QueryClassroomDropdownList
  109. }
  110. };
  111. ComboGridOptions teacher = new ComboGridOptions
  112. {
  113. TextField = "Name",
  114. ValueField = "UserID",
  115. OnSelect = "reload",
  116. ID = "StaffDropdown",
  117. Name = "StaffDropdown",
  118. GridOptions = new DataGridOptions
  119. {
  120. Columns = new List<DataGridColumn>()
  121. {
  122. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  123. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  124. },
  125. IsCheckOnSelect = true,
  126. DataSourceUrl = Url.Content("~/Staff/List"),
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false,
  130. IsAutoLoad = true
  131. }
  132. };
  133. }
  134. @section scripts{
  135. <script src="~/Scripts/Business/SupervisionManage/ProjectRecordList.js" type="text/javascript"></script>
  136. <script type="text/javascript">
  137. var nonSelect = "@DropdownList.SELECT_ALL";
  138. </script>
  139. }
  140. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  141. @Html.Position()
  142. <div class="p_SearchTitle">
  143. <div style="float: right; margin-left: 10px; font-size: 12px; line-height: 30px;">
  144. 查询条件
  145. </div>
  146. </div>
  147. <form id="formQuery" method="post" action="@Url.Content("~/ProjectRecord/Excel")">
  148. @Html.PositionCondition()
  149. <div class="search_keyword">
  150. @Html.Hidden("SelectedID")
  151. <div class="search_input">
  152. <ul>
  153. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  154. <li class="sv">
  155. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  160. </li>
  161. <li class="sn" style="padding-left: 5px;">督导院系:</li>
  162. <li class="sv">
  163. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), Name = "DDCollegeDropdown", ID = "DDCollegeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  164. </li>
  165. <li class="sn" style="padding-left: 5px;">督导类型:</li>
  166. <li class="sv">
  167. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.SUP_SupervisionType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "SupervisionType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  168. </li>
  169. </ul>
  170. <ul>
  171. <li class="sn" style="padding-left: 5px;">督导时间:</li>
  172. <li class="sv">
  173. @Html.TextBox(new TextBoxOptions { ID = "StartDate", Name = "StartDate", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  174. @Html.TextBox(new TextBoxOptions { ID = "EndDate", Name = "EndDate", TextBoxType = TextBoxType.Date, OnChange = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgProjectRecordList" } })
  175. </li>
  176. </ul>
  177. </div>
  178. </div>
  179. </form>
  180. <div class="p_title">
  181. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  182. 督导项目列表
  183. </div>
  184. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  185. </div>
  186. @*@Html.PositionBatchModify()*@
  187. <div class="search_list">
  188. @Html.DataGrid(new DataGridOptions
  189. {
  190. Columns = new List<DataGridColumn>()
  191. {
  192. new CheckBoxFieldColumn{ HeaderText="", FieldName="ProjectRecordID" },
  193. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.08, Handle="show" },
  194. new BoundFieldColumn { FieldName="SupervisionTypeDesc", HeaderText="督导类型", Align=AlignStyle.Center, Width=0.05, },
  195. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center, Width=0.08, },
  196. new BoundFieldColumn { FieldName="SupervisionCollegeName", HeaderText="督导院系", Align=AlignStyle.Center,Width=0.07, },
  197. new BoundFieldColumn { FieldName="SupervisionTarget", HeaderText="督导对象", Align=AlignStyle.Center,Width=0.08, },
  198. new BoundFieldColumn { FieldName="DateWeekTimeDesc", HeaderText="督导时间", Align=AlignStyle.Center,Width=0.06 },
  199. new BoundFieldColumn { FieldName="Location", HeaderText="督导地点", Align=AlignStyle.Center,Width=0.06 },
  200. new BoundFieldColumn { FieldName="staffListDesc", HeaderText="督导组成员", Align=AlignStyle.Center,Width=0.08, },
  201. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center,Width=0.08, },
  202. new BoundFieldColumn { FieldName="CreateTimeDesc", HeaderText="创建时间", Align=AlignStyle.Center,Width=0.06 },
  203. },
  204. IsAutoLoad = false,
  205. IsCheckOnSelect = true,
  206. DataSourceUrl = Url.Content("~/ProjectRecord/List"),
  207. ID = "dgProjectRecordList",
  208. IsPagination = true,
  209. IsShowRowNumbers = true,
  210. IsSingleSelect = false
  211. })
  212. </div>
  213. </div>