123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- @model EMIS.ViewModel.SystemView.AnnouncementView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/System/AnnouncementEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- function Announcement_Save() {
- var stime = $("#StartTime").val();
- var etime = $("#EndTime").val();
- stime = new Date(stime);
- etime = new Date(etime);
- if (stime > etime) {
- $.messager.alert("系统提示", "发布时间不能小于截止时间");
- return;
- }
- $(document.forms[0]).submit();
- }
- </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">
- <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
- <tr>
- <td>@Html.LabelFor(x => x.Title):
- </td>
- <td>@Html.TextBoxFor(x => x.Title)
- </td>
- <td>@Html.LabelFor(x => x.AnnouncementTypeID):
- </td>
- <td>@Html.DropdownListFor(x => x.AnnouncementTypeID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Announcement/TypeDropdownList"), TextField = "Text", ValueField = "Value" })
- </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="3">@Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 700, Height = 520 })
- </td>
- </tr>
- <tr>
- <td style="text-align:right">
- 发布角色:
- </td>
- <td colspan="3">
- @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>
- </table>
- </div>
- }
- </div>
|