@model EMIS.ViewModel.ScoreManage.ExaminationScoreView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; List lct = ViewData["lct"] as List; ComboGridOptions cgopExaminationBatch = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationBatchID", ID = "cgExaminationBatch", Name = "cgExaminationBatch", //OnSelect = "queryProject", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = false, } }; ComboGridOptions cgopExaminationType = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", Width = 171, Name = "cgExaminationType", ID = "cgExaminationType", //OnSelect = "queryProject", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = false } }; ComboGridOptions cgopExaminationProject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectID", Name = "cgExaminationProject", ID = "cgExaminationProject", //OnSelect = "querySubject", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 } }, //OnLoadSuccessFun = "querySubject", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = false } }; ComboGridOptions cgopExaminationSubject = new ComboGridOptions { TextField = "ExaminationSubject", ValueField = "ExaminationSubjectID", Name = "cgExaminationSubject", ID = "cgExaminationSubject", Width = 171, //SelectedValue = Model.ExaminationSubjectID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ExaminationSubject", HeaderText="科目考核项", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationScore/GetSubjectViewByProjectID"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = false, } }; //证件号 ComboGridOptions cgopIDNumber = new ComboGridOptions { TextField = "IDNumber", ValueField = "UserID", OnSelect = "setUserName", Width = 171, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Width=0.25, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "UserName", ValueField = "UserID", IsEnabled = false, SelectedValue = Model.UserID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Width=0.25, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), 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.ExaminationScoreID)
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), OnSelect = "schoolyearChange", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "schoolyearChange", }) @***@ @Html.LabelFor(x => x.ExaminationBatchName): @Html.DropdownListFor(x => x.ExaminationBatchID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationBatch/DropDownList?schoolyearID=" + Model.SchoolyearID), OnSelect = "examinationBatchChange", OnLoadSuccess = "examinationBatchChange", }) @*@Html.ComboGridFor(x => x.ExaminationBatchID, cgopExaminationBatch)*@ @***@
@Html.LabelFor(x => x.ExaminationTypeName): @Html.DropdownListFor(x => x.ExaminationTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExamBatchProject/TypeDropDownList?ExaminationBatchID=" + Model.ExaminationBatchID), OnSelect = "examinationTypeChange", OnLoadSuccess = "examinationTypeChange" }) @*@Html.ComboGridFor(x => x.ExaminationTypeID, cgopExaminationType)*@ @***@ @Html.LabelFor(x => x.ExaminationProjectName): @Html.DropdownListFor(x => x.ExaminationProjectID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, //OnChange = "querySubject", ItemSourceUrl = Url.Content("~/ExamBatchProject/DropDownList?ExaminationBatchID=" + Model.ExaminationBatchID + "&ExaminationTypeID=" + Model.ExaminationTypeID), OnSelect = "examinationProjectChange", OnLoadSuccess = "examinationProjectChange", }) @*@Html.ComboGridFor(x => x.ExaminationProjectID, cgopExaminationProject)*@ @***@
@Html.LabelFor(x => x.IDNumber): @Html.ComboGridFor(x => x.UserIDForIDNumber, cgopIDNumber) @Html.LabelFor(x => x.UserName): @Html.ComboGridFor(x => x.UserID, cgopStudent)
@Html.LabelFor(x => x.ExaminationSubjectName): @Html.DropdownListFor(x => x.ExaminationSubjectID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, //OnChange = "querySubject", ItemSourceUrl = Url.Content("~/ExaminationScore/SubjectDropDownList?ExaminationProjectID=" + Model.ExaminationProjectID), //OnSelect = "examinationProjectChange", //OnLoadSuccess = "examinationProjectChange", }) @*@Html.ComboGridFor(x => x.ExaminationSubjectID, cgopExaminationSubject)*@ @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationSubject, x => x.ExaminationSubjectID)*@ @Html.LabelFor(x => x.Score): @Html.TextBoxFor(x => x.Score)
@Html.LabelFor(x => x.Expire): @Html.TextBoxFor(x => x.Expire, new TextBoxOptions { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new { style = "width: 98%;" })
}