@model EMIS.ViewModel.SystemView.AnnouncementView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "EditGDCX"; } @section header{ } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.textContent) @**@
@Html.LabelFor(x => x.Title): @Html.TextBoxFor(x => x.Title, new { style = "width: 90%" })
@Html.LabelFor(x => x.AnnouncementTypeID): @Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" }) @Html.LabelFor(x => x.IsTop): @Html.CheckBoxFor(x => x.IsTopEdit) @Html.LabelFor(x => x.IsSendWX): @Html.CheckBoxFor(x => x.IsSendWXEdit, new Dictionary { { "onclick", "selectSendWX()" } })
@Html.LabelFor(x => x.StartTime): @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime }) @Html.LabelFor(x => x.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
@Html.LabelFor(x => x.Content): @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 580 })
发布角色: @Html.ContextMenuBar("Edit-RoleViewGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { 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 })
发布用户: @Html.ContextMenuBar("Edit-UserViewGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { 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 })
}