Edit.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyPlanView
  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("~/MinorSpecialtyPlan/TeachingModeType?MinorPlanID=" + Model.MinorPlanID)
  71. };
  72. ListControlOptions lcoptp = new ListControlOptions
  73. {
  74. Name = "TeachingPlaceID",
  75. TextField = "Name",
  76. ValueField = "Value",
  77. ColumnCount = 4,
  78. SelectedValueUrl = @Url.Content("~/MinorSpecialtyPlan/TeachingPlace?MinorPlanID=" + Model.MinorPlanID)
  79. };
  80. }
  81. @section scripts{
  82. <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorSpecialtyPlanEdit.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="planApplicationtable">
  102. <tr>
  103. <td>@Html.LabelFor(x => x.StandardID):
  104. </td>
  105. <td>@Html.DisplayFor(x => x.StandardName)
  106. </td>
  107. <td>@Html.LabelFor(x => x.CoursematerialID):
  108. </td>
  109. <td>@Html.DisplayFor(x => x.CourseName)
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>@Html.LabelFor(x => x.DepartmentName):
  114. </td>
  115. <td>@Html.DisplayFor(x => x.DepartmentName)
  116. </td>
  117. <td>@Html.LabelFor(x => x.CourseStructureID):
  118. </td>
  119. <td>@Html.DisplayFor(x => x.CourseStructureName)
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>@Html.LabelFor(x => x.CourseCategoryID):
  124. </td>
  125. <td>@Html.DisplayFor(x => x.CourseCategoryName)
  126. </td>
  127. <td>@Html.LabelFor(x => x.CourseQualityID):
  128. </td>
  129. <td>@Html.DisplayFor(x => x.CourseQualityName)
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>@Html.LabelFor(x => x.CourseTypeID):
  134. </td>
  135. <td>@Html.DisplayFor(x => x.CourseTypeName)
  136. </td>
  137. <td>@Html.LabelFor(x => x.ExaminationModeID):
  138. </td>
  139. <td>@Html.DisplayFor(x => x.ExaminationModeName)
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>@Html.LabelFor(x=>x.ResultTypeID)
  144. </td>
  145. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
  146. </td>
  147. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  148. </td>
  149. <td>@Html.DisplayFor(x => x.SchoolyearNumName)
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>@Html.LabelFor(x => x.StarttermID):
  154. </td>
  155. <td>@Html.DisplayFor(x => x.StarttermName)
  156. </td>
  157. <td>@Html.LabelFor(x => x.SchoolcodeID):
  158. </td>
  159. <td>@Html.DisplayFor(x => x.SchoolcodeName)
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>@Html.LabelFor(x => x.TeachinglanguageID):
  164. </td>
  165. <td>@Html.DisplayFor(x => x.TeachinglanguageName)
  166. </td>
  167. <td>@Html.LabelFor(x => x.PracticeTypeID):
  168. </td>
  169. <td>@Html.DisplayFor(x => x.PracticeTypeName)
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>@Html.LabelFor(x => x.CourseFineID):
  174. </td>
  175. <td>@Html.DisplayFor(x => x.CourseFineName)
  176. </td>
  177. <td>@Html.LabelFor(x => x.IsRequired):
  178. </td>
  179. <td>@Html.DisplayFor(x => x.IsRequiredName)
  180. </td>
  181. </tr>
  182. <tr>
  183. <td>@Html.LabelFor(x => x.IsSpecialtycore):
  184. </td>
  185. <td>@Html.DisplayFor(x => x.IsSpecialtycoreName)
  186. </td>
  187. <td>@Html.LabelFor(x => x.IsCooperation):
  188. </td>
  189. <td>@Html.DisplayFor(x => x.IsCooperationName)
  190. </td>
  191. </tr>
  192. <tr>
  193. <td>@Html.LabelFor(x => x.IsElective):
  194. </td>
  195. <td>@Html.DisplayFor(x => x.IsElectiveName)
  196. </td>
  197. <td>@Html.LabelFor(x => x.IsNetworkCourse):
  198. </td>
  199. <td>@Html.DisplayFor(x => x.IsNetworkCourseName)
  200. </td>
  201. </tr>
  202. <tr>
  203. <td>@Html.LabelFor(x => x.IsMainCourse):
  204. </td>
  205. <td>@Html.DisplayFor(x => x.IsMainCourseName)
  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.IsEnable):
  214. </td>
  215. <td>@Html.DisplayFor(x => x.IsEnableName)
  216. </td>
  217. <td>@Html.LabelFor(x => x.TheoryCourse):
  218. </td>
  219. <td>@Html.TextBoxFor(x => x.TheoryCourse)
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>@Html.LabelFor(x => x.Practicehours):
  224. </td>
  225. <td>@Html.TextBoxFor(x => x.Practicehours)
  226. </td>
  227. <td>@Html.LabelFor(x => x.Trialhours):
  228. </td>
  229. <td>@Html.TextBoxFor(x => x.Trialhours)
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>@Html.LabelFor(x => x.Totalhours):
  234. </td>
  235. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  236. </td>
  237. <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
  238. </td>
  239. <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum)
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
  244. </td>
  245. <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum)
  246. </td>
  247. <td>@Html.LabelFor(x => x.TrialWeeklyNum):
  248. </td>
  249. <td>@Html.TextBoxFor(x => x.TrialWeeklyNum)
  250. </td>
  251. </tr>
  252. <tr>
  253. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  254. </td>
  255. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  256. </td>
  257. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  258. </td>
  259. <td>@Html.TextBoxFor(x => x.StartWeeklyNum)
  260. </td>
  261. </tr>
  262. <tr>
  263. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  264. </td>
  265. <td>@Html.TextBoxFor(x => x.EndWeeklyNum)
  266. </td>
  267. <td>@Html.LabelFor(x => x.WeeklyHours):
  268. </td>
  269. <td>@Html.TextBoxFor(x => x.WeeklyHours)
  270. </td>
  271. </tr>
  272. <tr>
  273. <td>@Html.LabelFor(x => x.WeeklyNum):
  274. </td>
  275. <td colspan="3">@Html.TextBoxFor(x => x.WeeklyNum)
  276. </td>
  277. </tr>
  278. <tr>
  279. <td>@Html.LabelFor(x => x.TeachingModeID):
  280. </td>
  281. <td colspan="3">
  282. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  283. </td>
  284. </tr>
  285. <tr>
  286. <td>@Html.LabelFor(x => x.TeachingPlaceID):
  287. </td>
  288. <td colspan="3">
  289. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
  290. </td>
  291. </tr>
  292. <tr>
  293. <td>@Html.LabelFor(x => x.HandleModeID):
  294. </td>
  295. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID))
  296. </td>
  297. <td>@Html.LabelFor(x => x.IsNeedMaterial):
  298. </td>
  299. <td>@Html.CheckBoxFor(x => x.IsNeedMaterial)
  300. </td>
  301. </tr>
  302. <tr>
  303. <td>@Html.LabelFor(x => x.Remarks):
  304. </td>
  305. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:500px;" } })
  306. </td>
  307. </tr>
  308. </table>
  309. </div>
  310. }
  311. </div>