|
@ -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); |
|
|