예제 #1
0
        public ActionResult Maintain()
        {
            var stockQueryFilter = new StockQueryFilter();

            //获得自贸仓库 ContainKJT设置为true
            stockQueryFilter.ContainKJT    = false;//UserAuthHelper.GetCurrentUser().VendorStockType == Entity.Store.Vendor.VendorStockType.NEG;
            stockQueryFilter.MerchantSysNo = UserAuthHelper.GetCurrentUser().SellerSysNo;
            stockQueryFilter.PageIndex     = 0;
            stockQueryFilter.PageSize      = 100000;
            var StockList = StockService.QueryStock(stockQueryFilter);

            ViewBag.StockList = StockList.ResultList;


            var shipTypeQueryFilter = new ShipTypeQueryFilter();

            shipTypeQueryFilter.MerchantSysNo = 1;
            shipTypeQueryFilter.PageIndex     = 0;
            shipTypeQueryFilter.PageSize      = 100000;
            var ShipTypeList = ShipTypeService.QueryShipType(shipTypeQueryFilter);

            ViewBag.ShipTypeList = ShipTypeList.ResultList;

            if (Request["sysno"] == null || int.Parse(Request["sysno"]) == 0)
            {
                ViewBag.StockShipTypeInfo = new StockShipTypeInfo();
            }
            else
            {
                ViewBag.StockShipTypeInfo = StockService.GetStockShipTypeInfo(int.Parse(Request["sysno"]));
            }

            return(View());
        }
예제 #2
0
        //
        // GET: /StockShipType/

        public ActionResult List()
        {
            var stockQueryFilter = new StockQueryFilter();

            //获得自贸仓库 ContainKJT设置为true
            stockQueryFilter.ContainKJT    = false;//UserAuthHelper.GetCurrentUser().VendorStockType == Entity.Store.Vendor.VendorStockType.NEG;
            stockQueryFilter.MerchantSysNo = UserAuthHelper.GetCurrentUser().SellerSysNo;
            stockQueryFilter.PageIndex     = 0;
            stockQueryFilter.PageSize      = 100000;
            var StockList = StockService.QueryStock(stockQueryFilter);

            ViewBag.StockList = StockList.ResultList;


            var shipTypeQueryFilter = new ShipTypeQueryFilter();

            shipTypeQueryFilter.MerchantSysNo = 1;
            shipTypeQueryFilter.PageIndex     = 0;
            shipTypeQueryFilter.PageSize      = 100000;
            var ShipTypeList = ShipTypeService.QueryShipType(shipTypeQueryFilter);

            ViewBag.ShipTypeList = ShipTypeList.ResultList;

            return(View());
        }
예제 #3
0
        public ActionResult Query()
        {
            var queryFilter = BuildQueryFilterEntity <ShipTypeQueryFilter>();

            queryFilter.MerchantSysNo = UserAuthHelper.GetCurrentUser().SellerSysNo;
            var data = ShipTypeService.QueryShipType(queryFilter);

            return(AjaxGridJson(data));
        }