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