|
@ -60,17 +60,17 @@ namespace ICSSoft.FromERP |
|
|
a.cWhCode AS WHCode, |
|
|
a.cWhCode AS WHCode, |
|
|
a.iWIPtype as SupplyType, |
|
|
a.iWIPtype as SupplyType, |
|
|
ISNULL(c.dVerifyTime,ISNULL(c.dModifyTime, c.dCreateTime)) AS MTIME, |
|
|
ISNULL(c.dVerifyTime,ISNULL(c.dModifyTime, c.dCreateTime)) AS MTIME, |
|
|
'' ProjectCode,'' cBatch,'' version ,'' brand, |
|
|
|
|
|
(case WHEN d.bFree1=1 THEN b.cFree1 ELSE '' END) as cFree1, |
|
|
|
|
|
(case WHEN d.bFree2=1 THEN b.cFree2 ELSE '' END) as cFree2, |
|
|
|
|
|
(case WHEN d.bFree3=1 THEN b.cFree3 ELSE '' END) as cFree3, |
|
|
|
|
|
(case WHEN d.bFree4=1 THEN b.cFree4 ELSE '' END) as cFree4, |
|
|
|
|
|
(case WHEN d.bFree5=1 THEN b.cFree5 ELSE '' END) as cFree5, |
|
|
|
|
|
(case WHEN d.bFree6=1 THEN b.cFree6 ELSE '' END) as cFree6, |
|
|
|
|
|
(case WHEN d.bFree7=1 THEN b.cFree7 ELSE '' END) as cFree7, |
|
|
|
|
|
(case WHEN d.bFree8=1 THEN b.cFree8 ELSE '' END) as cFree8, |
|
|
|
|
|
(case WHEN d.bFree9=1 THEN b.cFree9 ELSE '' END) as cFree9, |
|
|
|
|
|
(case WHEN d.bFree10=1 THEN b.cFree10 ELSE '' END) as cFree10,CAST('' AS NVARCHAR(500)) as Colspan |
|
|
|
|
|
|
|
|
'' ProjectCode,isnull(a.cBatch,'') cBatch,'' version ,'' brand, |
|
|
|
|
|
(case WHEN a.cFree1=1 THEN b.cFree1 ELSE '' END) as cFree1, |
|
|
|
|
|
(case WHEN a.cFree2=1 THEN b.cFree2 ELSE '' END) as cFree2, |
|
|
|
|
|
(case WHEN a.cFree3=1 THEN b.cFree3 ELSE '' END) as cFree3, |
|
|
|
|
|
(case WHEN a.cFree4=1 THEN b.cFree4 ELSE '' END) as cFree4, |
|
|
|
|
|
(case WHEN a.cFree5=1 THEN b.cFree5 ELSE '' END) as cFree5, |
|
|
|
|
|
(case WHEN a.cFree6=1 THEN b.cFree6 ELSE '' END) as cFree6, |
|
|
|
|
|
(case WHEN a.cFree7=1 THEN b.cFree7 ELSE '' END) as cFree7, |
|
|
|
|
|
(case WHEN a.cFree8=1 THEN b.cFree8 ELSE '' END) as cFree8, |
|
|
|
|
|
(case WHEN a.cFree9=1 THEN b.cFree9 ELSE '' END) as cFree9, |
|
|
|
|
|
(case WHEN a.cFree10=1 THEN b.cFree10 ELSE '' END) as cFree10,CAST('' AS NVARCHAR(500)) as Colspan |
|
|
, '{0}' as WorkPoint |
|
|
, '{0}' as WorkPoint |
|
|
INTO #TempBOM |
|
|
INTO #TempBOM |
|
|
FROM {1}.dbo.OM_MOMaterials a |
|
|
FROM {1}.dbo.OM_MOMaterials a |
|
|