Edit.cshtml 7.4 KB

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