EditGDCX.cshtml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @model EMIS.ViewModel.SystemView.AnnouncementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "EditGDCX";
  6. }
  7. @section header{
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  9. <link rel="stylesheet" type="text/css" href="~/Scripts/Bowin.Control.Core/Plugins/ueditor/themes/default/ueditor.css" />
  10. }
  11. @section scripts{
  12. <!-- 配置文件 -->
  13. <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_config.js"></script>
  14. <script type="text/javascript" charset="utf-8">
  15. (function () {
  16. window.UEDITOR_CONFIG.toolbars = [
  17. ['source', '|', 'undo', 'redo', '|',
  18. 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', '|',
  19. 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'fontfamily', 'fontsize', '|',
  20. 'directionalityltr', 'directionalityrtl', '|',
  21. 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 'imagenone', 'imageleft', 'imageright',
  22. 'imagecenter', '|', 'insertimage', 'attachment', '|', 'spechars', 'searchreplace']
  23. ];
  24. })();
  25. </script>
  26. <!-- 编辑器源码文件 -->
  27. <script src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_all.js"></script>
  28. <script src="~/Scripts/Business/System/AnnouncementEdit.js" type="text/javascript"></script>
  29. <script type="text/javascript">
  30. </script>
  31. }
  32. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  33. @using (Ajax.BeginForm(new AjaxOptions
  34. {
  35. OnSuccess = "EMISFunction.FormSuccess",
  36. OnBegin = "EMISFunction.FormSubmit",
  37. OnComplete = "EMISFunction.FormComplete"
  38. }))
  39. {
  40. <div class="p_title">
  41. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  42. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  43. </div>
  44. <div class="search_list popupWindowContent">
  45. @Html.HiddenFor(x => x.textContent)
  46. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  47. <tr>
  48. <td>
  49. @Html.LabelFor(x => x.Title):
  50. </td>
  51. <td colspan="7">
  52. @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>
  57. @Html.LabelFor(x => x.AnnouncementTypeID):
  58. </td>
  59. <td colspan="2">
  60. @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" })
  61. </td>
  62. <td>
  63. @Html.LabelFor(x => x.IsTop):
  64. </td>
  65. <td>
  66. @Html.CheckBoxFor(x => x.IsTopEdit)
  67. </td>
  68. <td colspan="2">
  69. @Html.LabelFor(x => x.IsSendWX):
  70. </td>
  71. <td>
  72. @Html.CheckBoxFor(x => x.IsSendWXEdit, new Dictionary<string, object> { { "onclick", "selectSendWX()" } })
  73. </td>
  74. </tr>
  75. <tr class="msgtr" style="display:none">
  76. <td colspan="8" style="color:red">
  77. 温馨提示:由于微信平台的消息显示限制,目前仅支持无特殊格式的纯文本信息,信息中的图片及特殊格式将无法显示,且内容字数不超过100字,请知悉,谢谢。
  78. </td>
  79. </tr>
  80. @*<tr>
  81. <td>@Html.LabelFor(x => x.StartTime):
  82. </td>
  83. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  84. </td>
  85. <td>@Html.LabelFor(x => x.EndTime):
  86. </td>
  87. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  88. </td>
  89. </tr>*@
  90. <tr>
  91. <td>
  92. @Html.LabelFor(x => x.Content):
  93. </td>
  94. <td colspan="7">
  95. @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 580 })
  96. </td>
  97. </tr>
  98. <tr>
  99. <td style="text-align:right">
  100. 发布角色:
  101. </td>
  102. <td colspan="7">
  103. @Html.ContextMenuBar("Edit-RoleViewGrid")
  104. @Html.DataGrid(new DataGridOptions
  105. {
  106. Columns = new List<DataGridColumn>()
  107. {
  108. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  109. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center },
  110. new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit" },
  111. new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center },
  112. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center },
  113. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center }
  114. },
  115. IsCheckOnSelect = true,
  116. DataSourceUrl = Url.Content("~/Announcement/GetRoleViewList?announcementID=" + Request["AnnouncementID"]),
  117. IsPostBack = true,
  118. ID = "dgRoleList",
  119. IsPagination = false,
  120. MaxHeight = 200,
  121. IsShowRowNumbers = true,
  122. IsSingleSelect = false
  123. })
  124. </td>
  125. </tr>
  126. <tr>
  127. <td style="text-align:right">
  128. 发布用户:
  129. </td>
  130. <td colspan="7">
  131. @Html.ContextMenuBar("Edit-UserViewGrid")
  132. @Html.DataGrid(new DataGridOptions
  133. {
  134. Columns = new List<DataGridColumn>()
  135. {
  136. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  137. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.16 },
  138. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width =0.16 },
  139. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width =0.1 },
  140. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width = 0.3 },
  141. },
  142. IsCheckOnSelect = true,
  143. DataSourceUrl = Url.Content("~/Announcement/GetUserViewList?announcementID=" + Request["AnnouncementID"]),
  144. IsPostBack = true,
  145. ID = "dgUserList",
  146. IsPagination = false,
  147. MaxHeight = 200,
  148. IsShowRowNumbers = true,
  149. IsSingleSelect = false
  150. })
  151. </td>
  152. </tr>
  153. </table>
  154. </div>
  155. }
  156. </div>