Edit.cshtml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. @model EMIS.ViewModel.MinorManage.MinorCourseManage.MinorSpecialtyCourseView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "StandardName",
  9. ValueField = "SpecialtyID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Specialty/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions cgopCourse = new ComboGridOptions
  28. {
  29. TextField = "CourseName",
  30. ValueField = "CoursematerialID",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Coursematerial/GetIsEnableCoursematerialView"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. ComboGridOptions cgopDepartment = new ComboGridOptions
  46. {
  47. TextField = "Name",
  48. ValueField = "DepartmentID",
  49. GridOptions = new DataGridOptions
  50. {
  51. Columns = new List<DataGridColumn>()
  52. {
  53. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Width=0.1, Align=AlignStyle.Center },
  54. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Width=0.1, Align=AlignStyle.Center },
  55. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.1, Align=AlignStyle.Center }
  56. },
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/Department/List"),
  59. IsPagination = true,
  60. IsShowRowNumbers = true,
  61. IsSingleSelect = false
  62. }
  63. };
  64. ListControlOptions lcop = new ListControlOptions
  65. {
  66. Name = "TeachingModeID",
  67. TextField = "Name",
  68. ValueField = "Value",
  69. ColumnCount = 4,
  70. SelectedValueUrl = @Url.Content("~/MinorSpecialtyCourse/TeachingModeType?MinorCourseID=" + Model.MinorCourseID)
  71. };
  72. ListControlOptions lcoptp = new ListControlOptions
  73. {
  74. Name = "TeachingPlaceID",
  75. TextField = "Name",
  76. ValueField = "Value",
  77. ColumnCount = 4,
  78. SelectedValueUrl = @Url.Content("~/MinorSpecialtyCourse/TeachingPlace?MinorCourseID=" + Model.MinorCourseID)
  79. };
  80. }
  81. @section scripts{
  82. <script src="~/Scripts/Business/MinorManage/MinorSpecialtyCourseManage/MinorSpecialtyCourseEdit.js" type="text/javascript"></script>
  83. }
  84. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  85. @using (Ajax.BeginForm(new AjaxOptions
  86. {
  87. OnSuccess = "EMISFunction.FormSuccess",
  88. OnBegin = "EMISFunction.FormSubmit",
  89. OnComplete = "EMISFunction.FormComplete"
  90. }))
  91. {
  92. <div class="p_title">
  93. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  94. @if (Request["isView"] != "1")
  95. {
  96. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  97. }
  98. </div>
  99. <div class="search_list">
  100. @Html.HiddenFor(x => x.MinorCourseID)
  101. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  102. <tr>
  103. <td>@Html.LabelFor(x => x.StandardID):
  104. </td>
  105. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID)
  106. </td>
  107. <td>@Html.LabelFor(x => x.CoursematerialID):
  108. </td>
  109. <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>@Html.LabelFor(x => x.DepartmentID):
  114. </td>
  115. <td>@Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  116. </td>
  117. <td>@Html.LabelFor(x => x.CourseStructureID):
  118. </td>
  119. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>@Html.LabelFor(x => x.CourseCategoryID):
  124. </td>
  125. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
  126. </td>
  127. <td>@Html.LabelFor(x => x.CourseQualityID):
  128. </td>
  129. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>@Html.LabelFor(x => x.CourseTypeID):
  134. </td>
  135. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
  136. </td>
  137. <td>@Html.LabelFor(x => x.ExaminationModeID):
  138. </td>
  139. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  144. </td>
  145. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID)
  146. </td>
  147. <td>@Html.LabelFor(x => x.SchoolcodeID):
  148. </td>
  149. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID)
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>@Html.LabelFor(x => x.TeachinglanguageID):
  154. </td>
  155. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
  156. </td>
  157. <td>@Html.LabelFor(x => x.PracticeTypeID):
  158. </td>
  159. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>@Html.LabelFor(x => x.CourseFineID):
  164. </td>
  165. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID)
  166. </td>
  167. <td>@Html.LabelFor(x=>x.ResultTypeID)
  168. </td>
  169. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>@Html.LabelFor(x => x.IsRequired):
  174. </td>
  175. <td>@Html.CheckBoxFor(x => x.IsRequired)
  176. </td>
  177. <td>@Html.LabelFor(x => x.IsSpecialtycore):
  178. </td>
  179. <td>@Html.CheckBoxFor(x => x.IsSpecialtycore)
  180. </td>
  181. </tr>
  182. <tr>
  183. <td>@Html.LabelFor(x => x.IsCooperation):
  184. </td>
  185. <td>@Html.CheckBoxFor(x => x.IsCooperation)
  186. </td>
  187. <td>@Html.LabelFor(x => x.IsElective):
  188. </td>
  189. <td>@Html.CheckBoxFor(x => x.IsElective)
  190. </td>
  191. </tr>
  192. <tr>
  193. <td>@Html.LabelFor(x => x.IsNetworkCourse):
  194. </td>
  195. <td>@Html.CheckBoxFor(x => x.IsNetworkCourse)
  196. </td>
  197. <td>@Html.LabelFor(x => x.IsMainCourse):
  198. </td>
  199. <td>@Html.CheckBoxFor(x => x.IsMainCourse)
  200. </td>
  201. </tr>
  202. <tr>
  203. <td>@Html.LabelFor(x => x.IsEnable):
  204. </td>
  205. <td>@Html.CheckBoxFor(x => x.IsEnable)
  206. </td>
  207. <td>@Html.LabelFor(x => x.Credit):
  208. </td>
  209. <td>@Html.TextBoxFor(x => x.Credit)
  210. </td>
  211. </tr>
  212. <tr>
  213. <td>@Html.LabelFor(x => x.TheoryCourse):
  214. </td>
  215. <td>@Html.TextBoxFor(x => x.TheoryCourse)
  216. </td>
  217. <td>@Html.LabelFor(x => x.Practicehours):
  218. </td>
  219. <td>@Html.TextBoxFor(x => x.Practicehours)
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>@Html.LabelFor(x => x.Trialhours):
  224. </td>
  225. <td>@Html.TextBoxFor(x => x.Trialhours)
  226. </td>
  227. <td>@Html.LabelFor(x => x.Totalhours):
  228. </td>
  229. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  230. </td>
  231. </tr>
  232. <tr>
  233. <td colspan="4">
  234. <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer; background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  235. onclick="swapWeekSettings();">
  236. </div>
  237. <div style="float:left; cursor: pointer;" onclick="swapWeekSettings();">
  238. 上课周次设置
  239. </div>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
  244. </td>
  245. <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum)
  246. </td>
  247. <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
  248. </td>
  249. <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum)
  250. </td>
  251. </tr>
  252. <tr>
  253. <td>@Html.LabelFor(x => x.TrialWeeklyNum):
  254. </td>
  255. <td>@Html.TextBoxFor(x => x.TrialWeeklyNum)
  256. </td>
  257. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  258. </td>
  259. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  260. </td>
  261. </tr>
  262. <tr>
  263. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  264. </td>
  265. <td>@Html.TextBoxFor(x => x.StartWeeklyNum)
  266. </td>
  267. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  268. </td>
  269. <td>@Html.TextBoxFor(x => x.EndWeeklyNum)
  270. </td>
  271. </tr>
  272. <tr>
  273. <td>@Html.LabelFor(x => x.WeeklyHours):
  274. </td>
  275. <td>@Html.TextBoxFor(x => x.WeeklyHours)
  276. </td>
  277. <td>@Html.LabelFor(x => x.WeeklyNum):
  278. </td>
  279. <td>@Html.TextBoxFor(x => x.WeeklyNum)
  280. </td>
  281. </tr>
  282. <tr>
  283. <td>@Html.LabelFor(x => x.TeachingModeID):
  284. </td>
  285. <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>@Html.LabelFor(x => x.TeachingPlaceID):
  290. </td>
  291. <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
  292. </td>
  293. </tr>
  294. <tr>
  295. <td>@Html.LabelFor(x => x.Remarks):
  296. </td>
  297. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:98%;" } })
  298. </td>
  299. </tr>
  300. </table>
  301. </div>
  302. }
  303. </div>