@model EMIS.ViewModel.StudentManage.StudentProfile.StudentView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; var isEdit = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true); //院系所 ComboGridOptions 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"), 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/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //班级信息 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", IsEnabled = isEdit, OnSelect = "queryClassmajor", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.35, Align=AlignStyle.Center } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Html.BeginForm("Edit", "Student", 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.UserID) @*@Html.HiddenFor(x => x.RecruitPictureUrl) @Html.HiddenFor(x => x.GraduationPictureUrl) @Html.HiddenFor(x => x.IsPhotoComparison)*@ @if (!isEdit) { @Html.HiddenFor(x => x.StudentNo) @Html.HiddenFor(x => x.ExamineeNum) }
@Html.LabelFor(x => x.StudentNo): @Html.TextBoxFor(x => x.StudentNo, new TextBoxOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.PhotoUrl):
@if (isEnable) { if (Request["type"] == "edit") { @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary { { "style", "width:125px;" } }) } else { @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary { { "style", "width:175px;" } }) } }
@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.BirthDate): @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, 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.StudentType): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { 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.InSchoolStatusID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.StudentStatus): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEdit })
专业班级信息
@Html.LabelFor(x => x.GradeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.StandardName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.StandardCode): @Html.TextBoxFor(x => x.StandardCode, 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.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopCollege) @Html.LabelFor(x => x.ClassmajorName): @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)
学生扩展信息
@Html.LabelFor(x => x.UsedName): @Html.TextBoxFor(x => x.UsedName, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.DirectorName): @Html.TextBoxFor(x => x.DirectorName, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.LiteracyLevelID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.CultureModelID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModelID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Country): @Html.TextBoxFor(x => x.Country, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Place): @Html.TextBoxFor(x => x.Place, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.BornPlace): @Html.TextBoxFor(x => x.BornPlace, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.HealthStateID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.BloodGroup): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Specialty): @Html.TextBoxFor(x => x.Specialty, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Height): @Html.TextBoxFor(x => x.Height, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Weight): @Html.TextBoxFor(x => x.Weight, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.StudentCardNo): @Html.TextBoxFor(x => x.StudentCardNo, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.GraduateCardNo): @Html.TextBoxFor(x => x.GraduateCardNo, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.PlanningGraduateDate): @Html.TextBoxFor(x => x.PlanningGraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.GraduateDate): @Html.TextBoxFor(x => x.GraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
@Html.LabelFor(x => x.ReplaceGraduateNo): @Html.TextBoxFor(x => x.ReplaceGraduateNo, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.DegreeStatus): @if (!isEnable) { @Html.CheckBoxFor(x => x.DegreeStatus, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor((x => x.DegreeStatus)) }
@Html.LabelFor(x => x.IsDreamProject): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsDreamProject, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor((x => x.IsDreamProject)) } @Html.LabelFor(x => x.IsProofread): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsProofread, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsProofread, new Dictionary() { { "disabled", isEnable } }) }
学生联系信息
@Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Mobile): @Html.TextBoxFor(x => x.Mobile, 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.WeChatNum): @Html.TextBoxFor(x => x.WeChatNum, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.QQ): @Html.TextBoxFor(x => x.QQ, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.HomeAddress): @Html.TextBoxFor(x => x.HomeAddress, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
@Html.LabelFor(x => x.WorkUnit): @Html.TextBoxFor(x => x.WorkUnit, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
@Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
@Html.LabelFor(x => x.Dormitory): @Html.TextBoxFor(x => x.Dormitory, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Recipient): @Html.TextBoxFor(x => x.Recipient, new TextBoxOptions() { IsEnabled = isEnable })
学生缴费信息
@Html.LabelFor(x => x.BankName): @Html.TextBoxFor(x => x.BankName, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.CardNo): @Html.TextBoxFor(x => x.CardNo, new TextBoxOptions() { IsEnabled = isEnable })
高考招生信息
@Html.LabelFor(x => x.ExamineeNum): @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.AdmissionTicketNo): @Html.TextBoxFor(x => x.AdmissionTicketNo, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.ExamineeType): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @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.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.Area): @Html.TextBoxFor(x => x.Area, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
其它信息
@Html.LabelFor(x => x.Career): @if (!isEnable) { @Html.TextAreaFor(x => x.Career, new Dictionary { { "style", "width: 90%;min-height: 30px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Career, new Dictionary { { "style", "width: 90%;min-height: 30px" } }) }
@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" } }) }
}