@model EMIS.ViewModel.SchedulingManage.CollegePriorityView @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 cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", IsEnabled = isDisable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), 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.CollegePriorityID)
@Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgop) @Html.LabelFor(x => x.Priority): @Html.TextBoxFor(x => x.Priority, new TextBoxOptions { IsEnabled = isEnable })
@Html.LabelFor(x => x.StartDate): @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.EndDate): @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
}
@section scripts{ }