Пример #1
0
        public ActionResult Edit(ShipTypeInfo stockInfo)
        {
            stockInfo.MerchantSysNo = UserAuthHelper.GetCurrentUser().SellerSysNo;
            var success = ShipTypeService.Edit(stockInfo);

            return(Json(new { Success = success, Msg = success ? LanguageHelper.GetText("操作成功") : LanguageHelper.GetText("操作失败,请稍候再试") }));
        }
Пример #2
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());
        }
Пример #3
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());
        }
Пример #4
0
        public ActionResult Query()
        {
            var queryFilter = BuildQueryFilterEntity <ShipTypeQueryFilter>();

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

            return(AjaxGridJson(data));
        }