Exemple #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());
        }
Exemple #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());
        }
Exemple #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());
        }
Exemple #4
0
        /// <summary>
        /// 商品类型树
        /// </summary>
        /// <returns></returns>
        public ActionResult ProductTypeTree()
        {
            List <ProductTypes> listed = ProductTypesBLL.GetAll();
            List <object>       list   = new List <object>();

            foreach (ProductTypes item in listed)
            {
                list.Add(new { PTID = item.PTID, PTName = item.PTName, PTParentID = item.PTParentID, PTDes = item.PTDes });
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Exemple #5
0
        public ActionResult ProductType()
        {
            List <ProductTypes> list = ProductTypesBLL.GetAll();

            ViewData["list"]         = list;
            ViewData["count"]        = list.Count;
            ViewData["MaxPageIndex"] = list.Count % 10 == 0 ? list.Count / 10 : list.Count / 10 + 1;
            ViewData["PageIndex"]    = 1;
            ViewData["list1"]        = ProductTypesBLL.GetAll(Convert.ToInt32(1));
            return(View());
        }
Exemple #6
0
        /// <summary>
        /// 翻页查询
        /// </summary>
        /// <returns></returns>
        public ActionResult ProductType1(int PageIndex)
        {
            ViewData["count"]     = ProductTypesBLL.GetAll().Count;
            ViewData["PageIndex"] = PageIndex;
            List <ProductTypes> listed = ProductTypesBLL.GetAll(Convert.ToInt32(PageIndex));
            List <object>       list   = new List <object>();

            foreach (ProductTypes item in listed)
            {
                list.Add(new { PTID = item.PTID, PTName = item.PTName, PTParentID = item.PTParentID, PTDes = item.PTDes });
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Exemple #7
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());
        }
Exemple #8
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());
        }
Exemple #9
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());
        }
Exemple #10
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());
        }