|
@ -33,6 +33,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
private readonly ADJ_SERVICE _adjservice; |
|
|
private readonly ADJ_SERVICE _adjservice; |
|
|
private readonly INormalEfCoreRepository<MaterialRelationship, Guid> _relationRepository; |
|
|
private readonly INormalEfCoreRepository<MaterialRelationship, Guid> _relationRepository; |
|
|
private readonly INormalEfCoreRepository<PUB_PD, Guid> _pdRepository; |
|
|
private readonly INormalEfCoreRepository<PUB_PD, Guid> _pdRepository; |
|
|
|
|
|
|
|
|
|
|
|
private readonly INormalEfCoreRepository<PriceListYinDu, Guid> _priceYinDuRepository; |
|
|
|
|
|
|
|
|
public PUB_BA_SERVICE(IExcelImportAppService excelImportService, ISnowflakeIdGenerator snowflakeIdGenerator, ICommonManager commonManager, INormalEfCoreRepository<PUB_ADJ_DETAIL, Guid> pubRepository, INormalEfCoreRepository<INVOICE_GRP, Guid> repository, INormalEfCoreRepository<INVOICE_WAIT_DETAIL, Guid> wRepository, INormalEfCoreRepository<INVOICE_NOT_SETTLE, Guid> sRepository, INormalEfCoreRepository<INVOICE_MAP_GROUP, Guid> mRepository, INormalEfCoreRepository<PUB_ADJ_DETAIL, Guid> adjRepository, BBAC_CAN_SA_MNG bbacMng, HBPO_CAN_SA_MNG hbpoMng, PUB_CAN_SA_MNG pubMng, INV_MNG invMng, |
|
|
public PUB_BA_SERVICE(IExcelImportAppService excelImportService, ISnowflakeIdGenerator snowflakeIdGenerator, ICommonManager commonManager, INormalEfCoreRepository<PUB_ADJ_DETAIL, Guid> pubRepository, INormalEfCoreRepository<INVOICE_GRP, Guid> repository, INormalEfCoreRepository<INVOICE_WAIT_DETAIL, Guid> wRepository, INormalEfCoreRepository<INVOICE_NOT_SETTLE, Guid> sRepository, INormalEfCoreRepository<INVOICE_MAP_GROUP, Guid> mRepository, INormalEfCoreRepository<PUB_ADJ_DETAIL, Guid> adjRepository, BBAC_CAN_SA_MNG bbacMng, HBPO_CAN_SA_MNG hbpoMng, PUB_CAN_SA_MNG pubMng, INV_MNG invMng, |
|
|
TaskJobService service, |
|
|
TaskJobService service, |
|
|
BaseDomainService baseservice, |
|
|
BaseDomainService baseservice, |
|
@ -40,7 +43,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
INormalEfCoreRepository<PriceListBJ, Guid> pricebjRepository, |
|
|
INormalEfCoreRepository<PriceListBJ, Guid> pricebjRepository, |
|
|
ADJ_SERVICE adjservice, |
|
|
ADJ_SERVICE adjservice, |
|
|
INormalEfCoreRepository<MaterialRelationship, Guid> relationRepository, |
|
|
INormalEfCoreRepository<MaterialRelationship, Guid> relationRepository, |
|
|
INormalEfCoreRepository<PUB_PD, Guid> pdRepository |
|
|
INormalEfCoreRepository<PUB_PD, Guid> pdRepository, |
|
|
|
|
|
INormalEfCoreRepository<PriceListYinDu, Guid> priceYinDuRepository |
|
|
|
|
|
|
|
|
) : base(excelImportService, snowflakeIdGenerator, commonManager, repository, wRepository, sRepository, mRepository, adjRepository, bbacMng, hbpoMng, pubMng, invMng, service, baseservice) |
|
|
) : base(excelImportService, snowflakeIdGenerator, commonManager, repository, wRepository, sRepository, mRepository, adjRepository, bbacMng, hbpoMng, pubMng, invMng, service, baseservice) |
|
|
{ |
|
|
{ |
|
@ -49,6 +53,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
_adjservice = adjservice; |
|
|
_adjservice = adjservice; |
|
|
_relationRepository = relationRepository; |
|
|
_relationRepository = relationRepository; |
|
|
_pdRepository = pdRepository; |
|
|
_pdRepository = pdRepository; |
|
|
|
|
|
_priceYinDuRepository = priceYinDuRepository; |
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 提交发票
|
|
|
/// 提交发票
|
|
@ -146,6 +151,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (inv.BusinessType == EnumBusinessType.YinDuJian) |
|
|
|
|
|
{ |
|
|
|
|
|
var priceListYindu = _priceYinDuRepository.ToList();//价格单
|
|
|
|
|
|
foreach (var itm in priceListYindu) |
|
|
|
|
|
{ |
|
|
|
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1041", ContractNo = itm.ContractNo }); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false && p.ClientCode == inv.Site).ToList();//价格单
|
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false && p.ClientCode == inv.Site).ToList();//价格单
|
|
@ -306,6 +320,14 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (inv.BusinessType == EnumBusinessType.YinDuJian) |
|
|
|
|
|
{ |
|
|
|
|
|
var priceListYindu = _priceYinDuRepository.ToList();//价格单
|
|
|
|
|
|
foreach (var itm in priceListYindu) |
|
|
|
|
|
{ |
|
|
|
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1041", ContractNo = itm.ContractNo }); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false && p.ClientCode == inv.Site).ToList();//价格单
|
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false && p.ClientCode == inv.Site).ToList();//价格单
|
|
@ -622,6 +644,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (inv.BusinessType == EnumBusinessType.YinDuJian) |
|
|
|
|
|
{ |
|
|
|
|
|
var priceListYindu = _priceYinDuRepository.ToList();//价格单
|
|
|
|
|
|
foreach (var itm in priceListYindu) |
|
|
|
|
|
{ |
|
|
|
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1041", ContractNo = itm.ContractNo }); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false).ToList();//价格单
|
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false).ToList();//价格单
|
|
@ -822,6 +854,14 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1049", ContractNo = itm.ContractNo }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (inv.BusinessType == EnumBusinessType.YinDuJian) |
|
|
|
|
|
{ |
|
|
|
|
|
var priceListYindu = _priceYinDuRepository.ToList();//价格单
|
|
|
|
|
|
foreach (var itm in priceListYindu) |
|
|
|
|
|
{ |
|
|
|
|
|
priceList.Add(new PriceList() { LU = itm.LU, BeginTime = itm.BeginDate, EndTime = itm.EndDate, Price = itm.Price, ClientCode = "1041", ContractNo = itm.ContractNo }); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false).ToList();//价格单
|
|
|
priceList = _priceRepository.Where(p => p.IsCancel == false).ToList();//价格单
|
|
|