@model EMIS.ViewModel.Students.StudentsView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isAddNew = (Request["userId"] ?? "") == ""; ComboGridOptions cgopStudentcharge = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", OnSelect = "QueryClassmajorComboGrid", IsEnabled = isAddNew, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 }, //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 } //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学年学期", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@using (Html.BeginForm("Edit", "Students", new { Userid = Request["Userid"], MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" })) {
@if(Request["isView"] != "1") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.UserID) @Html.HiddenFor(x => x.PlanningGraduateDateStr) @Html.HiddenFor(x=>x.GradeMajorID) @if(isAddNew==false) { @Html.HiddenFor(x=>x.LoginID) } @**@ @if (Request["isView"] == "1") { }
个人信息
@Html.LabelFor(x => x.LoginID): @Html.TextBoxFor(x => x.LoginID, new TextBoxOptions() {IsEnabled = isAddNew }) @Html.LabelFor(x => x.PhotoUrl):
@Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary { { "style", "width:150px;" } })
@Html.LabelFor(x => x.UserName): @*@Html.TextBoxFor(x => x.UserName, new TextBoxOptions() {IsEnabled = isAddNew })*@ @Html.TextBoxFor(x => x.UserName)
@Html.LabelFor(x => x.SexID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID))
@Html.LabelFor(x => x.StudentType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType))
@Html.LabelFor(x => x.CertificatesType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType)) @Html.LabelFor(x => x.GraduationPictureUrl):
@Html.LabelFor(x => x.IDNumber): @Html.TextBoxFor(x => x.IDNumber)
@Html.LabelFor(x => x.ClassMajorID): @Html.ComboGridFor(x => x.ClassMajorID, cgopStudentcharge)
@Html.LabelFor(x => x.EnteringSchoolYearID): @Html.DropdownListFor(x => x.EnteringSchoolYearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", })
@Html.LabelFor(x => x.InSchoolStatusID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = isAddNew }) @Html.LabelFor(x => x.StudentStatus): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus))
@Html.LabelFor(x => x.Email): @Html.TextBoxFor(x => x.Email) @Html.LabelFor(x => x.Mobile): @Html.TextBoxFor(x => x.Mobile)
@Html.LabelFor(x => x.StudentCardNo): @Html.TextBoxFor(x => x.StudentCardNo) @Html.LabelFor(x => x.GraduateCardNo): @Html.TextBoxFor(x => x.GraduateCardNo)
@Html.LabelFor(x => x.PlanningGraduateDate): @Html.TextBoxFor(x => x.PlanningGraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.yyyyMMdd, IsEnabled = false }) @Html.LabelFor(x => x.IsDreamProject): @Html.CheckBoxFor(x=>x.IsDreamProject)
学生扩展信息
@Html.LabelFor(x => x.UsedName): @Html.TextBoxFor(x => x.UsedName) @Html.LabelFor(x => x.DirectorName): @Html.TextBoxFor(x => x.DirectorName)
@Html.LabelFor(x => x.BirthDate): @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.Country): @Html.TextBoxFor(x => x.Country)
@Html.LabelFor(x => x.Politics): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.Politics), DropdownListBindType.PleaseSelect) @Html.LabelFor(x => x.Nation): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.Nation), DropdownListBindType.PleaseSelect)
@Html.LabelFor(x => x.Place): @Html.TextBoxFor(x => x.Place) @Html.LabelFor(x => x.Healthy): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.Healthy))
@Html.LabelFor(x => x.BloodGroup): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup)) @Html.LabelFor(x => x.Specialty): @Html.TextBoxFor(x => x.Specialty)
@Html.LabelFor(x => x.Height): @Html.TextBoxFor(x => x.Height) @Html.LabelFor(x => x.Weight): @Html.TextBoxFor(x => x.Weight)
高考招生信息
@Html.LabelFor(x => x.ExamineeNum): @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() {IsEnabled = isAddNew }) @Html.LabelFor(x => x.EntranceDate): @Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.CultureModel): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModel)) @Html.LabelFor(x => x.ExamineeType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType))
@Html.LabelFor(x => x.EntranceWay): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWay)) @Html.LabelFor(x => x.Features): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.Features))
@Html.LabelFor(x => x.Territorial): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.Territorial), DropdownListBindType.PleaseSelect) @Html.LabelFor(x => x.Placebirth): @Html.TextBoxFor(x => x.Placebirth)
@Html.LabelFor(x => x.Area): @Html.TextBoxFor(x => x.Area) @Html.LabelFor(x => x.Score): @Html.TextBoxFor(x => x.Score)
学生缴费信息
@Html.LabelFor(x => x.CardNo): @Html.TextBoxFor(x => x.CardNo) @Html.LabelFor(x => x.BankName): @Html.TextBoxFor(x => x.BankName)
学生联系信息
@Html.LabelFor(x => x.Telephone): @Html.TextBoxFor(x => x.Telephone) @Html.LabelFor(x => x.QQ): @Html.TextBoxFor(x => x.QQ)
@Html.LabelFor(x => x.MicroMsgNo): @Html.TextBoxFor(x => x.MicroMsgNo) @Html.LabelFor(x => x.ZipCode): @Html.TextBoxFor(x => x.ZipCode)
@Html.LabelFor(x => x.Address): @Html.TextBoxFor(x => x.Address) @Html.LabelFor(x => x.WorkUnit): @Html.TextBoxFor(x => x.WorkUnit)
@Html.LabelFor(x => x.HomeAddress): @Html.TextBoxFor(x => x.HomeAddress) @Html.LabelFor(x => x.Recipient): @Html.TextBoxFor(x => x.Recipient)
@Html.LabelFor(x => x.Dormitory): @Html.TextBoxFor(x => x.Dormitory)
学生异动信息
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"}, new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit",Width=0.05 }, //new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.045 }, //new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,OverflowLength=6,Width=0.02 }, new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.025 }, new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025, IsHidden=true }, //new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025 }, //new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center,OverflowLength=13 }, //new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center,OverflowLength=13 }, new BoundFieldColumn { FieldName="EntityCreateTime", HeaderText="异动日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.04 }, //new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center,Width=0.03 }, }, PageSize=3, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/DifferentDynamicResult/StudentDifferentDynamicApplyInfo?userID=" + Model.UserID), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Career): @Html.TextAreaFor(x => x.Career, new Dictionary { { "style", "width:85%" } })
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:85%" } })
}
@section scripts{ }