Edit.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @model EMIS.ViewModel.CollegeView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center ,Width=0.1 },
  15. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center ,Width=0.2 }
  16. },
  17. PageSize = 5,
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Campus/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions cgopPoliticalManager = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "UserID",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1 },
  34. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 },
  35. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2 }
  36. },
  37. PageSize = 5,
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Staff/List"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. ComboGridOptions cgopAdministrativeManager = new ComboGridOptions
  46. {
  47. TextField = "Name",
  48. ValueField = "UserID",
  49. GridOptions = new DataGridOptions
  50. {
  51. Columns = new List<DataGridColumn>()
  52. {
  53. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center ,Width=0.1 },
  54. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 },
  55. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center ,Width=0.2 }
  56. },
  57. PageSize = 5,
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/Staff/List"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. }
  64. };
  65. }
  66. @section scripts{
  67. <script src="~/Scripts/Business/AdministrativeOrgan/CollegeEdit.js" type="text/javascript"></script>
  68. }
  69. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  70. @using (Ajax.BeginForm(new AjaxOptions
  71. {
  72. OnSuccess = "EMISFunction.FormSuccess",
  73. OnBegin = "EMISFunction.FormSubmit",
  74. OnComplete = "EMISFunction.FormComplete"
  75. }))
  76. {
  77. <div class="p_title">
  78. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  79. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  80. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  81. {
  82. @Html.ContextMenuBar("Edit")
  83. }
  84. </div>
  85. </div>
  86. <div class="search_list">
  87. @Html.HiddenFor(x => x.CollegeID)
  88. <table cellpadding="0" cellspacing="0" id="universitytable">
  89. <tr>
  90. <td>
  91. @Html.LabelFor(x => x.No):
  92. </td>
  93. <td>
  94. @Html.TextBoxFor(x => x.No)
  95. </td>
  96. <td>
  97. @Html.LabelFor(x => x.Name):
  98. </td>
  99. <td>
  100. @Html.TextBoxFor(x => x.Name)
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>
  105. @Html.LabelFor(x => x.SimpleName):
  106. </td>
  107. <td>
  108. @Html.TextBoxFor(x => x.SimpleName)
  109. </td>
  110. <td>
  111. @Html.LabelFor(x => x.EnglishName):
  112. </td>
  113. <td>
  114. @Html.TextBoxFor(x => x.EnglishName)
  115. </td>
  116. </tr>
  117. <tr>
  118. @*<td>
  119. @Html.LabelFor(x => x.CampusName):
  120. </td>
  121. <td>
  122. @Html.ComboGridFor(x => x.CampusID, cgopCampus)
  123. </td>*@
  124. <td style="color:red;">
  125. @Html.LabelFor(x => x.UnitCategoryName):
  126. </td>
  127. <td colspan="3">
  128. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, (x => x.UnitCategoryID))
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>
  133. @Html.LabelFor(x => x.PoliticalManagerName):
  134. </td>
  135. <td>
  136. @Html.ComboGridFor(x => x.PoliticalManager, cgopPoliticalManager)
  137. </td>
  138. <td>
  139. @Html.LabelFor(x => x.AdministrativeManagerName):
  140. </td>
  141. <td>
  142. @Html.ComboGridFor(x => x.AdministrativeManager, cgopAdministrativeManager)
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>
  147. @Html.LabelFor(x => x.FoundDate):
  148. </td>
  149. <td>
  150. @Html.TextBoxFor(x => x.FoundDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  151. </td>
  152. <td>
  153. @Html.LabelFor(x => x.Officephone):
  154. </td>
  155. <td>
  156. @Html.TextBoxFor(x => x.Officephone)
  157. </td>
  158. </tr>
  159. <tr>
  160. <td>
  161. @Html.LabelFor(x => x.Remark):
  162. </td>
  163. <td colspan="3">
  164. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  165. </td>
  166. </tr>
  167. </table>
  168. </div>
  169. }
  170. </div>