|
|
@ -459,10 +459,8 @@ namespace QMAPP.FJC.DAL.TianJin |
|
|
|
sql.AppendFormat(" ON P.[PID]=W.[ORDERPLANID] "); |
|
|
|
sql.AppendFormat(" LEFT JOIN [T_MD_MATERIAL] AS M WITH(NOLOCK) "); |
|
|
|
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] "); |
|
|
|
if (Direction == "左") |
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='DP_L_ASSEMBLY_770B' "); |
|
|
|
else |
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='DP_R_ASSEMBLY_770B' "); |
|
|
|
|
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='{routecode}' "); |
|
|
|
sql.AppendFormat(" AND W.[PRINTED]='0' "); |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(Direction)) |
|
|
@ -553,10 +551,8 @@ namespace QMAPP.FJC.DAL.TianJin |
|
|
|
sql.AppendFormat(" ON P.[PID]=W.[ORDERPLANID] "); |
|
|
|
sql.AppendFormat(" LEFT JOIN [T_MD_MATERIAL] AS M WITH(NOLOCK) "); |
|
|
|
sql.AppendFormat(" ON W.[MATERIAL_CODE]=M.[MATERIAL_CODE] "); |
|
|
|
if (Direction == "左") |
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='DP_L_ASSEMBLY_770B' "); |
|
|
|
else |
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='DP_R_ASSEMBLY_770B' "); |
|
|
|
|
|
|
|
sql.AppendFormat($" WHERE P.[ROUTE_CODE]='{routecode}' "); |
|
|
|
|
|
|
|
sql.AppendFormat(" AND W.[PRINTED]='0' "); |
|
|
|
|
|
|
|