Edit.cshtml 10 KB

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