Edit.cshtml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. bool IsEnabled = true;
  7. if (Request["type"] != "add")
  8. {
  9. IsEnabled = false;
  10. }
  11. ComboGridOptions cgop = new ComboGridOptions
  12. {
  13. TextField = "StandardName",
  14. ValueField = "StandardID",
  15. OnSelect = "queryClass",
  16. IsEnabled = IsEnabled,
  17. GridOptions = new DataGridOptions
  18. {
  19. Columns = new List<DataGridColumn>()
  20. {
  21. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  22. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 },
  23. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  24. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.2 },
  25. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.2 }
  26. },
  27. IsCheckOnSelect = true,
  28. DataSourceUrl = Url.Content("~/Specialty/List"),
  29. IsPagination = true,
  30. IsShowRowNumbers = true,
  31. IsSingleSelect = false
  32. }
  33. };
  34. ComboGridOptions cgopGrademajor = new ComboGridOptions
  35. {
  36. TextField = "Name",
  37. ValueField = "GrademajorID",
  38. IsEnabled = IsEnabled,
  39. GridOptions = new DataGridOptions
  40. {
  41. Columns = new List<DataGridColumn>()
  42. {
  43. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center },
  44. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.2, Align=AlignStyle.Center },
  45. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Width=0.08, Align=AlignStyle.Center },
  46. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center },
  47. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.2, Align=AlignStyle.Center }
  48. },
  49. IsCheckOnSelect = true,
  50. DataSourceUrl = Url.Content("~/Grademajor/List"),
  51. IsPagination = true,
  52. IsShowRowNumbers = true,
  53. IsSingleSelect = false
  54. }
  55. };
  56. ComboGridOptions cgopClassmajor = new ComboGridOptions
  57. {
  58. TextField = "Name",
  59. ValueField = "ClassmajorID",
  60. OnSelect = "QueryClassmajor",
  61. GridOptions = new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.1, Align=AlignStyle.Center }
  66. },
  67. //OnLoadSuccessFun="QueryClassmajor",
  68. IsCheckOnSelect = true,
  69. DataSourceUrl = Url.Content("~/OptionalCourseSetting/Class?GrademajorID=" + Model.GrademajorID),
  70. IsPagination = true,
  71. IsShowRowNumbers = true,
  72. IsSingleSelect = false
  73. }
  74. };
  75. ComboGridOptions cgopCourse = new ComboGridOptions
  76. {
  77. TextField = "CourseName",
  78. ValueField = "CoursematerialID",
  79. OnSelect = "CoursematerialSelect",
  80. IsEnabled = IsEnabled,
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  86. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/OptionalCoursePlan/List"),
  90. IsPagination = true,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. }
  94. };
  95. ComboGridOptions cgopDepartment = new ComboGridOptions
  96. {
  97. TextField = "Name",
  98. ValueField = "DepartmentID",
  99. GridOptions = new DataGridOptions
  100. {
  101. Columns = new List<DataGridColumn>()
  102. {
  103. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 }
  104. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }
  105. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.3 }
  106. },
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/Department/List"),
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false
  112. }
  113. };
  114. ListControlOptions lcop = new ListControlOptions
  115. {
  116. Name = "TeachingModeID",
  117. TextField = "Name",
  118. ValueField = "Value",
  119. ColumnCount = 4,
  120. SelectedValueUrl = @Url.Content("~/OptionalCourseSetting/TeachingModeType?ExecutableOptionalCourseID=" + Model.ExecutableOptionalCourseID)
  121. };
  122. ListControlOptions lcoptp = new ListControlOptions
  123. {
  124. Name = "TeachingPlaceID",
  125. TextField = "Name",
  126. ValueField = "Value",
  127. ColumnCount = 4,
  128. SelectedValueUrl = @Url.Content("~/SpecialtyCourse/TeachingPlace?specialtyCourseID=" + Model.SpecialtyCourseID)
  129. };
  130. }
  131. @section scripts{
  132. <script src="~/Scripts/Business/SelectCourseManage/OptionalCourseSettingEdit.js" type="text/javascript"></script>
  133. <script type="text/javascript">
  134. var NotOpenStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.NotOpen";
  135. var CreatedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Created";
  136. var OpenedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Opened";
  137. var nonSelect = "@DropdownList.SELECT_ALL";
  138. function OptionalCourseSetting_Save() {
  139. var teacherViewList = $("#dgTeacherList").cmsXDataTable("getRows");
  140. for (var i = 0; i < teacherViewList.length; i++) {
  141. if (teacherViewList[i].TeachingMethod == null || teacherViewList[i].TeachingMethod == -1) {
  142. $.messager.alert('系统信息', "请选择授课老师的任课方式!");
  143. return;
  144. }
  145. }
  146. var classViewList = $("#dgClassList").cmsXDataTable("getRows");
  147. if (classViewList.length <= 0) {
  148. $.messager.alert('系统信息', "请在开放范围选择班级!");
  149. return;
  150. }
  151. if (parseInt($("#PeopleNumlower").val()) > parseInt($("#PeopleNumlimit").val())) {
  152. $.messager.alert("系统信息", "人数上限不能小于下限。");
  153. return;
  154. }
  155. if (!isNaN($("#Trialhours").val()) && $("#Trialhours").val() != ""
  156. && !isNaN($("#Practicehours").val()) && $("#Practicehours").val() != ""
  157. && parseFloat($("#Trialhours").val()) > parseFloat($("#Practicehours").val())) {
  158. $.messager.alert("系统提示", "实验学时不能大于实践学时。");
  159. return;
  160. }
  161. if (!isNaN($("#TrialWeeklyNum").val()) && $("#TrialWeeklyNum").val() != ""
  162. && !isNaN($("#PracticeWeeklyNum").val()) && $("#PracticeWeeklyNum").val() != ""
  163. && parseFloat($("#TrialWeeklyNum").val()) > parseFloat($("#PracticeWeeklyNum").val())) {
  164. $.messager.alert("系统提示", "实验周次不能大于实践周次。");
  165. return;
  166. }
  167. $(document.forms[0]).submit();
  168. }
  169. </script>
  170. }
  171. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  172. @using (Ajax.BeginForm(new AjaxOptions
  173. {
  174. OnSuccess = "EMISFunction.FormSuccess",
  175. OnBegin = "EMISFunction.FormSubmit",
  176. OnComplete = "EMISFunction.FormComplete"
  177. }))
  178. {
  179. <div class="p_title">
  180. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  181. 限选设定信息</div>*@
  182. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;" id="btnSave">@Html.ContextMenuBar("Create")</div>
  183. </div>
  184. <div class="search_list">
  185. @Html.HiddenFor(x => x.ExecutableOptionalCourseID)
  186. @Html.HiddenFor(x => x.OptionalCourseID)
  187. @Html.HiddenFor(x => x.RecordStatusName)
  188. @Html.HiddenFor(x => x.RecordStatus)
  189. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  190. <tr>
  191. @*<td>
  192. @Html.LabelFor(x => x.DefaultClassName):
  193. </td>
  194. <td>
  195. @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)
  196. </td>
  197. *@
  198. <td>
  199. @Html.LabelFor(x => x.DefaultClassName):
  200. </td>
  201. <td colspan="3">
  202. @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary<string, object> { { "style", "width:85%;" } })
  203. </td>
  204. </tr>
  205. <tr>
  206. <td>
  207. @Html.LabelFor(x => x.SchoolYearCode):
  208. </td>
  209. <td>
  210. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  211. {
  212. BindType = DropdownListBindType.PleaseSelect,
  213. TextField = "Text",
  214. ValueField = "Value",
  215. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  216. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  217. })
  218. </td>
  219. @*<td
  220. >@Html.LabelFor(x => x.SchoolYearCode):
  221. </td>
  222. <td>
  223. @Html.TextBoxFor(x => x.SchoolYearCode, new TextBoxOptions { IsEnabled = false })
  224. </td>*@
  225. <td>@Html.LabelFor(x => x.Grade):
  226. </td>
  227. <td>@Html.SchoolYearDropDownListFor(x => x.GradeID, new DropdownListOptions { OnSelect = "queryClass" })</td>
  228. @*<td>@Html.LabelFor(x => x.Grade):, new DropdownListOptions { OnSelect = "SchoolyearDictionaryDropDown" }
  229. </td>
  230. <td>
  231. @Html.TextBoxFor(x => x.Grade, new TextBoxOptions { IsEnabled = false })
  232. </td>*@
  233. </tr>
  234. <tr>
  235. <td>
  236. @Html.LabelFor(x => x.StandardDesc):
  237. </td>
  238. <td>@Html.ComboGridFor(x => x.StandardID, cgop)
  239. </td>
  240. <td>@Html.LabelFor(x => x.GrademajorName):
  241. </td>
  242. <td>@Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
  243. </td>
  244. </tr>
  245. <tr>
  246. <td>
  247. @Html.LabelFor(x => x.CourseName):
  248. </td>
  249. <td colspan="3">
  250. @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  251. </td>
  252. </tr>
  253. <tr>
  254. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  255. </td>
  256. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, new DropdownListOptions { IsEnabled = false })
  257. @Html.HiddenFor(x => x.SchoolyearNumID)
  258. </td>
  259. <td>@Html.LabelFor(x => x.SchoolcodeID):
  260. </td>
  261. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, new DropdownListOptions { IsEnabled = false })
  262. @Html.HiddenFor(x => x.SchoolcodeID)
  263. </td>
  264. @*<td>@Html.LabelFor(x => x.SchoolyearNumID):
  265. </td>
  266. <td>@Html.TextBoxFor(x => x.SchoolyearNumName, new TextBoxOptions { IsEnabled = false })
  267. @Html.HiddenFor(x => x.SchoolyearNumName)
  268. @Html.HiddenFor(x => x.SchoolyearNumID)
  269. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID)
  270. </td>
  271. <td>@Html.LabelFor(x => x.SchoolcodeID):
  272. </td>
  273. <td>@Html.TextBoxFor(x => x.SchoolcodeName, new TextBoxOptions { IsEnabled = false })
  274. @Html.HiddenFor(x => x.SchoolcodeName)
  275. @Html.HiddenFor(x => x.SchoolcodeID)
  276. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Schoolcode, x => x.SchoolcodeID)
  277. </td>*@
  278. </tr>
  279. <tr>
  280. <td>
  281. @Html.LabelFor(x => x.CourseTypeID):
  282. </td>
  283. <td>
  284. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
  285. </td>
  286. <td>
  287. @Html.LabelFor(x => x.DepartmentID):
  288. </td>
  289. <td>
  290. @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  291. </td>
  292. </tr>
  293. <tr>
  294. <td>
  295. @Html.LabelFor(x => x.CourseStructureID):
  296. </td>
  297. <td>
  298. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
  299. </td>
  300. <td>
  301. @Html.LabelFor(x => x.CourseCategoryID):
  302. </td>
  303. <td>
  304. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
  305. </td>
  306. </tr>
  307. <tr>
  308. <td>
  309. @Html.LabelFor(x => x.CourseQualityID):
  310. </td>
  311. <td>
  312. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
  313. </td>
  314. <td>
  315. @Html.LabelFor(x => x.TeachinglanguageID):
  316. </td>
  317. <td>
  318. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
  319. </td>
  320. </tr>
  321. <tr>
  322. <td>
  323. @Html.LabelFor(x => x.ExaminationModeID):
  324. </td>
  325. <td>
  326. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
  327. </td>
  328. <td>@Html.LabelFor(x => x.ResultTypeID)
  329. </td>
  330. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
  331. </td>
  332. </tr>
  333. <tr>
  334. <td>
  335. @Html.LabelFor(x => x.PracticeTypeID):
  336. </td>
  337. <td>
  338. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
  339. </td>
  340. <td>
  341. @Html.LabelFor(x => x.PeopleNumlower):
  342. </td>
  343. <td>
  344. @Html.TextBoxFor(x => x.PeopleNumlower)
  345. </td>
  346. </tr>
  347. @*<tr>
  348. <td>@Html.LabelFor(x => x.IsEnable):
  349. </td>
  350. <td>@Html.CheckBoxFor(x => x.IsEnable, (Model.IsEnable))
  351. </td>
  352. <td>@Html.LabelFor(x => x.IsOpened):
  353. </td>
  354. <td>@Html.CheckBoxFor(x => x.IsOpened, (Model.IsOpened))
  355. </td>
  356. <td></td><td></td>
  357. </tr>*@
  358. <tr>
  359. <td>
  360. @Html.LabelFor(x => x.Credit):
  361. </td>
  362. <td>
  363. @Html.TextBoxFor(x => x.Credit)
  364. </td>
  365. <td>
  366. @Html.LabelFor(x => x.PeopleNumlimit):
  367. </td>
  368. <td>
  369. @Html.TextBoxFor(x => x.PeopleNumlimit)
  370. </td>
  371. </tr>
  372. <tr>
  373. <td>
  374. @Html.LabelFor(x => x.TheoryCourse):
  375. </td>
  376. <td>
  377. @Html.TextBoxFor(x => x.TheoryCourse)
  378. </td>
  379. <td>@Html.LabelFor(x => x.Practicehours):
  380. </td>
  381. <td>@Html.TextBoxFor(x => x.Practicehours)
  382. </td>
  383. </tr>
  384. <tr>
  385. <td>@Html.LabelFor(x => x.Trialhours):
  386. </td>
  387. <td>@Html.TextBoxFor(x => x.Trialhours)
  388. </td>
  389. <td>@Html.LabelFor(x => x.Totalhours):
  390. </td>
  391. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  392. </td>
  393. </tr>
  394. <tr>
  395. <td colspan="4">
  396. <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  397. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  398. onclick="swapWeekSettings();">
  399. </div>
  400. <div style="float: left; cursor: pointer; color: red;" onclick="swapWeekSettings();">
  401. 上课周次信息
  402. </div>
  403. </td>
  404. </tr>
  405. <tr style="display: ">
  406. <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
  407. </td>
  408. <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum)
  409. </td>
  410. <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
  411. </td>
  412. <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum)
  413. </td>
  414. </tr>
  415. <tr style="display: ">
  416. <td>@Html.LabelFor(x => x.TrialWeeklyNum):
  417. </td>
  418. <td>@Html.TextBoxFor(x => x.TrialWeeklyNum)
  419. </td>
  420. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  421. </td>
  422. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  423. </td>
  424. </tr>
  425. <tr style="display: ">
  426. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  427. </td>
  428. <td>@Html.TextBoxFor(x => x.StartWeeklyNum)
  429. </td>
  430. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  431. </td>
  432. <td>@Html.TextBoxFor(x => x.EndWeeklyNum)
  433. </td>
  434. </tr>
  435. <tr style="display: ">
  436. <td>@Html.LabelFor(x => x.WeeklyHours):
  437. </td>
  438. <td>@Html.TextBoxFor(x => x.WeeklyHours)
  439. </td>
  440. <td>@Html.LabelFor(x => x.WeeklyNum):
  441. </td>
  442. <td>@Html.TextBoxFor(x => x.WeeklyNum)
  443. </td>
  444. </tr>
  445. <tr>
  446. <td>@Html.LabelFor(x => x.TeachingModeID):
  447. </td>
  448. <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  449. </td>
  450. </tr>
  451. <tr>
  452. <td>
  453. <label>
  454. 开放范围:
  455. </label>
  456. </td>
  457. <td colspan="3">
  458. @Html.ContextMenuBar("Edit-ClassGrid")
  459. @Html.DataGrid(new DataGridOptions
  460. {
  461. Columns = new List<DataGridColumn>()
  462. {
  463. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  464. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 },
  465. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  466. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 }
  467. },
  468. PageSize = 5,
  469. IsCheckOnSelect = true,
  470. DataSourceUrl = Url.Content("~/OptionalCourseSetting/ClassList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID),
  471. IsPostBack = true,
  472. ID = "dgClassList",
  473. IsPagination = true,
  474. IsShowRowNumbers = true,
  475. IsSingleSelect = false,
  476. MaxHeight = 110
  477. })
  478. </td>
  479. </tr>
  480. <tr>
  481. <td>
  482. <label>
  483. 授课老师:
  484. </label>
  485. </td>
  486. <td colspan="3">
  487. @Html.ContextMenuBar("Edit-TeacherGrid")
  488. @Html.DataGrid(new DataGridOptions
  489. {
  490. Columns = new List<DataGridColumn>()
  491. {
  492. new CheckBoxFieldColumn { FieldName="UserID" },
  493. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04 },
  494. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  495. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.04,
  496. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
  497. },
  498. PageSize = 3,
  499. IsCheckOnSelect = true,
  500. DataSourceUrl = Url.Content("~/OptionalCourseSetting/TeacherList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID),
  501. IsPostBack = true,
  502. ID = "dgTeacherList",
  503. IsPagination = true,
  504. IsShowRowNumbers = true,
  505. IsSingleSelect = false,
  506. MaxHeight = 65
  507. })
  508. </td>
  509. </tr>
  510. @*<tr>
  511. <td colspan="3">
  512. @Html.CheckList(lcop)
  513. </td>
  514. </tr>
  515. *@
  516. @* <tr>
  517. <td>@Html.LabelFor(x => x.Totalhours):
  518. </td>
  519. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  520. </td>
  521. </tr>*@
  522. <tr>
  523. <td>@Html.LabelFor(x => x.Remarks):
  524. </td>
  525. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:85%;" } })
  526. </td>
  527. </tr>
  528. </table>
  529. </div>
  530. }
  531. </div>