@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="UnitName", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions MaterialName = 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions Library = new ComboGridOptions { TextField = "LibraryName", ValueField = "LibraryID", ID = "LibraryDropdown", Name = "LibraryDropdown", OnSelect = "QueryLibraryDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="LibraryName",HeaderText="书库名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Library/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions schoolYear = new ComboGridOptions { TextField = "Code", ValueField = "Value", ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SchoolYear/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList", SelectedValue = ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgInventoryManagementList" } })
  • 教材名称:
  • @Html.ComboGrid(MaterialName, new Dictionary { { "data-condition", "dgInventoryManagementList" } })
  • 教材类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "TeachingMaterialTypeDropdown", ID = "TeachingMaterialTypeDropdown", OnSelect = "QueryTeachingMaterialTypeDropdownList" }, new Dictionary { { "data-condition", "dgInventoryManagementList" } })
  • 出版单位:
  • @Html.ComboGrid(Psop, new Dictionary { { "data-condition", "dgInventoryManagementList" } })
库存汇总列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { //new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SchoolYearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 }, 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="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.1 }, //new BoundFieldColumn { FieldName="TeachingMaterialTypeName", HeaderText="教材类型", Align=AlignStyle.Center,Width=0.06 }, //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.1}, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 }, new BoundFieldColumn { FieldName="MinInventory", HeaderText="最小库存量", Align=AlignStyle.Center,Width=0.05 }, new BoundFieldColumn { FieldName="InventoryCollectQty", HeaderText="原库存量", Align=AlignStyle.Center,Width=0.04}, new LinkButtonColumn { FieldName="StockInQty", HeaderText="入库数量", Align=AlignStyle.Center,Width=0.04, Handle="StockInDetail" },// new LinkButtonColumn { FieldName="StockOutQty", HeaderText="出库数量", Align=AlignStyle.Center,Width=0.04, Handle="StockOutDetail" },// new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center,Width=0.05}, new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04}, //new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04}, //new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价(¥)", Align=AlignStyle.Center,Width=0.06}, //new BoundFieldColumn { FieldName="Total", HeaderText="码洋(¥)", Align=AlignStyle.Center,Width=0.04 }, //new BoundFieldColumn { FieldName="TotalDollar", HeaderText="实洋(¥)", Align=AlignStyle.Center,Width=0.04}, new BoundFieldColumn { FieldName="SchoolYearID", HeaderText="学年学期ID", Align=AlignStyle.Center,IsHidden=true }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/InventoryManagement/List"), ID = "dgInventoryManagementList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })