Details.cshtml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. @model EMIS.ViewModel.SelectCourse.FreeSelectionCourseApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Details";
  6. ComboGridOptions cgopDepartment = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "DepartmentID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 }
  15. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }
  16. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.3 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Department/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions cgop = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "ClassroomID",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center, Width=0.1 },
  34. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.12 },
  35. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.12 },
  36. new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.1 },
  37. },
  38. IsCheckOnSelect = true,
  39. // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
  40. DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. ComboGridOptions cgopCoursesTime = new ComboGridOptions
  47. {
  48. TextField = "TimesSegmentName",
  49. ValueField = "CoursesTimeID",
  50. GridOptions = new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursesTimeID"},
  55. new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center, Width=0.02 },
  56. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width=0.04 },
  57. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", CustomFormatFun="formatStartTime", Align=AlignStyle.Center, Width=0.05 },
  58. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", CustomFormatFun="formatEndTime", Align=AlignStyle.Center, Width=0.05 }
  59. },
  60. IsCheckOnSelect = true,
  61. // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
  62. DataSourceUrl = Url.Content("~/CoursesTime/List"),//去除院系条件
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. ListControlOptions lcop = new ListControlOptions
  69. {
  70. Name = "TeachingModeID",
  71. TextField = "Name",
  72. ValueField = "Value",
  73. ColumnCount = 4,
  74. SelectedValueUrl = @Url.Content("~/FreeSelectionCourseApply/CourseApplyTeachingModeType?freeSelectionCourseID=" + Model.FreeSelectionCouseApplyID)
  75. };
  76. ListControlOptions lcopGrade = new ListControlOptions
  77. {
  78. Name = "GradeYear",
  79. TextField = "Name",
  80. ValueField = "Value",
  81. ColumnCount = 4,
  82. SelectedValueUrl = @Url.Content("~/FreeSelectionCourseApply/GradeYear?freeSelectionCourseApplyID=" + Model.FreeSelectionCouseApplyID)
  83. };
  84. }
  85. @section scripts{
  86. <script src="~/Scripts/Business/SelectCourseManage/FreeSelectionCourseApprove.js"
  87. type="text/javascript">
  88. </script>
  89. <script type="text/javascript">
  90. $(function () {
  91. $("#Credit").val(parseFloat($("#Credit").val()).toFixed(1));
  92. setStartEndWeeklyNum();
  93. });
  94. function setStartEndWeeklyNum() {
  95. if ($("#StartWeeklyNum").val() != "" && $("#EndWeeklyNum").val() != "")
  96. $("#StartEndWeeklyNum").val($("#StartWeeklyNum").val() + "-" + $("#EndWeeklyNum").val());
  97. }
  98. //function reload() { }
  99. </script>
  100. }
  101. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  102. @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", OnSuccess = "EMISFunction.FormSuccess" }))
  103. {
  104. <div class="p_title">
  105. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 开课审核信息</div>*@
  107. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;"></div>
  108. </div>
  109. <div class="search_list">
  110. @Html.HiddenFor(x => x.FreeSelectionCouseApplyID)
  111. <table cellpadding="0" cellspacing="0">
  112. <tr>
  113. <td>
  114. @Html.LabelFor(x => x.DefaultClassName):
  115. </td>
  116. <td colspan="3">
  117. @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary<string, object> { { "style", "width:85%;" } })
  118. </td>
  119. </tr>
  120. <tr>
  121. <td>
  122. @Html.LabelFor(x => x.SchoolyearCode):
  123. </td>
  124. <td>
  125. @Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
  126. </td>
  127. <td>
  128. @Html.LabelFor(x => x.CourseName):
  129. </td>
  130. <td>
  131. @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. @Html.LabelFor(x => x.CourseTypeID):
  137. </td>
  138. <td>
  139. @Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
  140. </td>
  141. <td>
  142. @Html.LabelFor(x => x.DepartmentName):
  143. </td>
  144. <td>
  145. @Html.TextBoxFor(x => x.DepartmentName, new TextBoxOptions { IsEnabled = false })
  146. </td>
  147. </tr>
  148. <tr>
  149. <td>
  150. @Html.LabelFor(x => x.CourseStructureID):
  151. </td>
  152. <td>
  153. @Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false })
  154. </td>
  155. <td>
  156. @Html.LabelFor(x => x.CourseCategoryID):
  157. </td>
  158. <td>
  159. @Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false })
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. @Html.LabelFor(x => x.CourseQualityID):
  165. </td>
  166. <td>
  167. @Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false })
  168. </td>
  169. <td>
  170. @Html.LabelFor(x => x.TeachinglanguageID):
  171. </td>
  172. <td>
  173. @Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
  174. </td>
  175. </tr>
  176. <tr>
  177. <td>
  178. @Html.LabelFor(x => x.ExaminationModeID):
  179. </td>
  180. <td>
  181. @Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
  182. </td>
  183. <td>@Html.LabelFor(x=>x.ResultTypeID)
  184. </td>
  185. <td>@Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false })
  186. </td>
  187. </tr>
  188. @*<tr>
  189. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  190. </td>
  191. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, null, new Dictionary<string, string> { { "disabled", "disabled" } })
  192. </td>
  193. <td>@Html.LabelFor(x => x.SchoolcodeID):
  194. </td>
  195. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, null, new Dictionary<string, string> { { "disabled", "disabled" } })
  196. </td>
  197. </tr>*@
  198. <tr>
  199. <td>
  200. @Html.LabelFor(x => x.PracticeTypeID):
  201. </td>
  202. <td>
  203. @Html.TextBoxFor(x => x.PracticeTypeName, new TextBoxOptions { IsEnabled = false })
  204. </td>
  205. <td>
  206. @Html.LabelFor(x => x.IsNeedMaterial):
  207. </td>
  208. <td>
  209. @Html.CheckBoxFor(x => x.IsNeedMaterial)
  210. </td>
  211. </tr>
  212. <tr>
  213. <td>
  214. @Html.LabelFor(x => x.HandleModeID):
  215. </td>
  216. <td>
  217. @Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false })
  218. </td>
  219. <td>
  220. @Html.LabelFor(x => x.PeopleNumlower):
  221. </td>
  222. <td>
  223. @Html.TextBoxFor(x => x.PeopleNumlower, new TextBoxOptions { IsEnabled = false })
  224. </td>
  225. </tr>
  226. <tr>
  227. <td>
  228. @Html.LabelFor(x => x.Credit):
  229. </td>
  230. <td>
  231. @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
  232. </td>
  233. <td>
  234. @Html.LabelFor(x => x.PeopleNumlimit):
  235. </td>
  236. <td>
  237. @Html.TextBoxFor(x => x.PeopleNumlimit, new TextBoxOptions { IsEnabled = false })
  238. </td>
  239. </tr>
  240. <tr>
  241. <td>
  242. @Html.LabelFor(x => x.TheoryCourse):
  243. </td>
  244. <td>
  245. @Html.TextBoxFor(x => x.TheoryCourse, new TextBoxOptions { IsEnabled = false })
  246. </td>
  247. <td>
  248. @Html.LabelFor(x => x.Practicehours):
  249. </td>
  250. <td>
  251. @Html.TextBoxFor(x => x.Practicehours, new TextBoxOptions { IsEnabled = false })
  252. </td>
  253. </tr>
  254. <tr>
  255. <td>
  256. @Html.LabelFor(x => x.Trialhours):
  257. </td>
  258. <td>
  259. @Html.TextBoxFor(x => x.Trialhours, new TextBoxOptions { IsEnabled = false })
  260. </td>
  261. <td>
  262. @Html.LabelFor(x => x.Totalhours):
  263. </td>
  264. <td>
  265. @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  266. </td>
  267. </tr>
  268. <tr>
  269. <td colspan="4">
  270. <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  271. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  272. onclick="swapWeekSettings();">
  273. </div>
  274. <div style="float: left; cursor: pointer; color: red;" onclick="swapWeekSettings();">
  275. 上课周次信息
  276. </div>
  277. </td>
  278. </tr>
  279. <tr style="display: ">
  280. <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
  281. </td>
  282. <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum, new TextBoxOptions { IsEnabled = false })
  283. </td>
  284. <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
  285. </td>
  286. <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum, new TextBoxOptions { IsEnabled = false })
  287. </td>
  288. </tr>
  289. <tr style="display: ">
  290. <td>@Html.LabelFor(x => x.TrialWeeklyNum):
  291. </td>
  292. <td>@Html.TextBoxFor(x => x.TrialWeeklyNum, new TextBoxOptions { IsEnabled = false })
  293. </td>
  294. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  295. </td>
  296. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  297. </td>
  298. </tr>
  299. <tr style="display: ">
  300. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  301. </td>
  302. <td>@Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions { IsEnabled = false })
  303. </td>
  304. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  305. </td>
  306. <td>@Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions { IsEnabled = false })
  307. </td>
  308. </tr>
  309. <tr style="display: ">
  310. <td>@Html.LabelFor(x => x.WeeklyHours):
  311. </td>
  312. <td>@Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions { IsEnabled = false })
  313. </td>
  314. <td>@Html.LabelFor(x => x.WeeklyNum):
  315. </td>
  316. <td>@Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions { IsEnabled = false })
  317. </td>
  318. </tr>
  319. @*<tr>
  320. <td>
  321. @Html.LabelFor(x => x.Weekday):
  322. </td>
  323. <td>
  324. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday))
  325. </td>
  326. <td>
  327. @Html.LabelFor(x => x.CoursesTimeID):
  328. </td>
  329. <td>
  330. @Html.ComboGridFor(x => x.CoursesTimeID, cgopCoursesTime)
  331. </td>
  332. </tr> *@
  333. <tr>
  334. <td>
  335. @Html.LabelFor(x => x.StartEndWeeklyNum):
  336. </td>
  337. <td>
  338. @Html.TextBoxFor(x => x.StartEndWeeklyNum, new TextBoxOptions { IsEnabled = false })
  339. </td>
  340. <td>
  341. @Html.LabelFor(x => x.ClassroomName):
  342. </td>
  343. <td>
  344. @Html.TextBoxFor(x => x.ClassroomName, new TextBoxOptions { IsEnabled = false })
  345. </td>
  346. </tr>
  347. <tr>
  348. <td>
  349. @Html.LabelFor(x => x.Scheduling):
  350. </td>
  351. <td colspan="3">
  352. @*@Html.ContextMenuBar("Edit-SchedulingGrid")*@
  353. @Html.DataGrid(new DataGridOptions
  354. {
  355. Columns = new List<DataGridColumn>()
  356. {
  357. new CheckBoxFieldColumn { FieldName="ExecutableFreeSelectionCouseSchedulingID" },
  358. new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay,Width=80 },
  359. new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="",Width=80 },
  360. //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType,Width=80 },
  361. //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom",Width=80 }
  362. },
  363. PageSize = 5,
  364. IsPostBack = true,
  365. IsCheckOnSelect = true,
  366. DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/GetSchedulingViewList?FreeSelectionCouseApplyID=" + Model.FreeSelectionCouseApplyID),
  367. ID = "dgSchedulingList",
  368. //OnLoadSuccessFun = "SetTotalView",
  369. IsPagination = true,
  370. IsShowRowNumbers = true,
  371. IsSingleSelect = false,
  372. MaxHeight = 110
  373. })
  374. </td>
  375. </tr>
  376. <tr>
  377. <td>
  378. @Html.LabelFor(x => x.GradeYear):
  379. </td>
  380. <td colspan="3">
  381. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, lcopGrade)
  382. </td>
  383. </tr>
  384. <tr>
  385. <td>
  386. @Html.LabelFor(x => x.SpecialtyID):
  387. </td>
  388. <td colspan="3">
  389. @*@Html.ContextMenuBar("Edit-SpecialtyGrid")*@
  390. @Html.DataGrid(new DataGridOptions
  391. {
  392. Columns = new List<DataGridColumn>()
  393. {
  394. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" },
  395. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.04 },
  396. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  397. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  398. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  399. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 }
  400. //new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, Width=0.04 },
  401. //new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, Width=0.04 },
  402. //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, Width=0.04 },
  403. //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="称号级别", Align=AlignStyle.Center, Width=0.04 }
  404. },
  405. PageSize =20,
  406. IsCheckOnSelect = true,
  407. DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/SpecialtyList?freeSelectionCourseApplyID=" + Request["FreeSelectionCourseApplyID"]),
  408. IsPostBack = true,
  409. ID = "dgSpecialtyList",
  410. IsPagination = true,
  411. IsShowRowNumbers = true,
  412. IsSingleSelect = false
  413. })
  414. </td>
  415. </tr>
  416. <tr>
  417. <td>@Html.LabelFor(x => x.Teachers):
  418. </td>
  419. <td colspan="3">
  420. @* @Html.ContextMenuBar("Edit-TeacherGrid")*@
  421. @Html.DataGrid(new DataGridOptions
  422. {
  423. Columns = new List<DataGridColumn>()
  424. {
  425. new CheckBoxFieldColumn { FieldName="UserID" },
  426. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04 },
  427. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  428. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.04,
  429. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
  430. },
  431. PageSize = 3,
  432. IsCheckOnSelect = true,
  433. DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/TeacherList?freeSelectionCourseApplyID=" + Request["FreeSelectionCourseApplyID"]),
  434. IsPostBack = true,
  435. ID = "dgTeacherList",
  436. IsPagination = true,
  437. IsShowRowNumbers = true,
  438. IsSingleSelect = false,
  439. MaxHeight = 65
  440. })
  441. </td>
  442. </tr>
  443. <tr>
  444. <td>
  445. @Html.LabelFor(x => x.TeachingModeID):
  446. </td>
  447. <td colspan="3">
  448. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  449. </td>
  450. </tr>
  451. <tr>
  452. <td>
  453. @Html.LabelFor(x => x.Remarks):
  454. </td>
  455. <td colspan="3">
  456. @Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:85%;" } })
  457. </td>
  458. </tr>
  459. </table>
  460. </div>
  461. }
  462. </div>