Browse Source

材料出库单同步

master
parent
commit
e3d8c4b798
  1. 2
      ICSSoft.FromERP/ICSSoft.FromERP/ICSMOIssue.cs
  2. 2
      ICSSoft.FromERP/ICSSoft.FromERP/ICSOIssue.cs

2
ICSSoft.FromERP/ICSSoft.FromERP/ICSMOIssue.cs

@ -84,7 +84,7 @@ namespace ICSSoft.FromERP
LEFT JOIN {1}.dbo.Inventory inv ON b.cInvCode = inv.cInvCode LEFT JOIN {1}.dbo.Inventory inv ON b.cInvCode = inv.cInvCode
left join {1}.dbo.mom_order c on a.iproorderid=c.MoId left join {1}.dbo.mom_order c on a.iproorderid=c.MoId
left JOIN {1}.dbo.mom_orderdetail d ON c.MoId=d.MoId left JOIN {1}.dbo.mom_orderdetail d ON c.MoId=d.MoId
where ISNULL(a.cHandler , '')='' and (a.cSource='' or a.cSource='') AND ISNULL(a.dnmodifytime, a.dnmaketime)>=@LastTime
where ISNULL(a.cHandler , '')='' and (a.cSource='' or a.cSource='') and a.cBusType='' AND ISNULL(a.dnmodifytime, a.dnmaketime)>=@LastTime
update #TempRd set Colspan=isNULL(ProjectCode,'')+'~'+isNULL(cBatch,'')+'~'+isNULL(Version,'')+'~'+isNULL(Brand,'')+'~'+isNULL(cFree1,'')+'~'+isnull(cFree2,'')+'~'+isnull(cFree3,'')+'~'+isnull(cFree4,'')+'~'+isnull(cFree5,'')+'~'+isnull(cFree6,'')+'~'+isnull(cFree7,'')+'~'+isnull(cFree8,'')+'~'+isnull(cFree9,'')+'~'+isnull(cFree10,'') update #TempRd set Colspan=isNULL(ProjectCode,'')+'~'+isNULL(cBatch,'')+'~'+isNULL(Version,'')+'~'+isNULL(Brand,'')+'~'+isNULL(cFree1,'')+'~'+isnull(cFree2,'')+'~'+isnull(cFree3,'')+'~'+isnull(cFree4,'')+'~'+isnull(cFree5,'')+'~'+isnull(cFree6,'')+'~'+isnull(cFree7,'')+'~'+isnull(cFree8,'')+'~'+isnull(cFree9,'')+'~'+isnull(cFree10,'')
select distinct select distinct
Colspan,ProjectCode,cFree1,cFree2,cFree3,cFree4,cFree5,cFree6,cFree7,cFree8,cFree9,cFree10,WorkPoint,cBatch,version ,brand Colspan,ProjectCode,cFree1,cFree2,cFree3,cFree4,cFree5,cFree6,cFree7,cFree8,cFree9,cFree10,WorkPoint,cBatch,version ,brand

2
ICSSoft.FromERP/ICSSoft.FromERP/ICSOIssue.cs

@ -87,7 +87,7 @@ namespace ICSSoft.FromERP
LEFT JOIN {1}.dbo.Inventory inv ON b.cInvCode = inv.cInvCode LEFT JOIN {1}.dbo.Inventory inv ON b.cInvCode = inv.cInvCode
left join {1}.dbo.mom_order c on a.iproorderid=c.MoId left join {1}.dbo.mom_order c on a.iproorderid=c.MoId
left JOIN {1}.dbo.mom_orderdetail d ON c.MoId=d.MoId left JOIN {1}.dbo.mom_orderdetail d ON c.MoId=d.MoId
where ISNULL(a.cHandler , '')='' and a.cSource='' AND ISNULL(a.dnmodifytime, a.dnmaketime)>=@LastTime
where ISNULL(a.cHandler , '')='' and (a.cSource='' or a.cSource='') and a.cBusType='' AND ISNULL(a.dnmodifytime, a.dnmaketime)>=@LastTime
update #TempRd set Colspan=isNULL(ProjectCode,'')+'~'+isNULL(cBatch,'')+'~'+isNULL(Version,'')+'~'+isNULL(Brand,'')+'~'+isNULL(cFree1,'')+'~'+isnull(cFree2,'')+'~'+isnull(cFree3,'')+'~'+isnull(cFree4,'')+'~'+isnull(cFree5,'')+'~'+isnull(cFree6,'')+'~'+isnull(cFree7,'')+'~'+isnull(cFree8,'')+'~'+isnull(cFree9,'')+'~'+isnull(cFree10,'') update #TempRd set Colspan=isNULL(ProjectCode,'')+'~'+isNULL(cBatch,'')+'~'+isNULL(Version,'')+'~'+isNULL(Brand,'')+'~'+isNULL(cFree1,'')+'~'+isnull(cFree2,'')+'~'+isnull(cFree3,'')+'~'+isnull(cFree4,'')+'~'+isnull(cFree5,'')+'~'+isnull(cFree6,'')+'~'+isnull(cFree7,'')+'~'+isnull(cFree8,'')+'~'+isnull(cFree9,'')+'~'+isnull(cFree10,'')
select distinct select distinct
Colspan,ProjectCode,cFree1,cFree2,cFree3,cFree4,cFree5,cFree6,cFree7,cFree8,cFree9,cFree10,WorkPoint,cBatch,version ,brand Colspan,ProjectCode,cFree1,cFree2,cFree3,cFree4,cFree5,cFree6,cFree7,cFree8,cFree9,cFree10,WorkPoint,cBatch,version ,brand

Loading…
Cancel
Save