@model EMIS.ViewModel.SchedulingManage.SchedulingSettings.ClassroomReserveView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true); //教室信息 ComboGridOptions cgopClassroom = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", IsEnabled = isEnable, OnSelect = "queryClassroom", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="教室编号", Align=AlignStyle.Center, Width=0.12, OverflowLength=6 }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.2, OverflowLength=8 }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.15, OverflowLength=6 }, new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //建筑信息 ComboGridOptions cgopBuildings = new ComboGridOptions { TextField = "Name", ValueField = "BuildingsInfoID", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="建筑代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="建筑名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Buildings/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.ClassroomReserveID)
@Html.LabelFor(x => x.ClassroomName): @Html.ComboGridFor(x => x.ClassroomID, cgopClassroom) @Html.LabelFor(x => x.ClassroomCode): @Html.TextBoxFor(x => x.ClassroomCode, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.BuildingsInfoID): @Html.ComboGridFor(x => x.BuildingsInfoID, cgopBuildings) @Html.LabelFor(x => x.ClassroomTypeIDList): @Html.TextBoxFor(x => x.ClassroomTypeName, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.RoomUseID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_RoomUse, (x => x.RoomUseID), new DropdownListOptions() { IsEnabled = false }) @Html.LabelFor(x => x.Totalseating): @Html.TextBoxFor(x => x.Totalseating, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.Effectiveseating): @Html.TextBoxFor(x => x.Effectiveseating, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.IsConcurrentUse): @Html.TextBoxFor(x => x.IsConcurrentUseName, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.IsAvailable): @Html.TextBoxFor(x => x.IsAvailableName, new TextBoxOptions() { IsEnabled = false })
}
@section scripts{ }