Edit.cshtml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. @model EMIS.ViewModel.PaymentManage.WorktimeAdditionView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions optCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryUser",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  16. },
  17. OnLoadSuccessFun = "queryUser",
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optStudentCollege = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "CollegeID",
  29. OnSelect = "queryStandard",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  35. },
  36. OnLoadSuccessFun = "queryStandard",
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false,
  42. }
  43. };
  44. ComboGridOptions optCourseCollege = new ComboGridOptions
  45. {
  46. TextField = "Name",
  47. ValueField = "CollegeID",
  48. GridOptions = new DataGridOptions
  49. {
  50. Columns = new List<DataGridColumn>()
  51. {
  52. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  53. },
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  56. IsPagination = true,
  57. IsShowRowNumbers = true,
  58. IsSingleSelect = false,
  59. }
  60. };
  61. ComboGridOptions optStandard = new ComboGridOptions
  62. {
  63. TextField = "StandardName",
  64. ValueField = "StandardID",
  65. OnSelect = "queryGrademajor",
  66. GridOptions = new DataGridOptions
  67. {
  68. Columns = new List<DataGridColumn>()
  69. {
  70. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  71. },
  72. OnLoadSuccessFun = "queryGrademajor",
  73. IsCheckOnSelect = true,
  74. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  75. IsPagination = true,
  76. IsShowRowNumbers = true,
  77. IsSingleSelect = false,
  78. IsShowHeader = false
  79. }
  80. };
  81. ComboGridOptions optGrademajor = new ComboGridOptions
  82. {
  83. TextField = "Name",
  84. ValueField = "GrademajorID",
  85. GridOptions = new DataGridOptions
  86. {
  87. Columns = new List<DataGridColumn>()
  88. {
  89. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  90. },
  91. IsCheckOnSelect = true,
  92. DataSourceUrl = Url.Content("~/Grademajor/List"),
  93. IsPagination = true,
  94. IsShowRowNumbers = true,
  95. IsSingleSelect = false
  96. }
  97. };
  98. ComboGridOptions optUser = new ComboGridOptions
  99. {
  100. TextField = "Name",
  101. ValueField = "UserID",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 }
  107. },
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/Staff/List"),
  110. IsPagination = true,
  111. IsShowRowNumbers = true,
  112. IsSingleSelect = false,
  113. }
  114. };
  115. ComboGridOptions optCoursematerial = new ComboGridOptions
  116. {
  117. TextField = "CourseName",
  118. ValueField = "CoursematerialID",
  119. GridOptions = new DataGridOptions
  120. {
  121. Columns = new List<DataGridColumn>()
  122. {
  123. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  124. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  125. },
  126. IsCheckOnSelect = true,
  127. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  128. IsPagination = true,
  129. IsShowRowNumbers = true,
  130. IsSingleSelect = false,
  131. }
  132. };
  133. }
  134. @section scripts{
  135. <script src="~/Scripts/Business/PaymentManage/WorktimeAdditionEdit.js" type="text/javascript"></script>
  136. <script type="text/javascript">
  137. var nonSelect = "@DropdownList.PLEASE_SELECT";
  138. </script>
  139. }
  140. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  141. @using (Ajax.BeginForm(new AjaxOptions
  142. {
  143. OnSuccess = "EMISFunction.FormSuccess",
  144. OnBegin = "EMISFunction.FormSubmit",
  145. OnComplete = "EMISFunction.FormComplete"
  146. }))
  147. {
  148. <div class="p_title">
  149. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  150. 课时补登
  151. </div>
  152. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  153. </div>
  154. <div class="search_list">
  155. <table cellpadding="0" cellspacing="0">
  156. <tr>
  157. <td>@Html.LabelFor(x => x.CollegeID):
  158. </td>
  159. <td>@Html.ComboGridFor(x => x.CollegeID, optCollege)
  160. </td>
  161. <td>@Html.LabelFor(x => x.UserID):
  162. </td>
  163. <td>@Html.ComboGridFor(x => x.UserID, optUser)
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>@Html.LabelFor(x => x.SchoolyearID):
  168. </td>
  169. <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
  170. </td>
  171. <td>@Html.LabelFor(x => x.StudentCollegeID):
  172. </td>
  173. <td>@Html.ComboGridFor(x => x.StudentCollegeID, optStudentCollege)
  174. </td>
  175. </tr>
  176. <tr>
  177. <td>@Html.LabelFor(x => x.GradeYearID):
  178. </td>
  179. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeYearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "queryStandard", OnLoadSuccess = "queryStandard" })
  180. </td>
  181. <td>@Html.LabelFor(x => x.StandardID):
  182. </td>
  183. <td>@Html.ComboGridFor(x => x.StandardID, optStandard)
  184. </td>
  185. </tr>
  186. <tr>
  187. <td>@Html.LabelFor(x => x.GrademajorID):
  188. </td>
  189. <td>@Html.ComboGridFor(x => x.GrademajorID, optGrademajor)
  190. </td>
  191. <td>@Html.LabelFor(x => x.CourseCollegeID):
  192. </td>
  193. <td>@Html.ComboGridFor(x => x.CourseCollegeID, optCourseCollege)
  194. </td>
  195. </tr>
  196. <tr>
  197. <td>@Html.LabelFor(x => x.CoursematerialID):
  198. </td>
  199. <td>@Html.ComboGridFor(x => x.CoursematerialID, optCoursematerial)
  200. </td>
  201. <td>@Html.LabelFor(x => x.EducationMissionClassName):
  202. </td>
  203. <td>@Html.TextBoxFor(x => x.EducationMissionClassName)
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>@Html.LabelFor(x => x.TeachingModeID):
  208. </td>
  209. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  210. </td>
  211. <td>@Html.LabelFor(x => x.TeachType):
  212. </td>
  213. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, (x => x.TeachType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>@Html.LabelFor(x => x.StudentCount):
  218. </td>
  219. <td>@Html.TextBoxFor(x => x.StudentCount)
  220. </td>
  221. <td>@Html.LabelFor(x => x.CourseTime):
  222. </td>
  223. <td>@Html.TextBoxFor(x => x.CourseTime)
  224. </td>
  225. </tr>
  226. <tr>
  227. <td>@Html.LabelFor(x=>x.Month):
  228. </td>
  229. <td colspan="3">@Html.TextBoxFor(x=>x.Month)
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>@Html.LabelFor(x => x.Remark):
  234. </td>
  235. <td colspan="3">@Html.TextAreaFor(x => x.Remark, new { style = "width:98%;" })
  236. </td>
  237. </tr>
  238. </table>
  239. </div>
  240. }
  241. </div>