Exemplo n.º 1
0
        /// <summary>
        /// 客户订单
        /// </summary>
        /// <returns></returns>
        public ActionResult CusOrders()
        {
            List <Customers> cus = CustomersBLL.GetAll();

            ViewData["clist"] = cus;
            int count        = QuotePriceBLL.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;

            int count1        = CustomerOrderBLL.GetAll().Count;
            int MaxPageIndex1 = count1 % 10 == 0 ? count1 / 10 : count1 / 10 + 1;

            ViewData["count1"]        = count1;
            ViewData["MaxPageIndex1"] = MaxPageIndex1;
            return(View());
        }
Exemplo n.º 2
0
        /// <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());
        }
Exemplo n.º 3
0
        /// <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());
        }
Exemplo n.º 4
0
        /// <summary>
        /// 商品单位
        /// </summary>
        /// <returns></returns>
        public ActionResult ProductUnitPage()
        {
            List <ProductUnit> listed = ProductUnitBLL.GetAll();
            List <object>      list   = new List <object>();

            foreach (ProductUnit item in listed)
            {
                list.Add(new  { PUID = item.PUID, PUName = item.PUName });
            }
            return(Json(list));
        }
Exemplo n.º 5
0
        /// <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());
        }
Exemplo n.º 6
0
        /// <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());
        }
Exemplo n.º 7
0
        /// <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());
        }
Exemplo n.º 8
0
        /// <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());
        }