@model EMIS.ViewModel.EducationManage.TrainingClassSplitView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Split"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
分班设置信息
@Html.ContextMenuBar("Split")
校区 @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "getStandardList" }, new Dictionary { { "data-condition", "dgStudentList" } }) @EMIS.Utility.RSL.Get("College") @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlCollege", Name = "ddlCollege", ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege?bindType=1"), OnSelect = "collegeChange", OnLoadSuccess = "collegeChange" }, new Dictionary { { "data-condition", "dgStudentList" } })
年级 @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "getStandardList" }, new Dictionary { { "data-condition", "dgStudentList" } }) 专业 @Html.ComboGrid(new ComboGridOptions { GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center } }, OnLoadSuccessFun = "standardChange", IsAutoLoad = false, DataSourceUrl = Url.Content("~/Grademajor/StandardList"), IsPagination = true }, TextField = "StandardName", ValueField = "StandardID", Name = "cgbStandard", ID = "cgbStandard", OnSelect = "standardChange" }, new Dictionary { { "data-condition", "dgStudentList" } })
班级 @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "cgbClassmajor", ID = "cgbClassmajor", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsAutoLoad = false, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true } }, new Dictionary { { "data-condition", "dgStudentList" } }) 姓名 @Html.TextBox(new TextBoxOptions { ID = "txtName", Name = "txtName" }, new Dictionary { { "data-condition", "dgStudentList" } })
证件号码 @Html.TextBox(new TextBoxOptions { ID = "txtIDNumber", Name = "txtIDNumber" }, new Dictionary { { "data-condition", "dgStudentList" } }) @Html.Button(new ButtonOptions { Text = "查询", OnClick = "reload()" })
新班级名称: @Html.TextBox(new TextBoxOptions { ID = "txtNewClassName", Name = "txtNewClassName", Value = Model.Name + "(1)" }, new Dictionary { { "style", "width: 98%;" } })
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center } }, IsAutoLoad = true, DataSourceUrl = Url.Content("~/TrainingClass/StudentList?trainingClassID=" + Model.TrainingClassID.ToString()), ID = "dgStudentList", IsPagination = false }) @Html.Button(new ButtonOptions { Text = ">>", OnClick = "addStudent()" }) @Html.Button(new ButtonOptions { Text = "<<", OnClick = "removeStudent()" }) @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center } }, IsPostBack = true, IsAutoLoad = false, ID = "dgTargetStudentList", IsPagination = false })
}