UserAnnouncementSend.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @model EMIS.ViewModel.SystemView.AnnouncementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "UserAnnouncementSend";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/Common/UserAnnouncementSend.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. @Html.Hidden("UserIDs")
  19. <div class="p_title">
  20. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("UserAnnouncementSend")</div>
  22. </div>
  23. <div class="search_list popupWindowContent">
  24. @Html.HiddenFor(x => x.textContent)
  25. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  26. <tr>
  27. <td>
  28. @Html.LabelFor(x => x.Title):
  29. </td>
  30. <td colspan="3">
  31. @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. @Html.LabelFor(x => x.AnnouncementTypeID):
  37. </td>
  38. <td>
  39. @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" })
  40. </td>
  41. <td>
  42. @Html.LabelFor(x => x.IsSendWX):
  43. </td>
  44. <td>
  45. @Html.CheckBoxFor(x => x.IsSendWXEdit, new Dictionary<string, object> { { "onclick", "selectSendWX()" } })
  46. </td>
  47. </tr>
  48. <tr class="msgtr" style="display:none">
  49. <td colspan="4" style="color:red">
  50. 温馨提示:由于微信平台的消息显示限制,目前仅支持无特殊格式的纯文本信息,信息中的图片及特殊格式将无法显示,且内容字数不超过100字,请知悉,谢谢。
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>
  55. @Html.LabelFor(x => x.Content):
  56. </td>
  57. <td colspan="3">
  58. @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. }
  64. </div>