List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. OnSelect = "reload",
  10. Name = "CoursematerialComboGrid",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false,
  22. }
  23. };
  24. ComboGridOptions time = new ComboGridOptions
  25. {
  26. TextField = "time_starTime_endTime",
  27. ValueField = "CoursesTimeID",
  28. OnSelect = "reload",
  29. Name = "TimeComboGrid",
  30. ID = "TimeComboGrid",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false
  42. }
  43. };
  44. ComboGridOptions classroom = new ComboGridOptions
  45. {
  46. TextField = "Name",
  47. ValueField = "ClassroomID",
  48. OnSelect = "reload",
  49. ID = "ClassroomDropdown",
  50. Name = "ClassroomDropdown",
  51. GridOptions = new DataGridOptions
  52. {
  53. Columns = new List<DataGridColumn>()
  54. {
  55. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  56. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/Classroom/List"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false,
  63. IsAutoLoad = false,
  64. OnLoadSuccessFun = ""//QueryClassroomDropdownList
  65. }
  66. };
  67. ComboGridOptions teacher = new ComboGridOptions
  68. {
  69. TextField = "Name",
  70. ValueField = "UserID",
  71. OnSelect = "reload",
  72. ID = "StaffDropdown",
  73. Name = "StaffDropdown",
  74. GridOptions = new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Staff/List"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false,
  86. IsAutoLoad = true
  87. }
  88. };
  89. }
  90. @section scripts{
  91. <script src="~/Scripts/Business/EducationManage/EducationMissionClassCheck.js" type="text/javascript"></script>
  92. <script type="text/javascript">
  93. var nonSelect = "@DropdownList.SELECT_ALL";
  94. </script>
  95. }
  96. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  97. @Html.Position()
  98. <div class="p_SearchTitle">
  99. <div style="float: right; margin-left: 10px; font-size: 12px; line-height: 30px;">
  100. 查询条件
  101. </div>
  102. </div>
  103. <form id="formQuery" method="post" action="@Url.Content("~/EducationMissionClassCheck/Excel")">
  104. @Html.PositionCondition()
  105. <div class="search_keyword">
  106. <div class="search_input">
  107. <ul>
  108. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  109. <li class="sv">
  110. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = @ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">周次:</li>
  113. <li class="sv">
  114. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">星期:</li>
  117. <li class="sv">
  118. @Html.WeekdayDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "WeekDay", Name = "WeekDay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  119. @*@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })*@
  120. </li>
  121. <li class="sn" style="padding-left: 5px;">节次:</li>
  122. <li class="sv">
  123. @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  124. </li>
  125. </ul>
  126. <ul>
  127. <li class="sn" style="padding-left: 5px;">教室:</li>
  128. <li class="sv">
  129. @Html.ComboGrid(classroom, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  132. <li class="sv">
  133. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">授课老师:</li>
  136. <li class="sv">
  137. @Html.ComboGrid(teacher, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  138. </li>
  139. <li class="sn" style="padding-left: 5px;">处理意见:</li>
  140. <li class="sv">
  141. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckOpinion, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "Opinion", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  142. </li>
  143. </ul>
  144. <ul>
  145. <li class="sn" style="padding-left: 5px;">检查方式:</li>
  146. <li class="sv">
  147. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckWay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "CheckWay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassCheckList" } })
  148. </li>
  149. <li style="display:none" class="sv" >
  150. <input id="EducationMissionClassCheckID" name="EducationMissionClassCheckID" type="text" value="" />
  151. </li>
  152. </ul>
  153. </div>
  154. </div>
  155. </form>
  156. <div class="p_title">
  157. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  158. 教学检查列表
  159. </div>
  160. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  161. </div>
  162. @Html.PositionBatchModify()
  163. <div class="search_list">
  164. @Html.DataGrid(new DataGridOptions
  165. {
  166. Columns = new List<DataGridColumn>()
  167. {
  168. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassCheckID" },
  169. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.08 },
  170. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.16, OverflowLength = 20 },
  171. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength = 12 },
  172. new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师", Align=AlignStyle.Center,Width=0.07, OverflowLength = 9 },
  173. new BoundFieldColumn { FieldName="WeekNum", HeaderText="周次", Align=AlignStyle.Center,Width=0.02 },
  174. new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center,Width=0.04 },
  175. new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center,Width=0.02 },
  176. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center,Width=0.06 },
  177. new BoundFieldColumn { FieldName="StudentComment", HeaderText="学生情况", Align=AlignStyle.Center,Width=0.08, OverflowLength = 10 },
  178. new BoundFieldColumn { FieldName="TeacherComment", HeaderText="教师情况", Align=AlignStyle.Center,Width=0.08, OverflowLength = 10 },
  179. new BoundFieldColumn { FieldName="DeviceComment", HeaderText="设备及其他情况", Align=AlignStyle.Center,Width=0.08, OverflowLength = 10 },
  180. new BoundFieldColumn { FieldName="CheckWayName", HeaderText="检查方式", Align=AlignStyle.Center,Width=0.04 },
  181. new BoundFieldColumn { FieldName="CheckPersonName", HeaderText="检查人员", Align=AlignStyle.Center,Width=0.07, OverflowLength = 9 },
  182. },
  183. IsAutoLoad = false,
  184. IsCheckOnSelect = true,
  185. DataSourceUrl = Url.Content("~/EducationMissionClassCheck/List"),
  186. ID = "dgEducationMissionClassCheckList",
  187. IsPagination = true,
  188. IsShowRowNumbers = true,
  189. IsSingleSelect = false
  190. })
  191. </div>
  192. </div>