Approve.cshtml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. @model EMIS.ViewModel.CultureplanManage.PlanManagement.PlanApplicationView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Approve";
  6. var isEnabled = (Request["planApplicationID"] ?? "") == "";
  7. //年级专业
  8. ComboGridOptions cgopGrademajor = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "GrademajorID",
  12. OnSelect = "queryGrademajor",
  13. IsEnabled = isEnabled,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  20. },
  21. PageSize = 5,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Grademajor/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. //课程信息
  30. ComboGridOptions cgopCourse = new ComboGridOptions
  31. {
  32. ID = "CoursematerialID",
  33. TextField = "CourseName",
  34. ValueField = "CoursematerialID",
  35. IsEnabled = isEnabled,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  41. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 },
  42. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID),
  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. IsEnabled = isEnabled,
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 },
  63. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.2 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/Department/List"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false
  70. }
  71. };
  72. //授课方式
  73. ListControlOptions lcoptm = new ListControlOptions
  74. {
  75. ID = "TeachingModeIDList",
  76. Name = "TeachingModeIDList",
  77. TextField = "Name",
  78. ValueField = "Value",
  79. ColumnCount = 4,
  80. IsEnabled = isEnabled,
  81. SelectedValueUrl = @Url.Content("~/PlanApplicationApprove/TeachingModeTypeList?planApplicationID=" + Model.PlanApplicationID)
  82. };
  83. //授课地点
  84. ListControlOptions lcoptp = new ListControlOptions
  85. {
  86. ID = "TeachingPlaceIDList",
  87. Name = "TeachingPlaceIDList",
  88. TextField = "Name",
  89. ValueField = "Value",
  90. ColumnCount = 4,
  91. IsEnabled = isEnabled,
  92. SelectedValueUrl = @Url.Content("~/PlanApplicationApprove/TeachingPlaceList?planApplicationID=" + Model.PlanApplicationID)
  93. };
  94. var listAction = ViewBag.ListAction as List<DropdownListItem>;
  95. var defaultAction = listAction.FirstOrDefault(x => true);
  96. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  97. }
  98. @section scripts{
  99. <script src="~/Scripts/Business/CultureplanManage/PlanApplicationApproveSubmit.js" type="text/javascript"></script>
  100. <script type="text/javascript">
  101. var nonSelect = "@DropdownList.SELECT_ALL";
  102. </script>
  103. }
  104. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  105. @using (Ajax.BeginForm(new AjaxOptions
  106. {
  107. OnSuccess = "EMISFunction.FormSuccess",
  108. OnBegin = "EMISFunction.FormSubmit",
  109. OnComplete = "EMISFunction.FormComplete"
  110. }))
  111. {
  112. <div class="p_title">
  113. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  114. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Approve")</div>
  115. </div>
  116. <div class="search_list">
  117. @Html.HiddenFor(x => x.PlanApplicationID)
  118. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  119. <tr>
  120. <td style="color: red;">
  121. @Html.LabelFor(x => x.SchoolyearCode):
  122. </td>
  123. <td>
  124. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  125. {
  126. BindType = DropdownListBindType.PleaseSelect,
  127. TextField = "Text",
  128. ValueField = "Value",
  129. IsEnabled = isEnabled,
  130. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  131. })
  132. </td>
  133. <td style="color:red;">
  134. @Html.LabelFor(x => x.GrademajorName):
  135. </td>
  136. <td>
  137. @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
  138. </td>
  139. </tr>
  140. <tr>
  141. <td>
  142. @Html.LabelFor(x => x.GradeID):
  143. </td>
  144. <td>
  145. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), new DropdownListOptions() { IsEnabled = false })
  146. </td>
  147. <td>
  148. @Html.LabelFor(x => x.StandardCode):
  149. </td>
  150. <td>
  151. @Html.TextBoxFor(x => x.StandardCode, new TextBoxOptions() { IsEnabled=false })
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>
  156. @Html.LabelFor(x => x.StandardName):
  157. </td>
  158. <td>
  159. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), new DropdownListOptions() { IsEnabled = false })
  160. </td>
  161. <td>
  162. @Html.LabelFor(x => x.EducationID):
  163. </td>
  164. <td>
  165. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), new DropdownListOptions() { IsEnabled = false })
  166. </td>
  167. </tr>
  168. <tr>
  169. <td>
  170. @Html.LabelFor(x => x.LearningformID):
  171. </td>
  172. <td>
  173. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), new DropdownListOptions() { IsEnabled = false })
  174. </td>
  175. <td>
  176. @Html.LabelFor(x => x.LearnSystem):
  177. </td>
  178. <td>
  179. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  180. </td>
  181. </tr>
  182. <tr>
  183. <td style="color:red;">
  184. @Html.LabelFor(x => x.CourseName):
  185. </td>
  186. <td>
  187. @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  188. </td>
  189. <td style="color:red;">
  190. @Html.LabelFor(x => x.DepartmentName):
  191. </td>
  192. <td>
  193. @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  194. </td>
  195. </tr>
  196. <tr>
  197. <td>
  198. @Html.LabelFor(x => x.CourseStructureName):
  199. </td>
  200. <td>
  201. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID, new DropdownListOptions() { IsEnabled = isEnabled })
  202. </td>
  203. <td>
  204. @Html.LabelFor(x => x.CourseCategoryName):
  205. </td>
  206. <td>
  207. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID, new DropdownListOptions() { IsEnabled = isEnabled })
  208. </td>
  209. </tr>
  210. <tr>
  211. <td style="color:red;">
  212. @Html.LabelFor(x => x.CourseTypeName):
  213. </td>
  214. <td>
  215. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = isEnabled })
  216. </td>
  217. <td>
  218. @Html.LabelFor(x => x.CourseQualityName):
  219. </td>
  220. <td>
  221. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID, new DropdownListOptions() { IsEnabled = isEnabled })
  222. </td>
  223. </tr>
  224. <tr>
  225. <td colspan="4" style="padding:1px;height:10px;">
  226. <div id="teachingSettingExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  227. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  228. onclick="swapTeachingSetting();">
  229. </div>
  230. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapTeachingSetting();">
  231. 教学设置信息
  232. </div>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td style="color:red;">
  237. @Html.LabelFor(x => x.Credit):
  238. </td>
  239. <td>
  240. @Html.TextBoxFor(x => x.Credit, new TextBoxOptions() { IsEnabled = isEnabled })
  241. </td>
  242. <td style="color:red;">
  243. @Html.LabelFor(x => x.HandleModeName):
  244. </td>
  245. <td>
  246. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID), new DropdownListOptions() { IsEnabled = isEnabled })
  247. </td>
  248. </tr>
  249. <tr>
  250. <td>
  251. @Html.LabelFor(x => x.TheoryCourse):
  252. </td>
  253. <td>
  254. @Html.TextBoxFor(x => x.TheoryCourse, new TextBoxOptions() { IsEnabled = isEnabled })
  255. </td>
  256. <td>
  257. @Html.LabelFor(x => x.Practicehours):
  258. </td>
  259. <td>
  260. @Html.TextBoxFor(x => x.Practicehours, new TextBoxOptions() { IsEnabled = isEnabled })
  261. </td>
  262. </tr>
  263. <tr>
  264. <td>
  265. @Html.LabelFor(x => x.Trialhours):
  266. </td>
  267. <td>
  268. @Html.TextBoxFor(x => x.Trialhours, new TextBoxOptions() { IsEnabled = isEnabled })
  269. </td>
  270. <td>
  271. @Html.LabelFor(x => x.Totalhours):
  272. </td>
  273. <td>
  274. @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  275. </td>
  276. </tr>
  277. <tr>
  278. <td>
  279. @Html.LabelFor(x => x.TheoryWeeklyNum):
  280. </td>
  281. <td>
  282. @Html.TextBoxFor(x => x.TheoryWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  283. </td>
  284. <td>
  285. @Html.LabelFor(x => x.PracticeWeeklyNum):
  286. </td>
  287. <td>
  288. @Html.TextBoxFor(x => x.PracticeWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  289. </td>
  290. </tr>
  291. <tr>
  292. <td>
  293. @Html.LabelFor(x => x.TrialWeeklyNum):
  294. </td>
  295. <td>
  296. @Html.TextBoxFor(x => x.TrialWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  297. </td>
  298. <td>
  299. @Html.LabelFor(x => x.SchoolweeksNum):
  300. </td>
  301. <td>
  302. @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  303. </td>
  304. </tr>
  305. <tr>
  306. <td>
  307. @Html.LabelFor(x => x.WeeklyHours):
  308. </td>
  309. <td>
  310. @Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions() { IsEnabled = isEnabled })
  311. </td>
  312. <td>
  313. @Html.LabelFor(x => x.WeeklyNum):
  314. </td>
  315. <td>
  316. @Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  317. </td>
  318. </tr>
  319. <tr>
  320. <td>
  321. @Html.LabelFor(x => x.StartWeeklyNum):
  322. </td>
  323. <td>
  324. @Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  325. </td>
  326. <td>
  327. @Html.LabelFor(x => x.EndWeeklyNum):
  328. </td>
  329. <td>
  330. @Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
  331. </td>
  332. </tr>
  333. <tr>
  334. <td colspan="4" style="padding:1px;height:10px;">
  335. <div id="otherExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  336. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  337. onclick="swapother();">
  338. </div>
  339. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapother();">
  340. 其它信息
  341. </div>
  342. </td>
  343. </tr>
  344. <tr>
  345. <td>
  346. @Html.LabelFor(x => x.IsSpecialtycore):
  347. </td>
  348. <td>
  349. @Html.CheckBoxFor(x => x.IsSpecialtycore, new Dictionary<string, object>() { { "disabled", "false" } })
  350. </td>
  351. <td>
  352. @Html.LabelFor(x => x.IsCooperation):
  353. </td>
  354. <td>
  355. @Html.CheckBoxFor(x => x.IsCooperation, new Dictionary<string, object>() { { "disabled", "false" } })
  356. </td>
  357. </tr>
  358. <tr>
  359. <td>
  360. @Html.LabelFor(x => x.IsRequired):
  361. </td>
  362. <td>
  363. @Html.CheckBoxFor(x => x.IsRequired, new Dictionary<string, object>() { { "disabled", "false" } })
  364. </td>
  365. <td>
  366. @Html.LabelFor(x => x.IsElective):
  367. </td>
  368. <td>
  369. @Html.CheckBoxFor(x => x.IsElective, new Dictionary<string, object>() { { "disabled", "false" } })
  370. </td>
  371. </tr>
  372. <tr>
  373. <td>
  374. @Html.LabelFor(x => x.IsNetworkCourse):
  375. </td>
  376. <td>
  377. @Html.CheckBoxFor(x => x.IsNetworkCourse, new Dictionary<string, object>() { { "disabled", "false" } })
  378. </td>
  379. <td>
  380. @Html.LabelFor(x => x.IsMainCourse):
  381. </td>
  382. <td>
  383. @Html.CheckBoxFor(x => x.IsMainCourse, new Dictionary<string, object>() { { "disabled", "false" } })
  384. </td>
  385. </tr>
  386. <tr>
  387. <td>
  388. @Html.LabelFor(x => x.IsNeedMaterial):
  389. </td>
  390. <td>
  391. @Html.CheckBoxFor(x => x.IsNeedMaterial, new Dictionary<string, object>() { { "disabled", "false" } })
  392. </td>
  393. <td>
  394. @Html.LabelFor(x => x.CourseFineID):
  395. </td>
  396. <td>
  397. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID, new DropdownListOptions() { IsEnabled = isEnabled })
  398. </td>
  399. </tr>
  400. <tr>
  401. <td>
  402. @Html.LabelFor(x => x.PracticeTypeID):
  403. </td>
  404. <td>
  405. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID, new DropdownListOptions() { IsEnabled = isEnabled })
  406. </td>
  407. <td>
  408. @Html.LabelFor(x => x.TeachinglanguageID):
  409. </td>
  410. <td>
  411. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID, new DropdownListOptions() { IsEnabled = isEnabled })
  412. </td>
  413. </tr>
  414. <tr>
  415. <td>
  416. @Html.LabelFor(x => x.ExaminationModeID):
  417. </td>
  418. <td>
  419. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID, new DropdownListOptions() { IsEnabled = isEnabled })
  420. </td>
  421. <td>
  422. @Html.LabelFor(x=>x.ResultTypeID):
  423. </td>
  424. <td>
  425. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID), new DropdownListOptions() { IsEnabled = isEnabled })
  426. </td>
  427. </tr>
  428. <tr>
  429. <td>
  430. @Html.LabelFor(x => x.TeachingModeIDList):
  431. </td>
  432. <td colspan="3">
  433. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcoptm)
  434. </td>
  435. </tr>
  436. <tr>
  437. <td>
  438. @Html.LabelFor(x => x.TeachingPlaceIDList):
  439. </td>
  440. <td colspan="3">
  441. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
  442. </td>
  443. </tr>
  444. <tr>
  445. <td>
  446. @Html.LabelFor(x => x.Remark):
  447. </td>
  448. <td colspan="3">
  449. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  450. {
  451. { "style", "width: 90%;min-height: 18px" },
  452. { "disabled", "true" }
  453. })
  454. </td>
  455. </tr>
  456. <tr>
  457. <td style="color: red;">
  458. @Html.LabelFor(x => x.Action):
  459. </td>
  460. <td colspan="3">
  461. @Html.DropdownList(new DropdownListOptions
  462. {
  463. BindType = DropdownListBindType.None,
  464. ID = "ddlAction",
  465. Name = "ddlAction",
  466. ItemList = listAction,
  467. SelectedValue = defaultActionValue
  468. })
  469. </td>
  470. </tr>
  471. <tr>
  472. <td>
  473. @Html.LabelFor(x => x.Comment):
  474. </td>
  475. <td colspan="3">
  476. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  477. {
  478. { "style", "width: 90%;min-height: 30px" }
  479. })
  480. </td>
  481. </tr>
  482. </table>
  483. </div>
  484. }
  485. </div>