|
@ -517,9 +517,11 @@ namespace ICSSoft.DataProject |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 领料后料架解绑或搬运至空料架区
|
|
|
#region 领料后料架解绑或搬运至空料架区
|
|
|
string chksql = @" select A.ContainerCode,A.EATTRIBUTE5,B.Desks from ICSContainerReceiptsNumber A
|
|
|
|
|
|
|
|
|
string chksql = @" select A.ContainerCode,A.EATTRIBUTE5,C.Desks from ICSContainerReceiptsNumber A
|
|
|
INNER JOIN ICSMOApply B ON B.ApplyCode=A.TransCode |
|
|
INNER JOIN ICSMOApply B ON B.ApplyCode=A.TransCode |
|
|
where ContainerCode=( |
|
|
|
|
|
|
|
|
INNER JOIN (SELECT TOP 1 EATTRIBUTE3 AS Desks,ContainerCode from ICSAGVTaskLog WHERE EATTRIBUTE2='已完成' Order By MTIME DESC) C ON |
|
|
|
|
|
C.ContainerCode=A.ContainerCode |
|
|
|
|
|
where A.ContainerCode=( |
|
|
select top 1 ContainerCode from ICSContainerReceiptsNumber |
|
|
select top 1 ContainerCode from ICSContainerReceiptsNumber |
|
|
where TransCode='{0}')";
|
|
|
where TransCode='{0}')";
|
|
|
chksql = string.Format(chksql, TransCode); |
|
|
chksql = string.Format(chksql, TransCode); |
|
|