Edit.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
  7. ListControlOptions lcop = new ListControlOptions
  8. {
  9. Name = "WeekNum",
  10. TextField = "Name",
  11. ValueField = "Value",
  12. ColumnCount = 4,
  13. ItemList = lct,
  14. SelectedValueUrl = Url.Content("~/EducationMissionClass/CheckEducationMissionClassSettingsList?educationMissionClassID=" + Model.EducationMissionClassID)
  15. };
  16. bool IsView = false;
  17. if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
  18. {
  19. IsView = true;
  20. }
  21. ComboGridOptions cgop = new ComboGridOptions
  22. {
  23. TextField = "Name",
  24. ValueField = "ClassroomID",
  25. GridOptions = new DataGridOptions
  26. {
  27. Columns = new List<DataGridColumn>()
  28. {
  29. new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  30. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
  31. },
  32. IsCheckOnSelect = true,
  33. // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
  34. DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
  35. IsPagination = true,
  36. IsShowRowNumbers = true,
  37. IsSingleSelect = false
  38. }
  39. };
  40. }
  41. @section scripts{
  42. <script src="~/Scripts/Business/EducationManage/EducationMissionClassEdit.js" type="text/javascript"></script>
  43. <script type="text/javascript">
  44. var nonSelect = "@DropdownList.SELECT_ALL";
  45. </script>
  46. }
  47. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  48. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  49. {
  50. <div class="p_title">
  51. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  52. 教学安排设置信息
  53. </div>
  54. @if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
  55. {
  56. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("ArrConfirm")</div>
  57. }
  58. </div>
  59. <div class="search_list">
  60. @Html.HiddenFor(x => x.EducationMissionClassID)
  61. @Html.HiddenFor(x => x.CollegeID)
  62. @Html.Hidden("ClassNums")
  63. <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
  64. <tr>
  65. <td>@Html.LabelFor(x => x.Name):
  66. </td>
  67. <td>@Html.TextBoxFor(x => x.Name, new TextBoxOptions { IsEnabled = IsView })
  68. </td>
  69. <td>@Html.LabelFor(x => x.CourseCode):
  70. </td>
  71. <td>@Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>@Html.LabelFor(x => x.CourseName):
  76. </td>
  77. <td>@Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
  78. </td>
  79. <td>@Html.LabelFor(x => x.TeachingModeName):
  80. </td>
  81. <td>@Html.TextBoxFor(x => x.TeachingModeName, new TextBoxOptions { IsEnabled = false })
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>@Html.LabelFor(x => x.SchoolyearCode):
  86. </td>
  87. <td>@Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
  88. </td>
  89. <td colspan="2">
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>@Html.LabelFor(x => x.CourseStructureName):
  94. </td>
  95. <td>@Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false })
  96. </td>
  97. <td>@Html.LabelFor(x => x.CourseCategoryName):
  98. </td>
  99. <td>@Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false })
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>@Html.LabelFor(x => x.CourseTypeName):
  104. </td>
  105. <td>@Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
  106. </td>
  107. <td>@Html.LabelFor(x => x.CourseQualityName):
  108. </td>
  109. <td>@Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false })
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>@Html.LabelFor(x => x.ExaminationModeName):
  114. </td>
  115. <td>@Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
  116. </td>
  117. <td>@Html.LabelFor(x=>x.ResultTypeID)
  118. </td>
  119. <td>@Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false })
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>@Html.LabelFor(x => x.TeachinglanguageName):
  124. </td>
  125. <td>@Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
  126. </td>
  127. <td>@Html.LabelFor(x => x.HandleModeName):
  128. </td>
  129. <td>@Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false })
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>@Html.LabelFor(x => x.Credit):
  134. </td>
  135. <td>@Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
  136. </td>
  137. <td>@Html.LabelFor(x => x.Totalhours):
  138. </td>
  139. <td>@Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>@Html.LabelFor(x => x.SchoolweeksNum):
  144. </td>
  145. <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
  146. </td>
  147. @*<td>@Html.LabelFor(x => x.WeeklyNum):
  148. </td>
  149. <td>@Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions { IsEnabled = false, })
  150. </td>*@
  151. <td>@Html.LabelFor(x => x.WeeklyHours):
  152. </td>
  153. <td>@Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions { IsEnabled = true })
  154. </tr>
  155. @* <tr>
  156. <td>@Html.LabelFor(x => x.IsNeedMaterial):
  157. </td>
  158. <td>@Html.CheckBoxFor(x => x.IsNeedMaterial, new TextBoxOptions { IsEnabled = false })
  159. </td>
  160. <td>&nbsp;</td>
  161. <td>&nbsp;</td>
  162. </tr>*@
  163. <tr>
  164. <td>@Html.LabelFor(x => x.SchedulingClassNum):
  165. </td>
  166. <td>@Html.TextBoxFor(x => x.SchedulingClassNum, new TextBoxOptions { IsEnabled = false })
  167. </td>
  168. <td>@Html.LabelFor(x => x.ClassNum):
  169. </td>
  170. <td>@Html.TextBoxFor(x => x.ClassNum, new TextBoxOptions { IsEnabled = false })
  171. </td>
  172. </tr>
  173. <tr>
  174. <td>@Html.LabelFor(x => x.StartWeeklyNum):
  175. </td>
  176. <td>@Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions { IsEnabled = false })
  177. </td>
  178. <td>@Html.LabelFor(x => x.EndWeeklyNum):
  179. </td>
  180. <td>@Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions { IsEnabled = false })
  181. </td>
  182. </tr>
  183. <tr>
  184. <td>@Html.LabelFor(x => x.ClassroomTypeID):
  185. </td>
  186. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID), new DropdownListOptions { OnSelect = "queryClassroom", OnLoadSuccess = "loadClassroom" })
  187. </td>
  188. <td>@Html.LabelFor(x => x.ClassroomID):
  189. </td>
  190. <td>@Html.ComboGridFor(x => x.ClassroomID, cgop)
  191. </td>
  192. </tr>
  193. <tr>
  194. <td rowspan="2">
  195. <label>
  196. 排课周次设置:</label>
  197. </td>
  198. <td colspan="3">
  199. <div style="line-height: 30px; font-size: 12px; text-align: left;">@Html.ContextMenuBar("Settings")</div>
  200. </td>
  201. </tr>
  202. <tr>
  203. <td colspan="3">
  204. @Html.CheckList(lcop)
  205. </td>
  206. </tr>
  207. <tr>
  208. <td>
  209. <label>
  210. 授课老师:</label>
  211. </td>
  212. <td colspan="3">@Html.ContextMenuBar("Edit-TeacherGrid")
  213. @Html.DataGrid(new DataGridOptions
  214. {
  215. Columns = new List<DataGridColumn>()
  216. {
  217. new CheckBoxFieldColumn { FieldName="UserID" },
  218. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center },
  219. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  220. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
  221. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
  222. },
  223. IsCheckOnSelect = true,
  224. DataSourceUrl = Url.Content("~/EducationMissionClass/TeacherList?educationMissionClassID=" + Model.EducationMissionClassID),
  225. IsPostBack = true,
  226. ID = "dgTeacherList",
  227. IsPagination = true,
  228. IsShowRowNumbers = true,
  229. IsSingleSelect = false
  230. })
  231. </td>
  232. </tr>
  233. </table>
  234. </div>
  235. }
  236. </div>