public async Task <FPReturnInvToPurchasing> GetTestData() { FpRegradingResultDataUtil.FpRegradingResultDataUtil fprsDataUtil = new FpRegradingResultDataUtil.FpRegradingResultDataUtil(FPRService); var regradDocs = await fprsDataUtil.GetTestData(); FPReturnInvToPurchasing Data = GetNewData(); foreach (var item in Data.FPReturnInvToPurchasingDetails) { item.FPRegradingResultDocsId = regradDocs.Id; item.FPRegradingResultDocsCode = regradDocs.Code; } await this.Service.CreateAsync(Data); return(Data); }
public FPReturnInvToPurchasingDataUtil(FPReturnInvToPurchasingFacade facade, FpRegradingResultDataUtil.FpRegradingResultDataUtil fpRegradingResultDataUtil, FPReturnInvToPurchasingDetailDataUtil fpReturnInvToPurchasingDetailDataUtil) : base(facade) { this.fpRegradingResultDataUtil = fpRegradingResultDataUtil; this.fpReturnInvToPurchasingDetailDataUtil = fpReturnInvToPurchasingDetailDataUtil; }