@model EMIS.ViewModel.StudentManage.OnlineChecking.CheckingHistoryView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //班级信息 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorComboGrid", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", 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.2 } }, 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" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.StudentRecordChangeHistoryID)
@Html.LabelFor(x => x.LoginID): @Html.ComboGridFor(x => x.UserID, cgopStudent) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.SexID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false }) @Html.LabelFor(x => x.InSchoolStatusName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ClassmajorName): @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor) @Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
@Html.LabelFor(x => x.Description): @Html.TextBoxFor(x => x.Description, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.CheckingTypeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CheckingType, (x => x.CheckingTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CheckingBeforeValue): @Html.TextBoxFor(x => x.CheckingBeforeValue, new TextBoxOptions() { IsEnabled = false }, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.CheckingAfterValue): @Html.TextBoxFor(x => x.CheckingAfterValue, new TextBoxOptions() { IsEnabled = false }, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.IP): @Html.TextBoxFor(x => x.IP, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.ApprovalTime): @Html.TextBoxFor(x => x.ApprovalTime, new TextBoxOptions() { IsEnabled = false })
}