private async void SetAgreeReturnGoods() { if (RMADtoList == null) { await MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning); return; } List <RMADto> rmaSelectedList = RMADtoList.Where(e => e.IsSelected).ToList(); bool flag = AppEx.Container.GetInstance <ICustomerGoodsReturnQueryService>().AgreeReturnGoods(rmaSelectedList.Select(e => e.RMANo).ToList()); await MvvmUtility.ShowMessageAsync(flag? "客服同意退货成功" : "客服同意退货失败", "提示", MessageBoxButton.OK, flag?MessageBoxImage.Information : MessageBoxImage.Error); if (flag) { SearchRmaDtoListInfo(); } }
public virtual async void SetCustomerMoneyGoods() { if (RMADtoList == null) { await MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning); return; } List <RMADto> rmaSelectedList = RMADtoList.Where(e => e.IsSelected).ToList(); if (rmaSelectedList.Count == 0) { await MvvmUtility.ShowMessageAsync("请选择退货单", "提示", MessageBoxButton.OK, MessageBoxImage.Warning); return; } bool flag = false; try { flag = AppEx.Container.GetInstance <ICustomerInquiryService>() .SetCustomerMoneyGoods(rmaSelectedList.Select(e => e.RMANo).ToList()); } catch (Exception Ex) { flag = false; } await MvvmUtility.ShowMessageAsync(flag? "设置赔偿金额复审成功" : "设置赔偿金额复审失败", "提示", MessageBoxButton.OK, flag?MessageBoxImage.Information : MessageBoxImage.Error); if (flag) { SearchRmaDtoListInfo(); } }