@model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyApplyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Approve"; var isEnable = (Request["specialtyApplyID"] ?? "") == ""; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @{ var listAction = ViewBag.ListAction as List; var defaultAction = listAction.FirstOrDefault(x => true); var defaultActionValue = (defaultAction == null ? null : defaultAction.Value); } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Approve")
@Html.HiddenFor(x => x.SpecialtyApplyID)
@Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopCollege) @Html.LabelFor(x => x.GradeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.SemesterID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.StandardName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID),DropdownListBindType.PleaseSelect, new ComboGridOptions { IsEnabled = isEnable, OnSelect = "QueryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } } } })
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.EducationID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.LearningformID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.LearnSystem): @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ScienceclassID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.PropertyID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Property, (x => x.PropertyID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.StandardTitle): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardTitle, (x => x.StandardTitle), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.StandardLevel): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardLevel, (x => x.StandardLevel), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CreateUserName): @Html.TextBoxFor(x => x.CreateUserName, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.CreateTime): @Html.TextBoxFor(x => x.CreateTime, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.Action): @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
@Html.LabelFor(x => x.Comment): @Html.TextAreaFor(x => x.Comment, new Dictionary { { "style", "width: 90%;min-height: 50px" } })
}