@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "StusdentStatistical"; ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/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 MaterialCode = new ComboGridOptions { TextField = "TeachingMaterialName", ValueField = "TeachingMaterialPoolID", ID = "TeachingMaterialDropdown", Name = "TeachingMaterialDropdown", OnSelect = "QueryTeachingMaterialDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", OnSelect = "QueryGrademajorDropdownList", ID = "GrademajorDropdown", Name = "GrademajorDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { 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, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition("StusdentStatisticalList")
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "QuerySchoolYearDropdownList" }, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • @*
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • *@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • 年级专业:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • 教材名称:
  • @Html.ComboGrid(MaterialCode, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • 课程名称:
  • @Html.ComboGrid(Csop, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
  • 出版单位:
  • @Html.ComboGrid(Psop, new Dictionary { { "data-condition", "dgStusdentStatistical" } })
学生征订统计列表
@Html.ContextMenuBar("StusdentStatisticalList")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.08 }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.06}, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width=0.08 }, //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Width=0.06}, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.08 }, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.03, OverflowLength=4 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center,Width=0.03 }, new BoundFieldColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center ,Width=0.02}, new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center,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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentsOrder/StusdentStatisticalList"), ID = "dgStusdentStatistical", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })