@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; 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 } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 教材类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "TeachingMaterialTypeDropdown", ID = "TeachingMaterialTypeDropdown", OnSelect = "QueryTeachingMaterialTypeDropdownList" }, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
  • 课程名称:
  • @Html.ComboGrid(Csop, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
  • 出版单位:
  • @Html.ComboGrid(Psop, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
  • 是否过期:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "LateDropdown", ID = "LateDropdown", OnSelect = "QueryLateDropdownList" }, new Dictionary { { "data-condition", "dgTeachingMaterialPoolList" } })
教材信息列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" }, new LinkButtonColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center , Handle="edit",Width=0.04 }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center, OverflowLength=10 ,Width=0.04 }, new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=15, Width=0.1 }, new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 }, //new BoundFieldColumn { FieldName="TeachingMaterialTypeName", HeaderText="教材类型", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.08 }, new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center,Width=0.03 }, new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center,Width=0.03 } //new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), ID = "dgTeachingMaterialPoolList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })