@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //ComboGridOptions cgopCampus = new ComboGridOptions //{ // TextField = "Name", // ValueField = "CampusID", // OnSelect = "QueryCampusComboGridList", // Name = "CampusDropdown", // ID = "CampusDropdown", // GridOptions = new DataGridOptions // { // Columns = new List() // { // //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } // }, // IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/Campus/List"), // IsPagination = true, // IsShowRowNumbers = true, // IsSingleSelect = false, // } //}; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeComboGridList", Name = "CollegeDropdown", ID = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", OnSelect = "QueryComboGridList", Name = "ComboGridGrademajor", ID = "ComboGridGrademajor", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions Csop = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseDropdown", Name = "CourseDropdown", OnSelect = "QueryCourseDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions TMName = new ComboGridOptions { TextField = "TeachingMaterialName", ValueField = "TeachingMaterialPoolID", ID = "TeachingMaterialDropdown", Name = "TeachingMaterialDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@Html.Position()
查询条件
@Html.Hidden("ExcelType") @Html.PositionCondition()
    @*
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • *@
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "QuerySchoolyearDropdownList", Name = "SchoolyearDropdown", SelectedValue =@ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "QuerySchoolyearDictionaryList" }, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • @*
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QuerySchoolyearDictionaryList" }, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • *@
  • 年级专业:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • 教材名称:
  • @Html.ComboGrid(TMName, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • 课程名称:
  • @Html.ComboGrid(Csop, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • 课程类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "CourseTypeDropdown", ID = "CourseTypeDropdown", OnSelect = "QueryCourseTypeDropdownList" }, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
  • 是否征订:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "OrderedDropdown", ID = "OrderedDropdown", OnSelect = "QueryOrderedDropdownList", SelectedValue = 0 }, new Dictionary { { "data-condition", "dgStudentsOrderList" } })
学生征订列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="",Align=AlignStyle.Center, FieldName="SpecialtyPlanID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center ,CustomFormatFun="CodeSetColors",Width=0.06}, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,CustomFormatFun="CollegeSetColors",Width=0.06}, //new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center,CustomFormatFun="YearsSetColors",Width=0.03}, //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center ,CustomFormatFun="GrademajorSetColors", Width=0.1 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,CustomFormatFun="CourseCodeSetColors" ,Width=0.05}, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center,CustomFormatFun="CourseSetColors", Width=0.1, OverflowLength=15}, //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center,CustomFormatFun="ClassSetColors",Width=0.02 }, new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center ,CustomFormatFun="QtySetColors",Width=0.04 }, new BoundFieldColumn { FieldName="PreIncreaseQty", HeaderText="增加数量", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Count", HeaderText="总数量", Align=AlignStyle.Center, Width=0.03 }, //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,CustomFormatFun="MaterialCodeSetColors", Width=0.04 }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,CustomFormatFun="MaterialNameSetColors", Width=0.1, OverflowLength=15 }, new BoundFieldColumn { FieldName="IsOrderedName", HeaderText="是否征订", Align=AlignStyle.Center,CustomFormatFun="IsOrderedSetColors",Width=0.04 }, new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID", IsHidden=true, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IsOrdered", HeaderText="是否征订", IsHidden=true, Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="SpecialtyPlanID", HeaderText="专业计划ID",IsHidden=true, Align=AlignStyle.Center}, //new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建时间", Align=AlignStyle.Center,Formatter= Formatter.LongDate }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentsOrder/List"), ID = "dgStudentsOrderList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@section scripts{ }