@model EMIS.ViewModel.SystemView.AnnouncementView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.LabelFor(x => x.Title): @Html.TextBoxFor(x => x.Title) @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.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 = 700, Height = 520 })
发布角色: @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 })
}