123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- @model EMIS.ViewModel.SystemView.AnnouncementView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "EditGDCX";
- }
- @section header{
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <link rel="stylesheet" type="text/css" href="~/Scripts/Bowin.Control.Core/Plugins/ueditor/themes/default/ueditor.css" />
- }
- @section scripts{
- <!-- 配置文件 -->
- <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_config.js"></script>
- <script type="text/javascript" charset="utf-8">
- (function () {
- window.UEDITOR_CONFIG.toolbars = [
- ['source', '|', 'undo', 'redo', '|',
- 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', '|',
- 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'fontfamily', 'fontsize', '|',
- 'directionalityltr', 'directionalityrtl', '|',
- 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 'imagenone', 'imageleft', 'imageright',
- 'imagecenter', '|', 'insertimage', 'attachment', '|', 'spechars', 'searchreplace']
- ];
- })();
- </script>
- <!-- 编辑器源码文件 -->
- <script src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_all.js"></script>
- <script src="~/Scripts/Business/System/AnnouncementEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list popupWindowContent">
- @Html.HiddenFor(x => x.textContent)
- <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
- <tr>
- <td>
- @Html.LabelFor(x => x.Title):
- </td>
- <td colspan="7">
- @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.AnnouncementTypeID):
- </td>
- <td colspan="2">
- @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" })
- </td>
- <td>
- @Html.LabelFor(x => x.IsTop):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsTopEdit)
- </td>
- <td colspan="2">
- @Html.LabelFor(x => x.IsSendWX):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsSendWXEdit, new Dictionary<string, object> { { "onclick", "selectSendWX()" } })
- </td>
- </tr>
- <tr class="msgtr" style="display:none">
- <td colspan="8" style="color:red">
- 温馨提示:由于微信平台的消息显示限制,目前仅支持无特殊格式的纯文本信息,信息中的图片及特殊格式将无法显示,且内容字数不超过100字,请知悉,谢谢。
- </td>
- </tr>
- @*<tr>
- <td>@Html.LabelFor(x => x.StartTime):
- </td>
- <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
- </td>
- <td>@Html.LabelFor(x => x.EndTime):
- </td>
- <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
- </td>
- </tr>*@
- <tr>
- <td>
- @Html.LabelFor(x => x.Content):
- </td>
- <td colspan="7">
- @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 580 })
- </td>
- </tr>
- <tr>
- <td style="text-align:right">
- 发布角色:
- </td>
- <td colspan="7">
- @Html.ContextMenuBar("Edit-RoleViewGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
- new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center },
- new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit" },
- new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Announcement/GetRoleViewList?announcementID=" + Request["AnnouncementID"]),
- IsPostBack = true,
- ID = "dgRoleList",
- IsPagination = false,
- MaxHeight = 200,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- <tr>
- <td style="text-align:right">
- 发布用户:
- </td>
- <td colspan="7">
- @Html.ContextMenuBar("Edit-UserViewGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
- new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.16 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width =0.16 },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width =0.1 },
- new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width = 0.3 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Announcement/GetUserViewList?announcementID=" + Request["AnnouncementID"]),
- IsPostBack = true,
- ID = "dgUserList",
- IsPagination = false,
- MaxHeight = 200,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|