Edit.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. @model EMIS.ViewModel.CampusView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.Entities;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. ComboGridOptions cgopUniversity = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "UniversityID",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new LinkButtonColumn { FieldName="Code", HeaderText="学校代码", Align=AlignStyle.Center ,Width=0.1},
  16. new BoundFieldColumn { FieldName="Name", HeaderText="学校名称", Align=AlignStyle.Center ,Width=0.2}
  17. },
  18. PageSize = 5,
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/University/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopGeneralsuper = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "UserID",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  35. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  36. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  37. },
  38. PageSize = 5,
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Staff/List"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. ComboGridOptions cgopRecruitstudents = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "UserID",
  50. GridOptions = new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  55. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  56. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  57. },
  58. PageSize = 5,
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/Staff/List"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. }
  65. };
  66. ComboGridOptions cgopPlacesuper = new ComboGridOptions
  67. {
  68. TextField = "Name",
  69. ValueField = "UserID",
  70. GridOptions = new DataGridOptions
  71. {
  72. Columns = new List<DataGridColumn>()
  73. {
  74. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  75. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  76. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  77. },
  78. PageSize = 5,
  79. IsCheckOnSelect = true,
  80. DataSourceUrl = Url.Content("~/Staff/List"),
  81. IsPagination = true,
  82. IsShowRowNumbers = true,
  83. IsSingleSelect = false
  84. }
  85. };
  86. ComboGridOptions cgopTeachingsuper = new ComboGridOptions
  87. {
  88. TextField = "Name",
  89. ValueField = "UserID",
  90. GridOptions = new DataGridOptions
  91. {
  92. Columns = new List<DataGridColumn>()
  93. {
  94. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  95. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  96. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  97. },
  98. PageSize = 5,
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/Staff/List"),
  101. IsPagination = true,
  102. IsShowRowNumbers = true,
  103. IsSingleSelect = false
  104. }
  105. };
  106. ComboGridOptions cgopStudentcharge = new ComboGridOptions
  107. {
  108. TextField = "Name",
  109. ValueField = "UserID",
  110. GridOptions = new DataGridOptions
  111. {
  112. Columns = new List<DataGridColumn>()
  113. {
  114. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  115. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  116. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  117. },
  118. PageSize = 5,
  119. IsCheckOnSelect = true,
  120. DataSourceUrl = Url.Content("~/Staff/List"),
  121. IsPagination = true,
  122. IsShowRowNumbers = true,
  123. IsSingleSelect = false
  124. }
  125. };
  126. }
  127. @section scripts{
  128. <script src="~/Scripts/Business/AdministrativeOrgan/CampusEdit.js" type="text/javascript"></script>
  129. <script type="text/javascript">
  130. </script>
  131. }
  132. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  133. @using (Ajax.BeginForm(new AjaxOptions
  134. {
  135. OnSuccess = "EMISFunction.FormSuccess",
  136. OnBegin = "EMISFunction.FormSubmit",
  137. OnComplete = "EMISFunction.FormComplete"
  138. }))
  139. {
  140. <div class="p_title">
  141. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  142. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  143. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  144. {
  145. @Html.ContextMenuBar("Edit")
  146. }
  147. </div>
  148. </div>
  149. <div class="search_list">
  150. @Html.HiddenFor(x => x.CampusID)
  151. <table cellpadding="0" cellspacing="0" id="Campustable">
  152. <tr>
  153. <td>
  154. @Html.LabelFor(x => x.No):
  155. </td>
  156. <td>
  157. @Html.TextBoxFor(x => x.No)
  158. </td>
  159. <td>
  160. @Html.LabelFor(x => x.Name):
  161. </td>
  162. <td>
  163. @Html.TextBoxFor(x => x.Name)
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. @Html.LabelFor(x => x.SimpleName):
  169. </td>
  170. <td>
  171. @Html.TextBoxFor(x => x.SimpleName)
  172. </td>
  173. <td>
  174. @Html.LabelFor(x => x.EnglishName):
  175. </td>
  176. <td>
  177. @Html.TextBoxFor(x => x.EnglishName)
  178. </td>
  179. </tr>
  180. <tr>
  181. <td>
  182. @Html.LabelFor(x => x.UniversityName):
  183. </td>
  184. <td>
  185. @Html.ComboGridFor(x => x.UniversityID, cgopUniversity)
  186. </td>
  187. <td>
  188. @Html.LabelFor(x => x.Studentcharge):
  189. </td>
  190. <td>
  191. @Html.ComboGridFor(x => x.Studentcharge, cgopStudentcharge)
  192. </td>
  193. </tr>
  194. <tr>
  195. <td>
  196. @Html.LabelFor(x => x.Generalsuper):
  197. </td>
  198. <td>
  199. @Html.ComboGridFor(x => x.Generalsuper, cgopGeneralsuper)
  200. </td>
  201. <td>
  202. @Html.LabelFor(x => x.Recruitstudents):
  203. </td>
  204. <td>
  205. @Html.ComboGridFor(x => x.Recruitstudents, cgopRecruitstudents)
  206. </td>
  207. </tr>
  208. <tr>
  209. <td>
  210. @Html.LabelFor(x => x.Placesuper):
  211. </td>
  212. <td>
  213. @Html.ComboGridFor(x => x.Placesuper, cgopPlacesuper)
  214. </td>
  215. <td>
  216. @Html.LabelFor(x => x.Teachingsuper):
  217. </td>
  218. <td>
  219. @Html.ComboGridFor(x => x.Teachingsuper, cgopTeachingsuper)
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>
  224. @Html.LabelFor(x => x.ZIPCode):
  225. </td>
  226. <td>
  227. @Html.TextBoxFor(x => x.ZIPCode)
  228. </td>
  229. <td>
  230. @Html.LabelFor(x => x.Officephone):
  231. </td>
  232. <td>
  233. @Html.TextBoxFor(x => x.Officephone)
  234. </td>
  235. </tr>
  236. <tr>
  237. <td>
  238. @Html.LabelFor(x => x.FAX):
  239. </td>
  240. <td>
  241. @Html.TextBoxFor(x => x.FAX)
  242. </td>
  243. <td>
  244. @Html.LabelFor(x => x.Email):
  245. </td>
  246. <td>
  247. @Html.TextBoxFor(x => x.Email)
  248. </td>
  249. </tr>
  250. <tr>
  251. <td>
  252. @Html.LabelFor(x => x.Evolution):
  253. </td>
  254. <td colspan="3">
  255. @Html.TextAreaFor(x => x.Evolution, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
  256. </td>
  257. </tr>
  258. <tr>
  259. <td>
  260. @Html.LabelFor(x => x.Remark):
  261. </td>
  262. <td colspan="3">
  263. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  264. </td>
  265. </tr>
  266. </table>
  267. </div>
  268. }
  269. </div>