Edit.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @model EMIS.ViewModel.DQPSystem.SOCDocView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Common.JSON;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. }
  8. @section scripts{
  9. <script type="text/javascript" src="~/Scripts/Business/DQPSystem/SOCDocEdit.js"></script>
  10. }
  11. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  12. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  13. {
  14. <div class="p_title">
  15. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  16. </div>
  17. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  18. </div>
  19. <div class="search_list">
  20. @Html.HiddenFor(x => x.DocumentID)
  21. @Html.Hidden("hidRoleData", Model.RoleList.ToJson())
  22. @Html.Hidden("hidDepartmentData", Model.DepartmentList.ToJson())
  23. <table cellpadding="0" cellspacing="0" id="levelSettingTable">
  24. <tr>
  25. <td>@Html.LabelFor(x => x.Title):
  26. </td>
  27. <td colspan="3">@Html.TextBoxFor(x => x.Title, new TextBoxOptions { }, new Dictionary<string, string> { { "style", "width: 95%;" } })
  28. </td>
  29. </tr>
  30. <tr>
  31. <td>@Html.LabelFor(x => x.SOCDocTypeID):
  32. </td>
  33. <td>
  34. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.DQP_SOCDocType, (x => x.SOCDocTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  35. </td>
  36. <td>@Html.LabelFor(x => x.IsShow):
  37. </td>
  38. <td>
  39. @Html.CheckBoxFor(x => x.IsShow)
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>@Html.LabelFor(x => x.Content):
  44. </td>
  45. <td colspan="3">
  46. <div>
  47. @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 830 })
  48. </div>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>@Html.LabelFor(x => x.RoleType):
  53. </td>
  54. <td colspan="3">
  55. <table cellpadding="0" cellspacing="0" border="0">
  56. <tr>
  57. <td width="80">
  58. <span>
  59. @Html.CheckBoxFor(x => x.RoleType, new Dictionary<string, object> { { "onclick", "changeRoleType()" } })
  60. 所有角色
  61. </span>
  62. </td>
  63. <td>
  64. @Html.ContextMenuBar("Edit-RoleViewGrid")
  65. @Html.DataGrid(new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  70. new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center }
  71. },
  72. IsCheckOnSelect = true,
  73. IsPostBack = true,
  74. IsAutoLoad = false,
  75. ID = "dgRoleList",
  76. IsPagination = false,
  77. MaxHeight = 200,
  78. IsShowRowNumbers = true,
  79. IsSingleSelect = false,
  80. IsShowHeader = false
  81. })
  82. </td>
  83. </tr>
  84. </table>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>@Html.LabelFor(x => x.CollegeType):
  89. </td>
  90. <td colspan="3">
  91. <table cellpadding="0" cellspacing="0" border="0">
  92. <tr>
  93. <td width="80">
  94. <span>
  95. @Html.CheckBoxFor(x => x.CollegeType, new Dictionary<string, object> { { "onclick", "changeCollegeType()" } })
  96. 所有部门
  97. </span>
  98. </td>
  99. <td>
  100. @Html.ContextMenuBar("Edit-CollegeViewGrid")
  101. @Html.DataGrid(new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. new CheckBoxFieldColumn{ HeaderText="", FieldName="DepartmentID"},
  106. new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center }
  107. },
  108. IsCheckOnSelect = true,
  109. IsPostBack = true,
  110. IsAutoLoad = false,
  111. ID = "dgDepartmentList",
  112. IsPagination = false,
  113. MaxHeight = 200,
  114. IsShowRowNumbers = true,
  115. IsSingleSelect = false,
  116. IsShowHeader = false
  117. })
  118. </td>
  119. </tr>
  120. </table>
  121. </td>
  122. </tr>
  123. </table>
  124. </div>
  125. }
  126. </div>