-- eseguire come utente MNP 

-------------------------------------- INIZIO LOG

-- nuovi codici processo per pitagora

insert into mnp_anagrafica_processo(codice_processo, nome_processo)
values('JA','PitagoraController');

insert into mnp_anagrafica_processo(codice_processo, nome_processo)
values('CG','PitagoraAttivazioneOut');

insert into mnp_anagrafica_processo(codice_processo, nome_processo)
values('JB','HZServiceBean');

insert into mnp_anagrafica_processo(codice_processo, nome_processo)
values('JC','MessageConsumerEjbPitagoraIn');

-- fine insert codici processo

--- nuovi log generici
insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0049','W','NON ESEGUITA TRANSIZIONE DI STATO NEL PROCESSO');
insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0065','N','ESEGUITA TRANSIZIONE DI STATO NEL PROCESSO');

insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0093','N','INIZIO ACQUISIZIONE RICHIESTA DA INFOBUS');
insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0094','N','FINE ACQUISIZIONE RICHIESTA DA INFOBUS');

insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0095','N','RICHIESTA INSERITA NELLA TABELLA');
insert into mnp_anagrafica_log(codice_log, severita, descrizione)
values('0096','W','ERRORE DURANTE IL PROCESSAMENTO DELLA RICHIESTA');

-- fine insert log generici

----insert log generici x tutti i processi

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0049',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0065',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0093',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0094',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0095',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT codice_processo, '0096',1,'00'
FROM mnp_anagrafica_processo where codice_processo not in ('JA','JB','JC','CG');

-- fine insert log generici per tutti i processi

-- nuovi log processo PitagoraAttivazioneOut

insert into mnp_anagrafica_log (codice_log, severita, descrizione)
values ('3001','C','ERRORE NELLA CREAZIONE DEL FLUSSO DI ATTIVAZIONE ');

insert into mnp_anagrafica_log (codice_log, severita, descrizione)
values ('3002','N','ESEGUITA CREAZIONE DEL FLUSSO DI ATTIVAZIONE');

-- fine insert log processo PitagoraAttivazioneOut


--- link ai log generici
insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT 'JA', codice_log, 1, '00'
FROM mnp_anagrafica_log
where codice_log like'00%';
insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
VALUES('JA','9999',1,'00');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT 'CG', codice_log, 1, '00'
FROM mnp_anagrafica_log
where codice_log like'00%';
insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
VALUES('CG','9999',1,'00');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT 'JB', codice_log, 1, '00'
FROM mnp_anagrafica_log
where codice_log like'00%';
insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
VALUES('JB','9999',1,'00');

insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
SELECT 'JC', codice_log, 1, '00'
FROM mnp_anagrafica_log
where codice_log like'00%';
insert into mnp_processo_log(codice_processo, codice_log, log_on, tipo_evento)
VALUES('JC','9999',1,'00');

-- fine link log generici


-- link PitagoraAttivazioneOut ai nuovi log

INSERT INTO MNP_PROCESSO_LOG (CODICE_PROCESSO, CODICE_LOG, LOG_ON,TIPO_EVENTO)  
VALUES ( 'CG','3001' ,1 ,'00' );

INSERT INTO MNP_PROCESSO_LOG (CODICE_PROCESSO, CODICE_LOG, LOG_ON,TIPO_EVENTO)  
VALUES ( 'CG','3002' ,1 ,'00' );

---fine link PiatgoraAttivazioneOut

