Beispiel #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());
        }
Beispiel #2
0
        /// <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());
        }