@using Bowin.Web.Controls.Mvc; @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 = "queryCollege", 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 cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryStandard", Name = "ddlStandard", ID = "ddlStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), 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="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 } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
    @*
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • *@
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "queryClass", SelectedValue =@ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryClass", SelectedValue=BaseExtensions.GetCurrentYearID() }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • @*
  • 专业名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Facultymajor/BindStandardDropDownList"), Name = "ddlStandard", ID = "ddlStandard", OnSelect = "reloadClassmajor" }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })@*//, OnLoadSuccess = "reloadClassmajor"
  • *@ @*
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "QuerySchoolyearDictionaryList" }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • *@
  • 年级专业:
  • @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Grademajor/BindDropdownListByCollege"), Name = "ComboGridGrademajor", ID = "ComboGridGrademajor", OnSelect = "QueryComboGridList", OnLoadSuccess = "QueryComboGridList" }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })*@ @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • 课程名称:
  • @Html.ComboGrid(Csop, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • 教材名称:
  • @Html.ComboGrid(MaterialCode, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
  • 发放状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "OrderedDropdown", ID = "OrderedDropdown", OnSelect = "QueryOrderedDropdownList" }, new Dictionary { { "data-condition", "dgStudentDistributeList" } })
学生发放列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentDistributeID", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,CustomFormatFun="XNSetColors", Width=0.06 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,CustomFormatFun="YXSetColors", Width=0.08 }, new BoundFieldColumn { FieldName="GradeSpecialtyName", HeaderText="年级专业名称", Align=AlignStyle.Center,CustomFormatFun="NJSetColors", Width=0.1 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,CustomFormatFun="KCMSetColors", Width=0.06 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center,CustomFormatFun="KCMSetColors", Width=0.1, OverflowLength=15 }, new BoundFieldColumn { FieldName="StudentQty", HeaderText="人数", Align=AlignStyle.Center,CustomFormatFun="XSSetColors", Width=0.03 }, new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center,CustomFormatFun="ZJSetColors", Width=0.04 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center,CustomFormatFun="DJSetColors", Width=0.04 }, //new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center ,CustomFormatFun="ZKLSetColors", Width=0.03}, //new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价(¥)", Align=AlignStyle.Center,CustomFormatFun="ZHJSetColors", Width=0.06}, new BoundFieldColumn { FieldName="PresentInventory", HeaderText="库存数量", Align=AlignStyle.Center,CustomFormatFun="KCSetColors", Width=0.04 }, new LinkButtonColumn{ FieldName="DistributeQty", HeaderText="发放人数", Align=AlignStyle.Center,Handle="StudentDistributeDetail", Width=0.04}, new LinkButtonColumn { FieldName="RemainingQty", HeaderText="未发人数", Align=AlignStyle.Center,Handle="StudentDistributeView", Width=0.04}, //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,CustomFormatFun="JCBHMSetColors" , Width=0.06 }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,CustomFormatFun="JCMSetColors", Width=0.1 }, new BoundFieldColumn { FieldName="GrademajorID", HeaderText="年级专业ID", IsHidden=true, Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID", IsHidden=true, Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="IsDistributeName", HeaderText="发放状态", Align=AlignStyle.Center,CustomFormatFun="StateSetColors", Width=0.04 } }, PageSize = 50, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentDistribute/List"), ID = "dgStudentDistributeList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })