Edit.cshtml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. @model EMIS.ViewModel.RetakeManage.RetakePlanTaskSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isEdit = (Request["RetakePlanID"] ?? "") == "";
  7. //开课教研室
  8. ComboGridOptions cgopDepartment = new ComboGridOptions
  9. {
  10. ID = "DepartmentComboGrid",
  11. Name = "DepartmentComboGrid",
  12. TextField = "Name",
  13. ValueField = "DepartmentID",
  14. IsEnabled = isEdit,
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }
  20. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Department/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. //课程信息
  30. ComboGridOptions cgopCourse = new ComboGridOptions
  31. {
  32. ID = "CoursematerialComboGrid",
  33. Name = "CoursematerialComboGrid",
  34. TextField = "CourseName",
  35. ValueField = "CoursematerialID",
  36. IsEnabled = isEdit,
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. }
  50. };
  51. //授课方式
  52. ListControlOptions lcop = new ListControlOptions
  53. {
  54. ID = "TeachingModeID",
  55. Name = "TeachingModeID",
  56. TextField = "Name",
  57. ValueField = "Value",
  58. ColumnCount = 4,
  59. SelectedValueUrl = @Url.Content("~/RetakePlanTask/TeachingModeType?RetakePlanID=" + Model.RetakePlanID)
  60. };
  61. //授课地点
  62. ListControlOptions lcoptp = new ListControlOptions
  63. {
  64. ID = "TeachingPlaceID",
  65. Name = "TeachingPlaceID",
  66. TextField = "Name",
  67. ValueField = "Value",
  68. ColumnCount = 4,
  69. SelectedValueUrl = @Url.Content("~/RetakePlanTask/TeachingPlace?RetakePlanID=" + (Model == null ? Guid.Empty : Model.RetakePlanID).ToString())
  70. };
  71. //教室信息
  72. ComboGridOptions cgop = new ComboGridOptions
  73. {
  74. TextField = "Name",
  75. ValueField = "ClassroomID",
  76. ID = "ClassroomID",
  77. Name = "ClassroomID",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center, Width=0.1 },
  83. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.12 },
  84. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.12 },
  85. new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.1 },
  86. },
  87. IsCheckOnSelect = true,
  88. //DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
  89. DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
  90. //DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/GetCourseProcessClassroomList"),
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. }
  95. };
  96. }
  97. @section scripts{
  98. <script src="~/Scripts/Business/RetakeManage/General/RetakePlanResultTaskEdit.js" type="text/javascript">
  99. </script>
  100. <script type="text/javascript">
  101. var Status = "@EMIS.ViewModel.ER_RetakePlanStatus.Generated";
  102. var TeachingMethod = "@((int)EMIS.ViewModel.EM_TeachingMethod.Lecturer)";
  103. var classroomID = "";
  104. $(function () {
  105. //$("#Credit").val(parseFloat($("#Credit").val()).toFixed(1));
  106. $("#TheoryCourse").keyup(function () {
  107. recalculate();
  108. });
  109. $("#Practicehours").keyup(function () {
  110. recalculate();
  111. });
  112. $("#TheoryWeeklyNum").keyup(function () {
  113. recalculate();
  114. });
  115. $("#PracticeWeeklyNum").keyup(function () {
  116. recalculate();
  117. });
  118. $("#WeeklyHours").keyup(function () {
  119. recalculate();
  120. });
  121. $("#StartWeeklyNum").keyup(function () {
  122. setStartEndWeeklyNum();
  123. });
  124. $("#EndWeeklyNum").keyup(function () {
  125. setStartEndWeeklyNum();
  126. });
  127. });
  128. function recalculate() {
  129. var theoryCourse = parseInt($("#TheoryCourse").val() == "" ? "0" : $("#TheoryCourse").val());
  130. var practicehours = parseInt($("#Practicehours").val() == "" ? "0" : $("#Practicehours").val());
  131. var theoryWeeklyNum = parseInt($("#TheoryWeeklyNum").val() == "" ? "0" : $("#TheoryWeeklyNum").val());
  132. var practiceWeeklyNum = parseInt($("#PracticeWeeklyNum").val() == "" ? "0" : $("#PracticeWeeklyNum").val());
  133. var totalHours = theoryCourse + practicehours;
  134. var totalWeeklyNum = Math.ceil(theoryWeeklyNum + practiceWeeklyNum);
  135. var weeklyHours = Math.ceil(totalHours / totalWeeklyNum);
  136. var weeklyNum = weeklyHours / 2;
  137. $("#Totalhours").val(totalHours);
  138. if (isFinite(totalWeeklyNum))
  139. $("#SchoolweeksNum").val(totalWeeklyNum);
  140. if (isFinite(weeklyHours))
  141. $("#WeeklyHours").val(weeklyHours);
  142. if (isFinite(weeklyNum))
  143. $("#WeeklyNum").val(weeklyNum);
  144. }
  145. function setStartEndWeeklyNum() {
  146. if ($("#StartWeeklyNum").val() != "" && $("#EndWeeklyNum").val() != "")
  147. $("#StartEndWeeklyNum").val($("#StartWeeklyNum").val() + "-" + $("#EndWeeklyNum").val());
  148. }
  149. function selectCoursesTime() {
  150. trigger = $(this);
  151. var dataRowIndex = parseInt(trigger.parents('tr').attr('xRowIndex'));
  152. var dataRow = $("#dgSchedulingList").cmsXDataTable('getRows')[dataRowIndex];
  153. //var ddlClassroomType = trigger.parents('tr').find('[name*=ClassroomTypeID]');
  154. //var weekDay = trigger.parents('tr').find('[name*=Weekday]');
  155. $.popupTopWindow('添加节次', CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanTask/CoursesTimeList?' + '&FromMNU=' +
  156. mnu, 560, 480, CoursesTimeSelect_Close, null);
  157. }
  158. function CoursesTimeSelect_Close(coursesTimeList) {
  159. if (!coursesTimeList) return;
  160. if (coursesTimeList.length == 0) return;
  161. trigger.triggerbox("setValue", coursesTimeList);
  162. trigger = null;
  163. }
  164. ////暂时没用到,原来考虑到课室可能不同,现课室相同所以不需要用到
  165. //function selectClassroom() {
  166. // if ($("#StartEndWeeklyNum").val() == null || $("#StartEndWeeklyNum").val() == "") {
  167. // $.messager.alert('系统信息', '请先填写开始周次和结束周次。');
  168. // return;
  169. // }
  170. // trigger = $(this);
  171. // var dataRowIndex = parseInt(trigger.parents('tr').attr('xRowIndex'));
  172. // var dataRow = $("#dgSchedulingList").cmsXDataTable('getRows')[dataRowIndex];
  173. // var ddlClassroomType = trigger.parents('tr').find('[name*=ClassroomTypeID]');
  174. // var weekDay = dataRow.Weekday; //trigger.parents('tr').find('[name*=WeekDay]');
  175. // var coursesTimeID = dataRow.CoursesTimeID;
  176. // if (ddlClassroomType.val() != '-1') {
  177. // $.popupTopWindow('添加教室', CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanTask/CourseProcessClassroomList?MaxSelect=1&MinSeatCount='
  178. // + '&schedulingWeek=' + $("#StartEndWeeklyNum").val() + "&weekDay=" + weekDay + "&coursesTimeID="
  179. // + coursesTimeID + '&SchoolYearID=' + $("#SchoolyearID").val() + '&ClassroomTypeID=' + ddlClassroomType.val()
  180. // + '&FromMNU=' + mnu, 540, 480, ClassroomSelect_Close, null);
  181. // } else {
  182. // $.popupTopWindow('添加教室', CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanTask/CourseProcessClassroomList?MaxSelect=1&MinSeatCount='
  183. // + '&schedulingWeek=' + $("#StartEndWeeklyNum").val() + "&weekDay=" + weekDay + "&coursesTimeID="
  184. // + coursesTimeID + '&SchoolYearID=' + $("#SchoolyearID").val()
  185. // + '&FromMNU=' + mnu, 540, 480, ClassroomSelect_Close, null);
  186. // }
  187. //}
  188. //function ClassroomSelect_Close(classroomList) {
  189. // if (!classroomList) return;
  190. // if (classroomList.length == 0) return;
  191. // trigger.triggerbox("setValue", classroomList);
  192. // trigger = null;
  193. // classroomID = classroomList.ClassroomID;
  194. //}
  195. function RetakePlanResultTask_SchedulingAdd() {
  196. var schedulingViewList = $("#dgSchedulingList").cmsXDataTable("getRows");
  197. if (schedulingViewList.length == 0)
  198. schedulingViewList.push({ Weekday: "", CoursesTimeID: "", ClassroomID: classroomID });
  199. else
  200. schedulingViewList.push(schedulingViewList[0]);
  201. //schedulingViewList.push("");
  202. $("#dgSchedulingList").cmsXDataTable("loadData", { rows: schedulingViewList, total: schedulingViewList.length });
  203. }
  204. function RetakePlanResultTask_SchedulingDelete() {
  205. var d = [];
  206. $.each($("#dgSchedulingList").cmsXDataTable("getSelections"), function (index) {
  207. d.push(this);
  208. });
  209. var schedulingViewList = $("#dgSchedulingList").cmsXDataTable("getRows");
  210. var i, j;
  211. var len = schedulingViewList.length;
  212. for (i = len - 1; i >= 0; i--) {
  213. for (j = 0; j < d.length; j++) {
  214. //schedulingViewList.splice(i, 1);
  215. if (schedulingViewList[i].Weekday == d[j].Weekday && schedulingViewList[i].CoursesTimeID == d[j].CoursesTimeID && schedulingViewList[i].ClassroomID == d[j].ClassroomID) {
  216. schedulingViewList.splice(i, 1);
  217. break;
  218. }
  219. }
  220. }
  221. $("#dgSchedulingList").cmsXDataTable("loadData", { rows: schedulingViewList, total: schedulingViewList.length });
  222. }
  223. </script>
  224. }
  225. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  226. @using (Ajax.BeginForm(new AjaxOptions
  227. {
  228. //HttpMethod = "Post",
  229. OnSuccess = "VerifySave",
  230. OnBegin = "EMISFunction.FormSubmit",
  231. OnComplete = "EMISFunction.FormComplete"
  232. }))
  233. {
  234. <div class="p_title">
  235. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  236. 重修班级信息</div>*@
  237. @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null)
  238. {
  239. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  240. }
  241. </div>
  242. <div class="search_list">
  243. @Html.HiddenFor(x => x.RetakePlanID)
  244. @Html.HiddenFor(x => x.IsNeedVerify)
  245. <table cellpadding="0" cellspacing="0" id="RetakePlanTaskTable">
  246. <tr>
  247. <td>
  248. @Html.LabelFor(x => x.ClassName):
  249. </td>
  250. <td colspan="3">
  251. @Html.TextBoxFor(x => x.ClassName, new Dictionary<string, object> { { "style", "width:85%;" } })
  252. </td>
  253. </tr>
  254. <tr>
  255. <td>
  256. @Html.LabelFor(x => x.SchoolyearCode):
  257. </td>
  258. <td>
  259. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions
  260. {
  261. BindType = DropdownListBindType.PleaseSelect,
  262. TextField = "Text",
  263. ValueField = "Value",
  264. IsEnabled = isEdit,
  265. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  266. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  267. })
  268. </td>
  269. <td>
  270. @Html.LabelFor(x => x.RetakeTypeName):
  271. </td>
  272. <td>
  273. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_RetakeType, x => x.RetakeTypeID, new DropdownListOptions()
  274. {
  275. IsEnabled = isEdit
  276. })
  277. </td>
  278. </tr>
  279. <tr>
  280. <td>
  281. @Html.LabelFor(x => x.CourseName):
  282. </td>
  283. <td>
  284. @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  285. </td>
  286. <td>
  287. @Html.LabelFor(x => x.DepartmentName):
  288. </td>
  289. <td>
  290. @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  291. </td>
  292. </tr>
  293. <tr>
  294. <td>
  295. @Html.LabelFor(x => x.CourseTypeName):
  296. </td>
  297. <td>
  298. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions()
  299. {
  300. IsEnabled = isEdit
  301. })
  302. </td>
  303. <td>
  304. @Html.LabelFor(x => x.CourseStructureID):
  305. </td>
  306. <td>
  307. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
  308. </td>
  309. </tr>
  310. <tr>
  311. <td>
  312. @Html.LabelFor(x => x.CourseCategoryID):
  313. </td>
  314. <td>
  315. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
  316. </td>
  317. <td>
  318. @Html.LabelFor(x => x.CourseQualityID):
  319. </td>
  320. <td>
  321. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
  322. </td>
  323. </tr>
  324. <tr>
  325. <td>
  326. @Html.LabelFor(x => x.Credit):
  327. </td>
  328. <td>
  329. @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = isEdit })
  330. </td>
  331. <td>
  332. @Html.LabelFor(x => x.ExaminationModeID):
  333. </td>
  334. <td>
  335. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
  336. </td>
  337. </tr>
  338. <tr>
  339. <td>
  340. @Html.LabelFor(x => x.TheoryCourse):
  341. </td>
  342. <td>
  343. @Html.TextBoxFor(x => x.TheoryCourse, new { onchange = "recalculate();" })
  344. </td>
  345. <td>
  346. @Html.LabelFor(x => x.Practicehours):
  347. </td>
  348. <td>
  349. @Html.TextBoxFor(x => x.Practicehours, new { onchange = "recalculate();" })
  350. </td>
  351. </tr>
  352. <tr>
  353. <td>
  354. @Html.LabelFor(x => x.Trialhours):
  355. </td>
  356. <td>
  357. @Html.TextBoxFor(x => x.Trialhours, new { onchange = "recalculate();" })
  358. </td>
  359. <td style="color: red;">
  360. @Html.LabelFor(x => x.Totalhours):
  361. </td>
  362. <td>
  363. @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  364. </td>
  365. </tr>
  366. <tr>
  367. <td>
  368. @Html.LabelFor(x => x.PeopleNumlower):
  369. </td>
  370. <td>
  371. @Html.TextBoxFor(x => x.PeopleNumlower)
  372. </td>
  373. <td>
  374. @Html.LabelFor(x => x.PeopleNumlimit):
  375. </td>
  376. <td>
  377. @Html.TextBoxFor(x => x.PeopleNumlimit)
  378. </td>
  379. </tr>
  380. <tr>
  381. <td colspan="4">
  382. <div id="retakeExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  383. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  384. onclick="swapRetakeSettings();">
  385. </div>
  386. <div style="float: left; cursor: pointer; color: red;" onclick="swapRetakeSettings();">
  387. 设置信息
  388. </div>
  389. </td>
  390. </tr>
  391. <tr style="display: none;">
  392. <td>
  393. @Html.LabelFor(x => x.TeachinglanguageID):
  394. </td>
  395. <td>
  396. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
  397. </td>
  398. <td>
  399. @Html.LabelFor(x => x.IsNeedMaterial):
  400. </td>
  401. <td>
  402. @Html.CheckBoxFor(x => x.IsNeedMaterial)
  403. </td>
  404. </tr>
  405. <tr style="display: none;">
  406. <td>
  407. @Html.LabelFor(x => x.PracticeTypeID):
  408. </td>
  409. <td>
  410. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
  411. </td>
  412. <td>
  413. @Html.LabelFor(x => x.CourseFineID):
  414. </td>
  415. <td>
  416. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID)
  417. </td>
  418. </tr>
  419. <tr style="display: none;">
  420. <td>
  421. @Html.LabelFor(x => x.IsRequired):
  422. </td>
  423. <td>
  424. @Html.CheckBoxFor(x => x.IsRequired)
  425. </td>
  426. <td>
  427. @Html.LabelFor(x => x.IsSpecialtycore):
  428. </td>
  429. <td>
  430. @Html.CheckBoxFor(x => x.IsSpecialtycore)
  431. </td>
  432. </tr>
  433. <tr style="display: none;">
  434. <td>
  435. @Html.LabelFor(x => x.IsCooperation):
  436. </td>
  437. <td>
  438. @Html.CheckBoxFor(x => x.IsCooperation)
  439. </td>
  440. <td>
  441. @Html.LabelFor(x => x.IsElective):
  442. </td>
  443. <td>
  444. @Html.CheckBoxFor(x => x.IsElective)
  445. </td>
  446. </tr>
  447. <tr style="display: none; ">
  448. <td>
  449. @Html.LabelFor(x => x.IsNetworkCourse):
  450. </td>
  451. <td>
  452. @Html.CheckBoxFor(x => x.IsNetworkCourse)
  453. </td>
  454. <td>
  455. @Html.LabelFor(x => x.IsMainCourse):
  456. </td>
  457. <td>
  458. @Html.CheckBoxFor(x => x.IsMainCourse)
  459. </td>
  460. </tr>
  461. <tr>
  462. <td colspan="4">
  463. <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  464. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  465. onclick="swapWeekSettings();">
  466. </div>
  467. <div style="float: left; cursor: pointer; color: red;" onclick="swapWeekSettings();">
  468. 上课周次信息
  469. </div>
  470. </td>
  471. </tr>
  472. <tr style="display: ">
  473. <td>
  474. @Html.LabelFor(x => x.TheoryWeeklyNum):
  475. </td>
  476. <td>
  477. @Html.TextBoxFor(x => x.TheoryWeeklyNum)
  478. </td>
  479. <td>
  480. @Html.LabelFor(x => x.PracticeWeeklyNum):
  481. </td>
  482. <td>
  483. @Html.TextBoxFor(x => x.PracticeWeeklyNum)
  484. </td>
  485. </tr>
  486. <tr style="display: ">
  487. <td>
  488. @Html.LabelFor(x => x.TrialWeeklyNum):
  489. </td>
  490. <td>
  491. @Html.TextBoxFor(x => x.TrialWeeklyNum)
  492. </td>
  493. <td style="color: red;">
  494. @Html.LabelFor(x => x.SchoolweeksNum):
  495. </td>
  496. <td>
  497. @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  498. </td>
  499. </tr>
  500. <tr style="display: ">
  501. <td>
  502. @Html.LabelFor(x => x.StartWeeklyNum):
  503. </td>
  504. <td>
  505. @Html.TextBoxFor(x => x.StartWeeklyNum)
  506. </td>
  507. <td>
  508. @Html.LabelFor(x => x.EndWeeklyNum):
  509. </td>
  510. <td>
  511. @Html.TextBoxFor(x => x.EndWeeklyNum)
  512. </td>
  513. </tr>
  514. <tr style="display: ">
  515. <td>
  516. @Html.LabelFor(x => x.WeeklyHours):
  517. </td>
  518. <td>
  519. @Html.TextBoxFor(x => x.WeeklyHours)
  520. </td>
  521. <td>
  522. @Html.LabelFor(x => x.WeeklyNum):
  523. </td>
  524. <td>
  525. @Html.TextBoxFor(x => x.WeeklyNum)
  526. </td>
  527. </tr>
  528. <tr>
  529. <td style="color: red;">
  530. @Html.LabelFor(x => x.StartEndWeeklyNum):
  531. </td>
  532. <td>
  533. @Html.TextBoxFor(x => x.StartEndWeeklyNum, new TextBoxOptions { IsEnabled = false })
  534. </td>
  535. <td>
  536. @Html.LabelFor(x => x.ClassroomName):
  537. </td>
  538. <td>
  539. @Html.ComboGridFor(x => x.ClassroomID, cgop)
  540. </td>
  541. </tr>
  542. <tr>
  543. <td>
  544. @Html.LabelFor(x => x.Scheduling):
  545. </td>
  546. <td colspan="3">
  547. @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null)
  548. {
  549. @Html.ContextMenuBar("Edit-SchedulingGrid")
  550. }
  551. @Html.DataGrid(new DataGridOptions
  552. {
  553. Columns = new List<DataGridColumn>()
  554. {
  555. new CheckBoxFieldColumn { HeaderText="" ,FieldName="RetakePlanSettingScheduling" },
  556. new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay, Align=AlignStyle.Center, Width=80 },
  557. new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="selectCoursesTime", Align=AlignStyle.Center, Width=80 },
  558. //暂时没用到,原来考虑到课室可能不同,现课室相同所以不需要用到
  559. //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType, Align=AlignStyle.Center, Width=80 },
  560. //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom", Align=AlignStyle.Center, Width=80 }
  561. },
  562. PageSize = 5,
  563. IsPostBack = true,
  564. IsCheckOnSelect = true,
  565. DataSourceUrl = Url.Content("~/RetakePlanTask/GetSchedulingViewList?RetakePlanID=" + Model.RetakePlanID),
  566. ID = "dgSchedulingList",
  567. //OnLoadSuccessFun = "SetTotalView",
  568. IsPagination = true,
  569. IsShowRowNumbers = true,
  570. IsSingleSelect = false,
  571. MaxHeight = 120
  572. })
  573. </td>
  574. </tr>
  575. <tr>
  576. <td>
  577. @Html.LabelFor(x => x.Teachers):
  578. </td>
  579. <td colspan="3">
  580. @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null)
  581. {
  582. @Html.ContextMenuBar("Edit-TeacherGrid")
  583. }
  584. @Html.DataGrid(new DataGridOptions
  585. {
  586. Columns = new List<DataGridColumn>()
  587. {
  588. new CheckBoxFieldColumn { HeaderText="", FieldName="UserID" },
  589. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04 },
  590. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  591. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.04,
  592. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
  593. },
  594. PageSize = 3,
  595. IsCheckOnSelect = true,
  596. DataSourceUrl = Url.Content("~/RetakePlanTask/TeacherList?RetakePlanID=" + Request["RetakePlanID"]),
  597. IsPostBack = true,
  598. ID = "dgTeacherList",
  599. IsPagination = true,
  600. IsShowRowNumbers = true,
  601. IsSingleSelect = false,
  602. MaxHeight = 65
  603. })
  604. </td>
  605. </tr>
  606. @*<tr>
  607. <td>@Html.LabelFor(x => x.TeachingPlaceID):
  608. </td>
  609. <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
  610. </td>
  611. </tr>*@
  612. <tr>
  613. <td>
  614. @Html.LabelFor(x => x.TeachingModeID):
  615. </td>
  616. <td colspan="3">
  617. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  618. </td>
  619. </tr>
  620. <tr>
  621. <td>
  622. @Html.LabelFor(x => x.Remarks):
  623. </td>
  624. <td colspan="3">
  625. @Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width: 90%;min-height: 45px" } })
  626. </td>
  627. </tr>
  628. </table>
  629. </div>
  630. }
  631. </div>