@model EMIS.ViewModel.Specialtyclass.FacultymajorView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", 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 } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.FacultymajorID)
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name)
@Html.LabelFor(x => x.Abbreviation): @Html.TextBoxFor(x => x.Abbreviation) @Html.LabelFor(x => x.EnglishName): @Html.TextBoxFor(x => x.EnglishName)
@Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor(x => x.CollegeID, cgopCollege) @Html.LabelFor(x => x.StandardName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), DropdownListBindType.PleaseSelect, new ComboGridOptions { 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.EducationID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID)) @Html.LabelFor(x => x.LearningformID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID))
@Html.LabelFor(x => x.LearnSystem): @Html.TextBoxFor(x => x.LearnSystem) @Html.LabelFor(x => x.ScienceclassID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID))
@Html.LabelFor(x => x.LearningstyleID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningstyle, (x => x.LearningstyleID)) @Html.LabelFor(x => x.LearnPositionID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LearnPosition, (x => x.LearnPositionID))
@Html.LabelFor(x => x.TeacherIdentification): @Html.TextBoxFor(x => x.TeacherIdentification) @Html.LabelFor(x => x.SetTime): @Html.TextBoxFor(x => x.SetTime, new TextBoxOptions { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}