@model EMIS.ViewModel.StudentManage.StudentProfile.StudentView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "CheckEdit"; List editFeildViewList = ViewBag.EditFeildViews; List typeNameList = ViewBag.TypeNames; //班级信息 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", 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 } }; var controls = new Dictionary>(); controls.Add("PhotoUrl", new KeyValuePair(Html.LabelFor(x => x.PhotoUrl), MvcHtmlString.Create("
"))); controls.Add("LoginID", new KeyValuePair(Html.LabelFor(x => x.LoginID), Html.TextBoxFor(x => x.LoginID))); controls.Add("Name", new KeyValuePair(Html.LabelFor(x => x.Name), Html.TextBoxFor(x => x.Name))); controls.Add("SexID", new KeyValuePair(Html.LabelFor(x => x.SexID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID)))); controls.Add("BirthDate", new KeyValuePair(Html.LabelFor(x => x.BirthDate), Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }))); controls.Add("NationID", new KeyValuePair(Html.LabelFor(x => x.NationID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID)))); controls.Add("PoliticsID", new KeyValuePair(Html.LabelFor(x => x.PoliticsID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID)))); controls.Add("StudentType", new KeyValuePair(Html.LabelFor(x => x.StudentType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType)))); controls.Add("CertificatesType", new KeyValuePair(Html.LabelFor(x => x.CertificatesType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType)))); controls.Add("IDNumber", new KeyValuePair(Html.LabelFor(x => x.IDNumber), @Html.TextBoxFor(x => x.IDNumber))); controls.Add("InSchoolStatusID", new KeyValuePair(Html.LabelFor(x => x.InSchoolStatusID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID)))); controls.Add("StudentStatus", new KeyValuePair(Html.LabelFor(x => x.StudentStatus), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus)))); controls.Add("ClassmajorID", new KeyValuePair(Html.LabelFor(x => x.ClassmajorID), Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor))); controls.Add("UsedName", new KeyValuePair(Html.LabelFor(x => x.UsedName), Html.TextBoxFor(x => x.UsedName))); controls.Add("DirectorName", new KeyValuePair(Html.LabelFor(x => x.DirectorName), Html.TextBoxFor(x => x.DirectorName))); controls.Add("LiteracyLevelID", new KeyValuePair(Html.LabelFor(x => x.LiteracyLevelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID)))); controls.Add("CultureModelID", new KeyValuePair(Html.LabelFor(x => x.CultureModelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModelID)))); controls.Add("Country", new KeyValuePair(Html.LabelFor(x => x.Country), Html.TextBoxFor(x => x.Country))); controls.Add("Place", new KeyValuePair(Html.LabelFor(x => x.Place), Html.TextBoxFor(x => x.Place))); controls.Add("BornPlace", new KeyValuePair(Html.LabelFor(x => x.BornPlace), Html.TextBoxFor(x => x.BornPlace))); controls.Add("HealthStateID", new KeyValuePair(Html.LabelFor(x => x.HealthStateID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID)))); controls.Add("BloodGroup", new KeyValuePair(Html.LabelFor(x => x.BloodGroup), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup)))); controls.Add("Specialty", new KeyValuePair(Html.LabelFor(x => x.Specialty), Html.TextBoxFor(x => x.Specialty))); controls.Add("Height", new KeyValuePair(Html.LabelFor(x => x.Height), Html.TextBoxFor(x => x.Height))); controls.Add("Weight", new KeyValuePair(Html.LabelFor(x => x.Weight), Html.TextBoxFor(x => x.Weight))); controls.Add("IsDreamProject", new KeyValuePair(Html.LabelFor(x => x.IsDreamProject), Html.CheckBoxFor(x => x.IsDreamProject))); controls.Add("Email", new KeyValuePair(Html.LabelFor(x => x.Email), Html.TextBoxFor(x => x.Email))); controls.Add("Mobile", new KeyValuePair(Html.LabelFor(x => x.Mobile), Html.TextBoxFor(x => x.Mobile))); controls.Add("Telephone", new KeyValuePair(Html.LabelFor(x => x.Telephone), Html.TextBoxFor(x => x.Telephone))); controls.Add("ZIPCode", new KeyValuePair(Html.LabelFor(x => x.ZIPCode), Html.TextBoxFor(x => x.ZIPCode))); controls.Add("WeChatNum", new KeyValuePair(Html.LabelFor(x => x.WeChatNum), Html.TextBoxFor(x => x.WeChatNum))); controls.Add("QQ", new KeyValuePair(Html.LabelFor(x => x.QQ), Html.TextBoxFor(x => x.QQ))); controls.Add("HomeAddress", new KeyValuePair(Html.LabelFor(x => x.HomeAddress), Html.TextBoxFor(x => x.HomeAddress))); controls.Add("WorkUnit", new KeyValuePair(Html.LabelFor(x => x.WorkUnit), Html.TextBoxFor(x => x.WorkUnit))); controls.Add("Address", new KeyValuePair(Html.LabelFor(x => x.Address), Html.TextBoxFor(x => x.Address))); controls.Add("Dormitory", new KeyValuePair(Html.LabelFor(x => x.Dormitory), Html.TextBoxFor(x => x.Dormitory))); controls.Add("Recipient", new KeyValuePair(Html.LabelFor(x => x.Recipient), Html.TextBoxFor(x => x.Recipient))); controls.Add("BankName", new KeyValuePair(Html.LabelFor(x => x.BankName), Html.TextBoxFor(x => x.BankName))); controls.Add("CardNo", new KeyValuePair(Html.LabelFor(x => x.CardNo), Html.TextBoxFor(x => x.CardNo))); controls.Add("ExamineeNum", new KeyValuePair(Html.LabelFor(x => x.ExamineeNum), Html.TextBoxFor(x => x.ExamineeNum))); controls.Add("AdmissionTicketNo", new KeyValuePair(Html.LabelFor(x => x.AdmissionTicketNo), Html.TextBoxFor(x => x.AdmissionTicketNo))); controls.Add("ExamineeType", new KeyValuePair(Html.LabelFor(x => x.ExamineeType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType)))); controls.Add("EntranceDate", new KeyValuePair(Html.LabelFor(x => x.EntranceDate), Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }))); controls.Add("Score", new KeyValuePair(Html.LabelFor(x => x.Score), Html.TextBoxFor(x => x.Score))); controls.Add("EntranceWayID", new KeyValuePair(Html.LabelFor(x => x.EntranceWayID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID)))); controls.Add("FeaturesID", new KeyValuePair(Html.LabelFor(x => x.FeaturesID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID)))); controls.Add("TerritorialID", new KeyValuePair(Html.LabelFor(x => x.TerritorialID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID)))); controls.Add("Area", new KeyValuePair(Html.LabelFor(x => x.Area), Html.TextBoxFor(x => x.Area))); controls.Add("Career", new KeyValuePair(Html.LabelFor(x => x.Career), Html.TextBoxFor(x => x.Career))); controls.Add("Remark", new KeyValuePair(Html.LabelFor(x => x.Remark), Html.TextBoxFor(x => x.Remark))); } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Confirm")
@Html.HiddenFor(x => x.UserID) @**@ @foreach (var typeName in typeNameList) { foreach (var editFeildView in editFeildViewList.Where(q => q.TypeName == typeName).OrderBy(q => q.OrderNo)) { } }
列名 修改前 修改后 校对状态
@Html.LabelFor(x => x.PhotoUrl): @Html.DisplayName(EMIS.ViewModel.CacheManage.IdNameExt.GetName(EMIS.ViewModel.DictionaryItem.CF_CheckingType, (int)EMIS.ViewModel.CF_CheckingType.Close))
@if (controls.Keys.Contains(editFeildView.ColumnFeild)) { @controls[editFeildView.ColumnFeild].Key } : @if (!editFeildView.ColumnName.Contains("PhotoUrl")) { @Html.Display(editFeildView.ColumnName) } else { @MvcHtmlString.Create("
") }
@if (editFeildView.IsEdit && controls.Keys.Contains(editFeildView.ColumnFeild)) { @controls[editFeildView.ColumnFeild].Value } else if (editFeildView.ColumnName == "PhotoUrl") { @MvcHtmlString.Create("
") } else { @Html.Display(editFeildView.ColumnName) }
@Html.DisplayName(editFeildView.CheckingTypeName)
}