2533 lines
161 KiB
SQL
2533 lines
161 KiB
SQL
-- ---------------------------------------------------------------- categoria
|
|
INSERT INTO inv_categories (name, code, color, requires_line, sort_order, is_active)
|
|
SELECT 'Edifici e impianti', 'plant', '#8b5a2b', 0, 15, 1 FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_categories WHERE code = 'plant');
|
|
|
|
-- --------------------------------------------------------------- fornitori
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Adda Bilance' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Adda Bilance');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Aerservices' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Aerservices');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Antincendio Italia' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Antincendio Italia');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'CAB-Puerari Yari' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'CAB-Puerari Yari');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Camo 2' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Camo 2');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Consulenza metano' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Consulenza metano');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Coral Service' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Coral Service');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Ecogenerazione' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Ecogenerazione');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Ecotechno' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Ecotechno');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Enital' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Enital');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Forlani' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Forlani');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Gavardo' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Gavardo');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Logiser' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Logiser');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'PULINET di Angelini Bassano' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Piacenza Impianti' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Piacenza Impianti');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'RIAC' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'RIAC');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Rossi Edoardo' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Rossi Edoardo');
|
|
INSERT INTO suppliers (supplier_name) SELECT 'Strumenta' FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM suppliers WHERE supplier_name = 'Strumenta');
|
|
|
|
-- ------------------------------------------------------------ attrezzature
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO ANTINCENDIO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO ANTINCENDIO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'AREE VERDI',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'AREE VERDI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CANCELLI',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CANCELLI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'DERATTIZZAZIONE CON ESCHE DOMESTICHE',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'DERATTIZZAZIONE CON ESCHE DOMESTICHE');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'FABBRICATI',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'FABBRICATI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TENDOSTRUTTURA, RECINZIONI',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TENDOSTRUTTURA, RECINZIONI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'GRUPPO ELETTROGENO ''AUSONIA''',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'GRUPPO ELETTROGENO ''AUSONIA''');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO DI ESTINZIONE A SCHIUMA TENDOSTRUTTURA E GRUPPO SPINTA ANTINCENDIO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO DI ESTINZIONE A SCHIUMA TENDOSTRUTTURA E GRUPPO SPINTA ANTINCENDIO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'MEZZI E PRESIDI DI RILEVAZIONE, PREVENZIONE ED ESTINZIONE INCENDI',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'MEZZI E PRESIDI DI RILEVAZIONE, PREVENZIONE ED ESTINZIONE INCENDI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'POMPE, COLLETTORE E ANELLO ANTINCENDIO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'POMPE, COLLETTORE E ANELLO ANTINCENDIO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'PORTE TAGLIAFUOCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'PORTE TAGLIAFUOCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BENNA PER SCARTO BUTTI MODELLO 750',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Benna BUTTI.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BENNA PER SCARTO BUTTI MODELLO 750');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BENNA PER SCARTO FERPLAST MODELLO 750R',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Benna.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BENNA PER SCARTO FERPLAST MODELLO 750R');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CARRELLO ELEVATORE STILL RX20-20 n° 516215F01118 (NOLEGGIO)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE STILL RX 20_20_int.xls, mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE STILL RX 20_20.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CARRELLO ELEVATORE STILL RX20-20 n° 516215F01118 (NOLEGGIO)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ELEVATORE ELETTRICO JUNGHEINRICH MOD. EJC-L 10',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione ELEVATORE JUNGHEINRICH_int.xls, mod. 6.3 -1 Scheda manutenzione ELEVATORE JUNGHEINRICH.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ELEVATORE ELETTRICO JUNGHEINRICH MOD. EJC-L 10');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'GIRELLO 1 - 2 - 3 - 4',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'GIRELLO 1 - 2 - 3 - 4');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'PIATTAFORMA MANUALE GIREVOLE ED ELEVABILE (AVVOLGITORE PER PALLETS IMVA)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'PIATTAFORMA MANUALE GIREVOLE ED ELEVABILE (AVVOLGITORE PER PALLETS IMVA)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET ELETTRICO STILL mod. EXU16',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET_ELETTRICO_STILL_int.xls, mod. 6.3 -1 Scheda manutenzione TRANSPALLET_ELETTRICO_STILL.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET ELETTRICO STILL mod. EXU16');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET FALCON LIFT',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET FALCONLIFT.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET FALCON LIFT');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET MANUALE "Ameise" 2000 Jungheinrich',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET JUNGHEINRICH AMEISE.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET MANUALE "Ameise" 2000 Jungheinrich');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET MANUALE A PANTOGRAFO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET PANTOGRAFO.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET MANUALE A PANTOGRAFO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET MANUALE Mod. TM22 520 X 950 C-GV Jungheinrich',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET JUNGHEINRICH TM22.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET MANUALE Mod. TM22 520 X 950 C-GV Jungheinrich');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TRANSPALLET MANUALE TOTAL LIFT (2017)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione TRANSPALLET TOTAL_LIFTER.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TRANSPALLET MANUALE TOTAL LIFT (2017)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BRUCIATORE CALDAIA',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione CALDAIA.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BRUCIATORE CALDAIA');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CALDAIA OLIO DIATERMICO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Centrale Olio Diat.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CALDAIA OLIO DIATERMICO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione chiller uffici.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CHILLERS DI PRODUZIONE (IMP.MECC. N° 30)',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione chiller prod..xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CHILLERS DI PRODUZIONE (IMP.MECC. N° 30)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO DI RISCALDAMENTO/RAFFREDDAMENTO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO DI RISCALDAMENTO/RAFFREDDAMENTO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO MECCANICO DI RISCALDAMENTO/RAFFREDDAMENTO INTERNO AL CAPANNONE',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO MECCANICO DI RISCALDAMENTO/RAFFREDDAMENTO INTERNO AL CAPANNONE');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO MECCANICO NELLA CENTRALE DI RAFFREDDAMENTO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO MECCANICO NELLA CENTRALE DI RAFFREDDAMENTO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'TUBAZIONI OLIO DIATERMICO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'TUBAZIONI OLIO DIATERMICO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'VENTILATORE DESTRATIFICATORE X9-EV',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'VENTILATORE DESTRATIFICATORE X9-EV');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ATTREZZATURE DI LABORATORIO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ATTREZZATURE DI LABORATORIO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'COMPRESSORE ARIA ATLAS COPCO GA 15 VSD + ESSICCATORE FX5',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione compressore aria_GA15VSD_Essicatore.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'COMPRESSORE ARIA ATLAS COPCO GA 15 VSD + ESSICCATORE FX5');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'COMPRESSORE ARIA FINI MOD. BK 14',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione compressore aria BK14.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 14');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'COMPRESSORE ARIA FINI MOD. BK 19',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione compressore aria BK19.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 19');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'FILTRO ARIA PD32',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'FILTRO ARIA PD32');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SERBATOIO ARIA COMPRESSA',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SERBATOIO ARIA COMPRESSA');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTI E DISTRIBUZIONE GAS METANO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTI E DISTRIBUZIONE GAS METANO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'IMPIANTO ELETTRICO',
|
|
(SELECT id FROM inv_categories WHERE code = 'plant'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'IMPIANTO ELETTRICO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRI ELETTRICI A BORDO LINEA 1',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadri_El_Bordo_Linea1 e 2 Termoregolazione.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRI ELETTRICI A BORDO LINEA 1');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRI ELETTRICI LINEA 3 A FIANCO MACCHINA',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadri_El_Linea3.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRI ELETTRICI LINEA 3 A FIANCO MACCHINA');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO CENTRALE OLIO DIATERMICO E SUO QUADRO REMOTO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Centr_Olio_Diatermico.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO CENTRALE OLIO DIATERMICO E SUO QUADRO REMOTO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO ESTRUSORE LINEA 1 SUL SOPPALCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_1_soppalco.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 1 SUL SOPPALCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO ESTRUSORE LINEA 2 SUL SOPPALCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_2_soppalco.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 2 SUL SOPPALCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO ESTRUSORE LINEA 3 SUL SOPPALCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_3_soppalco.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 3 SUL SOPPALCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO ESTRUSORE TGF70 SUL SOPPALCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr70_soppalco.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE TGF70 SUL SOPPALCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO SERVIZI AUSILIARI LINEA 2 - BSF COLMEC',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_ausiliari_BSF.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO SERVIZI AUSILIARI LINEA 2 - BSF COLMEC');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO SERVIZI LINEA 2 SUL SOPPALCO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadro_El_Serv_2_soppalco.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO SERVIZI LINEA 2 SUL SOPPALCO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'QUADRO ELETTRICO TRAINO LINEA 3',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Quadri_El_Traino_Linea3.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'QUADRO ELETTRICO TRAINO LINEA 3');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'AVVOLGITORE RAMPONI MOD. RA.A 600',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'AVVOLGITORE RAMPONI MOD. RA.A 600');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'AVVOLGITORE RAMPONI MOD. RA.A 600.BRU',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'AVVOLGITORE RAMPONI MOD. RA.A 600.BRU');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BOBINATRICE LUNARDON TIPO ML 2-600 DOPPIA - MATRICOLA N° 02073 CC',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BOBINATRICE LUNARDON TIPO ML 2-600 DOPPIA - MATRICOLA N° 02073 CC');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CESOIA VELOCE RAMPONI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CESOIA VELOCE RAMPONI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CESOIA VELOCE RAMPONI 2023 MATRICOLA 391122',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CESOIA VELOCE RAMPONI 2023 MATRICOLA 391122');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'DISTRIBUTORE DI PROFILI 1 E 2',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'DISTRIBUTORE DI PROFILI 1 E 2');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ESTRUSORE COLMEC TGF 70/15D (coestrusione)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ESTRUSORE COLMEC TGF 70/15D (coestrusione)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ESTRUSORE COLMEC TGFD 105/22D LINEA 3',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione estrusore GERLACH_new.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ESTRUSORE COLMEC TGFD 105/22D LINEA 3');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ESTRUSORE COLMEC TGFD 90/22D LINEA 1',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione estrusore UHF_new.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ESTRUSORE COLMEC TGFD 90/22D LINEA 1');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ESTRUSORE COLMEC TGFD 90/22D LINEA 2',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione estrusore BSF_new.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ESTRUSORE COLMEC TGFD 90/22D LINEA 2');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'EVAPORATORE SOTTOVUOTO - POMPA PERISTALTICA - DOSATORE VOLUMETRICO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione evaporatore.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'EVAPORATORE SOTTOVUOTO - POMPA PERISTALTICA - DOSATORE VOLUMETRICO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'FILTRO ELETTROSTATICO TRATTAMENTO FUMI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'FILTRO ELETTROSTATICO TRATTAMENTO FUMI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'FORNO SHOCK ITAIGUM',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'FORNO SHOCK ITAIGUM');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 1',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione Bruciatore Gas AC1 Linea 1.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 1');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 2',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione Bruciatore Gas AC2 Linea 1.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 2');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 1',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione forno AC1 Linea 1.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 1');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 2',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione forno AC2 Linea 1.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 2');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 - BERSTORFF CANALE DI RAFFREDDAMENTO E TRAINO A CINGOLI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione canale raffreddamento-traino Linea 1.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 - BERSTORFF CANALE DI RAFFREDDAMENTO E TRAINO A CINGOLI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 1 FORNO A MICROONDE BERSTORFF',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 1),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione forno microonde.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 1 FORNO A MICROONDE BERSTORFF');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 2 - BSF COLMEC UNITA'' DI LAVAGGIO LC4/200/E + UNITA'' DI FILTRAGGIO FC810',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione lavaggio-filtrocarta BSF.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI LAVAGGIO LC4/200/E + UNITA'' DI FILTRAGGIO FC810');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 2 - BSF COLMEC UNITA'' DI RAFFREDDAMENTO AD IMMERSIONE R16',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione raffreddamento BSF.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI RAFFREDDAMENTO AD IMMERSIONE R16');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 2 - BSF COLMEC UNITA'' DI TRAINO A CINGOLI (CATERPILLAR) TC400/200',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione traino BSF.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI TRAINO A CINGOLI (CATERPILLAR) TC400/200');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 2 - BSF FORNO DI VULCANIZZAZIONE COLMEC FVSC',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 2),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione forno BSF FVSC.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 2 - BSF FORNO DI VULCANIZZAZIONE COLMEC FVSC');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 3 CANALE DI RAFFREDDAMENTO FORNO DI VULCANIZZAZIONE GERLACH SHF 147',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione canale raffreddamento e traino Linea 3.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 3 CANALE DI RAFFREDDAMENTO FORNO DI VULCANIZZAZIONE GERLACH SHF 147');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'LINEA 3 FORNO DI VULCANIZZAZIONE GERLACH SHF 147',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
(SELECT id FROM production_lines WHERE line_number = 3),
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione forno Gerlach.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'LINEA 3 FORNO DI VULCANIZZAZIONE GERLACH SHF 147');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SEGATRICE A NASTRO MEP SHARK 200',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SEGATRICE A NASTRO MEP SHARK 200');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SEGHETTA MANUALE RAMPONI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SEGHETTA MANUALE RAMPONI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'ASPIRATORE 2 RIEL (BLU)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Aspiratore RIEL.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'ASPIRATORE 2 RIEL (BLU)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BILANCIA SARTORIUS MIRAS 2 (INGREDIENTI) NON PIU IN USO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BILANCIA SARTORIUS MIRAS 2 (INGREDIENTI) NON PIU IN USO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'BILANCIA MINEBEA 45520328 MOD. MIS-1-4040-15L',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'BILANCIA MINEBEA 45520328 MOD. MIS-1-4040-15L');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 2,5 litri',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione SPRUZZATORE SILICONE.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 2,5 litri');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 5litri (LIQUIDO DISTACCANTE)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione SPRUZZATORE LIQUIDO DISTACCANTE.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 5litri (LIQUIDO DISTACCANTE)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'MARCATRICE WIEDENBACH',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione MARCATRICE.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'MARCATRICE WIEDENBACH');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'PC ROMIDOT',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione PC_Romidot.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'PC ROMIDOT');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'PIATTAFORMA DI PESATURA EV22 ME 103941 Soc. Coop. Bilanciai (2000kg)',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Bilancia a Terra.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'PIATTAFORMA DI PESATURA EV22 ME 103941 Soc. Coop. Bilanciai (2000kg)');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'PIATTAFORMA DI PESATURA MOD.EV 22 ME 103940 (150KG) Soc. Coop. Bilanciai',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', NULL, NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'PIATTAFORMA DI PESATURA MOD.EV 22 ME 103940 (150KG) Soc. Coop. Bilanciai');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SVITATORE PLARAD - WAVOR PTW29 NON PIU'' IN USO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione Plarad Svitatore.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SVITATORE PLARAD - WAVOR PTW29 NON PIU'' IN USO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCAFFALATURA ARCHIVIO DOCUMENTI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione scaffalature.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCAFFALATURA ARCHIVIO DOCUMENTI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCAFFALATURA DIME',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione scaffalature.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCAFFALATURA DIME');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCAFFALATURA PEZZI DI RICAMBIO',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione scaffalature.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCAFFALATURA PEZZI DI RICAMBIO');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCAFFALATURE MATRICI',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione scaffalature.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCAFFALATURE MATRICI');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCALA "DC SCALE B3"',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione Scala DC-B3.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCALA "DC SCALE B3"');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'SCALA "SVELT" h 1,12 m n°1',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
NULL, NULL, NULL,
|
|
NULL, 'active', 'Schede originali: mod. 6.3 -2 Scheda manutenzione Scala SVELT.xlsx', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'SCALA "SVELT" h 1,12 m n°1');
|
|
INSERT INTO inv_equipment (name, category_id, line_id, serial_number, manufacturer, tool_type,
|
|
commissioning_date, status, notes, created_at, updated_at)
|
|
SELECT 'CARRELLO ELEVATORE CAR.MI. MOD. PL416',
|
|
(SELECT id FROM inv_categories WHERE code = 'equipment'),
|
|
NULL,
|
|
'55551002N5069', 'CAR.MI.', 'Carrello elevatore',
|
|
'2002-01-01', 'active', 'Schede originali: mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (SELECT 1 FROM inv_equipment e WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416');
|
|
|
|
-- ------------------------------------------------------------ manutenzioni
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'compilazione registro', 'compilazione registro',
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', '20° giorno mese', 7,
|
|
NULL, NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO ANTINCENDIO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'compilazione registro'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Rossi Edoardo', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Rossi Edoardo' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'AREE VERDI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Rossi Edoardo'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CANCELLI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, NULL, 1, 'Incaricato da XLS: M.GRANATA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'DERATTIZZAZIONE CON ESCHE DOMESTICHE'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'GRUPPO ELETTROGENO ''AUSONIA'''
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Enital', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Enital' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO DI ESTINZIONE A SCHIUMA TENDOSTRUTTURA E GRUPPO SPINTA ANTINCENDIO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Enital'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Antincendio Italia', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Antincendio Italia' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'MEZZI E PRESIDI DI RILEVAZIONE, PREVENZIONE ED ESTINZIONE INCENDI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Antincendio Italia'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Enital', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Enital' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'POMPE, COLLETTORE E ANELLO ANTINCENDIO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Enital'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Antincendio Italia', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Antincendio Italia' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PORTE TAGLIAFUOCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Antincendio Italia'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Benna BUTTI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'BENNA PER SCARTO BUTTI MODELLO 750'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Benna.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'BENNA PER SCARTO FERPLAST MODELLO 750R'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE STILL RX 20_20_int.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE STILL RX20-20 n° 516215F01118 (NOLEGGIO)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE STILL RX 20_20.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE STILL RX20-20 n° 516215F01118 (NOLEGGIO)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione ELEVATORE JUNGHEINRICH_int.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ELEVATORE ELETTRICO JUNGHEINRICH MOD. EJC-L 10'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione ELEVATORE JUNGHEINRICH.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ELEVATORE ELETTRICO JUNGHEINRICH MOD. EJC-L 10'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'GIRELLO 1 - 2 - 3 - 4'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PIATTAFORMA MANUALE GIREVOLE ED ELEVABILE (AVVOLGITORE PER PALLETS IMVA)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET_ELETTRICO_STILL_int.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET ELETTRICO STILL mod. EXU16'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET_ELETTRICO_STILL.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET ELETTRICO STILL mod. EXU16'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET FALCONLIFT.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET FALCON LIFT'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET FALCON LIFT'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET JUNGHEINRICH AMEISE.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE "Ameise" 2000 Jungheinrich'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE "Ameise" 2000 Jungheinrich'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET PANTOGRAFO.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE A PANTOGRAFO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE A PANTOGRAFO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET JUNGHEINRICH TM22.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE Mod. TM22 520 X 950 C-GV Jungheinrich'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE Mod. TM22 520 X 950 C-GV Jungheinrich'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione TRANSPALLET TOTAL_LIFTER.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE TOTAL LIFT (2017)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Logiser', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Logiser' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'TRANSPALLET MANUALE TOTAL LIFT (2017)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Logiser'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — CAB-Puerari Yari', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'CAB-Puerari Yari' LIMIT 1), 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione CALDAIA.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'BRUCIATORE CALDAIA'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — CAB-Puerari Yari'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Gavardo', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Gavardo' LIMIT 1), 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Centrale Olio Diat.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CALDAIA OLIO DIATERMICO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Gavardo'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Piacenza Impianti', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Piacenza Impianti' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Piacenza Impianti'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Aerservices', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Aerservices' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLERS DI PRODUZIONE (IMP.MECC. N° 30)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Aerservices'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Piacenza Impianti', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Piacenza Impianti' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO DI RISCALDAMENTO/RAFFREDDAMENTO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Piacenza Impianti'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Piacenza Impianti', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Piacenza Impianti' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO MECCANICO DI RISCALDAMENTO/RAFFREDDAMENTO INTERNO AL CAPANNONE'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Piacenza Impianti'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Piacenza Impianti', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Piacenza Impianti' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO MECCANICO NELLA CENTRALE DI RAFFREDDAMENTO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Piacenza Impianti'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'VENTILATORE DESTRATIFICATORE X9-EV'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione compressore aria_GA15VSD_Essicatore.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA ATLAS COPCO GA 15 VSD + ESSICCATORE FX5'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — RIAC', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'RIAC' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA ATLAS COPCO GA 15 VSD + ESSICCATORE FX5'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — RIAC'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione compressore aria BK14.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 14'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Camo 2', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Camo 2' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 14'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Camo 2'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione compressore aria BK19.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 19'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Camo 2', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Camo 2' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'COMPRESSORE ARIA FINI MOD. BK 19'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Camo 2'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — RIAC', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'RIAC' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FILTRO ARIA PD32'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — RIAC'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — RIAC', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'RIAC' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'SERBATOIO ARIA COMPRESSA'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — RIAC'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Consulenza metano', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Consulenza metano' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTI E DISTRIBUZIONE GAS METANO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Consulenza metano'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'IMPIANTO ELETTRICO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadri_El_Bordo_Linea1 e 2 Termoregolazione.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRI ELETTRICI A BORDO LINEA 1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRI ELETTRICI A BORDO LINEA 1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadri_El_Linea3.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRI ELETTRICI LINEA 3 A FIANCO MACCHINA'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRI ELETTRICI LINEA 3 A FIANCO MACCHINA'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Centr_Olio_Diatermico.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO CENTRALE OLIO DIATERMICO E SUO QUADRO REMOTO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO CENTRALE OLIO DIATERMICO E SUO QUADRO REMOTO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_1_soppalco.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 1 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 1 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_2_soppalco.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 2 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 2 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr_3_soppalco.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 3 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE LINEA 3 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Estr70_soppalco.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE TGF70 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO ESTRUSORE TGF70 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_ausiliari_BSF.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO SERVIZI AUSILIARI LINEA 2 - BSF COLMEC'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO SERVIZI AUSILIARI LINEA 2 - BSF COLMEC'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadro_El_Serv_2_soppalco.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO SERVIZI LINEA 2 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO SERVIZI LINEA 2 SUL SOPPALCO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Quadri_El_Traino_Linea3.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO TRAINO LINEA 3'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Forlani', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Forlani' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'QUADRO ELETTRICO TRAINO LINEA 3'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Forlani'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'AVVOLGITORE RAMPONI MOD. RA.A 600'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'AVVOLGITORE RAMPONI MOD. RA.A 600.BRU'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'BOBINATRICE LUNARDON TIPO ML 2-600 DOPPIA - MATRICOLA N° 02073 CC'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CESOIA VELOCE RAMPONI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CESOIA VELOCE RAMPONI 2023 MATRICOLA 391122'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'DISTRIBUTORE DI PROFILI 1 E 2'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ESTRUSORE COLMEC TGF 70/15D (coestrusione)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione estrusore GERLACH_new.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ESTRUSORE COLMEC TGFD 105/22D LINEA 3'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione estrusore UHF_new.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ESTRUSORE COLMEC TGFD 90/22D LINEA 1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Junior' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione estrusore BSF_new.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'ESTRUSORE COLMEC TGFD 90/22D LINEA 2'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Ecotechno', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Ecotechno' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'EVAPORATORE SOTTOVUOTO - POMPA PERISTALTICA - DOSATORE VOLUMETRICO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Ecotechno'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marco' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione evaporatore.xls — Nel file XLS: MARCO/GABRIELE', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'EVAPORATORE SOTTOVUOTO - POMPA PERISTALTICA - DOSATORE VOLUMETRICO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Ecogenerazione', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Ecogenerazione' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'EVAPORATORE SOTTOVUOTO - POMPA PERISTALTICA - DOSATORE VOLUMETRICO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Ecogenerazione'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Coral Service', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Coral Service' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FILTRO ELETTROSTATICO TRATTAMENTO FUMI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Coral Service'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FORNO SHOCK ITAIGUM'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione Bruciatore Gas AC1 Linea 1.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione Bruciatore Gas AC2 Linea 1.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 - BERSTORFF BRUCIATORE GAS CANALE AC 2'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione forno AC1 Linea 1.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione forno AC2 Linea 1.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 - BERSTORFF CANALE AD ARIA CALDA N° 2'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione canale raffreddamento-traino Linea 1.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 - BERSTORFF CANALE DI RAFFREDDAMENTO E TRAINO A CINGOLI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione forno microonde.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 1 FORNO A MICROONDE BERSTORFF'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione lavaggio-filtrocarta BSF.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI LAVAGGIO LC4/200/E + UNITA'' DI FILTRAGGIO FC810'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione raffreddamento BSF.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI RAFFREDDAMENTO AD IMMERSIONE R16'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione traino BSF.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 2 - BSF COLMEC UNITA'' DI TRAINO A CINGOLI (CATERPILLAR) TC400/200'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Gabriele' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione forno BSF FVSC.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 2 - BSF FORNO DI VULCANIZZAZIONE COLMEC FVSC'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione canale raffreddamento e traino Linea 3.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 3 CANALE DI RAFFREDDAMENTO FORNO DI VULCANIZZAZIONE GERLACH SHF 147'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione forno Gerlach.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'LINEA 3 FORNO DI VULCANIZZAZIONE GERLACH SHF 147'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'SEGATRICE A NASTRO MEP SHARK 200'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'SEGHETTA MANUALE RAMPONI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Strumenta', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Strumenta' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'BILANCIA SARTORIUS MIRAS 2 (INGREDIENTI) NON PIU IN USO'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Strumenta'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Ester' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione SPRUZZATORE SILICONE.xlsx — Nel file XLS: ESTER/VIVIANA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 2,5 litri'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Ester' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione SPRUZZATORE LIQUIDO DISTACCANTE.xlsx — Nel file XLS: ESTER/VIVIANA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'DISPOSITIVO DI SILICONATURA MKS-G 500 Schmieranlagen da 5litri (LIQUIDO DISTACCANTE)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'accensione per 10 ore lavoro e pulizia', 'accensione per 10 ore lavoro e pulizia',
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Ester' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione MARCATRICE.xls — Nel file XLS: ESTER/VIVIANA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'MARCATRICE WIEDENBACH'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'accensione per 10 ore lavoro e pulizia'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Ester' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -1 Scheda manutenzione Bilancia a Terra.xls — Nel file XLS: ESTER/VIVIANA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PIATTAFORMA DI PESATURA EV22 ME 103941 Soc. Coop. Bilanciai (2000kg)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Adda Bilance', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Adda Bilance' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PIATTAFORMA DI PESATURA EV22 ME 103941 Soc. Coop. Bilanciai (2000kg)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Adda Bilance'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Ester' LIMIT 1), NULL, 1, 'Nel file XLS: ESTER/VIVIANA', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PIATTAFORMA DI PESATURA MOD.EV 22 ME 103940 (150KG) Soc. Coop. Bilanciai'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione programmata esterna — Adda Bilance', NULL,
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'Adda Bilance' LIMIT 1), 1, NULL, NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'PIATTAFORMA DI PESATURA MOD.EV 22 ME 103940 (150KG) Soc. Coop. Bilanciai'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione programmata esterna — Adda Bilance'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marina' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione Scala DC-B3.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'SCALA "DC SCALE B3"'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, NULL, 'Manutenzione ordinaria interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Marina' LIMIT 1), NULL, 1, 'Scheda originale: mod. 6.3 -2 Scheda manutenzione Scala SVELT.xlsx', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'SCALA "SVELT" h 1,12 m n°1'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Manutenzione ordinaria interna'
|
|
AND m.execution_type = 'internal');
|
|
|
|
-- --------------------- interventi dettagliati dalle schede mod. 6.3-1 -----
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'A', 'Controllo del livello del liquido elettrolito all''interno di ciascun elemento della batteria. Se necessario…', 'Controllo del livello del liquido elettrolito all''interno di ciascun elemento della batteria. Se necessario aggiungere acqua distillata',
|
|
'scheduled', 'internal',
|
|
2, 'week', 'ogni due settimane (senza annotazione)', 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo del livello del liquido elettrolito all''interno di ciascun elemento della batteria. Se necessario…'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'B', 'Controllo livello olio dell''impianto idraulico. Se necessario aggiungere olio (v. istruzioni del costruttore)', NULL,
|
|
'scheduled', 'internal',
|
|
3, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo livello olio dell''impianto idraulico. Se necessario aggiungere olio (v. istruzioni del costruttore)'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'C', 'Controllo della tensione delle catene di sollevamento (deve essere uguale per entrambe le catene)', NULL,
|
|
'scheduled', 'internal',
|
|
3, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo della tensione delle catene di sollevamento (deve essere uguale per entrambe le catene)'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'D', 'Controllo dello stato di conservazione e di funzionamento delle catene di sollevamento', NULL,
|
|
'scheduled', 'internal',
|
|
3, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo dello stato di conservazione e di funzionamento delle catene di sollevamento'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'E', 'Controllo della corsa del freno a mano. Se necessario effettuare la registrazione', NULL,
|
|
'scheduled', 'internal',
|
|
3, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo della corsa del freno a mano. Se necessario effettuare la registrazione'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'F', 'Controllo del fissaggio delle ruote', NULL,
|
|
'scheduled', 'internal',
|
|
6, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Controllo del fissaggio delle ruote'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'G', 'Ingrassaggio nei punti: pedale freno e ancoraggio montanti', NULL,
|
|
'scheduled', 'internal',
|
|
6, 'month', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Ingrassaggio nei punti: pedale freno e ancoraggio montanti'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'H', 'Tagliando da parte di tecnico specializzato. In particolare: controllo dei motori elettrici, sostituzione dell''olio…', 'Tagliando da parte di tecnico specializzato. In particolare: controllo dei motori elettrici, sostituzione dell''olio freni, dell''olio dell''impianto idraulico e, se necessario, dell''olio del ponte anteriore differenziale',
|
|
'scheduled', 'internal',
|
|
1, 'year', NULL, 7,
|
|
(SELECT id FROM employees WHERE first_name = 'Alfonso' LIMIT 1), NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione CARRELLO ELEVATORE CARMI.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CARRELLO ELEVATORE CAR.MI. MOD. PL416'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Tagliando da parte di tecnico specializzato. In particolare: controllo dei motori elettrici, sostituzione dell''olio…'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'A', 'Pulizia delle batterie da eseguirsi mediante aspirazione e passaggio spazzola in ferro', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', '- prima dell''accensione - durante il periodo estivo: settimanale - dopo lo spegnimento', 7,
|
|
NULL, NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione chiller uffici.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Pulizia delle batterie da eseguirsi mediante aspirazione e passaggio spazzola in ferro'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'B', 'Pulizia dei 2 filtri acqua sulla linea dei nebulizzatori, da eseguirsi mediante lavaggio con acqua e soffio d''aria', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', '- prima dell''accensione - durante il periodo estivo: settimanale - dopo lo spegnimento', 7,
|
|
NULL, NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione chiller uffici.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Pulizia dei 2 filtri acqua sulla linea dei nebulizzatori, da eseguirsi mediante lavaggio con acqua e soffio d''aria'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'C', 'Pulizia dei 4 nebulizzatori, da eseguirsi mediante lavaggio con acqua e soffio d''aria. Per lo smontaggio usare…', 'Pulizia dei 4 nebulizzatori, da eseguirsi mediante lavaggio con acqua e soffio d''aria. Per lo smontaggio usare chiave n. 15 + brugola n. 3. I nebulizzatori devono generare uno spruzzo diffuso e regolare',
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', '- prima dell''accensione - durante il periodo estivo: settimanale - dopo lo spegnimento', 7,
|
|
NULL, NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione chiller uffici.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Pulizia dei 4 nebulizzatori, da eseguirsi mediante lavaggio con acqua e soffio d''aria. Per lo smontaggio usare…'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'D', 'Pompa Interna', NULL,
|
|
'scheduled', 'internal',
|
|
NULL, 'on_demand', '- prima dell''accensione - durante il periodo estivo: mensile - dopo lo spegnimento', 7,
|
|
NULL, NULL, 1, 'Importato da mod. 6.3 -1 Scheda manutenzione chiller uffici.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'CHILLER UFFICI E POMPA DI CALORE ELCO (IMP.MECC. N° 43)'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Pompa Interna'
|
|
AND m.execution_type = 'internal');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'A', 'Pulizia e sanificazione dei seguenti locali, inclusi arredi e ogni superficie: servizi igienici (piano terra +…', 'Pulizia e sanificazione dei seguenti locali, inclusi arredi e ogni superficie: servizi igienici (piano terra + piano 1°) spogliatoi maschili e femminili locale ristoro erogatori di bevande (piano terra + piano 1°)',
|
|
'scheduled', 'external',
|
|
1, 'day', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Pulizia e sanificazione dei seguenti locali, inclusi arredi e ogni superficie: servizi igienici (piano terra +…'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'B', 'Svuotatura e pulizia posaceneri e cestini+scopatura pavimenti+lavaggio manuale pavimenti+lavaggio scale e atrio…', 'Svuotatura e pulizia posaceneri e cestini+scopatura pavimenti+lavaggio manuale pavimenti+lavaggio scale e atrio d''entrata+spolveratura a umido arredi+sanificazione toilette+trasporto e smaltimento rifiuti',
|
|
'scheduled', 'external',
|
|
1, 'week', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Svuotatura e pulizia posaceneri e cestini+scopatura pavimenti+lavaggio manuale pavimenti+lavaggio scale e atrio…'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'C', 'Disincrostazione lavabi, tazze wc e rubinetterie', NULL,
|
|
'scheduled', 'external',
|
|
1, 'week', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Disincrostazione lavabi, tazze wc e rubinetterie'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'D', 'Lavaggio: vetri interni, infissi, pareti lavabili e piastrellate', NULL,
|
|
'scheduled', 'external',
|
|
1, 'month', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Lavaggio: vetri interni, infissi, pareti lavabili e piastrellate'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'E', 'Decontaminazione/sanificazione dei locali uffici, servizi igienici, spogliatoi, locali di ristoro, spazi comuni al…', 'Decontaminazione/sanificazione dei locali uffici, servizi igienici, spogliatoi, locali di ristoro, spazi comuni al piano terra e al piano 1° con PEROX mirconebulizzato',
|
|
'scheduled', 'external',
|
|
1, 'month', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Decontaminazione/sanificazione dei locali uffici, servizi igienici, spogliatoi, locali di ristoro, spazi comuni al…'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'F', 'Lavaggio: vetri esterni, infissi esterni, davanzali esterni, vetri separazione reparto produzione/uffici lato…', 'Lavaggio: vetri esterni, infissi esterni, davanzali esterni, vetri separazione reparto produzione/uffici lato reparto di produzione. Tutti al solo Piano Terra',
|
|
'scheduled', 'external',
|
|
3, 'month', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Lavaggio: vetri esterni, infissi esterni, davanzali esterni, vetri separazione reparto produzione/uffici lato…'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'G', 'Sanificazione filtri rubinetti, soffioni docce e pigne pavimento e docce con candeggina', NULL,
|
|
'scheduled', 'external',
|
|
3, 'month', NULL, 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Sanificazione filtri rubinetti, soffioni docce e pigne pavimento e docce con candeggina'
|
|
AND m.execution_type = 'external');
|
|
INSERT INTO maint_maintenances
|
|
(equipment_id, code, title, description, intervention_type, execution_type,
|
|
frequency_value, frequency_unit, frequency_note, alert_days,
|
|
assignee_employee_id, supplier_id, is_active, notes, created_at, updated_at)
|
|
SELECT e.id, 'H', 'Lavaggio: vetri esterni, infissi, vetri separazione reparto produzione/uffici lato reparto di produzione. Tutti al…', 'Lavaggio: vetri esterni, infissi, vetri separazione reparto produzione/uffici lato reparto di produzione. Tutti al Piano Primo.',
|
|
'scheduled', 'external',
|
|
NULL, 'on_demand', 'al bisogno, a richiesta specifica', 7,
|
|
NULL, (SELECT idsupplier FROM suppliers WHERE supplier_name = 'PULINET di Angelini Bassano' LIMIT 1), 1, 'Importato da 20_04_30_Scheda_Interventi_Pulinet.xls', NOW(), NOW()
|
|
FROM inv_equipment e
|
|
WHERE e.name = 'FABBRICATI'
|
|
AND NOT EXISTS (SELECT 1 FROM maint_maintenances m
|
|
WHERE m.equipment_id = e.id AND m.title = 'Lavaggio: vetri esterni, infissi, vetri separazione reparto produzione/uffici lato reparto di produzione. Tutti al…'
|
|
AND m.execution_type = 'external');
|