123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- @model EMIS.ViewModel.SystemView.AnnouncementView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/ProjectShareManage/ProjectInformationEdit.js" 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="5">
- @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", IsEditable = false })
- </td>
- <td>
- @Html.LabelFor(x => x.IsTop):
- </td>
- <td colspan="2">
- @Html.CheckBoxFor(x => x.IsTopEdit)
- </td>
- </tr>
- @*<tr class="msgtr" style="display:none">
- <td colspan="6" 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="5">
- @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
- </td>
- </tr>
- <tr>
- <td style="text-align:right">
- 发布角色:
- </td>
- <td colspan="5">
- @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="5">
- @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>
|