Browse Source

接口 删除看板明细

master
qian 1 year ago
parent
commit
7646a8cbc9
  1. 20
      UniApiGroup/Controller/OdbcApiQadController.cs

20
UniApiGroup/Controller/OdbcApiQadController.cs

@ -802,24 +802,6 @@ namespace CK.SCP.GrupUniApi.Controller
{ {
var _liii = _lii.ToList(); var _liii = _lii.ToList();
var _entity = _liii.First(); var _entity = _liii.First();
var _askdetail = wdb.TB_ASK_DETAIL.Count(p => p.PoBillNum == _entity.purDocNO && p.State > -1);
if(_askdetail== _liii.Count())
{
var ask = wdb.TB_ASK.FirstOrDefault(p=>p.PoBillNum==_entity.purDocNO );
ask.State = -1;
ask.IsDeleted = true;
wmsAskList.Add(ask);
var askdetaill=wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _entity.purDocNO).ToList();
askdetaill.ForEach(p =>
{
p.State = -1;
p.IsDeleted = true;
wmsAskDetailList.Add(p);
});
}
else
{
// ¸ù¾Ý Áã¼þºÅ×÷·Ï // ¸ù¾Ý Áã¼þºÅ×÷·Ï
var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _entity.purDocNO && p.PartCode == _entity.mtlNO).ToList(); var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _entity.purDocNO && p.PartCode == _entity.mtlNO).ToList();
askdetaill.ForEach(p => askdetaill.ForEach(p =>
@ -827,10 +809,8 @@ namespace CK.SCP.GrupUniApi.Controller
p.State = -1; p.State = -1;
p.IsDeleted = true; p.IsDeleted = true;
wmsAskDetailList.Add(p); wmsAskDetailList.Add(p);
}); });
} }
}
foreach (var qadPoNbr in Ilist) foreach (var qadPoNbr in Ilist)
{ {
var qadDataList = wmsPoList.Count(p => p.PoBillNum == qadPoNbr.purDocNO); var qadDataList = wmsPoList.Count(p => p.PoBillNum == qadPoNbr.purDocNO);

Loading…
Cancel
Save