Edit.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. @model EMIS.ViewModel.UniversityView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //所属市
  7. ComboGridOptions cgopCity = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "Value",
  11. OnSelect = "queryCity",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText="", Align=AlignStyle.Center }
  17. },
  18. PageSize = 5,
  19. IsShowHeader = false,
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/DictionaryItem/CityComboGridList"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. //所属县、区
  28. ComboGridOptions cgopDistrict = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "Value",
  32. OnSelect = "queryDistrict",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="Name", HeaderText="", Align=AlignStyle.Center }
  38. },
  39. PageSize = 5,
  40. IsShowHeader = false,
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/DictionaryItem/DistrictComboGridList"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  48. //教职工
  49. ComboGridOptions cgopStaff = new ComboGridOptions
  50. {
  51. TextField = "Name",
  52. ValueField = "UserID",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1},
  58. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1},
  59. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2}
  60. },
  61. PageSize = 5,
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Staff/List"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/AdministrativeOrgan/UniversityEdit.js" type="text/javascript"></script>
  72. <script type="text/javascript">
  73. </script>
  74. <style>
  75. .labelClass {
  76. width: 20%;
  77. }
  78. </style>
  79. }
  80. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  81. @using (Ajax.BeginForm(new AjaxOptions
  82. {
  83. OnSuccess = "EMISFunction.FormSuccess",
  84. OnBegin = "EMISFunction.FormSubmit",
  85. OnComplete = "EMISFunction.FormComplete"
  86. }))
  87. {
  88. <div class="p_title">
  89. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  90. </div>
  91. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  92. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  93. {
  94. @Html.ContextMenuBar("Edit")
  95. }
  96. </div>
  97. </div>
  98. <div class="search_list">
  99. @Html.HiddenFor(x => x.UniversityID)
  100. <table cellpadding="0" cellspacing="0" id="universitytable">
  101. <tr>
  102. <td>
  103. @Html.LabelFor(x => x.Code):
  104. </td>
  105. <td>
  106. @Html.TextBoxFor(x => x.Code)
  107. </td>
  108. <td>
  109. @Html.LabelFor(x => x.Name):
  110. </td>
  111. <td>
  112. @Html.TextBoxFor(x => x.Name)
  113. </td>
  114. </tr>
  115. <tr>
  116. <td>
  117. @Html.LabelFor(x => x.SimpleName):
  118. </td>
  119. <td>
  120. @Html.TextBoxFor(x => x.SimpleName)
  121. </td>
  122. <td>
  123. @Html.LabelFor(x => x.EnglishName):
  124. </td>
  125. <td>
  126. @Html.TextBoxFor(x => x.EnglishName)
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. @Html.LabelFor(x => x.ProvinceName):
  132. </td>
  133. <td>
  134. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.ProvinceID), DropdownListBindType.PleaseSelect,
  135. new ComboGridOptions
  136. {
  137. OnSelect = "queryProvince"
  138. })
  139. </td>
  140. <td>
  141. @Html.LabelFor(x => x.CityName):
  142. </td>
  143. <td>
  144. @Html.ComboGridFor(x => x.CityID, cgopCity)
  145. </td>
  146. </tr>
  147. <tr>
  148. <td>
  149. @Html.LabelFor(x => x.DistrictName):
  150. </td>
  151. <td>
  152. @Html.ComboGridFor(x => x.DistrictID, cgopDistrict)
  153. </td>
  154. <td>
  155. @Html.LabelFor(x => x.PartyManageID):
  156. </td>
  157. <td>
  158. @Html.ComboGridFor(x => x.PartyManageID, cgopStaff)
  159. </td>
  160. </tr>
  161. <tr>
  162. <td colspan="4" style="padding:1px;height:10px;">
  163. <div id="profileExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  164. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  165. onclick="swapProfileSettings();">
  166. </div>
  167. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapProfileSettings();">
  168. 学校扩展信息
  169. </div>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>
  174. @Html.LabelFor(x => x.PropertyID):
  175. </td>
  176. <td>
  177. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_UniversityProperty, (x => x.PropertyID))
  178. </td>
  179. <td>
  180. @Html.LabelFor(x => x.SchoolTypeID):
  181. </td>
  182. <td>
  183. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolType, (x => x.SchoolTypeID))
  184. </td>
  185. </tr>
  186. <tr>
  187. <td>
  188. @Html.LabelFor(x => x.ManagerID):
  189. </td>
  190. <td>
  191. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ManagerType, (x => x.ManagerID))
  192. </td>
  193. <td>
  194. @Html.LabelFor(x => x.FounderTypeID):
  195. </td>
  196. <td>
  197. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_FounderType, (x => x.FounderTypeID))
  198. </td>
  199. </tr>
  200. <tr>
  201. <td>
  202. @Html.LabelFor(x => x.SchoolLevelID):
  203. </td>
  204. <td>
  205. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolLevel, (x => x.SchoolLevelID))
  206. </td>
  207. <td>
  208. @Html.LabelFor(x => x.HeadMasterName):
  209. </td>
  210. <td>
  211. @Html.TextBoxFor(x => x.HeadMasterName)
  212. </td>
  213. </tr>
  214. <tr>
  215. <td>
  216. @Html.LabelFor(x => x.BuildDate):
  217. </td>
  218. <td>
  219. @Html.TextBoxFor(x => x.BuildDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  220. </td>
  221. <td>
  222. @Html.LabelFor(x => x.LegalPersonName):
  223. </td>
  224. <td>
  225. @Html.TextBoxFor(x => x.LegalPersonName)
  226. </td>
  227. </tr>
  228. <tr>
  229. <td>
  230. @Html.LabelFor(x => x.AnniversaryDate):
  231. </td>
  232. <td>
  233. @Html.TextBoxFor(x => x.AnniversaryDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  234. </td>
  235. <td>
  236. @Html.LabelFor(x => x.SchoolBasis):
  237. </td>
  238. <td>
  239. @Html.TextBoxFor(x => x.SchoolBasis)
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>
  244. @Html.LabelFor(x => x.SchoolMotto):
  245. </td>
  246. <td colspan="3">
  247. @Html.TextBoxFor(x => x.SchoolMotto, new Dictionary<string, object> { { "style", "width: 75%" } })
  248. </td>
  249. </tr>
  250. <tr>
  251. <td>
  252. @Html.LabelFor(x => x.SubjectCount):
  253. </td>
  254. <td>
  255. @Html.TextBoxFor(x => x.SubjectCount)
  256. </td>
  257. <td>
  258. @Html.LabelFor(x => x.Is211University):
  259. </td>
  260. <td>
  261. @Html.CheckBoxFor(x => x.Is211University, new Dictionary<string, object> { })
  262. </td>
  263. </tr>
  264. <tr>
  265. <td>
  266. @Html.LabelFor(x => x.IsKeyUniversity):
  267. </td>
  268. <td>
  269. @Html.CheckBoxFor(x => x.IsKeyUniversity, new Dictionary<string, object> { })
  270. </td>
  271. <td>
  272. @Html.LabelFor(x => x.IsAdultCollege):
  273. </td>
  274. <td>
  275. @Html.CheckBoxFor(x => x.IsAdultCollege, new Dictionary<string, object> { })
  276. </td>
  277. </tr>
  278. <tr>
  279. <td>
  280. @Html.LabelFor(x => x.IsPostCollege):
  281. </td>
  282. <td>
  283. @Html.CheckBoxFor(x => x.IsPostCollege, new Dictionary<string, object> { })
  284. </td>
  285. <td>
  286. @Html.LabelFor(x => x.IsNetCollege):
  287. </td>
  288. <td>
  289. @Html.CheckBoxFor(x => x.IsNetCollege, new Dictionary<string, object> { })
  290. </td>
  291. </tr>
  292. <tr>
  293. <td colspan="4" style="padding:1px;height:10px;">
  294. <div id="contactExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  295. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
  296. onclick="swapContactSettings();">
  297. </div>
  298. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapContactSettings();">
  299. 学校联系信息
  300. </div>
  301. </td>
  302. </tr>
  303. <tr>
  304. <td>
  305. @Html.LabelFor(x => x.Telephone):
  306. </td>
  307. <td>
  308. @Html.TextBoxFor(x => x.Telephone)
  309. </td>
  310. <td>
  311. @Html.LabelFor(x => x.ZIPCode):
  312. </td>
  313. <td>
  314. @Html.TextBoxFor(x => x.ZIPCode)
  315. </td>
  316. </tr>
  317. <tr>
  318. <td>
  319. @Html.LabelFor(x => x.Email):
  320. </td>
  321. <td>
  322. @Html.TextBoxFor(x => x.Email)
  323. </td>
  324. <td>
  325. @Html.LabelFor(x => x.FAX):
  326. </td>
  327. <td>
  328. @Html.TextBoxFor(x => x.FAX)
  329. </td>
  330. </tr>
  331. <tr>
  332. <td>
  333. @Html.LabelFor(x => x.PublicNum):
  334. </td>
  335. <td>
  336. @Html.TextBoxFor(x => x.PublicNum)
  337. </td>
  338. <td>
  339. @Html.LabelFor(x => x.HomePage):
  340. </td>
  341. <td>
  342. @Html.TextBoxFor(x => x.HomePage)
  343. </td>
  344. </tr>
  345. <tr>
  346. <td>
  347. @Html.LabelFor(x => x.Address):
  348. </td>
  349. <td colspan="3">
  350. @Html.TextBoxFor(x => x.Address, new Dictionary<string, object> { { "style", "width: 90%" } })
  351. </td>
  352. </tr>
  353. <tr>
  354. <td>
  355. @Html.LabelFor(x => x.EnglishAddress):
  356. </td>
  357. <td colspan="3">
  358. @Html.TextBoxFor(x => x.EnglishAddress, new Dictionary<string, object> { { "style", "width: 90%" } })
  359. </td>
  360. </tr>
  361. <tr>
  362. <td>
  363. @Html.LabelFor(x => x.HistoryEvolution):
  364. </td>
  365. <td colspan="3">
  366. @Html.TextAreaFor(x => x.HistoryEvolution, new Dictionary<string, object> { { "style", "width: 90%;min-height: 40px" } })
  367. </td>
  368. </tr>
  369. <tr>
  370. <td>
  371. @Html.LabelFor(x => x.Remark):
  372. </td>
  373. <td colspan="3">
  374. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  375. </td>
  376. </tr>
  377. </table>
  378. </div>
  379. }
  380. </div>