EvaluationStudentSettingBatchAdd.cshtml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. @model EMIS.ViewModel.EvaluationManage.StudentEvaluation.EvaluationStudentSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "EvaluationStudentSettingBatchAdd";
  7. //校区
  8. ComboGridOptions cgopCampus = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CampusID",
  12. ID = "CampusDropdown",
  13. Name = "CampusDropdown",
  14. OnSelect = "queryCampus",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Campus/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //院系所
  30. ComboGridOptions cgopCollege = new ComboGridOptions
  31. {
  32. TextField = "Name",
  33. ValueField = "CollegeID",
  34. ID = "CollegeDropdown",
  35. Name = "CollegeDropdown",
  36. OnSelect = "queryCollege",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //教研室
  52. ComboGridOptions cgopDepartment = new ComboGridOptions
  53. {
  54. TextField = "Name",
  55. ValueField = "DepartmentID",
  56. ID = "DepartmentDropdown",
  57. Name = "DepartmentDropdown",
  58. OnSelect = "queryDepartment",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  64. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  65. },
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/Department/List"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. }
  72. };
  73. //年级
  74. ComboGridOptions cgopGrade = new ComboGridOptions
  75. {
  76. TextField = "GradeID",
  77. ValueField = "GradeID",
  78. ID = "DictionaryGrade",
  79. Name = "DictionaryGrade",
  80. OnSelect = "queryGrade",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false,
  92. }
  93. };
  94. //专业名称
  95. ComboGridOptions cgopStandard = new ComboGridOptions
  96. {
  97. TextField = "StandardName",
  98. ValueField = "StandardID",
  99. ID = "DictionaryStandard",
  100. Name = "DictionaryStandard",
  101. OnSelect = "queryStandard",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  107. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  108. },
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false,
  114. }
  115. };
  116. //课程信息
  117. ComboGridOptions cgopCourse = new ComboGridOptions
  118. {
  119. TextField = "CourseName",
  120. ValueField = "CoursematerialID",
  121. ID = "CourseComboGrid",
  122. Name = "CourseComboGrid",
  123. OnSelect = "reload",
  124. GridOptions = new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  129. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  130. },
  131. PageSize = 5,
  132. IsCheckOnSelect = true,
  133. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  134. IsPagination = true,
  135. IsShowRowNumbers = true,
  136. IsSingleSelect = false
  137. }
  138. };
  139. //教师信息
  140. ComboGridOptions cgopStaff = new ComboGridOptions
  141. {
  142. TextField = "Name",
  143. ValueField = "UserID",
  144. Name = "StaffComboGrid",
  145. ID = "StaffComboGrid",
  146. OnSelect = "reload",
  147. GridOptions = new DataGridOptions
  148. {
  149. Columns = new List<DataGridColumn>()
  150. {
  151. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.1 },
  152. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
  153. },
  154. IsCheckOnSelect = true,
  155. DataSourceUrl = Url.Content("~/Staff/List"),
  156. IsPagination = true,
  157. IsShowRowNumbers = true,
  158. IsSingleSelect = false
  159. }
  160. };
  161. }
  162. @section scripts{
  163. <script src="~/Scripts/Business/EvaluationManage/StudentEvaluation/EvaluationStudentSettingBatchAdd.js" type="text/javascript"></script>
  164. <script type="text/javascript">
  165. var nonSelect = "@DropdownList.SELECT_ALL";
  166. </script>
  167. }
  168. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  169. @using (Ajax.BeginForm(new AjaxOptions
  170. {
  171. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  172. OnSuccess = "formSuccessReloadNoClose",
  173. OnBegin = "EMISFunction.FormSubmit",
  174. OnComplete = "EMISFunction.FormComplete"
  175. }))
  176. {
  177. <div class="p_SearchTitle">
  178. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  179. </div>
  180. @Html.PositionCondition("EvaluationStudentSettingSelect")
  181. <div class="search_keyword">
  182. <div class="search_input">
  183. <ul>
  184. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  185. <li class="sv">
  186. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  187. </li>
  188. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  189. <li class="sv">
  190. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  191. </li>
  192. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  193. <li class="sv">
  194. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  195. </li>
  196. <li class="sn" style="padding-left: 5px;">年级:</li>
  197. <li class="sv">
  198. @*@Html.ComboGrid(cgopGrade, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })*@
  199. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  200. new ComboGridOptions
  201. {
  202. ID = "DictionaryGrade",
  203. Name = "DictionaryGrade",
  204. OnSelect = "queryGrade"
  205. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  206. </li>
  207. </ul>
  208. <ul>
  209. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  210. <li class="sv">
  211. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  212. </li>
  213. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  214. <li class="sv">
  215. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  216. </li>
  217. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  218. <li class="sv">
  219. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll,
  220. new ComboGridOptions
  221. {
  222. ID = "DictionaryCourseType",
  223. Name = "DictionaryCourseType",
  224. OnSelect = "reload"
  225. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  226. </li>
  227. <li class="sn" style="padding-left: 5px;">处理方式:</li>
  228. <li class="sv">
  229. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  230. new ComboGridOptions
  231. {
  232. ID = "DictionaryHandleMode",
  233. Name = "DictionaryHandleMode",
  234. OnSelect = "reload"
  235. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  236. </li>
  237. </ul>
  238. <ul>
  239. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  240. <li class="sv">
  241. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  242. new ComboGridOptions
  243. {
  244. ID = "DictionaryTeachingMode",
  245. Name = "DictionaryTeachingMode",
  246. OnSelect = "reload"
  247. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  248. </li>
  249. <li class="sn" style="padding-left: 5px;color:red;">任课教师:</li>
  250. <li class="sv">
  251. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  252. </li>
  253. <li class="sn" style="padding-left: 5px;">任课方式:</li>
  254. <li class="sv">
  255. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, DropdownListBindType.SelectAll,
  256. new ComboGridOptions
  257. {
  258. ID = "DictionaryTeachingMethod",
  259. Name = "DictionaryTeachingMethod",
  260. OnSelect = "reload"
  261. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  262. </li>
  263. <li class="sn" style="padding-left: 5px;color:red;">学年学期:</li>
  264. <li class="sv">
  265. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  266. {
  267. TextField = "Text",
  268. ValueField = "Value",
  269. BindType = DropdownListBindType.PleaseSelect,
  270. ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"),
  271. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  272. OnSelect = "reload"
  273. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassNoAddList" } })
  274. </li>
  275. </ul>
  276. </div>
  277. </div>
  278. <div class="p_title">
  279. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">教学任务信息列表</div>
  280. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  281. </div>
  282. <div class="search_list">
  283. @Html.Hidden("educationMissionClassViewList")
  284. <table cellpadding="0" cellspacing="0" id="evaluationstudentsettingbatchaddtable">
  285. <tr>
  286. <td>
  287. @Html.DataGrid(new DataGridOptions
  288. {
  289. Columns = new List<DataGridColumn>()
  290. {
  291. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" },
  292. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  293. //new BoundFieldColumn { FieldName="MissionName", HeaderText="任务名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  294. new BoundFieldColumn { FieldName="MissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.1 },
  295. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.08 },
  296. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  297. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.08 },
  298. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  299. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  300. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  301. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.05, OverflowLength=5 },
  302. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.05, OverflowLength=5 },
  303. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05, OverflowLength=5 },
  304. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.05, OverflowLength=5 },
  305. //new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  306. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.08 },
  307. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  308. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  309. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  310. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.04 },
  311. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  312. //new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.03 },
  313. new BoundFieldColumn { FieldName="TeachingMethodName", HeaderText="任课方式", Align=AlignStyle.Center, OrderFieldName="TeachingMethodID", Width=0.04 },
  314. new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  315. new BoundFieldColumn { FieldName="MissionClassStatusName", HeaderText="任务状态", Align=AlignStyle.Center, OrderFieldName="MissionClassStatus", Width=0.04, CustomFormatFun="SetRedColumn" }
  316. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  317. },
  318. IsPostBack = true,
  319. IsAutoLoad = true,
  320. IsCheckOnSelect = true,
  321. DataSourceUrl = Url.Content("~/EvaluationStudentSetting/EducationMissionClassNoAddList"),
  322. ID = "dgEducationMissionClassNoAddList",
  323. IsPagination = true,
  324. IsShowRowNumbers = true,
  325. IsSingleSelect = false
  326. })
  327. </td>
  328. </tr>
  329. </table>
  330. </div>
  331. }
  332. </div>