|
|
@ -5481,7 +5481,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 采购退货
|
|
|
|
if (TransType == TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.DNCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.DNCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @"ICSDeliveryNotice a "; |
|
|
|
|
|
|
@ -5491,7 +5491,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 其他出库
|
|
|
|
else if (TransType == TransTypeEnum.OtherOutDoc.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.OutCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.OutCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @"ICSOtherOut a "; |
|
|
|
|
|
|
@ -5501,7 +5501,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 一步调拨(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.OneStepTransferDocIn.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.TransferNO AS TransCode"; |
|
|
|
columns = @" DISTINCT a.TransferNO AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @"ICSTransfer a "; |
|
|
|
|
|
|
@ -5511,7 +5511,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 生产发料(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.MOIssueDoc.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT b.MOCode AS TransCode"; |
|
|
|
columns = @" DISTINCT b.MOCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSMOPick a
|
|
|
|
INNER JOIN ICSMO b ON a.MODetailID=b.MODetailID AND a.WorkPoint=b.WorkPoint ";
|
|
|
@ -5522,7 +5522,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 开立材料出库(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.MOIssue.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.IssueCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.IssueCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSMOIssue a "; |
|
|
|
|
|
|
@ -5532,7 +5532,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 生产发料-领料申请单
|
|
|
|
else if (TransType == TransTypeEnum.MOApply.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.ApplyCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.ApplyCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSMOApply a
|
|
|
|
INNER JOIN ICSMO b ON b.MOCode=a.SourceCode and a.SourceSequence = b.Sequence AND a.WorkPoint=b.WorkPoint";
|
|
|
@ -5543,7 +5543,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 开立委外材料出库(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.OOIssue.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.IssueCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.IssueCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSOIssue a "; |
|
|
|
|
|
|
@ -5553,7 +5553,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 委外领料申请单发料(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.OOApply.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.ApplyCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.ApplyCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSOApply a "; |
|
|
|
|
|
|
@ -5563,7 +5563,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 委外发料(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.OutsourcingIssueDoc.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT b.OOCode AS TransCode"; |
|
|
|
columns = @" DISTINCT b.OOCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @" ICSOOPick a
|
|
|
|
INNER JOIN ICSOutsourcingOrder b ON a.OODetailID=b.OODetailID AND a.WorkPoint=b.WorkPoint ";
|
|
|
@ -5574,7 +5574,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 销售出库(合并发料)
|
|
|
|
else if (TransType == TransTypeEnum.SalesShipmentDoc.GetDescription()) |
|
|
|
{ |
|
|
|
columns = @" DISTINCT a.SDNCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.SDNCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @"ICSSDN a "; |
|
|
|
|
|
|
@ -5585,7 +5585,7 @@ namespace ICSSoft.DataProject |
|
|
|
else if (TransType == TransTypeEnum.Check.GetDescription()) |
|
|
|
{ |
|
|
|
|
|
|
|
columns = @" DISTINCT a.CheckCode AS TransCode"; |
|
|
|
columns = @" DISTINCT a.CheckCode AS TransCode,a.MTIME"; |
|
|
|
|
|
|
|
tableName = @"ICSCheck a "; |
|
|
|
|
|
|
|