/// <summary> /// 采购订单 /// </summary> /// <returns></returns> public ActionResult StocksOrder() { List <Depots> dplist = DepotsBLL.GetAll(); List <ProductLend> prolendlist = ProductLendBLL.GetAll(); ViewData["dplist"] = dplist; ViewData["prolendlist"] = prolendlist; //商品类别 List <ProductTypes> ptlist = ProductTypesBLL.GetAll(); //商品规格 List <ProductSpec> pslist = ProductSpecBLL.GetAll(); //商品单位 List <ProductUnit> pulist = ProductUnitBLL.GetAll(); //商品颜色 List <ProductColor> pclist = ProductColorBLL.GetAll(); ViewData["ptlist"] = ptlist; ViewData["pslist"] = pslist; ViewData["pulist"] = pulist; ViewData["pclist"] = pclist; int count = StocksBLL.GetAll().Count; int MaxPageIndex = count % 10 == 0 ? count / 10 : count / 10 + 1; ViewData["count"] = count; ViewData["MaxPageIndex"] = MaxPageIndex; return(View()); }
/// <summary> /// 其它出库 /// </summary> /// <returns></returns> public ActionResult OutOther() { List <Depots> cus = DepotsBLL.GetAll(); ViewData["dlist"] = cus; int count = OtherOutDepotBLL.GetAll().Count; int MaxPageIndex = count % 10 == 0 ? count / 10 : count / 10 + 1; ViewData["count"] = count; ViewData["MaxPageIndex"] = MaxPageIndex; //商品类别 List <ProductTypes> ptlist = ProductTypesBLL.GetAll(); //商品规格 List <ProductSpec> pslist = ProductSpecBLL.GetAll(); //商品单位 List <ProductUnit> pulist = ProductUnitBLL.GetAll(); //商品颜色 List <ProductColor> pclist = ProductColorBLL.GetAll(); ViewData["ptlist"] = ptlist; ViewData["pslist"] = pslist; ViewData["pulist"] = pulist; ViewData["pclist"] = pclist; return(View()); }
/// <summary> /// 仓库翻页 /// </summary> /// <param name="PageIndex"></param> /// <returns></returns> public ActionResult SetWarehousePage(int PageIndex) { List <Depots> list = DepotsBLL.GetAllPage(PageIndex, 10); ViewData["depotList"] = list; ViewData["count"] = DepotsBLL.GetAll().Count; ViewData["PageIndex"] = PageIndex; return(View("SetWarehouse")); }
public ActionResult SetWarehouse() { List <Depots> list = DepotsBLL.GetAllPage(1, 10); ViewData["depotList"] = list; ViewData["count"] = DepotsBLL.GetAll().Count; ViewData["PageIndex"] = 1; return(View()); }
/// <summary> /// 采购退货 /// </summary> /// <returns></returns> public ActionResult ReturnStock() { List <ProductLend> plist = ProductLendBLL.GetAll(); List <Depots> dplist = DepotsBLL.GetAll(); ViewData["plist"] = plist; ViewData["dplist"] = dplist; return(View()); }
/// <summary> /// 库存异动 /// </summary> /// <returns></returns> public ActionResult StockChange() { ViewData["dplist"] = DepotsBLL.GetAll();//仓库 List <InOutDepotDetail> list = InOutDepotBLL.GetAll(); int MaxPageIndex = list.Count % 10 == 0 ? list.Count / 10 : list.Count / 10 + 1; ViewData["MaxPageIndex"] = MaxPageIndex; ViewData["count"] = list.Count; return(View()); }
/// <summary> /// 商品资料 /// </summary> /// <returns></returns> public ActionResult Products() { int count = ProductsBLL.GetAll().Count; ViewData["PageIndex"] = 1; ViewData["count"] = count; ViewData["MaxPageIndex"] = count % 10 == 0 ? count / 10 : count / 10 + 1; ViewData["PTList"] = ProductTypesBLL.GetAll(); //所有商品类别 ViewData["PUList"] = ProductUnitBLL.GetAll(); //所有商品单位 ViewData["PCList"] = ProductColorBLL.GetAll(); //所有商品颜色 ViewData["PSList"] = ProductSpecBLL.GetAll(); //所有商品规格 ViewData["DPList"] = DepotsBLL.GetAll(); //所有仓库信息 return(View()); }
/// <summary> /// 当前库存 /// </summary> public ActionResult NewStock() { ViewData["ptlist"] = ProductTypesBLL.GetAll(); //商品类别 ViewData["pclist"] = ProductColorBLL.GetAll(); //商品颜色 ViewData["pslist"] = ProductSpecBLL.GetAll(); //商品规格 ViewData["pulist"] = ProductUnitBLL.GetAll(); //商品单位 ViewData["dplist"] = DepotsBLL.GetAll(); //仓库 int count = DepotStockDAL.GetAll().Count; ViewData["count"] = count; count = count % 10 == 0 ? count / 10 : count / 10 + 1; ViewData["MaxPageIndex"] = count; ViewData["PageIndex"] = 1; return(View()); }
/// <summary> /// 销售出货 /// </summary> /// <returns></returns> public ActionResult SaleOut() { List <Customers> cus = CustomersBLL.GetAll(); ViewData["clist"] = cus; ViewData["dlist"] = DepotsBLL.GetAll(); int count = SaleDepotBLL.GetAll().Count; int MaxPageIndex = count % 10 == 0 ? count / 10 : count / 10 + 1; ViewData["count"] = count; ViewData["MaxPageIndex"] = MaxPageIndex; int count1 = CustomerOrderBLL.GetAll().Count; int MaxPageIndex1 = count1 % 10 == 0 ? count1 / 10 : count1 / 10 + 1; ViewData["count1"] = count1; ViewData["MaxPageIndex1"] = MaxPageIndex1; return(View()); }
/// <summary> /// 库存溢出 /// </summary> /// <returns></returns> public ActionResult StockOverflow() { ViewData["dlist"] = DepotsBLL.GetAll(); //仓库 //商品类别 List <ProductTypes> ptlist = ProductTypesBLL.GetAll(); //商品规格 List <ProductSpec> pslist = ProductSpecBLL.GetAll(); //商品单位 List <ProductUnit> pulist = ProductUnitBLL.GetAll(); //商品颜色 List <ProductColor> pclist = ProductColorBLL.GetAll(); ViewData["ptlist"] = ptlist; ViewData["pslist"] = pslist; ViewData["pulist"] = pulist; ViewData["pclist"] = pclist; return(View()); }
/// <summary> /// 销售退货 /// </summary> /// <returns></returns> public ActionResult ReturnSale() { List <Customers> clist = CustomersBLL.GetAll(); List <Depots> dplist = DepotsBLL.GetAll(); ViewData["clist"] = clist; ViewData["dplist"] = dplist; //商品类别 List <ProductTypes> ptlist = ProductTypesBLL.GetAll(); //商品规格 List <ProductSpec> pslist = ProductSpecBLL.GetAll(); //商品单位 List <ProductUnit> pulist = ProductUnitBLL.GetAll(); //商品颜色 List <ProductColor> pclist = ProductColorBLL.GetAll(); ViewData["ptlist"] = ptlist; ViewData["pslist"] = pslist; ViewData["pulist"] = pulist; ViewData["pclist"] = pclist; return(View()); }
/// <summary> /// 采购入库 /// </summary> /// <returns></returns> public ActionResult InStock() { List <Depots> dplist = DepotsBLL.GetAll(); List <ProductLend> prolendlist = ProductLendBLL.GetAll(); ViewData["dplist"] = dplist; ViewData["prolendlist"] = prolendlist; //采购单总条数 int count = StocksBLL.GetAll().Count; int MaxPageIndex = count % 10 == 0 ? count / 10 : count / 10 + 1; //入库单总数量 int count1 = StockInDepotBLL.GetAll().Count; int MaxPageIndex1 = count1 % 10 == 0 ? count1 / 10 : count1 / 10 + 1; ViewData["count"] = count; ViewData["MaxPageIndex"] = MaxPageIndex; ViewData["count1"] = count1; ViewData["MaxPageIndex1"] = MaxPageIndex1; ViewData["PageIndex"] = 1; ViewData["PageIndex1"] = 1; return(View()); }
/// <summary> /// 商品拆分 /// </summary> /// <returns></returns> public ActionResult ProductSplit() { ViewData["dlist"] = DepotsBLL.GetAll();//仓库 return(View()); }
/// <summary> /// 库存调拨 /// </summary> /// <returns></returns> public ActionResult StockAllot() { ViewData["dlist"] = DepotsBLL.GetAll();//仓库 return(View()); }