@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ string Daytime = DateTime.Now.AddMonths(8).ToLongDateString(); 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 Csop = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseDropdown", Name = "CourseDropdown", OnSelect = "QueryCourseDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
入库明细列表
@Html.ContextMenuBar("Detail_StockIn")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID" }, new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center}, new BoundFieldColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="StockInNumber", HeaderText="入库编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="PublishName", HeaderText="供应商", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center}, //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TotalPrice", HeaderText="码洋", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TotalDollar", HeaderText="总价", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StockInTime", HeaderText="入库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/InventoryManagement/StockInDetail?teachingMaterialPoolID=" + ViewBag.teachingMaterialPoolID + "&schoolyearID=" + ViewBag.schoolyearID + "&discountPrice=" + ViewBag.discountPrice), ID = "dgStockInDetailList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })