Browse Source

调整接口

master
lilili 2 years ago
parent
commit
5806d26d73
  1. 10
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

10
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -298,14 +298,6 @@ where b.MOCode='{0}' and a.WorkPoint='{1}'";
case when max(e.SourceID) is null then '' else '' end as IsNew,f.Colspan , case when max(e.SourceID) is null then '' else '' end as IsNew,f.Colspan ,
g.Status, g.Status,
case when max(k.TransCode) is null then '' else '' end as IsOccupy, case when max(k.TransCode) is null then '' else '' end as IsOccupy,
<<<<<<< HEAD
--case when sum(a.Quantity) =sum(IssueQuantity) and a.MUSERName != 'JOB' then ''
--else (case when sum(a.Quantity) =sum(IssueQuantity) and a.MUSERName = 'JOB' then '' else '' end) end as Status,
=======
case when sum(a.Quantity) =sum(IssueQuantity) then ''
when sum(a.Quantity)!=sum(IssueQuantity) AND sum(IssueQuantity)>0 then ''
else '' end as Status,
>>>>>>> efc78f9c8baeef8cab1716c8a0f5c91ac1b873d8
f.ProjectCode ,f.BatchCode ,f.Version ,f.Brand ,f.cFree1 ,f.cFree2 ,f.cFree3 , f.ProjectCode ,f.BatchCode ,f.Version ,f.Brand ,f.cFree1 ,f.cFree2 ,f.cFree3 ,
f.cFree4 ,f.cFree5 ,f.cFree6 ,f.cFree7 ,f.cFree8 ,f.cFree9 ,f.cFree10, f.cFree4 ,f.cFree5 ,f.cFree6 ,f.cFree7 ,f.cFree8 ,f.cFree9 ,f.cFree10,
case when a.MUSER!= 'JOB' then a.MUSER else '' end AS PickName case when a.MUSER!= 'JOB' then a.MUSER else '' end AS PickName
@ -315,7 +307,7 @@ where b.MOCode='{0}' and a.WorkPoint='{1}'";
left join ICSMOPickMerge e on a.ID=e.SourceID and a.WorkPoint=e.WorkPoint left join ICSMOPickMerge e on a.ID=e.SourceID and a.WorkPoint=e.WorkPoint
left join (SELECT ApplyCode, left join (SELECT ApplyCode,
case when sum(Quantity) =sum(IssueQuantity) and MUSERName != 'JOB' then '' case when sum(Quantity) =sum(IssueQuantity) and MUSERName != 'JOB' then ''
else (case when sum(Quantity) =sum(IssueQuantity) and MUSERName = 'JOB' then ''
else (case when sum(Quantity) =sum(IssueQuantity) and MUSERName = 'JOB'AND sum(IssueQuantity)>0 then ''
else '' end) end as Status else '' end) end as Status
from ICSMOApply where WorkPoint='{WorkPoint}' and EATTRIBUTE='17' group by ApplyCode,MUSERName) g on a.ApplyCode = g.ApplyCode from ICSMOApply where WorkPoint='{WorkPoint}' and EATTRIBUTE='17' group by ApplyCode,MUSERName) g on a.ApplyCode = g.ApplyCode

Loading…
Cancel
Save