Exemplo n.º 1
0
        public void SearchRma()
        {
            if (RmaDetailList != null)
            {
                RmaDetailList.Clear();
            }

            RmaList = AppEx.Container.GetInstance <IPaymentVerificationService>().GetRmaByFilter(PackageReceiveDto).ToList();
        }
 private void ClearRmaData()
 {
     if (RmaDetailList != null)
     {
         RmaDetailList.Clear();
     }
     if (RMADtoList != null)
     {
         RMADtoList.Clear();
     }
 }
 public void SearchSaleRma()
 {
     if (RmaDetailList != null)
     {
         RmaDetailList.Clear();
     }
     if (RmaList != null)
     {
         RmaList.Clear();
     }
     SaleRmaList = AppEx.Container.GetInstance <IPaymentVerificationService>().GetRmaByReturnGoodPay(ReturnGoodsPayDto).ToList();
 }
        public override void SearchRmaDtoListInfo()
        {
            if (OrderDto == null)
            {
                if (RmaDetailList != null)
                {
                    RmaDetailList.Clear();
                }
                return;
            }

            RMADtoList = AppEx.Container.GetInstance <ICustomerGoodsReturnQueryService>().GetRmaFinancialByOrderNo(OrderDto.OrderNo).ToList();
            MvvmUtility.WarnIfEmpty(RMADtoList, "退货单");
        }
        public void GetRmaByOrder()
        {
            if (SaleRma == null)
            {
                RmaList.Clear();
                RmaDetailList.Clear();
                return;
            }

            RmaList = AppEx.Container.GetInstance <IPaymentVerificationService>().GetRmaByRmaOder(SaleRma.RmaNo).ToList();
            MvvmUtility.WarnIfEmpty(RmaList, "退货单");

            if (RmaList != null)
            {
                RmaDecimal = (decimal)RmaList.Sum(rma => rma.RMAAmount);
            }
        }
        public virtual void SearchRmaDtoListInfo()
        {
            if (RmaDetailList != null)
            {
                RmaDetailList.Clear();
            }
            if (OrderDto == null)
            {
                if (RmaDetailList != null)
                {
                    RmaDetailList.Clear();
                }
                return;
            }
            RMADtoList = AppEx.Container.GetInstance <ICustomerGoodsReturnQueryService>().GetRmaByOrderNo(OrderDto.OrderNo).ToList();
            if (RMADtoList == null || RMADtoList.Count == 0)
            {
                MvvmUtility.WarnIfEmpty(RMADtoList, "退货单");
                return;
            }

            RmaDetailList = AppEx.Container.GetInstance <ICustomerGoodsReturnQueryService>().GetRmaDetailByRmaNo(RMADtoList.First().RMANo).ToList();
        }
Exemplo n.º 7
0
        public async void ReceivingGoodsSubmit()
        {
            List <RMADto> saleRmaSelected = SaleRmaList.Where(e => e.IsSelected).ToList();

            if (saleRmaSelected.Count == 0)
            {
                await MvvmUtility.ShowMessageAsync("请勾选收货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);

                return;
            }
            bool flag =
                AppEx.Container.GetInstance <IPackageService>()
                .ReceivingGoodsSubmit(saleRmaSelected.Select(e => e.RMANo).ToList());
            await MvvmUtility.ShowMessageAsync(flag? "确认收货成功" : "确认收货失败", "提示", MessageBoxButton.OK, flag?MessageBoxImage.Information : MessageBoxImage.Error);

            if (flag)
            {
                if (RmaDetailList != null)
                {
                    RmaDetailList.Clear();
                }
                SearchRmaAndSaleRma();
            }
        }