@model EMIS.ViewModel.GraduationManage.GraduationManage.GraduationApplyView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Approve"; var isEdit = (Request["graduationApplyID"] ?? "") == ""; //学生信息 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 cgopGradConditionPackage = new ComboGridOptions { TextField = "Title", ValueField = "GraduationConditionPackageID", ID = "GradConditionPackageDropdown", Name = "GradConditionPackageDropdown", 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("~/GraduationConditionPackage/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.GraduationApplyID)
@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.GraduatingSemesterCode): @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = isEdit, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown") }) @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.GraduationConditionPackageID, cgopGradConditionPackage) @Html.LabelFor(x => x.GraduationResultName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_GraduationResult, x => x.GraduationResult, 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" } })
}