@model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorPlanApplyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var DataRange = ViewBag.DataRange; ComboGridOptions cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All) { cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", IsEnabled = false, 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("GradeCopy")
@if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All) { @Html.HiddenFor(x => x.BeForeCollegeID) }
@Html.LabelFor(x => x.GrademajorBeForeYear): @Html.SchoolYearDropDownList(new DropdownListOptions { ID = "GrademajorBeForeYear", Name = "GrademajorBeForeYear", }) @Html.LabelFor(x => x.BeForeCollegeID): @Html.ComboGridFor(x => x.BeForeCollegeID, cgopcollege)
@Html.LabelFor(x => x.GrademajorAfterYear): @Html.SchoolYearDropDownList(new DropdownListOptions { ID = "GrademajorAfterYear", Name = "GrademajorAfterYear", })
}