-- popolamento tabella HZ_RGN_DISTRETTO_AGW

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,2,4,205);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,2,4,205);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,2,5,205);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,2,6,205);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,6,22,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,6,23,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,6,24,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,10,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,11,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,11,3,202);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,15,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,19,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,30,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,31,8,208);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,35,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,39,6,206);           

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,40,11,211);   

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,41,12,212);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,45,14,214);    

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,49,12,212);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,50,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,51,15,215);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,55,20,220);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,59,16,216);   

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,70,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,71,18,218); 

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,75,18,218);   

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,79,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,80,27,227); 

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,81,29,229);              

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,85,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,89,30,230);     

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,90,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,91,33,233);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,95,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,99,28,228); 

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,121,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,122,2,202);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,123,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,124,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,125,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,131,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,141,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,142,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,143,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,144,1,201);       

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,161,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,163,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,165,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,166,3,203);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,171,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,172,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,173,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,174,2,202);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,175,2,202);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,182,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,183,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,184,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,185,19,219);    

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,187,19,219);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,321,1,201);      

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,322,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,323,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,324,1,201);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,331,9,209);   

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,332,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,341,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,342,8,208); 

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,343,8,208);              

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,344,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,345,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,346,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,362,6,206);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,363,8,208);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,364,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,365,7,207); 

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,371,5,205);  

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,372,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,373,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,374,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,375,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,376,7,207);    

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,377,5,205);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,381,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,382,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,383,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,384,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,385,9,209);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,386,7,207);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,421,13,213);    

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,422,13,213);                

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,423,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,424,14,214);     

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,425,12,212);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,426,12,212);         

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,427,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,428,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,429,12,212);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,431,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,432,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,433,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,434,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,435,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,436,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,437,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,438,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,439,13,213);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,442,14,214);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,444,14,214);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,445,14,214);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,461,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,462,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,463,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,464,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,465,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,471,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,472,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,473,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,474,10,210);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,481,11,211);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,521,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,522,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,523,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,524,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,525,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,532,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,533,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,534,15,215);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,535,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,536,16,216);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,541,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,542,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,543,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,544,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,545,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,546,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,547,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,549,17,217);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,564,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,565,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,566,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,571,20,220);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,572,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,573,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,574,20,220);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,575,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,577,20,220);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,578,20,220);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,583,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,584,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,585,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,586,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,587,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,588,21,221);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,721,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,722,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,731,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,732,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,733,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,734,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,735,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,736,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,737,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,742,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,743,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,744,18,218);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,746,23,223);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,761,23,223);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,763,23,223);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,765,23,223);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,766,22,222);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,771,24,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,773,24,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,774,23,223);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,775,24,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,776,24,224);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,781,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,782,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,783,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,784,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,785,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,789,26,226);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,823,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,824,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,825,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,827,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,828,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,831,28,228);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,832,28,228);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,833,28,228);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,835,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,836,28,228);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,861,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,862,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,863,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,864,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,865,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,871,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,872,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,873,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,874,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,875,25,225);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,881,27,227);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,882,27,227);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,883,27,227);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,884,27,227);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,885,27,227);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,921,33,233);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,922,33,233);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,923,33,233);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,924,33,233);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,925,33,233);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,931,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,932,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,933,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,934,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,935,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,941,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,942,32,232);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,961,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,962,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,963,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,964,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,965,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,966,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,967,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,968,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,971,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN)
values (SEQ_RGN.nextval,972,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,973,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,974,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,975,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,976,30,230);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,981,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,982,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,983,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,984,31,231);

insert into HZ_RGN_DISTRETTO_AGW (UNIQUE_ID, DISTRETTO, AGW, RGN) 
values (SEQ_RGN.nextval,985,31,231);

-- fine popolamento tabella HZ_RGN_DISTRETTO_AGW

-- Pitagora FTP In

insert into MNP_SISTEMI_INTERNI (ID, DESCRIZIONE_SISTEMA) 
values (10,'PITAGORA');

insert into MNP_FLUSSI_SISTEMI_INTERNI (ID_SISTEMA, ID_FLUSSO, PREFISSO, ESTENSIONE, 
SYNC_FILE, PATH_FILE_IN, TIPO_PROCESSO, DESCRIZIONE, GESTIONE, NOTIFICATION_TYPE)
values (10,30,'TLC','csv','ctr','/mnpapp/gwmnp/FTPIN/','*','FLUSSO PITAGORA HOME ZONE',1,1);

insert into MNP_PATTERN_IN (ID_PATTERN, TIPO, LUNGHEZZA, FORMATO) 
values (9,'data',8,'yyyyMMdd');

insert into MNP_PATTERN_IN (ID_PATTERN, TIPO, LUNGHEZZA, FORMATO) 
values (10,'costante',4,'TIMN');

insert into MNP_PATTERN_IN (ID_PATTERN, TIPO, LUNGHEZZA, FORMATO) 
values (11,'estensione',4,'.csv');

insert into MNP_PATTERN_IN (ID_PATTERN, TIPO, LUNGHEZZA, FORMATO) 
values (12,'estensione',4,'.ctr');

insert into MNP_FLUSSI_PATTERN (ID_FLUSSO,POSIZIONE,ID_PATTERN) 
values (30,1,9);

insert into MNP_FLUSSI_PATTERN (ID_FLUSSO,POSIZIONE,ID_PATTERN) 
values (30,2,10);

insert into MNP_FLUSSI_PATTERN (ID_FLUSSO,POSIZIONE,ID_PATTERN) 
values (30,3,11);

insert into MNP_FLUSSI_PATTERN (ID_FLUSSO,POSIZIONE,ID_PATTERN) 
values (30,3,12);

commit;
