|
|
@ -250,12 +250,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(pdList); |
|
|
|
_dbcontext.BulkUpdate(pdinvList); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
_dbcontext.BulkDelete(pdList); |
|
|
|
_dbcontext.BulkDelete(p_ls); |
|
|
|
foreach (var item in pdList) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
foreach (var item in pdinvList) |
|
|
|
{ |
|
|
|
if(item.State!=SettleBillState.已提交QAD) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(pdList); |
|
|
|
_dbcontext.BulkUpdate(pdinvList); |
|
|
|
} |
|
|
|
} |
|
|
|
var bbacList = _dbcontext.Set<BBAC_PD>().Where(p => billList.Contains(p.BillNum)).ToList(); |
|
|
@ -274,12 +284,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(bbacList); |
|
|
|
_dbcontext.BulkUpdate(bbacinvList); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
_dbcontext.BulkDelete(pdList); |
|
|
|
_dbcontext.BulkDelete(p_ls); |
|
|
|
foreach (var item in bbacList) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
foreach (var item in bbacinvList) |
|
|
|
{ |
|
|
|
if (item.State != SettleBillState.已提交QAD) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(bbacList); |
|
|
|
_dbcontext.BulkUpdate(bbacinvList); |
|
|
|
} |
|
|
|
} |
|
|
|
var hbpoList = _dbcontext.Set<HBPO_PD>().Where(p => billList.Contains(p.BillNum)).ToList(); |
|
|
@ -298,12 +318,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(hbpoList); |
|
|
|
_dbcontext.BulkUpdate(hbpoinvList); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
_dbcontext.BulkDelete(pdList); |
|
|
|
_dbcontext.BulkDelete(p_ls); |
|
|
|
foreach (var item in hbpoList) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
foreach (var item in hbpoinvList) |
|
|
|
{ |
|
|
|
if (item.State != SettleBillState.已提交QAD) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.客户已收票; |
|
|
|
} |
|
|
|
} |
|
|
|
_dbcontext.BulkUpdate(hbpoList); |
|
|
|
_dbcontext.BulkUpdate(hbpoinvList); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|