@model EMIS.ViewModel.DegreeManage.DegreeManage.DegreeApplyView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Approve"; var isEdit = (Request["degreeApplyID"] ?? "") == ""; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", 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 } }; //班级信息 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorComboGrid", IsEnabled = isEdit, 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 = isEdit, 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, } }; //学位公式 ComboGridOptions cgopDegreeConditionPackage = new ComboGridOptions { TextField = "Title", ValueField = "DegreeConditionPackageID", ID = "DegreeConditionPackageDropdown", Name = "DegreeConditionPackageDropdown", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Title", HeaderText="学位公式", Align=AlignStyle.Center, Width=150 }, new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=60 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/DegreeConditionPackage/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @{ var listAction = ViewBag.ListAction as List; var defaultAction = listAction.FirstOrDefault(x => true); var defaultActionValue = (defaultAction == null ? null : defaultAction.Value); } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Approve")
@Html.HiddenFor(x => x.DegreeApplyID) @**@
@Html.LabelFor(x => x.StudentNo): @Html.ComboGridFor(x => x.UserID, cgopStudent) @Html.LabelFor(x => x.UserName): @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = isEdit })
@Html.LabelFor(x => x.SexName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, x => x.SexID, new DropdownListOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.InSchoolStatusName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, x => x.InSchoolStatusID, new DropdownListOptions() { IsEnabled = isEdit })
@Html.LabelFor(x => x.ClassName): @Html.ComboGridFor(x => x.ClassID, cgopClassmajor) @Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
@Html.LabelFor(x => x.ApplySchoolyearCode): @Html.DropdownListFor((x => x.ApplySchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = isEdit, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.GraduatingSemesterCode): @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = isEdit, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
@Html.LabelFor(x => x.GraduationTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_GraduationType, x => x.GraduationTypeID, new DropdownListOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.Title): @Html.ComboGridFor(x => x.DegreeConditionPackageID, cgopDegreeConditionPackage)
@Html.LabelFor(x => x.DegreeBatchName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeBatch, x => x.DegreeBatchID, new DropdownListOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.DegreeResultName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_DegreeResult, x => x.DegreeResult, new DropdownListOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.ApprovalResult): @Html.TextBoxFor(x => x.ApprovalResult, new TextBoxOptions() { IsEnabled = isEdit })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 25px" }, { "disabled", "true" } })
@Html.LabelFor(x => x.Action): @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
处理意见: @Html.TextAreaFor(x => x.Comment, new Dictionary { { "style", "width: 90%;min-height: 50px" } })
}