@model EMIS.ViewModel.StudentManage.StudentProfile.StudentEncourageView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Approve"; var isEnable = (Request["studentEncourageID"] ?? "") == ""; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "StudentNo", ValueField = "UserID", OnSelect = "queryStudent", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Width=0.2, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.08, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Width=0.06, Align=AlignStyle.Center, OrderFieldName="SexID" }, //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StandardID", OverflowLength=6 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Width=0.06, Align=AlignStyle.Center, OverflowLength=6 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.1, Align=AlignStyle.Center, OverflowLength=6 }, new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", CustomFormatFun="SetRedColumn" } //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Width=0.1, Align=AlignStyle.Center, OrderFieldName="StudentStatus", CustomFormatFun="SetRedColumn" } }, PageSize = 10, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Student/StudentBaseInSchoolList?userID=" + Model.UserID), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //班级信息 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", IsEnabled = false, 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 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/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.StudentEncourageID)
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { TextField = "Text", ValueField = "Value", BindType = DropdownListBindType.PleaseSelect, IsEnabled = false, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.StudentNo): @Html.ComboGridFor(x => x.UserID, cgopStudent)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.SexName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ClassmajorName): @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor) @Html.LabelFor(x => x.InSchoolStatusName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
@Html.LabelFor(x => x.EncourageName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_EncourageName, (x => x.EncourageNameID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.EncourageTypeName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_EncourageType, (x => x.EncourageTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.EncourageLevelName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_EncourageLevel, (x => x.EncourageLevelID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.DocNo): @Html.TextBoxFor(x => x.DocNo, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Unit): @if (!isEnable) { @Html.TextBoxFor(x => x.Unit, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextBoxFor(x => x.Unit, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
@Html.LabelFor(x => x.EncourageDate): @Html.TextBoxFor(x => x.EncourageDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable }) @Html.LabelFor(x => x.Amount): @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Reason): @if (!isEnable) { @Html.TextAreaFor(x => x.Reason, new Dictionary { { "style", "width: 90%;min-height: 45px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Reason, new Dictionary { { "style", "width: 90%;min-height: 45px" } }) }
@Html.LabelFor(x => x.Action): @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "ddlAction", ItemList = listAction, SelectedValue = defaultActionValue })
@Html.LabelFor(x => x.Comment): @Html.TextAreaFor(x => x.Comment, new Dictionary { { "style", "width: 90%;min-height: 50px" } })
}