@model EMIS.ViewModel.DifferentDynamic.DifferentDynamicApprovalView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ Layout = "~/Views/Shared/_Layout.cshtml"; ViewBag.Title = "异动申请审核"; var cgopLoginIDcharge = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Action("AbleDifferentDynamicApplyStudentList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", OnSelect = "QueryClassmajorGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardNameStr", ValueField = "StandardID", OnSelect = "QueryAfterStandardGrid", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardNameStr", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/ListWithoutRange"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; var listAction = ViewBag.ListAction as List; var defaultAction = listAction.FirstOrDefault(x => x.Text == "请选择"); var defaultActionValue = (defaultAction == null ? null : defaultAction.Value); }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
异动申请信息
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(m => m.EntityID) @Html.HiddenFor(m => m.ApplyTypeID) @* *@ @* *@
@Html.LabelFor(m => m.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = false }) @Html.LabelFor(m => m.DifferentDynamicType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = false })
@Html.LabelFor(m => m.UserID): @Html.ComboGridFor(x => x.UserID, cgopLoginIDcharge) @Html.LabelFor(m => m.ReturnSchoolyearID): @Html.DropdownListFor(x => x.ReturnSchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value" })
@Html.LabelFor(m => m.InSchoolStatusID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false }) @Html.LabelFor(m => m.AfterInSchoolStatusID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID))
@Html.LabelFor(m => m.StudentStatus): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false }) @Html.LabelFor(m => m.AfterStudentStatus): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus))
@Html.LabelFor(m => m.StandardID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false }) @Html.LabelFor(m => m.AfterStandardID): @Html.ComboGridFor(x => x.AfterStandardID, cgopStandard) @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.AfterStandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "QueryAfterStandardGrid" })*@ @* @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { OnSelect = "QueryAfterStandardGrid" })*@
@Html.LabelFor(m => m.ClassmajorID): @Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false }) @Html.LabelFor(m => m.AfterClassmajorID): @Html.ComboGridFor(x => x.AfterClassmajorID, cgopClassmajor) @*@Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value" })*@
@Html.LabelFor(m => m.BeginTime): @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(m => m.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(m => m.Reason): @*@Html.TextAreaFor(m => m.Reason, new Dictionary { { "style", "width:540px;" }, { "disabled", "disabled" } })*@ @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicReason, x => x.Reason, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "", GridOptions = new DataGridOptions { OnLoadSuccessFun = "" } }, new Dictionary { { "disabled", "disabled" } }) @Html.HiddenFor(m => m.Reason)
@Html.LabelFor(m => m.ApplyRemark): @Html.TextAreaFor(m => m.ApplyRemark, new Dictionary { { "style", "width:540px;" }, { "disabled", "disabled" } }) @Html.HiddenFor(m => m.ApplyRemark)
@Html.LabelFor(m => m.Source): @Html.TextAreaFor(m => m.Source, new Dictionary { { "style", "width:540px;" } })
@Html.LabelFor(m => m.Direction): @Html.TextAreaFor(m => m.Direction, new Dictionary { { "style", "width:540px;" } })
@Html.LabelFor(m => m.Remark): @Html.TextAreaFor(m => m.Remark, new Dictionary { { "style", "width:540px;" } })
处理动作: @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
@Html.TextArea("txtComment", new Dictionary { { "style", "width:540px;" } })
}
@section scripts{ }