UserAnnouncementSendGDCX.cshtml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @model EMIS.ViewModel.SystemView.AnnouncementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "UserAnnouncementSendGDCX";
  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 type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_all_min.js"></script>
  28. <script src="~/Scripts/Business/Common/UserAnnouncementSend.js" type="text/javascript"></script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @using (Ajax.BeginForm(new AjaxOptions
  32. {
  33. OnSuccess = "EMISFunction.FormSuccess",
  34. OnBegin = "EMISFunction.FormSubmit",
  35. OnComplete = "EMISFunction.FormComplete"
  36. }))
  37. {
  38. @Html.Hidden("UserIDs")
  39. <div class="p_title">
  40. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  41. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("UserAnnouncementSend")</div>
  42. </div>
  43. <div class="search_list popupWindowContent">
  44. @Html.HiddenFor(x => x.textContent)
  45. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  46. <tr>
  47. <td>
  48. @Html.LabelFor(x => x.Title):
  49. </td>
  50. <td colspan="3">
  51. @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. @Html.LabelFor(x => x.AnnouncementTypeID):
  57. </td>
  58. <td>
  59. @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" })
  60. </td>
  61. <td>
  62. @Html.LabelFor(x => x.IsSendWX):
  63. </td>
  64. <td>
  65. @Html.CheckBoxFor(x => x.IsSendWXEdit, new Dictionary<string, object> { { "onclick", "selectSendWX()" } })
  66. </td>
  67. </tr>
  68. <tr class="msgtr" style="display:none">
  69. <td colspan="4" style="color:red">
  70. 温馨提示:由于微信平台的消息显示限制,目前仅支持无特殊格式的纯文本信息,信息中的图片及特殊格式将无法显示,且内容字数不超过100字,请知悉,谢谢。
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>
  75. @Html.LabelFor(x => x.Content):
  76. </td>
  77. <td colspan="3">
  78. @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 580 })
  79. </td>
  80. </tr>
  81. </table>
  82. </div>
  83. }
  84. </div>