Edit.cshtml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. @model EMIS.ViewModel.SystemView.AnnouncementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ProjectShareManage/ProjectInformationEdit.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @using (Ajax.BeginForm(new AjaxOptions
  12. {
  13. OnSuccess = "EMISFunction.FormSuccess",
  14. OnBegin = "EMISFunction.FormSubmit",
  15. OnComplete = "EMISFunction.FormComplete"
  16. }))
  17. {
  18. <div class="p_title">
  19. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  21. </div>
  22. <div class="search_list popupWindowContent">
  23. @Html.HiddenFor(x => x.textContent)
  24. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  25. <tr>
  26. <td>
  27. @Html.LabelFor(x => x.Title):
  28. </td>
  29. <td colspan="5">
  30. @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
  31. </td>
  32. </tr>
  33. <tr>
  34. <td>
  35. @Html.LabelFor(x => x.AnnouncementTypeID):
  36. </td>
  37. <td colspan="2">
  38. @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value", IsEditable = false })
  39. </td>
  40. <td>
  41. @Html.LabelFor(x => x.IsTop):
  42. </td>
  43. <td colspan="2">
  44. @Html.CheckBoxFor(x => x.IsTopEdit)
  45. </td>
  46. </tr>
  47. @*<tr class="msgtr" style="display:none">
  48. <td colspan="6" style="color:red">
  49. 温馨提示:由于微信平台的消息显示限制,目前仅支持无特殊格式的纯文本信息,信息中的图片及特殊格式将无法显示,且内容字数不超过100字,请知悉,谢谢。
  50. </td>
  51. </tr>*@
  52. @*<tr>
  53. <td>@Html.LabelFor(x => x.StartTime):
  54. </td>
  55. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  56. </td>
  57. <td>@Html.LabelFor(x => x.EndTime):
  58. </td>
  59. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  60. </td>
  61. </tr>*@
  62. <tr>
  63. <td>
  64. @Html.LabelFor(x => x.Content):
  65. </td>
  66. <td colspan="5">
  67. @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
  68. </td>
  69. </tr>
  70. <tr>
  71. <td style="text-align:right">
  72. 发布角色:
  73. </td>
  74. <td colspan="5">
  75. @Html.ContextMenuBar("Edit-RoleViewGrid")
  76. @Html.DataGrid(new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  81. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center },
  82. new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit" },
  83. new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center },
  84. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center },
  85. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Announcement/GetRoleViewList?announcementID=" + Request["AnnouncementID"]),
  89. IsPostBack = true,
  90. ID = "dgRoleList",
  91. IsPagination = false,
  92. MaxHeight = 200,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false
  95. })
  96. </td>
  97. </tr>
  98. <tr>
  99. <td style="text-align:right">
  100. 发布用户:
  101. </td>
  102. <td colspan="5">
  103. @Html.ContextMenuBar("Edit-UserViewGrid")
  104. @Html.DataGrid(new DataGridOptions
  105. {
  106. Columns = new List<DataGridColumn>()
  107. {
  108. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  109. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.16 },
  110. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width =0.16 },
  111. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width =0.1 },
  112. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width = 0.3 },
  113. },
  114. IsCheckOnSelect = true,
  115. DataSourceUrl = Url.Content("~/Announcement/GetUserViewList?announcementID=" + Request["AnnouncementID"]),
  116. IsPostBack = true,
  117. ID = "dgUserList",
  118. IsPagination = false,
  119. MaxHeight = 200,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false
  122. })
  123. </td>
  124. </tr>
  125. </table>
  126. </div>
  127. }
  128. </div>