feat(querys): plant query for gln and label data for sscc and other info
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
||||||
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
||||||
"dev:frontend": "cd frontend && npm run dev",
|
"dev:frontend": "cd frontend && npm run dev",
|
||||||
|
"dev:dbgen": " drizzle-kit generate --config=drizzle-dev.config.ts",
|
||||||
|
"dev:dbmigrate": " drizzle-kit migrate --config=drizzle-dev.config.ts",
|
||||||
"build": "npm run build:server && npm run build:frontend",
|
"build": "npm run build:server && npm run build:frontend",
|
||||||
"build:server": "rimraf dist && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y",
|
"build:server": "rimraf dist && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y",
|
||||||
"build:frontend": "cd frontend && npm run build",
|
"build:frontend": "cd frontend && npm run build",
|
||||||
|
|||||||
12
server/services/sqlServer/querys/dataMart/plantInfo.ts
Normal file
12
server/services/sqlServer/querys/dataMart/plantInfo.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
export const plantInfo = `
|
||||||
|
select werkkurzbez as plantToken,
|
||||||
|
gln,
|
||||||
|
IdAdressen as addressId,
|
||||||
|
Bezeichnung as addressDecriptuion,
|
||||||
|
Strasse as streetAddress,
|
||||||
|
plz as zipcode,
|
||||||
|
ort as cityState
|
||||||
|
--,*
|
||||||
|
from alplaprod_test1.dbo.T_Adressen where werkkurzbez = '[token]'
|
||||||
|
|
||||||
|
`;
|
||||||
@@ -1,3 +1,20 @@
|
|||||||
export const labelData = `
|
export const labelData = `
|
||||||
select Barcode as barcode from alplaprod_test1.dbo.V_LagerPositionenBarcodes (NOLOCK) where lfdnr = [rn]
|
select x.Barcode as barcode,
|
||||||
|
Produktionslos as lot,
|
||||||
|
x.IdArtikelVarianten as article,
|
||||||
|
x.ArtikelVariantenBez as description,
|
||||||
|
m.Standort as machineLocation,
|
||||||
|
m.Bezeichnung as machineDescription,
|
||||||
|
e.IdEtikettenDrucker as printer,
|
||||||
|
x.LfdNr as runningNr
|
||||||
|
from alplaprod_test1.dbo.V_LagerPositionenBarcodes x (NOLOCK)
|
||||||
|
left join
|
||||||
|
alplaprod_test1.dbo.T_EtikettenGedruckt as e
|
||||||
|
on x.Lfdnr = e.LfdNr
|
||||||
|
|
||||||
|
left join
|
||||||
|
alplaprod_test1.dbo.T_Maschine as m on
|
||||||
|
e.IdMaschine = m.IdMaschine
|
||||||
|
|
||||||
|
where x.lfdnr = [rn] and x.IdWarenlager not in(6)
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user