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(); } }
private void GetRmaBySaleRma() { if (SaleRma != null) { SaleRmaList = RmaList.Where(e => e.Id == SaleRma.Id).ToList(); } }
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(); } }
/// <summary> /// 退货收货确认 /// </summary> private void OnReturnGoodsConsigned() { foreach (var rma in RmaList.Where(rma => rma.IsSelected)) { var service = AppEx.Container.GetInstance <IMiniIntimeReturnService>(); //收货确认 service.ConsignReturnGoods(rma); } ReloadData(); }
private List <string> GetRmaNumberList() { return(RmaList.Where(e => e.IsSelected).Select(e => e.RMANo).ToList()); }
private bool CanActionExecute() { return(RmaList != null && RmaList.Where(rma => rma.IsSelected).Any()); }