@model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ Layout = "~/Views/Shared/_Layout.cshtml"; ViewBag.Title = "异动申请信息"; var isView = (bool)ViewBag.IsView; var textAreaHtmlAttributes = new Dictionary { { "style", "width:540px" } }; if (isView) { textAreaHtmlAttributes.Add("disabled", "disabled"); } var cgopLoginID = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsEnabled = !isView, OnSelect = "SelectCallback", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.2 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.2 }, 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 = "StandardName", ValueField = "StandardID", OnSelect = "QueryAfterStandardGrid", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; }
@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_ChangeType, m => m.DifferentDynamicType)
@Html.LabelFor(m => m.UserID): @Html.ComboGridFor(x => x.UserID, cgopLoginID) @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_ChangeReason, x => x.Reason, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "", GridOptions = new DataGridOptions { OnLoadSuccessFun = "" } }) @Html.HiddenFor(m => m.Reason)
@Html.LabelFor(m => m.ApplyRemark): @Html.TextAreaFor(m => m.ApplyRemark, textAreaHtmlAttributes)
@Html.LabelFor(m => m.Source): @Html.TextAreaFor(m => m.Source, textAreaHtmlAttributes)
@Html.LabelFor(m => m.Direction): @Html.TextAreaFor(m => m.Direction, textAreaHtmlAttributes)
@Html.LabelFor(m => m.Remark): @Html.TextAreaFor(m => m.Remark, textAreaHtmlAttributes)
}
@section scripts{ }