@model EMIS.ViewModel.DifferentDynamic.DifferentDynamicView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ Layout = "~/Views/Shared/_Layout.cshtml"; ViewBag.Title = "异动申请编辑"; var isView = true; var textAreaHtmlAttributes = new Dictionary { { "style", "width:500px;" } }; if (isView) { textAreaHtmlAttributes.Add("disabled", "disabled"); } var cgopLoginIDcharge = 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.Content("~/Students/List") + "?inSchoolStatusIDs=1&inSchoolStatusIDs=3&inSchoolStatusIDs=4&inSchoolStatusIDs=5", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@using (Html.BeginForm()) {
异动申请信息
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(m => m.EntityID) @**@
@Html.LabelFor(m => m.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", IsEnabled = !isView }) @Html.LabelFor(m => m.DifferentDynamicType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicType, m => m.DifferentDynamicType, new DropdownListOptions { IsEnabled = !isView })
@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", IsEnabled = !isView })
@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), new DropdownListOptions { IsEnabled = !isView })
@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), new DropdownListOptions { IsEnabled = !isView })
@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.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, m => m.AfterStandardID, new DropdownListOptions { IsEnabled = !isView })
@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.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.ReasonName): @Html.TextAreaFor(m => m.ReasonName, textAreaHtmlAttributes)
@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)
}