@model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView @*@model EMIS.ViewModel.Students.StudentRecordView*@ @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:500px;" } }; 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 }, 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 } };*@ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
异动申请信息
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(m => m.EntityID) @Html.HiddenFor(m=>m.UserID) @Html.HiddenFor(m => m.StudentStatus) @Html.HiddenFor(m => m.ClassmajorID) @Html.HiddenFor(m => m.StandardID) @Html.HiddenFor(m => m.InSchoolStatusID) @Html.HiddenFor(m => m.ApplyTypeID) @**@ @if (Model.EntityApprovalStatus.HasValue && Model.EntityApprovalStatus != ViewBag.StartStatusID) { }
@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, new DropdownListOptions { IsEnabled = !isView })
@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", IsEnabled = !isView })
@Html.LabelFor(m => m.InSchoolStatusID): @Html.TextBoxFor(m => m.InSchoolStatusName, new Dictionary { { "disabled", "disabled" } }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), new DropdownListOptions { IsEnabled = false })*@ @Html.LabelFor(m => m.StandardID): @Html.TextBoxFor(m => m.StandardName, new Dictionary { { "disabled", "disabled" } }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.StandardID, new DropdownListOptions { IsEnabled = false })*@
@Html.LabelFor(m => m.StudentStatus): @Html.TextBoxFor(m => m.StudentStatusName, new Dictionary { { "disabled", "disabled" } }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), new DropdownListOptions { IsEnabled = false })*@ @Html.LabelFor(m => m.ClassmajorID): @Html.TextBoxFor(m => m.ClassmajorName, new Dictionary { { "disabled", "disabled" } }) @*@Html.DropdownListFor(x => x.ClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = false })*@
@Html.LabelFor(m => m.AfterInSchoolStatusID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.AfterInSchoolStatusID), new DropdownListOptions { IsEnabled = !isView }) @Html.LabelFor(m => m.AfterStudentStatus): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.AfterStudentStatus), new DropdownListOptions { IsEnabled = !isView })
@Html.LabelFor(m => m.AfterStandardID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { IsEnabled = !isView }) @Html.LabelFor(m => m.AfterClassmajorID): @Html.DropdownListFor(x => x.AfterClassmajorID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), TextField = "Text", ValueField = "Value", IsEnabled = !isView })
@Html.LabelFor(m => m.BeginTime): @Html.TextBoxFor(x => x.BeginTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView }) @Html.LabelFor(m => m.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = !isView })
@Html.LabelFor(m => m.Reason): @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{ }