Exemplo n.º 1
0
 public bool UpdateShipWithReturnExpress(RmaExpressSaveDto rmaExpressSaveDto)
 {
     try
     {
         return(RestClient.Post("custom/UpdateShipRmaVia", rmaExpressSaveDto));
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
        public void UpdateRmaShipping(RmaExpressSaveDto request)
        {
            var shipping = _shippingSaleRepository.GetByRmaNo(request.RmaNo);

            if (shipping == null)
            {
                throw new OpcException(string.Format("快递单不存在,快递单号:{0}", request.ShippingCode));
            }

            shipping.ShipViaId    = request.ShipViaID;
            shipping.ShipViaName  = request.ShipViaName;
            shipping.ShippingFee  = (decimal)(request.ShippingFee);
            shipping.ShippingCode = request.ShippingCode;
            _shippingSaleRepository.Update(shipping);
        }
        public ReturnPackagePrintExpressViewModel()
        {
            RmaExpressDto              = new RmaExpressDto();
            RmaExpressSaveDto          = new RmaExpressSaveDto();
            CommandGetRmaDetailByRmaNo = new AsyncDelegateCommand(GetRmaDetailByRmaNo);
            CommandGetRmaByRmaNo       = new AsyncDelegateCommand(GetRmaByRmaNo);
            CommandSearch              = new AsyncDelegateCommand(SearchShip);
            CommandPrintView           = new DelegateCommand(PrintView);
            CommandOnlyPrint           = new DelegateCommand(OnlyPrint);
            CommandPrintExpress        = new DelegateCommand(PrintExpressComplete);
            CommandSaveShip            = new DelegateCommand(SaveShip);
            CommandSetShippingRemark   = new DelegateCommand(SetShippingRemark);
            CommandSetRmaRemark        = new DelegateCommand(SetRmaRemark);

            InitCombo();
        }
Exemplo n.º 4
0
 public IHttpActionResult UpdateShipRmaVia([FromBody] RmaExpressSaveDto request)
 {
     return(DoAction(() => { _shippingSaleService.UpdateRmaShipping(request); }, "查询退货单信息失败"));
 }