List.cshtml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optClassroom = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "ClassroomID",
  9. OnSelect = "reload",
  10. Name = "cbgClassroom",
  11. ID = "cbgClassroom",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Classroom/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optBuilding = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "BuildingsInfoID",
  29. Name = "cbgBuilding",
  30. ID = "cbgBuilding",
  31. OnSelect = "queryClassroom",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Buildings/BuildingsList"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. ComboGridOptions optCourseTime = new ComboGridOptions
  46. {
  47. TextField = "time_starTime_endTime",
  48. ValueField = "CoursesTimeID",
  49. ID = "cbgCoursesTime",
  50. Name = "cbgCoursesTime",
  51. OnSelect = "reload",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. }
  64. };
  65. ComboGridOptions cgopcollge = new ComboGridOptions
  66. {
  67. TextField = "Name",
  68. ValueField = "CollegeID",
  69. Name = "CollegeComboGrid",
  70. OnSelect = "reload",
  71. GridOptions = new DataGridOptions
  72. {
  73. Columns = new List<DataGridColumn>()
  74. {
  75. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  77. },
  78. IsCheckOnSelect = true,
  79. DataSourceUrl = Url.Content("~/College/List"),
  80. IsPagination = true,
  81. IsShowRowNumbers = true,
  82. IsSingleSelect = false
  83. }
  84. };
  85. }
  86. @section scripts{
  87. <script src="~/Scripts/Business/SchedulingManage/ClassroomExcessiveUse/ClassroomExcessiveUse.js" type="text/javascript"></script>
  88. <script type="text/javascript">
  89. var nonSelect = "@DropdownList.SELECT_ALL";
  90. </script>
  91. }
  92. @Html.Position()
  93. <div class="p_SearchTitle">
  94. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  95. 查询条件</div>
  96. </div>
  97. <form id="formQuery" method="post" action="@Url.Content("~/ClassroomExcessiveUse/Excel")">
  98. @Html.PositionCondition()
  99. <div class="search_keyword">
  100. <div class="search_input">
  101. <ul>
  102. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  103. <li class="sv">
  104. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  105. </li>
  106. <li class="sn" style="padding-left: 5px;">周次:</li>
  107. <li class="sv">
  108. @Html.NumberRangeDropdownList(1, 21, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  109. </li>
  110. <li class="sn" style="padding-left: 5px;">星期:</li>
  111. <li class="sv">
  112. @Html.WeekdayDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekday", Name = "ddlWeekday", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">节次:</li>
  115. <li class="sv">
  116. @Html.ComboGrid(optCourseTime, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  117. </li>
  118. </ul>
  119. <ul>
  120. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  121. <li class="sv">
  122. @Html.ComboGrid(cgopcollge, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  123. </li>
  124. <li class="sn" style="padding-left: 5px;">所在建筑物:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(optBuilding, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  127. </li>
  128. <li class="sn" style="padding-left: 5px;">教室名称</li>
  129. <li class="sv">
  130. @Html.ComboGrid(optClassroom, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
  131. </li>
  132. </ul>
  133. </div>
  134. </div>
  135. </form>
  136. <div class="p_title">
  137. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  138. 课外教室使用登记列表</div>
  139. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  140. </div>
  141. <div class="search_list">
  142. @Html.DataGrid(new DataGridOptions
  143. {
  144. Columns = new List<DataGridColumn>()
  145. {
  146. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomExcessiveUseID" },
  147. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  148. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.06 },
  149. new BoundFieldColumn { FieldName="CollegeName", HeaderText= EMIS.Utility.RSL.Get("UsingCollege"), Align=AlignStyle.Center, Width=0.06 },
  150. new BoundFieldColumn { FieldName="UserName", HeaderText="使用人", Align=AlignStyle.Center, Width=0.05 },
  151. new BoundFieldColumn { FieldName="Content", HeaderText="活动内容", Align=AlignStyle.Center, Width=0.15 },
  152. new BoundFieldColumn { FieldName="SchedulingString", HeaderText="时间安排", Align=AlignStyle.Center, Width=0.15 },
  153. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=0.05 },
  154. new BoundFieldColumn { FieldName="CreateTimeStr", HeaderText="申请时间", Align=AlignStyle.Center, Width=0.15 }
  155. },
  156. IsCheckOnSelect = true,
  157. DataSourceUrl = Url.Content("~/ClassroomExcessiveUse/List"),
  158. ID = "dgClassroomExecessiveUse",
  159. IsPagination = true,
  160. IsShowRowNumbers = true,
  161. IsSingleSelect = false
  162. })
  163. </div>