コード例 #1
0
        public async void FinancialVerifyNoPass()
        {
            if (RmaList == null)
            {
                await MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);

                return;
            }
            List <RMADto> rmaSelectedList = RmaList.Where(e => e.IsSelected).ToList();

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

                return;
            }
            bool flag =
                AppEx.Container.GetInstance <IPaymentVerificationService>()
                .FinancialVerifyNoPass(rmaSelectedList.Select(e => e.RMANo).ToList());
            await MvvmUtility.ShowMessageAsync(flag? "设置审核未通过成功" : "设置审核未通过失败", "提示", MessageBoxButton.OK, flag?MessageBoxImage.Information : MessageBoxImage.Error);

            if (flag)
            {
                SearchRma();
            }
        }
コード例 #2
0
 private void GetRmaBySaleRma()
 {
     if (SaleRma != null)
     {
         SaleRmaList = RmaList.Where(e => e.Id == SaleRma.Id).ToList();
     }
 }
コード例 #3
0
        public void TransVerifyNoPass()
        {
            if (RmaList == null)
            {
                MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }
            List <RMADto> rmaSelectedList = RmaList.Where(e => e.IsSelected).ToList();

            if (rmaSelectedList.Count == 0)
            {
                MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }
            bool flag =
                AppEx.Container.GetInstance <IPackageService>()
                .TransVerifyNoPass(rmaSelectedList.Select(e => e.RMANo).ToList());

            MvvmUtility.ShowMessageAsync(flag ? "设置审核不通过成功" : "设置审核不通过失败", "提示", MessageBoxButton.OK, flag ? MessageBoxImage.Information : MessageBoxImage.Error);
            if (flag)
            {
                if (RmaList != null)
                {
                    RmaList.Clear();
                }
                if (RmaDetailLs != null)
                {
                    RmaDetailLs.Clear();
                }
                SearchRma();
            }
        }
コード例 #4
0
        /// <summary>
        /// 退货收货确认
        /// </summary>
        private void OnReturnGoodsConsigned()
        {
            foreach (var rma in RmaList.Where(rma => rma.IsSelected))
            {
                var service = AppEx.Container.GetInstance <IMiniIntimeReturnService>();
                //收货确认
                service.ConsignReturnGoods(rma);
            }

            ReloadData();
        }
コード例 #5
0
 public void SearchSaleRma()
 {
     if (RmaDetailList != null)
     {
         RmaDetailList.Clear();
     }
     if (RmaList != null)
     {
         RmaList.Clear();
     }
     SaleRmaList = AppEx.Container.GetInstance <IPaymentVerificationService>().GetRmaByReturnGoodPay(ReturnGoodsPayDto).ToList();
 }
コード例 #6
0
        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);
            }
        }
コード例 #7
0
 private List <string> GetRmaNumberList()
 {
     return(RmaList.Where(e => e.IsSelected).Select(e => e.RMANo).ToList());
 }
コード例 #8
0
 private bool CanActionExecute()
 {
     return(RmaList != null && RmaList.Where(rma => rma.IsSelected).Any());
 }