Edit.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. @model EMIS.ViewModel.CultureplanManage.PlanManagement.OptionalCoursePlanView
  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("~/OptionalCoursePlan/TeachingModeType?OptionalCourseID=" + Model.OptionalCourseID)
  71. };
  72. }
  73. @section scripts{
  74. <script src="~/Scripts/Business/CultureplanManage/OptionalCoursePlanEdit.js" type="text/javascript"></script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @using (Ajax.BeginForm(new AjaxOptions
  78. {
  79. OnSuccess = "EMISFunction.FormSuccess",
  80. OnBegin = "EMISFunction.FormSubmit",
  81. OnComplete = "EMISFunction.FormComplete"
  82. }))
  83. {
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 专业课程信息</div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  88. </div>
  89. <div class="search_list">
  90. @Html.HiddenFor(x => x.OptionalCourseID)
  91. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  92. <tr>
  93. <td>@Html.LabelFor(x => x.SpecialtyID):
  94. </td>
  95. <td>@Html.ComboGridFor(x => x.SpecialtyID, cgop)
  96. </td>
  97. <td>@Html.LabelFor(x => x.CoursematerialID):
  98. </td>
  99. <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>@Html.LabelFor(x => x.DepartmentID):
  104. </td>
  105. <td>@Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  106. </td>
  107. <td>@Html.LabelFor(x => x.CourseStructureID):
  108. </td>
  109. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>@Html.LabelFor(x => x.CourseCategoryID):
  114. </td>
  115. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
  116. </td>
  117. <td>@Html.LabelFor(x => x.CourseQualityID):
  118. </td>
  119. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>@Html.LabelFor(x => x.CourseTypeID):
  124. </td>
  125. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
  126. </td>
  127. <td>@Html.LabelFor(x => x.ExaminationModeID):
  128. </td>
  129. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>@Html.LabelFor(x=>x.ResultTypeID)
  134. </td>
  135. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
  136. </td>
  137. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  138. </td>
  139. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID)
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>@Html.LabelFor(x => x.SchoolcodeID):
  144. </td>
  145. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID)
  146. </td>
  147. <td>@Html.LabelFor(x => x.TeachinglanguageID):
  148. </td>
  149. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>@Html.LabelFor(x => x.PracticeTypeID):
  154. </td>
  155. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
  156. </td>
  157. <td>@Html.LabelFor(x => x.PeopleNumlimit):
  158. </td>
  159. <td>@Html.TextBoxFor(x => x.PeopleNumlimit)
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>@Html.LabelFor(x => x.PeopleNumlower):
  164. </td>
  165. <td>@Html.TextBoxFor(x => x.PeopleNumlower)
  166. </td>
  167. <td>@Html.LabelFor(x => x.Credit):
  168. </td>
  169. <td>@Html.TextBoxFor(x => x.Credit)
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>@Html.LabelFor(x => x.TheoryCourse):
  174. </td>
  175. <td>@Html.TextBoxFor(x => x.TheoryCourse)
  176. </td>
  177. <td>@Html.LabelFor(x => x.Practicehours):
  178. </td>
  179. <td>@Html.TextBoxFor(x => x.Practicehours)
  180. </td>
  181. </tr>
  182. <tr>
  183. <td>@Html.LabelFor(x => x.Trialhours):
  184. </td>
  185. <td>@Html.TextBoxFor(x => x.Trialhours)
  186. </td>
  187. <td>@Html.LabelFor(x => x.Totalhours):
  188. </td>
  189. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  190. </td>
  191. </tr>
  192. <tr>
  193. <td colspan="4">
  194. <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  195. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  196. onclick="swapWeekSettings();">
  197. </div>
  198. <div style="float: left; cursor: pointer;" onclick="swapWeekSettings();">
  199. 上课周次设置
  200. </div>
  201. </td>
  202. </tr>
  203. <tr style="display: ">
  204. <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
  205. </td>
  206. <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum)
  207. </td>
  208. <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
  209. </td>
  210. <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum)
  211. </td>
  212. </tr>
  213. <tr style="display: ">
  214. <td>@Html.LabelFor(x => x.TrialWeeklyNum):
  215. </td>
  216. <td>@Html.TextBoxFor(x => x.TrialWeeklyNum)
  217. </td>
  218. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  219. </td>
  220. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  221. </td>
  222. </tr>
  223. <tr style="display: ">
  224. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  225. </td>
  226. <td>@Html.TextBoxFor(x => x.StartWeeklyNum)
  227. </td>
  228. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  229. </td>
  230. <td>@Html.TextBoxFor(x => x.EndWeeklyNum)
  231. </td>
  232. </tr>
  233. <tr style="display: ">
  234. <td>@Html.LabelFor(x => x.WeeklyHours):
  235. </td>
  236. <td>@Html.TextBoxFor(x => x.WeeklyHours)
  237. </td>
  238. <td>@Html.LabelFor(x => x.WeeklyNum):
  239. </td>
  240. <td>@Html.TextBoxFor(x => x.WeeklyNum)
  241. </td>
  242. </tr>
  243. <tr>
  244. <td>@Html.LabelFor(x => x.TeachingModeID):
  245. </td>
  246. <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
  247. </td>
  248. </tr>
  249. <tr>
  250. <td>
  251. @Html.LabelFor(x => x.IsEnable):
  252. </td>
  253. <td>
  254. @Html.CheckBoxFor(x => x.IsEnable, (Model.IsEnable ))
  255. </td>
  256. <td></td><td></td>
  257. @* <td>@Html.LabelFor(x => x.IsOpened):
  258. </td>
  259. <td>@Html.CheckBoxFor(x => x.IsOpened)
  260. </td>*@
  261. </tr>
  262. <tr>
  263. <td>@Html.LabelFor(x => x.Remarks):
  264. </td>
  265. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:98%;" } })
  266. </td>
  267. </tr>
  268. </table>
  269. </div>
  270. }
  271. </div>