@model EMIS.ViewModel.EnrollManage.NewStudentManage.NewStudentView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; //专业信息 ComboGridOptions cgopSpecialty = new ComboGridOptions { TextField = "StandardName", ValueField = "SpecialtyID", OnSelect = "querySpecialty", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.2 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.12 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.12 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.12 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Specialty/GetEnableAndUseSpecialtyView" + "?specialtyID=" + Model.SpecialtyID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@using (Html.BeginForm("Edit", "NewStudent", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.NewStudentID)
@Html.LabelFor(x => x.ExamineeNum): @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.RecruitPictureUrl):
@if (isEnable) { if (Request["type"] == "edit") { @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary { { "style", "width:125px;" } }) } else { @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary { { "style", "width:175px;" } }) } }
@Html.LabelFor(x => x.AdmissionTicketNo): @Html.TextBoxFor(x => x.AdmissionTicketNo, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.SexID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.NationID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.PoliticsID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.BirthDate): @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
@Html.LabelFor(x => x.CertificatesType): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.IDNumber): @Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() { IsEnabled = isEnable })
招生信息
@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.StandardName): @Html.ComboGridFor(x => x.SpecialtyID, cgopSpecialty)
@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.SemesterID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.AssignStatus): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_AssignStatus, (x => x.AssignStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
其它信息
@Html.LabelFor(x => x.EntranceDate): @Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.Score): @Html.TextBoxFor(x => x.Score, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Telephone): @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.ZIPCode): @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.EntranceWayID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.FeaturesID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.TerritorialID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Dormitory): @Html.TextBoxFor(x => x.Dormitory, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
}