INSERT INTO dbo.ARUPR1_01 VALUES
('01',827,381,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',828,382,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',829,383,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',830,384,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',831,347,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',832,347,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',833,385,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',834,386,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',835,118,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',836,71,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',837,146,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'019/2018','8295/17-13','2017-10-26',2017,10,26,'N','2017-11-03' )
,('01',838,152,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',839,111,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',840,68,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',841,6,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',842,147,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',843,99,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',844,152,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',845,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2018','',NULL,0,0,0,'N','2017-11-30' )
,('01',846,152,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',847,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2018','',NULL,0,0,0,'N','2017-11-30' )
,('01',848,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2018','',NULL,0,0,0,'N','2017-11-30' )
,('01',849,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2018','',NULL,0,0,0,'N','2017-12-11' )
,('01',850,12,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'021/2018','8473/17-13','2017-11-02',2017,11,2,'N','2017-11-06' )
,('01',851,12,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'022/2018','8476/17-13','2017-11-02',2017,11,2,'N','2017-11-06' )
,('01',852,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'023/2018','8520/17-13','2017-11-03',2017,11,3,'N','2017-11-09' )
,('01',853,6,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',854,71,0,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',855,74,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',856,103,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',857,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'024/2018','8593/17-13','2017-11-07',2017,11,7,'N','2017-11-13' )
,('01',858,165,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',859,28,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'020/2018','8729/17-13','2017-11-10',2017,11,10,'N','2017-11-14' )
,('01',860,146,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'S05/2018','8772/17-13','2017-11-13',2017,11,13,'N','2017-11-15' )
,('01',861,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'033/2018','',NULL,0,0,0,'N','2017-12-07' )
,('01',862,147,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',863,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2018','',NULL,0,0,0,'N','2017-12-15' )
,('01',864,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2018','',NULL,0,0,0,'N','2017-12-18' )
,('01',865,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'027/2018','8856/17-13','2017-11-14',2017,11,14,'N','2017-11-21' )
,('01',866,75,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',867,7,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2018','',NULL,0,0,0,'N','2017-12-15' )
,('01',868,7,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2018','',NULL,0,0,0,'N','2017-12-15' )
,('01',869,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2018','',NULL,0,0,0,'N','2017-12-16' )
,('01',870,149,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',871,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2018','',NULL,0,0,0,'N','2017-12-18' )
,('01',872,89,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',873,118,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',874,17,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',875,387,0,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',876,83,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',877,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'028/2018','8912/17-13','2017-11-16',2017,11,16,'N','2017-11-24' )
,('01',878,28,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'025/2018','8961/17-13','2017-11-17',2017,11,17,'S','2017-11-28' )
,('01',879,28,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'026/2018','8972/17-13','2017-11-17',2017,11,17,'S','2017-11-27' )
,('01',880,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',881,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2018','',NULL,0,0,0,'N','2017-12-27' )
,('01',882,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2018','',NULL,0,0,0,'N','2018-01-10' )
,('01',883,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2018','',NULL,0,0,0,'N','2017-12-28' )
,('01',884,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2018','',NULL,0,0,0,'N','2017-12-29' )
,('01',885,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S06/2018','',NULL,0,0,0,'N','2018-01-05' )
,('01',886,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S07/2018','',NULL,0,0,0,'N','2018-01-09' )
,('01',887,6,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',888,90,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',889,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2018','9309/17-13','2017-11-27',2017,11,27,'N','2017-11-30' )
,('01',890,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2018','',NULL,0,0,0,'N','2018-01-02' )
,('01',891,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',892,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',893,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2018','',NULL,0,0,0,'N','2018-01-03' )
,('01',894,388,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',895,130,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',896,138,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',897,389,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',898,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2018','9485/17-13','2017-11-30',2017,11,30,'N','2017-12-04' )
,('01',899,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2018','9489/17-13','2017-11-30',2017,11,30,'N','2017-12-06' )
,('01',900,61,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',901,67,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',902,73,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',903,80,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',904,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2018','9654/17-13','2017-12-04',2017,12,4,'N','2017-12-11' )
,('01',905,299,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',906,65,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',907,89,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',908,91,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',909,91,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',910,92,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',911,85,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',912,390,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',913,390,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',914,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2018','',NULL,0,0,0,'N','2018-01-10' )
,('01',915,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2018','',NULL,0,0,0,'N','2018-01-04' )
,('01',916,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2018','',NULL,0,0,0,'N','2018-01-18' )
,('01',917,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'033/2018','9841/17-13','2017-12-07',2017,12,7,'N','2017-12-14' )
,('01',918,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2018','9894/17-13','2017-12-07',2017,12,7,'N','2017-12-15' )
,('01',919,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2018','10032/17-13','2017-12-12',2017,12,12,'N','2017-12-18' )
,('01',920,61,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',921,62,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2018','',NULL,0,0,0,'N','2018-01-26' )
,('01',922,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2018','',NULL,0,0,0,'N','2018-01-11' )
,('01',923,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2018','',NULL,0,0,0,'N','2018-01-23' )
,('01',924,12,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2018','10190/17-13','2017-12-15',2017,12,15,'N','2017-12-19' )
,('01',925,12,2016,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2018','10189/17-13','2017-12-15',2017,12,15,'N','2017-12-19' )
,('01',926,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2018','10164/17-13','2017-12-15',2017,12,15,'N','2017-12-20' )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',927,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2018','10209/17-13','2017-12-18',2017,12,18,'N','2017-12-19' )
,('01',928,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2018','10258/17-13','2017-12-18',2017,12,18,'N','2017-12-27' )
,('01',929,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2018','',NULL,0,0,0,'N','2018-01-24' )
,('01',930,65,2017,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',931,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',932,160,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',933,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S08/2018','',NULL,0,0,0,'N','2018-01-25' )
,('01',934,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2018','10413/17-13','2017-12-21',2017,12,21,'N','2017-12-29' )
,('01',935,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2018','10540/2017-13','2017-12-28',2017,12,28,'N','2018-01-02' )
,('01',936,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S09/2018','',NULL,0,0,0,'N','2018-02-05' )
,('01',937,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2018','10564/17-13','2017-12-29',2017,12,29,'N','2018-01-10' )
,('01',938,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2018','10541/17-13','2017-12-28',2017,12,28,'N','2018-01-03' )
,('01',939,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S06/2018','3/2018-13','1870-01-03',1870,1,3,'N','2018-01-05' )
,('01',940,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2018','5/2018-13','2018-01-03',2018,1,3,'N','2018-01-08' )
,('01',941,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2018','27/18-13','2018-01-04',2018,1,4,'N','2018-01-10' )
,('01',942,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2018','48/2018-13','2018-01-05',2018,1,5,'N','2018-01-18' )
,('01',943,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2018','',NULL,0,0,0,'N','2018-01-17' )
,('01',944,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2018','',NULL,0,0,0,'N','2018-01-26' )
,('01',945,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2018','',NULL,0,0,0,'N','2018-01-26' )
,('01',946,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2018','',NULL,0,0,0,'N','2018-01-25' )
,('01',947,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'056/2018','',NULL,0,0,0,'N','2018-01-25' )
,('01',948,65,2017,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',949,24,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'058/2018','',NULL,0,0,0,'S','2018-02-06' )
,('01',950,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2018','',NULL,0,0,0,'N','2018-02-05' )
,('01',951,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2018','',NULL,0,0,0,'N','2018-02-12' )
,('01',952,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',953,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2018','',NULL,0,0,0,'N','2018-02-07' )
,('01',954,303,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',955,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2018','25/2018-13','2018-01-04',2018,1,4,'N','2018-01-17' )
,('01',956,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S10/2018','',NULL,0,0,0,'N','2018-02-19' )
,('01',957,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S07/2018','96/2018-13','2018-01-09',2018,1,9,'N','2018-01-13' )
,('01',958,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2018','153/2018-13','2018-01-11',2018,1,11,'N','2018-01-20' )
,('01',959,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2018','186/2018-13','2018-01-11',2018,1,11,'N','2018-01-23' )
,('01',960,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2018','228/2018-13','2018-01-12',2018,1,12,'N','2018-01-24' )
,('01',961,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2018','',NULL,0,0,0,'N','2018-02-15' )
,('01',962,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S08/2018','360/2018-13','2018-01-17',2018,1,17,'N','2018-01-25' )
,('01',963,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2018','363/2018-13','2018-01-17',2018,1,17,'N','2018-01-30' )
,('01',964,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2018','420/2018-13','2018-01-18',2018,1,18,'N','2018-01-26' )
,('01',965,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2018','432/2018-13','2018-01-18',2018,1,18,'N','2018-01-26' )
,('01',966,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2018','',NULL,0,0,0,'N','2018-02-14' )
,('01',967,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2018','',NULL,0,0,0,'N','2018-02-28' )
,('01',968,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2018','',NULL,0,0,0,'N','2018-02-15' )
,('01',969,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2018','',NULL,0,0,0,'N','2018-02-26' )
,('01',970,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',971,141,2016,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',972,63,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2018','632/18','2018-01-24',2018,1,24,'N','2018-01-26' )
,('01',973,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'056/2018','693/18','2018-01-25',2018,1,25,'N','2018-02-02' )
,('01',974,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2018','674/18','2018-01-25',2018,1,25,'N','2018-01-31' )
,('01',975,164,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',976,159,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',977,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S11/2018','',NULL,0,0,0,'N','2018-03-03' )
,('01',978,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S12/2018','',NULL,0,0,0,'N','2018-03-07' )
,('01',979,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2018','',NULL,0,0,0,'N','2018-02-22' )
,('01',980,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2018','',NULL,0,0,0,'N','2018-02-22' )
,('01',981,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2018','',NULL,0,0,0,'N','2018-02-27' )
,('01',982,141,2016,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',983,145,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'070/2018','',NULL,0,0,0,'S','2018-02-28' )
,('01',984,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2018','',NULL,0,0,0,'N','2018-03-05' )
,('01',985,28,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'058/2018','883/2018-13','2018-02-01',2018,2,1,'S','2018-02-06' )
,('01',986,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2018','933/2018-13','2018-02-02',2018,2,2,'N','2018-02-06' )
,('01',987,303,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'N',NULL )
,('01',988,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S09/2018','975/2018','2018-02-05',2018,2,5,'N','2018-02-09' )
,('01',989,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2018','1036/2018-13','2018-02-07',2018,2,7,'N','2018-02-12' )
,('01',990,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2018','1035/2018-13','2018-02-07',2018,2,7,'N','2018-02-13' )
,('01',991,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2018','',NULL,0,0,0,'N','2018-03-14' )
,('01',992,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2018','',NULL,0,0,0,'N','2018-03-08' )
,('01',993,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S13/2018','',NULL,0,0,0,'N','2018-03-15' )
,('01',994,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S14/2018','',NULL,0,0,0,'N','2018-03-19' )
,('01',995,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2018','1111/2018-13','2018-02-09',2018,2,9,'N','2018-02-15' )
,('01',996,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S10/2018','1282/2018-13','2018-02-15',2018,2,15,'N','2018-02-19' )
,('01',997,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2018','1235/18-13','2018-02-14',2018,2,14,'N','2018-02-21' )
,('01',998,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2018','1286/18-13','2018-02-15',2018,2,15,'N','2018-02-22' )
,('01',999,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2018','1248/2018-13','2018-02-14',2018,2,14,'N','2018-02-26' )
,('01',1000,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2018','',NULL,0,0,0,'N','2018-03-13' )
,('01',1001,141,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1002,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2018','',NULL,0,0,0,'N','2018-03-23' )
,('01',1003,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2018','',NULL,0,0,0,'N','2018-03-15' )
,('01',1004,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2018','',NULL,0,0,0,'N','2018-03-28' )
,('01',1005,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2018','',NULL,0,0,0,'N','2018-03-28' )
,('01',1006,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2018','',NULL,0,0,0,'N','2018-03-29' )
,('01',1007,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2018','',NULL,0,0,0,'N','2018-03-29' )
,('01',1008,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2018','1506/2018-13','2018-02-22',2018,2,22,'N','2018-02-27' )
,('01',1009,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2018','',NULL,0,0,0,'N','2018-03-26' )
,('01',1010,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'082/2018','',NULL,0,0,0,'N','2018-03-29' )
,('01',1011,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2018','',NULL,0,0,0,'N','2018-05-08' )
,('01',1012,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2018','1501/2018-13','2018-02-22',2018,2,22,'N','2018-02-28' )
,('01',1013,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2018','1560/2018-13','2018-02-23',2018,2,23,'N','2018-02-28' )
,('01',1014,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2018','1654/2018-13','2018-02-27',2018,2,27,'N','2018-03-01' )
,('01',1015,146,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'070/2018','1674/2018-13','2018-02-28',2018,2,28,'S','2018-03-06' )
,('01',1016,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S15/2018','',NULL,0,0,0,'N','2018-04-04' )
,('01',1017,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2018','1817/2018-13','2018-03-05',2018,3,5,'N','2018-03-07' )
,('01',1018,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S12/2018','1889/2018-13','2018-03-07',2018,3,7,'N','2018-03-09' )
,('01',1019,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2018','1895/2018-13','2018-03-07',2018,3,7,'N','2018-03-14' )
,('01',1020,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S16/2018','',NULL,0,0,0,'N','2018-04-13' )
,('01',1021,123,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1022,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2018','1946/2018-13','2018-03-08',2018,3,8,'N','2018-03-15' )
,('01',1023,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2018','',NULL,0,0,0,'N','2018-04-05' )
,('01',1024,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'085/2018','',NULL,0,0,0,'N','2018-04-10' )
,('01',1025,5,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2018','',NULL,0,0,0,'N',NULL )
,('01',1026,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S13/2018','2087/2018-13','2018-03-13',2018,3,13,'N','2018-03-15' )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1027,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S14/2018','2088/2018-13','2018-03-13',2018,3,13,'N','2018-03-19' )
,('01',1028,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2018','2072/2018-13','2018-03-13',2018,3,13,'N','2018-03-20' )
,('01',1029,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2018','2114/2018-13','2018-03-14',2018,3,14,'N','2018-03-23' )
,('01',1030,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2018','2143/2018-13','2018-03-15',2018,3,15,'N','2018-03-26' )
,('01',1031,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'086/2018','',NULL,0,0,0,'N','2018-04-14' )
,('01',1032,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'087/2018','',NULL,0,0,0,'N','2018-04-17' )
,('01',1033,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'088/2018','',NULL,0,0,0,'N','2018-04-19' )
,('01',1034,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2018','2301/2018-13','2018-03-21',2018,3,21,'N','2018-03-28' )
,('01',1035,149,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1036,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2018','2347/2018-13','2018-03-22',2018,3,22,'N','2018-03-28' )
,('01',1037,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2018','2362/2018-13','2018-03-22',2018,3,22,'N','2018-03-29' )
,('01',1038,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2018','2365/2018-13','2018-03-22',2018,3,22,'N','2018-03-29' )
,('01',1039,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'089/2018','',NULL,0,0,0,'N','2018-04-27' )
,('01',1040,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'090/2018','',NULL,0,0,0,'N','2018-05-03' )
,('01',1041,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'091/2018','',NULL,0,0,0,'N','2018-04-24' )
,('01',1042,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2018','2430/2018-13','2018-03-26',2018,3,26,'N','2018-04-05' )
,('01',1043,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S17/2018','',NULL,0,0,0,'N','2018-05-14' )
,('01',1044,158,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1045,391,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1046,11,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2018','2514/2018-13','2018-03-28',2018,3,28,'N',NULL )
,('01',1047,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'082/2018','2542/2018-13','2018-03-29',2018,3,29,'N','2018-04-05' )
,('01',1048,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S15/2018','2663/2018-13','2018-04-04',2018,4,4,'N','2018-04-10' )
,('01',1049,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2018','2707/2018-13','2018-04-05',2018,4,5,'N','2018-04-11' )
,('01',1050,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'092/2018','',NULL,0,0,0,'N','2018-05-03' )
,('01',1052,152,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1053,152,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1054,24,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'093/2018','',NULL,0,0,0,'S','2018-05-10' )
,('01',1055,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'094/2018','',NULL,0,0,0,'N','2018-05-07' )
,('01',1056,148,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'F02/2018','',NULL,0,0,0,'N',NULL )
,('01',1057,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S18/2018','',NULL,0,0,0,'N','2018-05-19' )
,('01',1058,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'085/2018','2849/2018-13','2018-04-10',2018,4,10,'N','2018-04-17' )
,('01',1059,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S16/2018','2864/2018-13','2018-04-11',2018,4,11,'N','2018-04-13' )
,('01',1060,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'086/2018','2913/2018-13','2018-04-12',2018,4,12,'N','2018-04-18' )
,('01',1061,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'095/2018','',NULL,0,0,0,'N','2018-05-10' )
,('01',1062,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'096/2018','',NULL,0,0,0,'N','2018-05-10' )
,('01',1063,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'097/2018','',NULL,0,0,0,'N','2018-05-18' )
,('01',1064,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'087/2018','3028/2018-13','2018-04-17',2018,4,17,'N','2018-04-23' )
,('01',1065,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'088/2018','3079/2018-13','2018-04-19',2018,4,19,'N','2018-04-26' )
,('01',1066,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'089/2018','3081/2018-13','2018-04-19',2018,4,19,'N','2018-04-27' )
,('01',1067,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'091/2018','3197/2018-13','2018-04-24',2018,4,24,'N','2018-05-03' )
,('01',1068,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2018','3236/2018-13','2018-04-26',2018,4,26,'N','2018-05-08' )
,('01',1069,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'098/2018','',NULL,0,0,0,'N','2018-05-16' )
,('01',1070,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'099/2018','',NULL,0,0,0,'N','2018-05-21' )
,('01',1071,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'100/2018','',NULL,0,0,0,'N','2018-05-25' )
,('01',1072,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'101/2018','',NULL,0,0,0,'N','2018-05-23' )
,('01',1073,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S19/2018','',NULL,0,0,0,'N','2018-06-05' )
,('01',1074,27,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'F02/2018','3325/2018-13','2018-04-30',2018,4,30,'N',NULL )
,('01',1075,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'092/2018','3347/2018-13','2018-04-30',2018,4,30,'N','2018-05-08' )
,('01',1076,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'090/2018','3375/2018-13','2018-05-02',2018,5,2,'N','2018-05-08' )
,('01',1077,28,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'093/2018','3421/2018-13','2018-05-04',2018,5,4,'S','2018-05-10' )
,('01',1078,392,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1079,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S17/2018','3474/2018-13','2018-05-07',2018,5,7,'N','2018-05-14' )
,('01',1080,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'094/2018','3487/2018-13','2018-05-07',2018,5,7,'N','2018-05-15' )
,('01',1081,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'095/2018','3627/2018-13','2018-05-10',2018,5,10,'N','2018-05-16' )
,('01',1082,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'096/2018','3626/2018-13','2018-05-10',2018,5,10,'N','2018-05-17' )
,('01',1083,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'102/2018','',NULL,0,0,0,'N','2018-05-29' )
,('01',1084,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'103/2018','',NULL,0,0,0,'N','2018-05-30' )
,('01',1085,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'104/2018','',NULL,0,0,0,'N','2018-06-12' )
,('01',1086,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'105/2018','',NULL,0,0,0,'N','2018-06-14' )
,('01',1087,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'106/2018','',NULL,0,0,0,'N','2018-06-12' )
,('01',1088,92,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1090,71,2017,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1091,147,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1092,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S18/2018','3751/2018-13','2018-05-16',2018,5,16,'N','2018-05-19' )
,('01',1093,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'098/2018','3768/2018-13','2018-05-16',2018,5,16,'N','2018-05-24' )
,('01',1094,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'107/2018','',NULL,0,0,0,'N','2018-06-12' )
,('01',1095,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'108/2018','',NULL,0,0,0,'N','2018-06-14' )
,('01',1096,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'109/2018','',NULL,0,0,0,'N','2018-06-14' )
,('01',1097,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'110/2018','',NULL,0,0,0,'N','2018-06-19' )
,('01',1098,145,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'S20/2018','',NULL,0,0,0,'N','2018-06-22' )
,('01',1099,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'097/2018','3822/2018-13','2018-05-18',2018,5,18,'N','2018-05-23' )
,('01',1100,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'099/2018','3880/2018-13','2018-05-21',2018,5,21,'N','2018-05-28' )
,('01',1101,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'101/2018','3955/2018-13','2018-05-23',2018,5,23,'N','2018-05-30' )
,('01',1102,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'100/2018','4054/2018-13','2018-05-25',2018,5,25,'N','2018-05-29' )
,('01',1103,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'111/2018','',NULL,0,0,0,'N','2018-06-15' )
,('01',1104,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'112/2018','',NULL,0,0,0,'N','2018-07-03' )
,('01',1105,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'113/2018','',NULL,0,0,0,'N','2018-07-02' )
,('01',1106,7,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'114/2018','',NULL,0,0,0,'S','2018-06-22' )
,('01',1107,24,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'115/2018','',NULL,0,0,0,'S','2018-06-28' )
,('01',1108,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'102/2018','4157/2018-13','2018-05-29',2018,5,29,'N','2018-06-01' )
,('01',1109,147,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1110,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S19/2018','4228/2018-13','2018-05-31',2018,5,31,'N','2018-06-05' )
,('01',1111,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'103/2018','4193/2018','2018-05-30',2018,5,30,'N','2018-06-06' )
,('01',1112,145,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'116/2018','',NULL,0,0,0,'S','2018-06-29' )
,('01',1113,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'117/2018','',NULL,0,0,0,'N','2018-07-05' )
,('01',1114,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'105/2018','4387/2018-13','2018-06-06',2018,6,6,'N','2018-06-14' )
,('01',1115,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'104/2018','4486/2018-13','2018-06-08',2018,6,8,'N','2018-06-12' )
,('01',1116,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'118/2018','',NULL,0,0,0,'N','2018-07-05' )
,('01',1117,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'119/2018','',NULL,0,0,0,'N','2018-07-12' )
,('01',1118,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'120/2018','',NULL,0,0,0,'N','2018-07-13' )
,('01',1119,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'121/2018','',NULL,0,0,0,'N','2018-07-16' )
,('01',1120,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'122/2018','',NULL,0,0,0,'N','2018-07-13' )
,('01',1121,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'106/2018','4558/2018-13','2018-06-12',2018,6,12,'N','2018-06-15' )
,('01',1122,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'107/2018','4560/2018-13','2018-06-12',2018,6,12,'N','2018-06-19' )
,('01',1123,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S21/2018','',NULL,0,0,0,'N','2018-07-24' )
,('01',1124,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S22/2018','',NULL,0,0,0,'N','2018-07-30' )
,('01',1125,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'108/2018','4659/2018-13','2018-06-14',2018,6,14,'N','2018-06-20' )
,('01',1126,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'109/2018','4657/2018-13','2018-06-14',2018,6,14,'N','2018-06-20' )
,('01',1127,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'111/2018','4697/2018-13','2018-06-15',2018,6,15,'N','2018-06-21' )
,('01',1128,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'110/2018','4795/2018-13','2018-06-19',2018,6,19,'N','2018-06-25' )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1129,146,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'S20/2018','4846/2018-13','2018-06-21',2018,6,21,'N','2018-06-22' )
,('01',1130,12,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'114/2018','4829/2018-13','2018-06-20',2018,6,20,'S','2018-06-27' )
,('01',1131,387,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1132,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'123/2018','',NULL,0,0,0,'N','2018-07-13' )
,('01',1133,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'124/2018','',NULL,0,0,0,'N','2018-07-18' )
,('01',1134,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'125/2018','',NULL,0,0,0,'N','2018-07-18' )
,('01',1135,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'126/2018','',NULL,0,0,0,'N','2018-08-03' )
,('01',1136,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'127/2018','',NULL,0,0,0,'N','2018-07-25' )
,('01',1137,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'128/2018','',NULL,0,0,0,'N','2018-07-25' )
,('01',1138,28,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'115/2018','4934/2018-13','2018-06-25',2018,6,25,'S','2018-06-28' )
,('01',1139,146,2016,0,0,'',0,'',0,0,0,0,0,'C',96,0,'116/2018','4975/2018-13','2018-06-26',2018,6,26,'S','2018-06-29' )
,('01',1140,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'117/2018','5033/2018-17','2018-06-27',2018,6,27,'N','2018-07-05' )
,('01',1141,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'112/2018','5072/2018-13','2018-06-28',2018,6,28,'N','2018-07-03' )
,('01',1142,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'113/2018','5086/2018-13','2018-06-28',2018,6,28,'N','2018-07-02' )
,('01',1143,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'129/2018','',NULL,0,0,0,'N','2018-07-27' )
,('01',1144,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'130/2018','',NULL,0,0,0,'N','2018-08-08' )
,('01',1145,24,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'131/2018','',NULL,0,0,0,'N','2018-08-09' )
,('01',1146,154,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1147,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'119/2018','5249/2018-13','2018-07-04',2018,7,4,'N','2018-07-12' )
,('01',1148,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'120/2018','5301/2018-13','2018-07-05',2018,7,5,'N','2018-07-13' )
,('01',1149,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'121/2018','5303/2018-13','2018-07-05',2018,7,5,'N','2018-07-16' )
,('01',1150,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'118/2018','5285/2018-13','2018-07-05',2018,7,5,'N','2018-07-10' )
,('01',1151,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'132/2018','',NULL,0,0,0,'N','2018-08-07' )
,('01',1152,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'122/2018','5535/2018-13','2018-07-13',2018,7,13,'N','2018-07-18' )
,('01',1153,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'123/2018','5563/2018-13','2018-07-13',2018,7,13,'N','2018-07-19' )
,('01',1154,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'133/2018','',NULL,0,0,0,'N','2018-08-28' )
,('01',1155,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'134/2018','',NULL,0,0,0,'N','2018-09-03' )
,('01',1156,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'135/2018','',NULL,0,0,0,'N','2018-09-04' )
,('01',1157,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S21/2018','5667/2018-13','2018-07-18',2018,7,18,'N','2018-07-24' )
,('01',1158,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'124/2018','5714/2018-13','2018-07-18',2018,7,18,'N','2018-07-20' )
,('01',1159,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'125/2018','5688/2018-13','2018-07-18',2018,7,18,'N','2018-07-26' )
,('01',1160,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S22/2018','5876/2018-13','2018-07-24',2018,7,24,'N','2018-07-30' )
,('01',1161,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'127/2018','5933/2018-13','2018-07-25',2018,7,25,'N','2018-08-10' )
,('01',1162,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'128/2018','5929/2018-13','2018-07-25',2018,7,25,'N','2018-08-01' )
,('01',1163,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'136/2018','',NULL,0,0,0,'N','2018-08-30' )
,('01',1164,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'137/2018','',NULL,0,0,0,'N','2018-09-03' )
,('01',1165,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'138/2018','',NULL,0,0,0,'N','2018-09-10' )
,('01',1167,224,0,0,0,'',0,'',0,0,0,0,0,'C',19,0,'SE01/2019','',NULL,0,0,0,'S','2018-08-03' )
,('01',1168,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'126/2018','6133/2018-13','2018-07-30',2018,7,30,'N','2018-08-03' )
,('01',1169,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'129/2018','6053/218-13','2018-07-27',2018,7,27,'N','2018-08-06' )
,('01',1170,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'130/2018','6203/2018-13','2018-08-01',2018,8,1,'N','2018-08-08' )
,('01',1171,28,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'131/2018','6200/2018-13','2018-08-01',2018,8,1,'N','2018-08-09' )
,('01',1172,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'139/2018','',NULL,0,0,0,'N','2018-09-14' )
,('01',1173,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'001/2019','',NULL,0,0,0,'N','2018-09-14' )
,('01',1174,1,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1175,264,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2018-12-31' )
,('01',1176,2,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1177,412,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1178,3,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1179,237,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1180,240,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1181,220,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1182,243,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1183,228,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1184,35,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1185,266,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2018-12-31' )
,('01',1186,36,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1187,423,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1188,238,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1189,427,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1190,241,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1191,404,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1192,244,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1193,430,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1194,221,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1195,428,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1196,229,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1197,431,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1198,393,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1199,447,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1200,448,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1201,225,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1202,226,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1203,405,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1204,217,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1205,218,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1206,424,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1207,231,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1208,232,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1209,426,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1210,169,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1211,170,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1212,397,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1213,222,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1214,239,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1215,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'132/2018','6360/2018-13','2018-08-07',2018,8,7,'N','2018-08-23' )
,('01',1216,280,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1217,281,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1218,394,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1219,249,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1220,250,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1221,396,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1222,69,2017,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1223,6,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1224,19,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1225,265,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2018-12-31' )
,('01',1226,20,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1227,418,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1228,181,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1229,271,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1230,272,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1231,406,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1232,182,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1233,436,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1234,141,2017,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1235,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S1/2019','',NULL,0,0,0,'N','2018-10-08' )
,('01',1236,184,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1237,205,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1238,206,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1239,416,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1240,185,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1241,408,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1242,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'133/2018','6402/2018-13','2018-08-08',2018,8,8,'N','2018-08-28' )
,('01',1243,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S2/2019','',NULL,0,0,0,'N','2018-10-10' )
,('01',1244,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1245,24,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'002/2019','',NULL,0,0,0,'S','2018-09-26' )
,('01',1246,222,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1247,292,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1248,295,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1249,293,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1250,294,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1251,258,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1252,259,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1253,407,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1254,234,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1255,283,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1256,235,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1257,429,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1258,284,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1259,233,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1260,282,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1261,448,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1262,427,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1263,428,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1264,432,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1265,239,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1266,242,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1267,222,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1268,227,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1269,208,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1270,209,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1271,438,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1272,175,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1273,176,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1274,425,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1275,404,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1276,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'134/2018','6659/2018-13','2018-08-28',2018,8,28,'N','2018-09-03' )
,('01',1277,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'135/2018','6657/2018-13','2018-08-28',2018,8,28,'N','2018-09-04' )
,('01',1278,147,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1279,147,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1280,7,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'003/2019','',NULL,0,0,0,'S','2018-10-03' )
,('01',1281,149,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1282,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'004/2019','',NULL,0,0,0,'N','2018-10-02' )
,('01',1283,296,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1284,297,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1285,413,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1286,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'136/2018','6768/2018-13','2018-08-30',2018,8,30,'N','2018-09-10' )
,('01',1287,313,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1288,300,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1289,304,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1290,301,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1291,302,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1292,316,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1293,314,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1294,315,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1295,37,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1296,219,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1297,236,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1298,245,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1299,242,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1300,214,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1301,196,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1302,215,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1303,415,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1304,197,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1305,419,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1306,69,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1307,261,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1308,306,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1309,339,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1310,342,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1311,326,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1312,318,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1313,322,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1314,307,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1315,291,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1316,262,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1317,263,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1318,325,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1319,323,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1320,321,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1321,319,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1322,327,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1323,328,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1324,340,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1325,341,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1326,343,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1327,344,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1328,412,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1329,230,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1330,329,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1331,336,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1332,330,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1333,331,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1334,337,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1335,338,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1336,21,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1337,418,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1338,240,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1339,225,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1340,237,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1341,220,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1342,35,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1343,217,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1344,266,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1345,36,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1346,423,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1347,238,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1348,427,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1349,241,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1350,404,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1351,218,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1352,424,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1353,221,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1354,428,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1355,226,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1356,405,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'N',NULL )
,('01',1357,364,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1358,365,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1359,366,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1360,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1361,152,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1362,152,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1363,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'005/2019','',NULL,0,0,0,'N','2018-10-16' )
,('01',1364,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'006/2019','',NULL,0,0,0,'N','2018-10-17' )
,('01',1365,332,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1366,333,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1367,334,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1368,450,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1369,211,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1370,212,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1371,417,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1372,451,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1373,452,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1374,23,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1375,70,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1376,56,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1377,274,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1378,275,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1379,420,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1380,57,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1381,193,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1382,439,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1383,286,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1384,194,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1385,414,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1386,442,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1387,443,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1388,71,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1389,308,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1390,324,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1391,320,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1392,21,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1393,166,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1394,167,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1395,437,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1396,3,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1397,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'137/2018','6859/2018-13','2018-09-03',2018,9,3,'N','2018-09-14' )
,('01',1398,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'007/2019','',NULL,0,0,0,'N','2018-10-16' )
,('01',1399,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'008/2019','',NULL,0,0,0,'N','2018-10-16' )
,('01',1400,207,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1401,37,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1402,239,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1403,242,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1404,222,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1405,227,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1406,219,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1407,38,2018,0,0,'',1,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1408,71,2018,0,0,'',1,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1409,72,2018,0,0,'',1,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1410,213,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1411,69,2018,0,0,'',1,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1412,67,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1413,89,2018,0,0,'',0,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1414,70,2018,0,0,'',1,'',0,0,0,0,0,'C',273,0,'','',NULL,0,0,0,'S',NULL )
,('01',1415,3,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1416,348,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1417,358,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1418,359,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1419,360,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1420,349,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1421,350,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1422,216,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1423,21,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1424,210,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1425,198,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1426,276,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1427,454,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1428,110,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1429,141,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1430,410,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1431,58,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1432,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'138/2018','7051/2018-13','2018-09-10',2018,9,10,'N','2018-09-18' )
,('01',1433,58,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1434,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'009/2019','',NULL,0,0,0,'N','2018-10-17' )
,('01',1435,255,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1436,190,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1437,191,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1438,256,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1439,294,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1440,379,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1441,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'010/2019','',NULL,0,0,0,'N','2018-10-17' )
,('01',1442,202,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1443,351,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1444,352,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1445,203,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1446,195,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1447,361,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1448,355,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1449,356,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1450,362,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1451,273,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1452,171,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1453,177,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1454,285,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1455,187,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1456,188,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1457,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'139/2018','7180/2018-13','2018-09-14',2018,9,14,'N','2018-09-22' )
,('01',1458,199,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1459,200,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1460,103,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1461,112,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1462,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'001/2019','7163/2018-13','2018-09-14',2018,9,14,'N','2018-09-26' )
,('01',1463,28,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'002/2019','7203/2018-13','2018-09-17',2018,9,17,'S','2018-10-01' )
,('01',1464,145,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'011/2019','',NULL,0,0,0,'N','2018-10-19' )
,('01',1465,172,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1466,173,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1467,6,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1468,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'012/2019','',NULL,0,0,0,'N','2018-10-23' )
,('01',1469,12,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'003/2019','7283/2018-13','2018-09-20',2018,9,20,'S','2018-10-03' )
,('01',1470,204,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1471,266,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N','2019-06-30' )
,('01',1472,353,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1473,89,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1474,353,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1475,204,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1476,72,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1477,466,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1478,466,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1479,210,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1480,438,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1481,373,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1482,374,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1483,444,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1484,298,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1485,213,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1486,260,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1487,183,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1488,186,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1489,407,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1490,416,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1491,415,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1492,402,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1493,192,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1494,192,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1495,379,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1496,186,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1497,183,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1498,216,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1499,207,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1500,287,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1501,367,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1502,370,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1503,376,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1504,377,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1505,288,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1506,371,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1507,260,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1508,23,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1509,70,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1510,455,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1511,456,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1512,457,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1513,461,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1514,462,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1515,463,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1516,368,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1517,61,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1518,147,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1519,289,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1520,369,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1521,467,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1522,372,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1523,289,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1524,369,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1525,467,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1526,372,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1527,74,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1528,409,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1529,189,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1530,174,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1531,435,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1532,399,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1533,434,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1534,433,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1535,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'004/2019','7494/2018-13','2018-10-02',2018,10,2,'N','2018-10-12' )
,('01',1536,152,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1537,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'013/2019','',NULL,0,0,0,'N','2018-11-07' )
,('01',1538,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'014/2019','',NULL,0,0,0,'N','2018-10-30' )
,('01',1539,147,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1540,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'015/2019','',NULL,0,0,0,'N','2018-11-05' )
,('01',1541,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'016/2019','',NULL,0,0,0,'N','2018-11-05' )
,('01',1542,410,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1543,419,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1544,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'017/2019','',NULL,0,0,0,'N','2018-11-05' )
,('01',1545,61,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1546,62,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'018/2019','',NULL,0,0,0,'N','2018-11-05' )
,('01',1547,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S1/2019','7528/2018-13','2018-10-03',2018,10,3,'N','2018-10-08' )
,('01',1548,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'S2/2019','7527/2018-13','2018-10-03',2018,10,3,'N','2018-10-10' )
,('01',1549,198,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1550,58,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1551,413,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1552,201,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1553,257,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1554,357,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1555,298,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1556,251,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1557,6,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1558,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'005/2019','7797/2018-13','2018-10-12',2018,10,12,'N','2018-10-16' )
,('01',1559,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'006/2019','7800/2018-13','2018-10-12',2018,10,12,'N','2018-10-17' )
,('01',1561,7,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'019/2019','',NULL,0,0,0,'S','2018-11-14' )
,('01',1562,251,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1563,59,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1564,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'020/2019','',NULL,0,0,0,'N','2018-11-16' )
,('01',1565,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'021/2019','',NULL,0,0,0,'N','2018-11-20' )
,('01',1566,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'007/2019','7906/2018-13','2018-10-16',2018,10,16,'N','2018-10-18' )
,('01',1567,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'008/2019','7873/2018-13','2018-10-16',2018,10,16,'N','2018-10-19' )
,('01',1568,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'009/2019','7923/2018-13','2018-10-17',2018,10,17,'N','2018-10-24' )
,('01',1569,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'010/2019','7915/2018-13','2018-10-17',2018,10,17,'N','2018-10-25' )
,('01',1570,83,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1571,80,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1572,67,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1573,146,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'011/2019','8000/2018-13','2018-10-19',2018,10,19,'N','2018-10-29' )
,('01',1574,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'022/2019','',NULL,0,0,0,'N','2018-11-15' )
,('01',1575,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'023/2019','',NULL,0,0,0,'N','2018-11-16' )
,('01',1576,7,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'024/2019','',NULL,0,0,0,'N','2018-11-20' )
,('01',1577,90,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1578,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'012/2019','8108/2018-13','2010-10-23',2010,10,23,'N','2018-10-30' )
,('01',1579,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'013/2019','8167/2018-13','2018-10-24',2018,10,24,'N','2018-11-07' )
,('01',1580,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'025/2019','',NULL,0,0,0,'N','2018-11-26' )
,('01',1581,420,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1582,443,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1583,397,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1584,171,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1585,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S03/2019','',NULL,0,0,0,'N','2018-12-07' )
,('01',1586,444,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1587,276,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1588,303,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1589,458,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1590,464,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'PRODOTTO IN ATTESA DI VERIFICA','',NULL,0,0,0,'N',NULL )
,('01',1591,168,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1592,147,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1593,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1594,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'014/2019','8342/2018-13','2018-10-30',2018,10,30,'N','2018-11-07' )
,('01',1595,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S04/2019','',NULL,0,0,0,'N','2018-12-10' )
,('01',1596,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'015/2019','8400/2018-13','2018-11-05',2018,11,5,'N','2018-11-09' )
,('01',1597,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'016/2019','8426/2018-13','2018-11-05',2018,11,5,'N','2018-11-09' )
,('01',1598,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'017/2019','8394/2018-13','2018-11-05',2018,11,5,'N','2018-11-10' )
,('01',1599,63,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'018/2019','8425/2018-13','2018-11-05',2018,11,5,'N','2018-11-09' )
,('01',1600,12,2017,0,0,'',0,'',0,0,0,0,0,'C',96,0,'019/2019','8524/2018-13','2018-11-07',2018,11,7,'S','2018-11-14' )
,('01',1601,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'026/2019','',NULL,0,0,0,'N','2018-11-28' )
,('01',1602,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1603,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'027/2019','',NULL,0,0,0,'N','2018-12-05' )
,('01',1604,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1605,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'028/2019','',NULL,0,0,0,'N','2018-12-06' )
,('01',1606,65,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1607,468,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1608,164,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1609,159,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1610,158,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1611,17,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1612,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'021/2019','8764/2018-13','2018-11-13',2018,11,13,'N','2018-11-21' )
,('01',1613,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'020/2019','8797/2018-13','2018-11-14',2018,11,14,'N','2018-11-16' )
,('01',1614,469,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','3197/2018','2018-11-15',2018,11,15,'N',NULL )
,('01',1615,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'022/2019','8850/2018-13','2018-11-15',2018,11,15,'N','2018-11-22' )
,('01',1616,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2019','',NULL,0,0,0,'N','2018-12-07' )
,('01',1617,147,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1618,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2019','',NULL,0,0,0,'N','2018-12-13' )
,('01',1619,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2019','',NULL,0,0,0,'N','2018-12-13' )
,('01',1620,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2019','',NULL,0,0,0,'N','2018-12-14' )
,('01',1621,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'033/2019','',NULL,0,0,0,'N','2018-12-19' )
,('01',1622,99,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1623,111,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1624,73,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1625,141,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1626,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'023/2019','8900/2018-13','2018-11-16',2018,11,16,'N','2018-11-26' )
,('01',1627,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2019','',NULL,0,0,0,'N','2018-12-21' )
,('01',1628,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2019','',NULL,0,0,0,'N','2018-12-20' )
,('01',1629,390,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1630,75,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1631,12,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'024/2019','9080/2018-13','2018-11-20',2018,11,20,'N','2018-11-27' )
,('01',1632,141,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1633,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'025/2019','9260/18-13','2018-11-26',2018,11,26,'N','2018-12-03' )
,('01',1634,388,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1635,470,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1636,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2019','',NULL,0,0,0,'N','2018-12-19' )
,('01',1637,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2019','',NULL,0,0,0,'N','2018-12-21' )
,('01',1638,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2019','',NULL,0,0,0,'N','2018-12-28' )
,('01',1639,471,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1640,148,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2019','',NULL,0,0,0,'N',NULL )
,('01',1641,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S05/2019','',NULL,0,0,0,'N','2019-01-10' )
,('01',1642,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'026/2019','9394/2018-13','2018-11-28',2018,11,28,'N','2018-12-04' )
,('01',1643,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'027/2019','9456/2018-13','2018-11-29',2018,11,29,'N','2018-12-05' )
,('01',1644,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S06/2019','',NULL,0,0,0,'N','2019-01-12' )
,('01',1645,38,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1646,100,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1647,445,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1648,299,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1649,88,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1650,441,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1651,440,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1652,102,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1653,68,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1654,68,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1655,347,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1656,91,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1657,91,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1658,92,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1659,99,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1660,118,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1661,84,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1662,453,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1663,75,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1664,85,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1665,86,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1666,138,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1667,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S03/2019','9583/2018-13','2018-12-03',2018,12,3,'N','2018-12-07' )
,('01',1668,59,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1669,347,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1670,96,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1671,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S04/2019','9796/2018-13','2018-12-06',2018,12,6,'N','2018-12-11' )
,('01',1672,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'028/2019','9808/2018-13','2018-12-06',2018,12,6,'N','2018-12-12' )
,('01',1673,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2019','9839/2018-13','2018-12-07',2018,12,7,'N','2018-12-14' )
,('01',1674,251,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1675,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2019','9926/2018-13','2018-12-10',2018,12,10,'N','2018-12-17' )
,('01',1676,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2019','9965/2018-13','2018-12-11',2018,12,11,'N','2018-12-17' )
,('01',1677,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2019','',NULL,0,0,0,'N','2019-01-15' )
,('01',1678,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2019','',NULL,0,0,0,'N','2019-01-17' )
,('01',1679,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2019','',NULL,0,0,0,'N','2019-01-14' )
,('01',1680,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2019','',NULL,0,0,0,'N','2019-01-15' )
,('01',1681,156,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1682,90,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1683,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2019','9991/18-13','2018-12-12',2018,12,12,'N','2018-12-18' )
,('01',1684,27,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2019','10014/2018-13','2018-12-12',2018,12,12,'N',NULL )
,('01',1685,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'033/2019','10062/2018-13','2018-12-13',2018,12,13,'N','2018-12-19' )
,('01',1686,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2019','10057/2018-13','2018-12-13',2018,12,13,'N','2018-12-21' )
,('01',1687,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2019','',NULL,0,0,0,'N','2019-01-16' )
,('01',1688,385,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1689,472,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1690,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2019','10196/2018-13','2018-12-17',2018,12,17,'N','2018-12-27' )
,('01',1691,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2019','10288/2018-13','2018-12-19',2018,12,19,'N','2019-01-02' )
,('01',1692,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2019','',NULL,0,0,0,'N','2019-01-18' )
,('01',1693,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2019','',NULL,0,0,0,'N','2019-01-18' )
,('01',1694,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2019','',NULL,0,0,0,'N','2019-01-18' )
,('01',1695,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2019','',NULL,0,0,0,'N','2019-01-29' )
,('01',1696,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2019','',NULL,0,0,0,'N','2019-01-31' )
,('01',1697,449,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1698,449,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1699,449,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1700,78,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1701,153,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1702,129,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1703,76,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1704,386,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1705,380,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1706,473,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1707,383,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1708,346,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1709,160,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1710,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2019','10406/2018-13','2018-12-21',2018,12,21,'N','2019-01-04' )
,('01',1711,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2019','10471/2018-13','2018-12-28',2018,12,28,'N','2019-01-09' )
,('01',1712,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S07/2019','',NULL,0,0,0,'N','2019-02-07' )
,('01',1713,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2019','',NULL,0,0,0,'N','2019-01-24' )
,('01',1714,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2019','',NULL,0,0,0,'N','2019-01-30' )
,('01',1715,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S08/2019','',NULL,0,0,0,'N','2019-02-13' )
,('01',1716,90,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1717,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S05/2019','66/2019-13','2019-01-08',2019,1,8,'N','2019-01-10' )
,('01',1718,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S06/2019','85/2019-13','2019-01-09',2019,1,9,'N','2019-01-12' )
,('01',1719,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2019','132/2019-13','2019-01-10',2019,1,10,'N','2019-01-15' )
,('01',1720,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2019','126/2019-13','2019-01-10',2019,1,10,'N','2019-01-17' )
,('01',1721,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2019','',NULL,0,0,0,'N','2019-02-06' )
,('01',1722,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2019','',NULL,0,0,0,'N','2019-02-07' )
,('01',1723,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2019','',NULL,0,0,0,'N','2019-02-14' )
,('01',1724,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2019','238/2019-13','2019-01-14',2019,1,14,'N','2019-01-18' )
,('01',1725,149,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1726,149,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1727,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2019','279/2019-13','2019-01-15',2019,1,15,'N','2019-01-22' )
,('01',1728,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2019','325/2019-13','2019-01-16',2019,1,16,'N','2019-01-24' )
,('01',1729,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2019','398/2019-13','2019-01-17',2019,1,17,'N','2019-01-24' )
,('01',1730,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2019','404/2019-13','2019-01-17',2019,1,17,'N','2019-01-24' )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1731,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2019','417/2019-13','2018-01-17',2018,1,17,'N','2019-01-25' )
,('01',1732,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2019','503/2019-13','2019-01-21',2019,1,21,'N','2019-01-29' )
,('01',1733,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2019','',NULL,0,0,0,'N','2019-02-13' )
,('01',1734,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2019','',NULL,0,0,0,'N','2019-02-20' )
,('01',1735,149,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1736,145,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'056/2019','',NULL,0,0,0,'S','2019-02-20' )
,('01',1737,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2019','',NULL,0,0,0,'N','2019-02-16' )
,('01',1738,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'058/2019','',NULL,0,0,0,'N','2019-02-22' )
,('01',1739,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2019','',NULL,0,0,0,'N','2019-02-27' )
,('01',1740,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2019','610/2019-13','2019-01-23',2019,1,23,'N','2019-01-31' )
,('01',1741,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2019','',NULL,0,0,0,'N','2019-02-28' )
,('01',1742,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2019','',NULL,0,0,0,'N','2019-03-01' )
,('01',1743,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2019','680/2019-13','2019-01-24',2019,1,24,'N','2019-02-05' )
,('01',1744,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S09/2019','',NULL,0,0,0,'N','2019-03-06' )
,('01',1745,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2019','870/2019-13','2019-01-30',2019,1,30,'N','2019-02-06' )
,('01',1746,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2019','',NULL,0,0,0,'N','2019-03-04' )
,('01',1747,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S07/2019','948/2019-13','2019-02-01',2019,2,1,'N','2019-02-07' )
,('01',1748,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S10/2019','',NULL,0,0,0,'N','2019-03-13' )
,('01',1749,23,2018,100,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1750,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2019','1046/2019-13','2019-02-06',2019,2,6,'N','2019-02-12' )
,('01',1751,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2019','1088/2019-13','2019-02-07',2019,2,7,'N','2019-02-14' )
,('01',1752,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2019','1094/2019-13','2019-02-07',2019,2,7,'N','2019-02-15' )
,('01',1753,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2019','',NULL,0,0,0,'N','2019-03-08' )
,('01',1754,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2019','',NULL,0,0,0,'N','2019-03-06' )
,('01',1755,474,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','192','2019-02-08',2019,2,8,'N',NULL )
,('01',1756,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S08/2019','1139/2019-13','2019-02-08',2019,2,8,'N','2019-02-13' )
,('01',1757,6,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1758,65,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1759,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2019','1210/2019-13','2019-02-13',2019,2,13,'N','2019-02-18' )
,('01',1760,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2019','1240/2019-13','2019-02-13',2019,2,13,'N','2019-02-19' )
,('01',1761,146,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'056/2019','1264/2019-13','2019-02-14',2019,2,14,'S','2019-02-20' )
,('01',1762,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2019','1287/2019-13','2019-02-14',2019,2,14,'N','2019-02-21' )
,('01',1763,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2019','',NULL,0,0,0,'N','2019-03-12' )
,('01',1764,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2019','',NULL,0,0,0,'N','2019-03-21' )
,('01',1765,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2019','',NULL,0,0,0,'N','2019-03-18' )
,('01',1766,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'058/2019','1327/2019-13','2019-02-15',2019,2,15,'N','2019-02-25' )
,('01',1767,118,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1768,480,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1769,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2019','',NULL,0,0,0,'N','2019-03-26' )
,('01',1770,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2019','',NULL,0,0,0,'N','2019-03-22' )
,('01',1771,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'070/2019','',NULL,0,0,0,'N','2019-03-22' )
,('01',1772,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2019','',NULL,0,0,0,'N','2019-03-22' )
,('01',1773,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2019','1448/2019-13','2019-02-20',2019,2,20,'N','2019-02-27' )
,('01',1774,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2019','1450/2019-13','2019-02-20',2019,2,20,'N','2019-02-28' )
,('01',1775,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2019','1498/2019-13','2019-02-21',2019,2,21,'N','2019-03-01' )
,('01',1776,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S11/2019','',NULL,0,0,0,'N','2019-04-02' )
,('01',1777,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2019','',NULL,0,0,0,'N','2019-03-26' )
,('01',1778,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2019','1681/2019-13','2019-02-27',2019,2,27,'N','2019-03-04' )
,('01',1779,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S09/2019','1695/2019-13','2019-02-28',2019,2,28,'N','2019-03-06' )
,('01',1780,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2019','1697/2019-13','2019-02-28',2019,2,28,'N','2019-03-08' )
,('01',1781,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2019','',NULL,0,0,0,'N','2019-04-04' )
,('01',1782,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2019','',NULL,0,0,0,'N','2019-03-28' )
,('01',1783,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S12/2019','',NULL,0,0,0,'N','2019-04-11' )
,('01',1784,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S10/2019','1953/2019-13','2019-03-08',2019,3,8,'N','2019-03-15' )
,('01',1785,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2019','1877/2019-13','2019-03-06',2019,3,6,'N','2019-03-12' )
,('01',1786,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2019','',NULL,0,0,0,'N','2019-04-08' )
,('01',1787,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2019','',NULL,0,0,0,'N','2019-04-09' )
,('01',1788,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2019','',NULL,0,0,0,'N','2019-04-12' )
,('01',1789,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2019','2039/2019-13','2019-03-12',2019,3,12,'N','2019-03-19' )
,('01',1790,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2019','2068/2019-13','2019-03-13',2019,3,13,'N','2019-03-21' )
,('01',1791,69,2018,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1792,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2019','2193/2019-13','2019-03-18',2019,3,18,'N','2019-03-22' )
,('01',1793,475,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','192','2019-02-08',2019,2,8,'N',NULL )
,('01',1794,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2019','2226/2019-13','2019-03-19',2019,3,19,'N','2019-03-26' )
,('01',1795,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2019','2269/2019-13','2019-03-20',2019,3,20,'N','2019-03-27' )
,('01',1796,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'070/2019','2256/2019-13','2019-03-20',2019,3,20,'N','2019-03-26' )
,('01',1797,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2019','2344/2019-13','2019-03-22',2019,3,22,'N','2019-03-28' )
,('01',1798,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2019','2465/2019-13','2019-03-26',2019,3,26,'N','2019-03-29' )
,('01',1799,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2019','',NULL,0,0,0,'N','2019-04-19' )
,('01',1800,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2019','',NULL,0,0,0,'N','2019-04-29' )
,('01',1801,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2019','',NULL,0,0,0,'N','2019-05-02' )
,('01',1802,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2019','',NULL,0,0,0,'N','2019-04-23' )
,('01',1803,145,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'082/2019','',NULL,0,0,0,'S','2019-05-10' )
,('01',1804,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2019','',NULL,0,0,0,'N','2019-05-07' )
,('01',1805,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S11/2019','2551/2019-13','2019-03-28',2019,3,28,'N','2019-04-02' )
,('01',1806,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2019','2496/2019-13','2019-03-27',2019,3,27,'N','2019-04-04' )
,('01',1807,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2019','2567/2019-13','2019-03-28',2019,3,28,'N','2019-04-08' )
,('01',1808,118,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1809,154,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1810,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2019','2717/2019-13','2019-04-03',2019,4,3,'N','2019-04-10' )
,('01',1811,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2019','',NULL,0,0,0,'N','2019-05-16' )
,('01',1812,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'085/2019','',NULL,0,0,0,'N','2019-05-22' )
,('01',1813,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'086/2019','',NULL,0,0,0,'N','2019-06-03' )
,('01',1814,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'S12/2019','2796/2019-13','2019-04-05',2019,4,5,'N','2019-04-12' )
,('01',1815,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2019','2879/2019-13','2019-04-09',2019,4,9,'N','2019-04-16' )
,('01',1816,299,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1817,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'087/2019','',NULL,0,0,0,'N','2019-06-10' )
,('01',1818,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'088/2019','',NULL,0,0,0,'N','2019-06-06' )
,('01',1819,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2019','3014/2019-13','2019-04-12',2019,4,12,'N','2019-04-18' )
,('01',1820,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2019','3134/2019-13','2019-04-17',2019,4,17,'N','2019-04-19' )
,('01',1821,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2019','3143/2019-13','2019-04-17',2019,4,17,'N','2019-04-29' )
,('01',1822,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'089/2019','',NULL,0,0,0,'N','2019-06-20' )
,('01',1823,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'090/2019','',NULL,0,0,0,'N','2019-06-19' )
,('01',1824,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2019','3227/2019-13','2019-04-19',2019,4,19,'N','2019-05-02' )
,('01',1825,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2019','3217/2019-13','2019-04-19',2019,4,19,'N','2019-05-03' )
,('01',1826,481,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1827,482,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1828,146,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'082/2019','3403/2019-13','2019-05-02',2019,5,2,'S','2019-05-10' )
,('01',1829,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2019','3406/2019-13','2019-05-02',2019,5,2,'N','2019-05-07' )
,('01',1830,141,2018,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1831,6,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1832,69,2018,0,0,'',1,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1833,147,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1834,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2019','3550/2019-13','2019-05-07',2019,5,7,'N','2019-05-16' )
,('01',1835,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'091/2019','',NULL,0,0,0,'N','2019-07-02' )
,('01',1836,147,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1838,7,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'092/2019','',NULL,0,0,0,'S','2019-06-26' )
,('01',1839,149,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',1840,145,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'093/2019','',NULL,0,0,0,'S','2019-06-18' )
,('01',1841,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'085/2019','3635/2019-13','2019-05-08',2019,5,8,'N','2019-05-22' )
,('01',1842,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'086/2019','3861/2019-13','2019-05-14',2019,5,14,'N','2019-06-03' )
,('01',1843,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'087/2019','3966/2019-13','2019-05-16',2019,5,16,'N','2019-06-12' )
,('01',1844,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'088/2019','4051/2019-13','2019-05-20',2019,5,20,'N','2019-06-06' )
,('01',1845,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'094/2019','',NULL,0,0,0,'N','2019-06-21' )
,('01',1846,90,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1847,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'095/2019','',NULL,0,0,0,'N','2019-07-05' )
,('01',1848,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'096/2019','',NULL,0,0,0,'N','2019-07-02' )
,('01',1849,157,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1850,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'097/2019','',NULL,0,0,0,'N','2019-07-05' )
,('01',1851,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'098/2019','',NULL,0,0,0,'N','2019-07-17' )
,('01',1852,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'099/2019','',NULL,0,0,0,'N','2019-07-18' )
,('01',1853,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'089/2019','4674/2019-13','2019-06-10',2019,6,10,'N','2019-06-20' )
,('01',1854,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'090/2019','4690/2019-13','2019-06-10',2019,6,10,'N','2019-06-19' )
,('01',1855,146,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'093/2019','4760/2019-13','2019-06-12',2019,6,12,'S','2019-06-18' )
,('01',1856,161,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'N',NULL )
,('01',1857,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'091/2019','4949/2019-13','2019-06-19',2019,6,19,'N','2019-07-02' )
,('01',1858,12,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'092/2019','4983/2019-13','2019-06-19',2019,6,19,'S','2019-06-26' )
,('01',1859,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'094/2019','4911/2019-13','2019-06-18',2019,6,18,'N','2019-06-21' )
,('01',1860,17,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'N',NULL )
,('01',1861,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'100/2019','',NULL,0,0,0,'N','2019-07-23' )
,('01',1862,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'101/2019','',NULL,0,0,0,'N','2019-07-25' )
,('01',1863,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'102/2019','',NULL,0,0,0,'N','2019-07-30' )
,('01',1864,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'103/2019','',NULL,0,0,0,'N','2019-07-31' )
,('01',1865,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'104/2019','',NULL,0,0,0,'N','2019-08-05' )
,('01',1866,145,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'105/2019','',NULL,0,0,0,'S','2019-09-19' )
,('01',1867,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'095/2019','5263/2019-13','2019-06-28',2019,6,28,'N','2019-07-05' )
,('01',1868,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'096/2019','5350/2019-13','2019-07-02',2019,7,2,'N','2019-07-12' )
,('01',1869,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'106/2019','',NULL,0,0,0,'N','2019-08-01' )
,('01',1870,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'107/2019','',NULL,0,0,0,'N','2019-08-28' )
,('01',1871,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'097/2019','5492/2019-13','2019-07-05',2019,7,5,'N','2019-07-16' )
,('01',1872,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'098/2019','5490/2019-13','2019-07-05',2019,7,5,'N','2019-07-17' )
,('01',1873,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'108/2019','',NULL,0,0,0,'N','2019-09-06' )
,('01',1874,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'109/2019','',NULL,0,0,0,'N','2019-09-06' )
,('01',1875,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'099/2019','5718/2019-13','2019-07-12',2019,7,12,'N','2019-07-18' )
,('01',1876,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'110/2019','',NULL,0,0,0,'N','2019-08-30' )
,('01',1877,475,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','975/18','2019-07-12',2019,7,12,'N',NULL )
,('01',1878,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'111/2019','',NULL,0,0,0,'N','2019-09-03' )
,('01',1879,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'112/2019','',NULL,0,0,0,'N','2019-09-02' )
,('01',1880,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'100/2019','5854/2019-13','2019-07-17',2019,7,17,'N','2019-07-23' )
,('01',1881,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'101/2019','5790/2019-13','2019-07-16',2019,7,16,'N','2019-07-25' )
,('01',1882,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'113/2019','',NULL,0,0,0,'N','2019-09-16' )
,('01',1883,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'114/2019','',NULL,0,0,0,'N','2019-09-06' )
,('01',1884,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'102/2019','6007/2019-13','2019-07-22',2019,7,22,'N','2019-07-30' )
,('01',1885,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'103/2019','6054/2019-13','2019-07-22',2019,7,22,'N','2019-08-01' )
,('01',1886,483,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1887,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'104/2019','6142/2019-13','2019-07-24',2019,7,24,'N','2019-08-08' )
,('01',1888,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'115/2019','',NULL,0,0,0,'N','2019-09-24' )
,('01',1889,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'116/2019','',NULL,0,0,0,'N','2019-10-03' )
,('01',1890,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'106/2019','6425/2019-13','2019-08-01',2019,8,1,'N','2019-08-09' )
,('01',1891,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'107/2019','6394/2019-13','2019-08-01',2019,8,1,'N','2019-08-28' )
,('01',1892,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1893,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'110/2019','6631/2019-13','2019-08-08',2019,8,8,'N','2019-08-30' )
,('01',1894,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'111/2019','6645/2019-13','2019-08-08',2019,8,8,'N','2019-09-03' )
,('01',1895,475,2018,0,0,'380',0,'',0,0,0,0,0,'',0,0,'','975B','2019-08-19',2019,8,19,'N',NULL )
,('01',1896,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'112/2019','6697/2019-13','2019-08-19',2019,8,19,'N','2019-09-02' )
,('01',1897,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'115/2019','6889/2019-13','2019-08-28',2019,8,28,'N','2019-09-24' )
,('01',1898,240,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1899,495,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1900,237,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1901,490,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1902,35,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1903,243,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1904,500,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1905,225,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1906,220,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1907,484,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1908,266,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1909,36,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1910,423,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1911,238,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1912,427,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1913,241,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1914,404,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1915,244,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1916,430,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1917,485,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1918,486,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1919,491,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1920,492,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1921,496,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1922,497,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1923,501,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1924,502,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1925,221,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1926,428,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1927,226,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1928,405,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1929,184,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1930,217,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1931,218,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',1932,424,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1933,185,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1934,408,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1935,231,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1936,393,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1937,232,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1938,426,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1939,447,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1940,448,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1941,329,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1942,330,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1943,331,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1944,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'114/2019','6968/2019-13','2019-08-29',2019,8,29,'N','2019-09-06' )
,('01',1945,169,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1946,170,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1947,397,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1948,505,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1949,394,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1950,280,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1951,281,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1952,228,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1953,229,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1954,431,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1955,181,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1956,182,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1957,436,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1958,507,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1959,507,2017,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1960,390,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1961,19,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1962,234,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1963,1,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1964,235,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1965,429,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1966,264,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1967,2,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1968,412,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1969,265,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1970,20,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1971,418,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1972,146,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'105/2019','7171/2019-13','2019-09-05',2019,9,5,'S','2019-09-19' )
,('01',1973,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'108/2019','7188/2019-13','2019-09-05',2019,9,5,'N','2019-09-20' )
,('01',1974,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'109/2019','7190/2019-13','2019-09-05',2019,9,5,'N','2019-09-20' )
,('01',1975,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'113/2019','7168/2019-13','2019-09-05',2019,9,5,'N','2019-09-16' )
,('01',1976,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'116/2019','7213/2019','2019-09-06',2019,9,6,'N','2019-10-02' )
,('01',1977,149,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1978,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'001/2020','',NULL,0,0,0,'N','2019-09-19' )
,('01',1979,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'002/2020','',NULL,0,0,0,'N','2019-10-10' )
,('01',1980,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'003/2020','',NULL,0,0,0,'N','2019-10-11' )
,('01',1981,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'004/2020','',NULL,0,0,0,'N','2019-10-16' )
,('01',1982,505,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1983,427,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1984,239,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1985,239,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1986,249,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1987,250,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1988,396,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1989,508,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1990,509,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1991,510,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1992,37,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1993,239,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1994,242,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1995,493,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1996,498,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1997,222,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1998,404,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',1999,428,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2000,7,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'005/2020','',NULL,0,0,0,'S','2019-11-27' )
,('01',2001,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'006/2020','',NULL,0,0,0,'N','2019-10-14' )
,('01',2002,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'007/2020','',NULL,0,0,0,'N','2019-10-23' )
,('01',2003,5,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2020','',NULL,0,0,0,'N',NULL )
,('01',2004,533,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2005,300,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2006,304,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2007,301,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2008,302,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2009,534,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2010,535,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2011,448,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2012,296,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2013,297,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2014,413,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2015,497,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2016,148,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F02/2020','',NULL,0,0,0,'N',NULL )
,('01',2017,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'008/2020','',NULL,0,0,0,'N','2019-10-25' )
,('01',2018,196,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2019,197,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2020,419,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2021,518,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2022,519,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2023,520,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2024,261,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2025,306,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2026,332,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2027,307,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2028,422,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2029,291,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2030,262,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2031,403,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',2032,333,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2033,334,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2034,326,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2035,342,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2036,327,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2037,328,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2038,343,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2039,344,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2040,538,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2041,539,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2042,528,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2043,529,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2044,530,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2045,336,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2046,337,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2047,338,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2048,242,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2049,245,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2050,487,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2051,498,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2052,503,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2053,219,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2054,222,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2055,227,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2056,233,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2057,236,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2058,412,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2059,426,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2060,233,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2061,65,2018,0,0,'',1,'',0,0,0,0,0,'C',337,0,'','',NULL,0,0,0,'S',NULL )
,('01',2062,69,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2063,418,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2064,258,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2065,259,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2066,407,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2067,348,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2068,322,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2069,323,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2070,536,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2071,349,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2072,350,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2073,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'009/2020','',NULL,0,0,0,'N','2019-10-30' )
,('01',2074,56,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2075,205,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2076,523,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2077,202,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2078,206,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2079,416,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2080,524,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2081,525,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2082,57,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2083,203,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2084,318,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2085,319,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2086,537,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2087,230,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2088,151,0,0,0,'',0,'',0,0,0,0,0,'C',337,0,'','',NULL,0,0,0,'N',NULL )
,('01',2089,50,0,0,0,'',0,'',0,0,0,0,0,'C',337,0,'','',NULL,0,0,0,'N',NULL )
,('01',2090,24,2018,0,0,'',0,'',0,0,0,0,0,'C',337,0,'010/2020','',NULL,0,0,0,'S','2019-10-18' )
,('01',2091,65,2018,0,0,'',1,'',0,0,0,0,0,'C',337,0,'','',NULL,0,0,0,'S',NULL )
,('01',2092,448,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2093,21,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2094,3,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2095,535,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2096,263,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2097,308,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2098,450,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2099,358,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2100,359,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2101,360,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2102,451,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2103,452,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2104,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'011/2020','',NULL,0,0,0,'N','2019-10-31' )
,('01',2105,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'012/2020','',NULL,0,0,0,'N','2019-11-05' )
,('01',2106,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'001/2020','7613/2019-13','2019-09-19',2019,9,19,'N','2019-10-07' )
,('01',2107,513,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2108,514,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2109,515,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2110,448,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2111,3,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2112,21,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2113,198,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2114,166,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2115,167,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2116,437,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2117,506,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2118,540,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2119,543,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2120,542,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2121,544,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2122,545,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2123,541,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2124,454,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2125,58,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2126,410,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2127,58,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2128,255,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2129,256,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2130,351,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2131,352,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',2132,6,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2133,6,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2134,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2135,71,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2136,471,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2137,190,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2138,191,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2139,364,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2140,365,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2141,366,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2142,546,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2143,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'013/2020','',NULL,0,0,0,'N','2019-10-29' )
,('01',2144,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'014/2020','',NULL,0,0,0,'N','2019-10-29' )
,('01',2145,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'015/2020','',NULL,0,0,0,'N','2019-11-13' )
,('01',2146,152,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2147,23,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2148,110,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2149,70,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2150,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'002/2020','7749/2019-13','2019-09-25',2019,9,25,'N','2019-10-10' )
,('01',2151,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'003/2020','7760/2019-13','2019-09-25',2019,9,25,'N','2019-10-12' )
,('01',2152,111,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2153,187,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2154,188,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2155,112,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2156,355,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2157,361,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2158,356,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2159,362,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2160,282,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2161,531,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2162,521,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2163,516,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2164,511,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2165,207,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2166,298,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2167,260,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2168,186,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2169,171,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2170,251,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2171,526,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2172,471,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2173,183,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2174,409,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2175,204,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2176,204,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2177,103,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2179,547,0,0,0,'',1,'',0,0,0,0,1.3248,'',0,0,'','',NULL,0,0,0,'S',NULL )
,('01',2180,199,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2181,200,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2182,282,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2183,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'004/2020','7913/2019-13','2019-10-02',2019,10,2,'N','2019-10-16' )
,('01',2184,12,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'005/2020','7920/2019-13','2019-10-02',2019,10,2,'S','2019-11-27' )
,('01',2185,373,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2186,367,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2187,374,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2188,168,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2189,548,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2190,287,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2191,370,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2192,549,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2193,376,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2194,377,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2195,288,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2196,371,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2197,550,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2198,368,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2199,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'016/2020','',NULL,0,0,0,'N','2019-11-15' )
,('01',2200,171,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2201,21,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2202,521,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2203,416,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2204,525,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2205,454,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2206,520,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2207,207,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2208,526,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2209,452,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2210,402,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2211,399,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2212,192,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2213,192,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2214,141,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2215,346,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2216,89,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2217,90,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2218,353,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2219,353,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2220,260,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2221,65,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2222,394,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2223,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'006/2020','8048/2019-13','2019-10-08',2019,10,8,'N','2019-10-14' )
,('01',2224,11,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F01/2020','8093/2019-13','2019-10-09',2019,10,9,'N',NULL )
,('01',2225,27,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'F02/2020','8078/2019-13','2019-10-09',2019,10,9,'N',NULL )
,('01',2226,433,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2227,435,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2228,257,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2229,189,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2230,289,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2231,555,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2232,289,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',2233,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'017/2020','',NULL,0,0,0,'N','2019-11-18' )
,('01',2234,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'018/2020','',NULL,0,0,0,'N','2019-11-20' )
,('01',2235,551,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2236,398,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2237,556,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2238,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'019/2020','',NULL,0,0,0,'N','2019-11-29' )
,('01',2239,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'007/2020','8141/2019-13','2019-10-10',2019,10,10,'N','2019-10-23' )
,('01',2240,557,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2241,558,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2242,554,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2243,156,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2244,201,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2245,363,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2247,28,2018,0,0,'',0,'',0,0,0,0,0,'C',337,0,'010/2020','8228/2019-13','2019-10-15',2019,10,15,'S','2019-10-18' )
,('01',2248,369,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2249,375,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2250,378,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2251,559,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2252,357,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2253,372,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2254,552,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2255,282,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2256,114,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2257,303,2018,0,0,'',0,'',0,0,0,0,0,'C',337,0,'','',NULL,0,0,0,'N',NULL )
,('01',2258,83,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2259,80,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2260,67,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2261,73,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2262,74,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2263,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'008/2020','8444/2019-13','2019-10-22',2019,10,22,'N','2019-10-25' )
,('01',2264,282,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2265,7,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'020/2020','',NULL,0,0,0,'S','2019-12-09' )
,('01',2267,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'021/2020','',NULL,0,0,0,'N','2019-11-28' )
,('01',2268,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'009/2020','8505/2019-13','2019-10-23',2019,10,23,'N','2019-10-30' )
,('01',2269,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'011/2020','8508-2019-13','2019-10-23',2019,10,23,'N','2019-11-08' )
,('01',2270,147,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2271,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'012/2020','8603/2019-13','2019-10-25',2019,10,25,'N','2019-11-08' )
,('01',2272,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'015/2020','8594/2019-13','2019-10-25',2019,10,25,'N','2019-11-13' )
,('01',2273,346,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2274,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'013/2020','8698/2019-13','2019-10-29',2019,10,29,'N','2019-11-05' )
,('01',2275,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'014/2020','8685/2019-13','2019-10-29',2019,10,29,'N','2019-11-05' )
,('01',2276,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'022/2020','',NULL,0,0,0,'N','2019-12-03' )
,('01',2277,24,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'023/2020','',NULL,0,0,0,'N','2019-12-12' )
,('01',2278,145,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'024/2020','',NULL,0,0,0,'N','2020-01-09' )
,('01',2279,114,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2280,68,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2281,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2282,84,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2283,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2284,118,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2285,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2286,483,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2287,483,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2288,347,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2289,59,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2290,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'016/2020','8902/2019-13','2019-11-06',2019,11,6,'N','2019-11-15' )
,('01',2291,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'017/2020','8908/2019-13','2019-11-06',2019,11,6,'N','2019-11-19' )
,('01',2292,118,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2293,147,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2294,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'025/2020','',NULL,0,0,0,'N','2019-12-11' )
,('01',2295,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'026/2020','',NULL,0,0,0,'N','2019-12-12' )
,('01',2296,90,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2297,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'027/2020','',NULL,0,0,0,'N','2019-12-11' )
,('01',2298,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2299,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'028/2020','',NULL,0,0,0,'N','2019-12-17' )
,('01',2300,384,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2301,473,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2302,85,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2303,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2304,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2020','',NULL,0,0,0,'N','2019-12-10' )
,('01',2305,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2020','',NULL,0,0,0,'N','2019-12-12' )
,('01',2306,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'018/2020','9230/2019-13','2019-11-14',2019,11,14,'N','2019-11-20' )
,('01',2307,390,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2308,147,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2309,149,2019,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',2310,149,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'','',NULL,0,0,0,'S',NULL )
,('01',2311,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'019/2020','9301/2019-13','2019-11-18',2019,11,18,'N','2019-11-29' )
,('01',2312,59,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2313,564,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2314,449,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2315,380,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2316,84,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2317,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2020','',NULL,0,0,0,'N','2019-12-18' )
,('01',2318,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2020','',NULL,0,0,0,'N','2020-01-08' )
,('01',2320,145,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'033/2020','',NULL,0,0,0,'S','2020-01-10' )
,('01',2321,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2020','',NULL,0,0,0,'N','2020-01-03' )
,('01',2322,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2020','',NULL,0,0,0,'N','2020-01-03' )
,('01',2323,12,2018,0,0,'',0,'',0,0,0,0,0,'C',96,0,'020/2020','9680/2019-13','2019-11-27',2019,11,27,'S','2019-12-10' )
,('01',2324,347,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2325,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'021/2020','9711/2019-13','2019-11-28',2019,11,28,'N','2019-12-03' )
,('01',2326,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'022/2020','9886/2019-13','2019-12-03',2019,12,3,'N','2019-12-06' )
,('01',2327,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'025/2020','9918/2019-13','2019-12-03',2019,12,3,'N','2019-12-11' )
,('01',2328,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'026/2020','9913/2019-13','2019-12-03',2019,12,3,'N','2019-12-12' )
,('01',2329,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'027/2020','9921/2019-13','2019-12-03',2019,12,3,'N','2019-12-11' )
,('01',2330,38,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2331,69,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2332,72,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2333,489,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2334,75,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2335,494,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',2336,499,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2337,299,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2338,23,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2339,512,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2340,517,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2341,522,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2342,527,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2343,532,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2344,91,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2345,92,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2346,453,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2347,86,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2348,89,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2349,154,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2350,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2020','',NULL,0,0,0,'N','2020-01-17' )
,('01',2351,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2020','',NULL,0,0,0,'N','2020-01-21' )
,('01',2352,28,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'023/2020','10127/2019-13','2019-12-09',2019,12,9,'N','2019-12-12' )
,('01',2353,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'028/2020','10079/2019-13','2019-12-06',2019,12,6,'N','2019-12-17' )
,('01',2354,383,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2355,158,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2356,96,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2357,17,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2358,91,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2359,159,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2360,78,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2361,78,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2362,153,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2363,380,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2364,469,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2365,77,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2366,472,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2367,385,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2368,107,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2369,129,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2370,76,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2371,565,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2372,449,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2373,386,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2374,553,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2375,468,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2376,138,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2377,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'029/2020','10184/2019-13','2019-12-10',2019,12,10,'N','2019-12-19' )
,('01',2378,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'030/2020','10304/2019-13','2019-12-12',2019,12,12,'N','2019-12-23' )
,('01',2379,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2020','',NULL,0,0,0,'N','2020-01-23' )
,('01',2380,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2020','',NULL,0,0,0,'N','2020-01-15' )
,('01',2381,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2020','',NULL,0,0,0,'N','2020-01-22' )
,('01',2382,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2020','',NULL,0,0,0,'N','2020-02-03' )
,('01',2383,299,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2384,299,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2385,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2020','',NULL,0,0,0,'N','2020-01-27' )
,('01',2386,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2020','',NULL,0,0,0,'N','2020-01-24' )
,('01',2387,566,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2388,567,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2389,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'031/2020','10578/2019-13','2019-12-18',2019,12,18,'N','2020-01-03' )
,('01',2390,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2020','',NULL,0,0,0,'N','2020-02-05' )
,('01',2391,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'S01/2020','',NULL,0,0,0,'N','2020-01-29' )
,('01',2393,568,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2394,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'032/2020','10679/2019-13','2019-12-19',2019,12,19,'N','2020-01-08' )
,('01',2395,347,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2396,146,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'033/2020','10804/2019-13','2019-12-24',2019,12,24,'S','2020-01-10' )
,('01',2397,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'034/2020','10822/2019-13','2019-12-24',2019,12,24,'N','2020-01-08' )
,('01',2398,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'035/2020','10820/2019-13','2019-12-24',2019,12,24,'N','2020-01-09' )
,('01',2399,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'S02/2020','',NULL,0,0,0,'N','2020-02-14' )
,('01',2400,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2020','',NULL,0,0,0,'N','2020-02-05' )
,('01',2401,568,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2402,389,0,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2403,146,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'024/2020','30/2020-13','2020-01-09',2020,1,9,'N','2020-01-14' )
,('01',2404,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'036/2020','2/2020-13','2020-01-09',2020,1,9,'N','2020-01-17' )
,('01',2405,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2020','',NULL,0,0,0,'N','2020-02-10' )
,('01',2406,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'037/2020','140/2020-13','2020-01-13',2020,1,13,'N','2020-01-21' )
,('01',2407,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'038/2020','120/2020-13','2020-01-13',2020,1,13,'N','2020-01-23' )
,('01',2408,99,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2409,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'039/2020','257/2020-13','2020-01-15',2020,1,15,'N','2020-01-24' )
,('01',2410,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'S01/2020','258/2020-13','2020-01-15',2020,1,15,'N','2020-01-29' )
,('01',2411,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2020','',NULL,0,0,0,'N','2020-02-19' )
,('01',2412,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2020','',NULL,0,0,0,'N','2020-02-25' )
,('01',2413,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2414,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2020','',NULL,0,0,0,'N','2020-02-14' )
,('01',2415,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'040/2020','471/2020-13','2020-01-20',2020,1,20,'N','2020-01-29' )
,('01',2416,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'041/2020','517/2020-13','2020-01-21',2020,1,21,'N','2020-02-03' )
,('01',2417,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'042/2020','520/2020-13','2020-01-21',2020,1,21,'N','2020-02-05' )
,('01',2418,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2020','',NULL,0,0,0,'N','2020-02-27' )
,('01',2419,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2020','',NULL,0,0,0,'N','2020-02-27' )
,('01',2420,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2020','',NULL,0,0,0,'N','2020-02-20' )
,('01',2421,149,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2422,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2020','',NULL,0,0,0,'N','2020-03-04' )
,('01',2423,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'043/2020','627/2020-13','2020-01-24',2020,1,24,'N','2020-01-30' )
,('01',2424,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2020','',NULL,0,0,0,'N','2020-02-27' )
,('01',2425,481,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2426,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2020','',NULL,0,0,0,'N','2020-03-09' )
,('01',2427,569,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'056/2020','',NULL,0,0,0,'N',NULL )
,('01',2428,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'044/2020','945/2020-13','2020-02-05',2020,2,5,'N','2020-02-08' )
,('01',2429,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'045/2020','962/2020-13','2020-02-05',2020,2,5,'N','2020-02-12' )
,('01',2430,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2020','',NULL,0,0,0,'N','2020-03-11' )
,('01',2431,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'058/2020','',NULL,0,0,0,'N','2020-03-12' )
,('01',2432,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'S02/2020','1143/2020-13','2020-02-10',2020,2,10,'N','2020-02-14' )
,('01',2433,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'046/2020','1109/2020-13','2020-02-10',2020,2,10,'N','2020-02-18' )
,('01',2434,7,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2020','',NULL,0,0,0,'N','2020-03-18' )
,('01',2435,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'048/2020','1269/2020-13','2020-02-14',2020,2,14,'N','2020-02-25' )
,('01',2436,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'049/2020','1267/2020-13','2020-02-14',2020,2,14,'N','2020-02-27' )
go
INSERT INTO dbo.ARUPR1_01 VALUES
('01',2437,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2020','',NULL,0,0,0,'N','2020-03-13' )
,('01',2438,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2020','',NULL,0,0,0,'N','2020-03-26' )
,('01',2439,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'047/2020','1370/2020-13','2020-02-19',2020,2,19,'N','2020-02-22' )
,('01',2440,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'052/2020','1422/2020-13','2020-02-20',2020,2,20,'N','2020-03-02' )
,('01',2441,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'053/2020','1448/2020-13','2020-02-20',2020,2,20,'N','2020-03-04' )
,('01',2442,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2020','',NULL,0,0,0,'N','2020-03-18' )
,('01',2443,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2020','',NULL,0,0,0,'N','2020-03-31' )
,('01',2444,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2020','',NULL,0,0,0,'N','2020-04-01' )
,('01',2445,141,2019,0,0,'',1,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2446,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2020','',NULL,0,0,0,'N','2020-04-10' )
,('01',2447,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2020','',NULL,0,0,0,'N','2020-04-06' )
,('01',2448,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'050/2020','1597/2020-13','2020-02-26',2020,2,26,'N','2020-03-04' )
,('01',2449,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'051/2020','1599/2020-13','2020-02-26',2020,2,26,'N','2020-03-05' )
,('01',2450,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'054/2020','1601/2020-13','2020-02-26',2020,2,26,'N','2020-03-05' )
,('01',2451,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'055/2020','1648/2020-13','2020-02-28',2020,2,28,'N','2020-03-09' )
,('01',2452,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2020','',NULL,0,0,0,'N','2020-04-02' )
,('01',2453,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2020','',NULL,0,0,0,'N','2020-04-02' )
,('01',2454,7,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2020','',NULL,0,0,0,'N','2020-04-02' )
,('01',2455,570,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2456,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'057/2020','1833/2020-13','2020-03-05',2020,3,5,'N','2020-03-11' )
,('01',2457,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'058/2020','1830/2020-13','2020-03-05',2020,3,5,'N','2020-03-16' )
,('01',2458,145,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'070/2020','',NULL,0,0,0,'S',NULL )
,('01',2459,152,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2460,24,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2020','',NULL,0,0,0,'N','2020-04-09' )
,('01',2461,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2020','',NULL,0,0,0,'N','2020-04-15' )
,('01',2462,12,2018,0,0,'',0,'',0,0,0,0,0,'',0,0,'059/2020','1969/2020-13','2020-03-10',2020,3,10,'N','2020-03-19' )
,('01',2463,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2020','',NULL,0,0,0,'N','2020-04-16' )
,('01',2464,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2020','',NULL,0,0,0,'N','2020-04-21' )
,('01',2465,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2020','',NULL,0,0,0,'N','2020-04-23' )
,('01',2467,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'060/2020','2144/2020-13','2020-03-13',2020,3,13,'N','2020-03-24' )
,('01',2468,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'061/2020','2143/2020-13','2020-03-13',2020,3,13,'N','2020-03-26' )
,('01',2469,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2020','',NULL,0,0,0,'N','2020-04-28' )
,('01',2470,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2020','',NULL,0,0,0,'N','2020-04-17' )
,('01',2471,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'062/2020','2207/2020-13','2020-03-18',2020,3,18,'N','2020-03-30' )
,('01',2472,564,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'','',NULL,0,0,0,'N',NULL )
,('01',2473,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'063/2020','2221/2020-13','2020-03-18',2020,3,18,'N','2020-03-31' )
,('01',2474,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'064/2020','2289/2020-13','2020-03-19',2020,3,19,'N','2020-04-01' )
,('01',2475,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'065/2020','2351/2020-13','2020-03-20',2020,3,20,'N','2020-04-10' )
,('01',2476,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'066/2020','2440/2020-13','2020-03-24',2020,3,24,'N','2020-04-06' )
,('01',2477,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2020','',NULL,0,0,0,'N','2020-04-20' )
,('01',2478,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2020','',NULL,0,0,0,'N','2020-04-20' )
,('01',2479,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'067/2020','2573/2020-13','2020-03-27',2020,3,27,'N','2020-04-06' )
,('01',2480,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'068/2020','2572/2020-13','2020-03-27',2020,3,27,'N','2020-04-07' )
,('01',2481,12,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'069/2020','2576/2020-13','2020-03-27',2020,3,27,'N','2020-04-07' )
,('01',2482,146,0,0,0,'',0,'',0,0,0,0,0,'C',96,0,'070/2020','2621/2020-13','2020-03-30',2020,3,30,'S',NULL )
,('01',2483,28,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'071/2020','2622/2020-13','2020-03-30',2020,3,30,'N','2020-05-08' )
,('01',2484,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'072/2020','2648/2020-13','2020-03-31',2020,3,31,'N','2020-04-15' )
,('01',2485,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'073/2020','2760/2020-13','2020-04-03',2020,4,3,'N','2020-04-17' )
,('01',2486,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2020','',NULL,0,0,0,'N','2020-05-12' )
,('01',2487,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2020','',NULL,0,0,0,'N','2020-05-14' )
,('01',2488,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'074/2020','2782/2020-13','2020-04-06',2020,4,6,'N','2020-04-21' )
,('01',2489,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'075/2020','2822/2020-13','2020-04-07',2020,4,7,'N','2020-04-23' )
,('01',2490,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'076/2020','2914/2020-13','2020-04-15',2020,4,15,'N','2020-04-28' )
,('01',2491,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'077/2020','2993/2020-13','2020-04-17',2020,4,17,'N','2020-04-30' )
,('01',2492,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'082/2020','',NULL,0,0,0,'N',NULL )
,('01',2493,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2020','',NULL,0,0,0,'N','2020-05-12' )
,('01',2494,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2020','',NULL,0,0,0,'N','2020-05-12' )
,('01',2495,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'078/2020','3031/2020-13','2020-04-20',2020,4,20,'N','2020-05-06' )
,('01',2496,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'079/2020','3026/2020-13','2020-04-20',2020,4,20,'N','2020-05-07' )
,('01',2498,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'080/2020','3240/2020-13','2020-04-29',2020,4,29,'N','2020-05-12' )
,('01',2499,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'081/2020','3312/2020-13','2020-05-04',2020,5,4,'N','2020-05-14' )
,('01',2500,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'085/2020','',NULL,0,0,0,'N',NULL )
,('01',2501,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'086/2020','',NULL,0,0,0,'N',NULL )
,('01',2502,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'082/2020','3444/2020-13','2020-05-08',2020,5,8,'N',NULL )
,('01',2503,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'083/2020','3557/2020-13','2020-05-12',2020,5,12,'N',NULL )
,('01',2504,146,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'084/2020','3552/2020-13','2020-05-12',2020,5,12,'N',NULL )
,('01',2505,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'087/2020','',NULL,0,0,0,'N',NULL )
,('01',2506,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'088/2020','',NULL,0,0,0,'N',NULL )
,('01',2507,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'S03/2020','',NULL,0,0,0,'N',NULL )
,('01',2508,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'089/2020','',NULL,0,0,0,'N',NULL )
,('01',2509,145,2019,0,0,'',0,'',0,0,0,0,0,'',0,0,'090/2020','',NULL,0,0,0,'N',NULL )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ARUPR2', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ARUPR3', GetDate())
INSERT INTO dbo.ARUPR3_01 VALUES
('01',3,200,0 )
,('01',4,200,100 )
,('01',5,200,0 )
,('01',5,255,0 )
,('01',5,359,0 )
,('01',6,193,100 )
,('01',7,193,100 )
,('01',8,193,0 )
,('01',10,194,100 )
,('01',11,194,100 )
,('01',12,298,100 )
,('01',13,298,100 )
,('01',14,195,100 )
,('01',15,195,100 )
,('01',16,194,100 )
,('01',17,195,100 )
,('01',19,42,100 )
,('01',20,43,100 )
,('01',21,193,0 )
,('01',21,194,0 )
,('01',21,200,0 )
,('01',21,298,0 )
,('01',22,208,0 )
,('01',49,208,0 )
,('01',55,42,0 )
,('01',56,43,0 )
,('01',57,42,0 )
,('01',58,298,0 )
,('01',59,298,0 )
,('01',60,43,0 )
,('01',61,235,0 )
,('01',62,235,0 )
,('01',63,146,0 )
,('01',64,146,0 )
,('01',65,146,0 )
,('01',66,146,0 )
,('01',67,144,0 )
,('01',68,200,0 )
,('01',69,200,0 )
,('01',70,200,0 )
,('01',71,193,0 )
,('01',71,194,0 )
,('01',71,200,0 )
,('01',71,298,0 )
,('01',73,193,0 )
,('01',74,194,100 )
,('01',75,194,0 )
,('01',76,208,0 )
,('01',78,205,0 )
,('01',79,205,0 )
,('01',80,238,0 )
,('01',81,238,0 )
,('01',82,256,0 )
,('01',83,257,0 )
,('01',84,256,0 )
,('01',93,42,100 )
,('01',94,43,100 )
,('01',96,298,100 )
,('01',97,298,100 )
,('01',98,298,100 )
,('01',107,200,100 )
,('01',108,200,100 )
,('01',109,193,0 )
,('01',109,200,0 )
,('01',109,255,0 )
,('01',109,359,0 )
,('01',110,193,0 )
,('01',110,200,0 )
,('01',110,255,0 )
,('01',110,359,0 )
,('01',112,193,100 )
,('01',113,193,100 )
,('01',115,194,100 )
,('01',116,194,100 )
,('01',117,194,100 )
,('01',120,195,100 )
,('01',149,193,0 )
,('01',149,194,0 )
,('01',149,200,0 )
,('01',149,298,0 )
,('01',172,200,0 )
,('01',173,200,0 )
,('01',191,193,0 )
,('01',191,194,0 )
,('01',191,200,0 )
,('01',191,298,0 )
,('01',200,193,0 )
,('01',200,194,0 )
,('01',200,200,0 )
,('01',200,298,0 )
,('01',220,193,0 )
,('01',220,194,0 )
,('01',220,200,0 )
,('01',220,298,0 )
,('01',245,193,0 )
,('01',245,194,0 )
,('01',245,200,0 )
,('01',245,298,0 )
,('01',259,221,0 )
,('01',269,235,0 )
go
INSERT INTO dbo.ARUPR3_01 VALUES
('01',270,43,0 )
,('01',281,193,0 )
,('01',281,194,0 )
,('01',281,200,0 )
,('01',281,298,0 )
,('01',292,193,0 )
,('01',292,194,0 )
,('01',292,200,0 )
,('01',292,298,0 )
,('01',293,193,0 )
,('01',293,194,0 )
,('01',293,200,0 )
,('01',293,298,0 )
,('01',295,193,0 )
,('01',295,194,0 )
,('01',295,200,0 )
,('01',295,298,0 )
,('01',297,193,0 )
,('01',297,194,0 )
,('01',297,200,0 )
,('01',297,298,0 )
,('01',299,193,0 )
,('01',299,194,0 )
,('01',299,200,0 )
,('01',299,298,0 )
,('01',300,200,0 )
,('01',302,193,0 )
,('01',302,194,0 )
,('01',302,200,0 )
,('01',302,298,0 )
,('01',306,193,0 )
,('01',306,194,0 )
,('01',306,200,0 )
,('01',306,298,0 )
,('01',308,193,0 )
,('01',308,194,0 )
,('01',308,200,0 )
,('01',308,298,0 )
,('01',309,193,0 )
,('01',309,194,0 )
,('01',309,200,0 )
,('01',309,298,0 )
,('01',310,193,0 )
,('01',310,194,0 )
,('01',310,200,0 )
,('01',310,298,0 )
,('01',313,193,0 )
,('01',313,194,0 )
,('01',313,200,0 )
,('01',313,298,0 )
,('01',326,193,0 )
,('01',326,194,0 )
,('01',326,200,0 )
,('01',326,298,0 )
,('01',331,193,0 )
,('01',331,194,0 )
,('01',331,200,0 )
,('01',331,298,0 )
,('01',333,193,0 )
,('01',333,194,0 )
,('01',333,200,0 )
,('01',333,298,0 )
,('01',334,193,0 )
,('01',334,194,0 )
,('01',334,200,0 )
,('01',334,298,0 )
,('01',336,193,0 )
,('01',336,194,0 )
,('01',336,200,0 )
,('01',336,298,0 )
,('01',337,193,0 )
,('01',337,194,0 )
,('01',337,200,0 )
,('01',337,298,0 )
,('01',338,193,0 )
,('01',338,194,0 )
,('01',338,200,0 )
,('01',338,298,0 )
,('01',340,193,0 )
,('01',340,194,0 )
,('01',340,200,0 )
,('01',340,298,0 )
,('01',344,193,0 )
,('01',344,194,0 )
,('01',344,200,0 )
,('01',344,298,0 )
,('01',345,193,0 )
,('01',345,194,0 )
,('01',345,200,0 )
,('01',345,298,0 )
,('01',347,146,0 )
,('01',348,42,0 )
,('01',349,194,100 )
,('01',357,193,0 )
,('01',357,194,0 )
,('01',357,200,0 )
,('01',357,298,0 )
,('01',358,193,0 )
,('01',358,194,0 )
,('01',358,200,0 )
go
INSERT INTO dbo.ARUPR3_01 VALUES
('01',358,298,0 )
,('01',362,193,0 )
,('01',362,194,0 )
,('01',362,200,0 )
,('01',362,298,0 )
,('01',363,193,0 )
,('01',363,194,0 )
,('01',363,200,0 )
,('01',363,298,0 )
,('01',364,193,0 )
,('01',364,194,0 )
,('01',364,200,0 )
,('01',364,298,0 )
,('01',367,193,0 )
,('01',367,194,0 )
,('01',367,200,0 )
,('01',367,298,0 )
,('01',368,193,0 )
,('01',368,194,0 )
,('01',368,200,0 )
,('01',368,298,0 )
,('01',369,193,0 )
,('01',369,194,0 )
,('01',369,200,0 )
,('01',369,298,0 )
,('01',370,193,0 )
,('01',370,194,0 )
,('01',370,200,0 )
,('01',370,298,0 )
,('01',371,193,0 )
,('01',371,194,0 )
,('01',371,200,0 )
,('01',371,298,0 )
,('01',372,193,0 )
,('01',372,194,0 )
,('01',372,200,0 )
,('01',372,298,0 )
,('01',373,193,0 )
,('01',373,194,0 )
,('01',373,200,0 )
,('01',373,298,0 )
,('01',374,193,0 )
,('01',374,194,0 )
,('01',374,200,0 )
,('01',374,298,0 )
,('01',377,193,0 )
,('01',377,194,0 )
,('01',377,200,0 )
,('01',377,298,0 )
,('01',378,193,0 )
,('01',378,194,0 )
,('01',378,200,0 )
,('01',378,298,0 )
,('01',379,193,0 )
,('01',379,194,0 )
,('01',379,200,0 )
,('01',379,298,0 )
,('01',380,193,0 )
,('01',380,194,0 )
,('01',380,200,0 )
,('01',380,298,0 )
,('01',381,193,0 )
,('01',381,194,0 )
,('01',381,200,0 )
,('01',381,298,0 )
,('01',382,193,0 )
,('01',382,194,0 )
,('01',382,200,0 )
,('01',382,298,0 )
,('01',387,193,0 )
,('01',387,194,0 )
,('01',387,200,0 )
,('01',387,298,0 )
,('01',388,193,0 )
,('01',388,194,0 )
,('01',388,200,0 )
,('01',388,298,0 )
,('01',389,193,0 )
,('01',389,194,0 )
,('01',389,200,0 )
,('01',389,298,0 )
,('01',390,193,0 )
,('01',390,194,0 )
,('01',390,200,0 )
,('01',390,298,0 )
,('01',391,193,0 )
,('01',391,194,0 )
,('01',391,200,0 )
,('01',391,298,0 )
,('01',392,193,0 )
,('01',392,194,0 )
,('01',392,200,0 )
,('01',392,298,0 )
,('01',395,193,0 )
,('01',395,194,0 )
,('01',395,200,0 )
,('01',395,298,0 )
,('01',398,298,100 )
,('01',402,193,0 )
,('01',402,194,0 )
go
INSERT INTO dbo.ARUPR3_01 VALUES
('01',402,200,0 )
,('01',402,298,0 )
,('01',403,193,0 )
,('01',403,194,0 )
,('01',403,200,0 )
,('01',403,298,0 )
,('01',405,193,0 )
,('01',405,194,0 )
,('01',405,200,0 )
,('01',405,298,0 )
,('01',413,193,0 )
,('01',413,194,0 )
,('01',413,200,0 )
,('01',413,298,0 )
,('01',425,193,0 )
,('01',425,194,0 )
,('01',425,200,0 )
,('01',425,298,0 )
,('01',426,193,0 )
,('01',426,194,0 )
,('01',426,200,0 )
,('01',426,298,0 )
,('01',427,193,0 )
,('01',427,194,0 )
,('01',427,200,0 )
,('01',427,298,0 )
,('01',428,193,0 )
,('01',428,194,0 )
,('01',428,200,0 )
,('01',428,298,0 )
,('01',429,193,0 )
,('01',429,194,0 )
,('01',429,200,0 )
,('01',429,298,0 )
,('01',430,193,0 )
,('01',430,194,0 )
,('01',430,200,0 )
,('01',430,298,0 )
,('01',437,200,0 )
,('01',437,255,0 )
,('01',437,359,0 )
,('01',463,200,0 )
,('01',470,194,100 )
,('01',476,193,0 )
,('01',476,194,0 )
,('01',476,200,0 )
,('01',476,298,0 )
,('01',659,194,100 )
,('01',687,298,100 )
,('01',692,194,100 )
,('01',693,194,100 )
,('01',694,193,100 )
,('01',695,193,100 )
,('01',711,200,100 )
,('01',723,194,100 )
,('01',739,146,0 )
,('01',740,146,0 )
,('01',769,298,100 )
,('01',817,193,0 )
,('01',817,194,0 )
,('01',817,200,0 )
,('01',817,298,0 )
,('01',819,193,100 )
,('01',821,193,0 )
,('01',825,194,0 )
,('01',825,200,0 )
,('01',836,298,100 )
,('01',839,195,100 )
,('01',854,298,100 )
,('01',855,195,100 )
,('01',856,194,15 )
,('01',856,200,85 )
,('01',901,193,100 )
,('01',902,195,100 )
,('01',906,200,0 )
,('01',906,255,0 )
,('01',906,359,0 )
,('01',908,43,100 )
,('01',909,43,100 )
,('01',910,42,100 )
,('01',948,200,0 )
,('01',948,255,0 )
,('01',948,359,0 )
,('01',971,193,0 )
,('01',971,194,0 )
,('01',971,200,0 )
,('01',971,298,0 )
,('01',982,193,0 )
,('01',982,194,0 )
,('01',982,200,0 )
,('01',982,298,0 )
,('01',1001,193,0 )
,('01',1001,194,0 )
,('01',1001,200,0 )
,('01',1001,298,0 )
,('01',1088,42,100 )
,('01',1090,298,100 )
,('01',1222,194,100 )
,('01',1234,193,0 )
,('01',1234,194,0 )
go
INSERT INTO dbo.ARUPR3_01 VALUES
('01',1234,200,0 )
,('01',1234,298,0 )
,('01',1259,194,100 )
,('01',1261,194,0 )
,('01',1306,194,100 )
,('01',1374,200,100 )
,('01',1375,194,100 )
,('01',1388,298,100 )
,('01',1389,193,0 )
,('01',1390,298,0 )
,('01',1391,193,0 )
,('01',1400,200,0 )
,('01',1407,193,100 )
,('01',1408,298,100 )
,('01',1409,298,100 )
,('01',1410,200,0 )
,('01',1411,194,100 )
,('01',1412,193,100 )
,('01',1414,194,100 )
,('01',1428,194,100 )
,('01',1429,193,0 )
,('01',1429,194,0 )
,('01',1429,200,0 )
,('01',1429,298,0 )
,('01',1439,194,0 )
,('01',1440,194,0 )
,('01',1460,200,0 )
,('01',1461,298,0 )
,('01',1470,146,0 )
,('01',1474,146,0 )
,('01',1475,146,0 )
,('01',1476,298,100 )
,('01',1495,194,0 )
,('01',1508,200,100 )
,('01',1509,194,100 )
,('01',1516,205,0 )
,('01',1519,205,0 )
,('01',1520,205,0 )
,('01',1521,42,0 )
,('01',1521,43,0 )
,('01',1522,42,0 )
,('01',1522,43,0 )
,('01',1523,205,0 )
,('01',1524,205,0 )
,('01',1525,42,0 )
,('01',1525,43,0 )
,('01',1526,42,0 )
,('01',1526,43,0 )
,('01',1527,195,100 )
,('01',1554,144,0 )
,('01',1572,193,100 )
,('01',1606,200,0 )
,('01',1606,255,0 )
,('01',1606,359,0 )
,('01',1607,42,0 )
,('01',1607,43,0 )
,('01',1614,42,0 )
,('01',1614,43,0 )
,('01',1623,195,100 )
,('01',1624,195,100 )
,('01',1625,193,0 )
,('01',1625,194,0 )
,('01',1625,200,0 )
,('01',1625,298,0 )
,('01',1632,193,0 )
,('01',1632,194,0 )
,('01',1632,200,0 )
,('01',1632,298,0 )
,('01',1634,194,0 )
,('01',1635,144,0 )
,('01',1656,43,100 )
,('01',1657,43,100 )
,('01',1658,42,100 )
,('01',1688,42,0 )
,('01',1688,43,0 )
,('01',1703,193,0 )
,('01',1716,200,0 )
,('01',1749,200,100 )
,('01',1758,200,0 )
,('01',1758,255,0 )
,('01',1758,359,0 )
,('01',1791,194,100 )
,('01',1793,193,0 )
,('01',1826,208,100 )
,('01',1830,193,0 )
,('01',1830,194,0 )
,('01',1830,200,0 )
,('01',1830,298,0 )
,('01',1832,194,100 )
,('01',1877,194,100 )
,('01',1895,194,100 )
,('01',2061,200,0 )
,('01',2061,255,0 )
,('01',2061,359,0 )
,('01',2062,194,100 )
,('01',2091,200,0 )
,('01',2091,255,0 )
,('01',2091,359,0 )
,('01',2135,298,100 )
,('01',2148,194,100 )
go
INSERT INTO dbo.ARUPR3_01 VALUES
('01',2149,194,100 )
,('01',2152,195,100 )
,('01',2214,193,0 )
,('01',2214,194,0 )
,('01',2214,200,0 )
,('01',2214,298,0 )
,('01',2221,200,0 )
,('01',2221,255,0 )
,('01',2221,359,0 )
,('01',2260,193,100 )
,('01',2261,195,100 )
,('01',2330,193,100 )
,('01',2331,194,100 )
,('01',2332,298,100 )
,('01',2338,200,100 )
,('01',2344,43,100 )
,('01',2345,42,100 )
,('01',2358,43,100 )
,('01',2370,193,0 )
,('01',2425,208,100 )
,('01',2445,193,0 )
,('01',2445,194,0 )
,('01',2445,200,0 )
,('01',2445,298,0 )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ARUPR4', GetDate())
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1,'00' )
,('01',3,'00' )
,('01',52,'01' )
,('01',53,'01' )
,('01',54,'01' )
,('01',55,'01' )
,('01',56,'01' )
,('01',57,'01' )
,('01',58,'00' )
,('01',59,'01' )
,('01',60,'01' )
,('01',61,'01' )
,('01',62,'01' )
,('01',63,'01' )
,('01',64,'01' )
,('01',65,'01' )
,('01',66,'01' )
,('01',67,'00' )
,('01',68,'00' )
,('01',69,'00' )
,('01',70,'00' )
,('01',71,'01' )
,('01',73,'00' )
,('01',74,'00' )
,('01',75,'01' )
,('01',76,'00' )
,('01',77,'01' )
,('01',78,'01' )
,('01',79,'01' )
,('01',80,'01' )
,('01',81,'01' )
,('01',82,'01' )
,('01',83,'00' )
,('01',84,'01' )
,('01',85,'00' )
,('01',86,'01' )
,('01',88,'01' )
,('01',89,'00' )
,('01',90,'00' )
,('01',91,'00' )
,('01',92,'01' )
,('01',93,'01' )
,('01',94,'01' )
,('01',95,'01' )
,('01',96,'00' )
,('01',97,'00' )
,('01',98,'00' )
,('01',99,'00' )
,('01',100,'00' )
,('01',101,'00' )
,('01',102,'01' )
,('01',103,'01' )
,('01',104,'01' )
,('01',105,'01' )
,('01',106,'00' )
,('01',107,'00' )
,('01',108,'01' )
,('01',109,'00' )
,('01',110,'00' )
,('01',111,'00' )
,('01',112,'00' )
,('01',113,'00' )
,('01',114,'00' )
,('01',115,'00' )
,('01',116,'00' )
,('01',117,'01' )
,('01',118,'00' )
,('01',119,'00' )
,('01',120,'00' )
,('01',121,'01' )
,('01',122,'00' )
,('01',123,'00' )
,('01',124,'00' )
,('01',125,'01' )
,('01',126,'00' )
,('01',127,'01' )
,('01',128,'01' )
,('01',129,'00' )
,('01',130,'00' )
,('01',131,'01' )
,('01',140,'07' )
,('01',141,'07' )
,('01',142,'01' )
,('01',142,'07' )
,('01',143,'01' )
,('01',143,'07' )
,('01',144,'01' )
,('01',144,'07' )
,('01',145,'07' )
,('01',146,'01' )
,('01',147,'01' )
,('01',147,'07' )
,('01',148,'01' )
,('01',148,'07' )
,('01',149,'00' )
,('01',150,'01' )
,('01',150,'07' )
,('01',151,'01' )
,('01',152,'01' )
,('01',153,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',154,'01' )
,('01',155,'01' )
,('01',156,'01' )
,('01',157,'01' )
,('01',158,'01' )
,('01',159,'01' )
,('01',160,'07' )
,('01',171,'00' )
,('01',172,'00' )
,('01',173,'00' )
,('01',174,'01' )
,('01',174,'07' )
,('01',176,'01' )
,('01',176,'07' )
,('01',178,'07' )
,('01',179,'01' )
,('01',180,'01' )
,('01',182,'01' )
,('01',183,'01' )
,('01',184,'01' )
,('01',185,'01' )
,('01',186,'01' )
,('01',189,'01' )
,('01',189,'07' )
,('01',190,'00' )
,('01',191,'01' )
,('01',194,'01' )
,('01',195,'01' )
,('01',196,'01' )
,('01',197,'01' )
,('01',200,'07' )
,('01',201,'01' )
,('01',202,'01' )
,('01',202,'07' )
,('01',203,'01' )
,('01',203,'07' )
,('01',204,'01' )
,('01',205,'01' )
,('01',206,'01' )
,('01',207,'01' )
,('01',208,'01' )
,('01',209,'01' )
,('01',210,'01' )
,('01',212,'07' )
,('01',213,'07' )
,('01',214,'01' )
,('01',215,'01' )
,('01',217,'02' )
,('01',217,'07' )
,('01',219,'01' )
,('01',219,'02' )
,('01',219,'07' )
,('01',220,'02' )
,('01',221,'01' )
,('01',221,'02' )
,('01',222,'01' )
,('01',222,'02' )
,('01',222,'07' )
,('01',223,'01' )
,('01',223,'02' )
,('01',223,'07' )
,('01',224,'01' )
,('01',224,'02' )
,('01',225,'01' )
,('01',225,'02' )
,('01',226,'01' )
,('01',226,'02' )
,('01',226,'07' )
,('01',227,'01' )
,('01',227,'02' )
,('01',227,'07' )
,('01',228,'01' )
,('01',228,'02' )
,('01',228,'07' )
,('01',229,'01' )
,('01',230,'01' )
,('01',231,'07' )
,('01',232,'01' )
,('01',232,'02' )
,('01',232,'07' )
,('01',233,'01' )
,('01',234,'01' )
,('01',235,'01' )
,('01',235,'02' )
,('01',235,'07' )
,('01',236,'01' )
,('01',238,'01' )
,('01',238,'02' )
,('01',238,'07' )
,('01',239,'01' )
,('01',239,'02' )
,('01',239,'07' )
,('01',241,'01' )
,('01',241,'02' )
,('01',242,'01' )
,('01',242,'02' )
,('01',243,'02' )
,('01',243,'07' )
,('01',244,'01' )
,('01',244,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',244,'07' )
,('01',245,'01' )
,('01',245,'02' )
,('01',246,'02' )
,('01',246,'07' )
,('01',247,'01' )
,('01',247,'02' )
,('01',248,'01' )
,('01',248,'02' )
,('01',248,'07' )
,('01',249,'01' )
,('01',249,'02' )
,('01',250,'01' )
,('01',251,'01' )
,('01',251,'02' )
,('01',252,'01' )
,('01',252,'02' )
,('01',252,'07' )
,('01',253,'01' )
,('01',253,'02' )
,('01',253,'07' )
,('01',254,'04' )
,('01',255,'04' )
,('01',256,'07' )
,('01',257,'01' )
,('01',257,'02' )
,('01',257,'07' )
,('01',258,'01' )
,('01',258,'02' )
,('01',258,'07' )
,('01',260,'01' )
,('01',260,'02' )
,('01',260,'07' )
,('01',261,'01' )
,('01',261,'02' )
,('01',262,'01' )
,('01',262,'02' )
,('01',262,'07' )
,('01',264,'01' )
,('01',266,'01' )
,('01',266,'02' )
,('01',273,'01' )
,('01',273,'02' )
,('01',273,'07' )
,('01',274,'01' )
,('01',274,'02' )
,('01',275,'01' )
,('01',275,'02' )
,('01',276,'01' )
,('01',276,'02' )
,('01',276,'07' )
,('01',277,'01' )
,('01',277,'02' )
,('01',277,'07' )
,('01',278,'01' )
,('01',278,'02' )
,('01',278,'07' )
,('01',279,'02' )
,('01',279,'07' )
,('01',280,'01' )
,('01',281,'01' )
,('01',282,'01' )
,('01',282,'02' )
,('01',282,'07' )
,('01',284,'01' )
,('01',284,'07' )
,('01',285,'04' )
,('01',286,'01' )
,('01',286,'02' )
,('01',287,'01' )
,('01',287,'02' )
,('01',287,'07' )
,('01',288,'01' )
,('01',288,'02' )
,('01',288,'07' )
,('01',289,'01' )
,('01',290,'01' )
,('01',292,'01' )
,('01',293,'01' )
,('01',294,'01' )
,('01',294,'02' )
,('01',294,'07' )
,('01',295,'01' )
,('01',296,'01' )
,('01',296,'02' )
,('01',296,'07' )
,('01',297,'01' )
,('01',297,'02' )
,('01',298,'01' )
,('01',298,'02' )
,('01',298,'07' )
,('01',299,'01' )
,('01',299,'02' )
,('01',301,'01' )
,('01',301,'02' )
,('01',301,'07' )
,('01',302,'01' )
,('01',303,'01' )
,('01',303,'02' )
,('01',303,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',304,'01' )
,('01',304,'02' )
,('01',304,'07' )
,('01',305,'01' )
,('01',305,'02' )
,('01',306,'01' )
,('01',307,'01' )
,('01',307,'02' )
,('01',307,'07' )
,('01',308,'01' )
,('01',308,'07' )
,('01',309,'01' )
,('01',310,'01' )
,('01',310,'07' )
,('01',311,'01' )
,('01',311,'02' )
,('01',312,'01' )
,('01',312,'07' )
,('01',313,'02' )
,('01',313,'07' )
,('01',314,'01' )
,('01',314,'02' )
,('01',315,'01' )
,('01',315,'02' )
,('01',315,'07' )
,('01',316,'01' )
,('01',316,'02' )
,('01',317,'01' )
,('01',317,'02' )
,('01',317,'07' )
,('01',320,'01' )
,('01',320,'02' )
,('01',320,'07' )
,('01',321,'01' )
,('01',321,'02' )
,('01',321,'07' )
,('01',322,'01' )
,('01',322,'02' )
,('01',322,'07' )
,('01',323,'01' )
,('01',323,'02' )
,('01',323,'07' )
,('01',324,'01' )
,('01',324,'02' )
,('01',324,'07' )
,('01',325,'01' )
,('01',325,'02' )
,('01',325,'07' )
,('01',326,'01' )
,('01',326,'02' )
,('01',326,'07' )
,('01',327,'01' )
,('01',328,'02' )
,('01',328,'07' )
,('01',329,'01' )
,('01',329,'02' )
,('01',329,'07' )
,('01',330,'01' )
,('01',330,'02' )
,('01',330,'07' )
,('01',331,'01' )
,('01',331,'02' )
,('01',333,'01' )
,('01',333,'07' )
,('01',334,'01' )
,('01',334,'02' )
,('01',335,'01' )
,('01',335,'02' )
,('01',335,'07' )
,('01',336,'01' )
,('01',336,'02' )
,('01',337,'01' )
,('01',337,'07' )
,('01',338,'01' )
,('01',338,'02' )
,('01',338,'07' )
,('01',339,'01' )
,('01',339,'02' )
,('01',339,'07' )
,('01',340,'01' )
,('01',342,'01' )
,('01',342,'02' )
,('01',342,'07' )
,('01',343,'00' )
,('01',344,'01' )
,('01',345,'01' )
,('01',345,'07' )
,('01',346,'01' )
,('01',346,'02' )
,('01',349,'00' )
,('01',350,'00' )
,('01',351,'01' )
,('01',351,'02' )
,('01',351,'07' )
,('01',352,'01' )
,('01',352,'02' )
,('01',353,'01' )
,('01',353,'02' )
,('01',353,'07' )
,('01',354,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',355,'00' )
,('01',356,'01' )
,('01',356,'02' )
,('01',356,'07' )
,('01',357,'01' )
,('01',357,'07' )
,('01',358,'01' )
,('01',358,'07' )
,('01',359,'01' )
,('01',360,'01' )
,('01',360,'02' )
,('01',360,'07' )
,('01',361,'01' )
,('01',361,'02' )
,('01',361,'07' )
,('01',362,'01' )
,('01',362,'07' )
,('01',363,'01' )
,('01',363,'02' )
,('01',364,'01' )
,('01',364,'02' )
,('01',364,'07' )
,('01',365,'01' )
,('01',365,'02' )
,('01',365,'07' )
,('01',367,'01' )
,('01',367,'02' )
,('01',368,'01' )
,('01',368,'02' )
,('01',369,'01' )
,('01',369,'02' )
,('01',370,'01' )
,('01',370,'02' )
,('01',371,'01' )
,('01',371,'02' )
,('01',371,'07' )
,('01',372,'01' )
,('01',372,'02' )
,('01',373,'01' )
,('01',373,'02' )
,('01',374,'01' )
,('01',374,'02' )
,('01',375,'02' )
,('01',375,'07' )
,('01',376,'01' )
,('01',376,'02' )
,('01',376,'07' )
,('01',377,'01' )
,('01',378,'01' )
,('01',378,'02' )
,('01',378,'07' )
,('01',379,'01' )
,('01',379,'02' )
,('01',380,'01' )
,('01',380,'02' )
,('01',381,'01' )
,('01',381,'07' )
,('01',382,'01' )
,('01',382,'07' )
,('01',383,'01' )
,('01',383,'02' )
,('01',383,'07' )
,('01',386,'01' )
,('01',386,'02' )
,('01',386,'07' )
,('01',387,'01' )
,('01',387,'07' )
,('01',388,'01' )
,('01',388,'02' )
,('01',389,'01' )
,('01',389,'02' )
,('01',390,'01' )
,('01',390,'02' )
,('01',390,'07' )
,('01',391,'01' )
,('01',391,'02' )
,('01',392,'01' )
,('01',392,'02' )
,('01',393,'01' )
,('01',393,'02' )
,('01',393,'07' )
,('01',394,'01' )
,('01',394,'02' )
,('01',394,'07' )
,('01',395,'01' )
,('01',395,'02' )
,('01',396,'00' )
,('01',397,'01' )
,('01',398,'00' )
,('01',402,'01' )
,('01',402,'02' )
,('01',403,'01' )
,('01',403,'02' )
,('01',404,'00' )
,('01',405,'01' )
,('01',405,'02' )
,('01',405,'07' )
,('01',406,'01' )
,('01',406,'02' )
,('01',406,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',407,'01' )
,('01',407,'02' )
,('01',407,'07' )
,('01',408,'01' )
,('01',408,'02' )
,('01',408,'07' )
,('01',410,'01' )
,('01',410,'02' )
,('01',411,'01' )
,('01',411,'02' )
,('01',413,'01' )
,('01',413,'02' )
,('01',413,'07' )
,('01',414,'01' )
,('01',414,'02' )
,('01',414,'07' )
,('01',415,'01' )
,('01',415,'02' )
,('01',415,'07' )
,('01',418,'01' )
,('01',418,'02' )
,('01',418,'07' )
,('01',419,'01' )
,('01',419,'02' )
,('01',419,'07' )
,('01',421,'01' )
,('01',421,'02' )
,('01',421,'07' )
,('01',422,'01' )
,('01',422,'02' )
,('01',422,'07' )
,('01',423,'01' )
,('01',423,'02' )
,('01',423,'07' )
,('01',424,'01' )
,('01',424,'02' )
,('01',425,'01' )
,('01',425,'07' )
,('01',426,'01' )
,('01',426,'07' )
,('01',427,'01' )
,('01',427,'07' )
,('01',428,'02' )
,('01',429,'01' )
,('01',429,'02' )
,('01',429,'07' )
,('01',430,'01' )
,('01',430,'02' )
,('01',431,'01' )
,('01',431,'02' )
,('01',431,'07' )
,('01',432,'01' )
,('01',432,'02' )
,('01',432,'07' )
,('01',433,'01' )
,('01',433,'02' )
,('01',434,'01' )
,('01',437,'04' )
,('01',438,'01' )
,('01',439,'01' )
,('01',439,'02' )
,('01',439,'07' )
,('01',440,'01' )
,('01',440,'02' )
,('01',440,'07' )
,('01',441,'01' )
,('01',441,'02' )
,('01',441,'07' )
,('01',442,'01' )
,('01',442,'02' )
,('01',442,'07' )
,('01',443,'01' )
,('01',443,'02' )
,('01',443,'07' )
,('01',444,'01' )
,('01',444,'02' )
,('01',444,'07' )
,('01',446,'02' )
,('01',447,'01' )
,('01',447,'07' )
,('01',448,'01' )
,('01',448,'07' )
,('01',449,'01' )
,('01',449,'02' )
,('01',449,'07' )
,('01',450,'01' )
,('01',450,'02' )
,('01',450,'07' )
,('01',451,'01' )
,('01',451,'02' )
,('01',451,'07' )
,('01',452,'01' )
,('01',452,'02' )
,('01',452,'07' )
,('01',453,'01' )
,('01',453,'02' )
,('01',453,'07' )
,('01',454,'01' )
,('01',454,'02' )
,('01',454,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',455,'01' )
,('01',455,'02' )
,('01',455,'07' )
,('01',456,'01' )
,('01',457,'01' )
,('01',457,'02' )
,('01',458,'01' )
,('01',458,'02' )
,('01',458,'07' )
,('01',459,'01' )
,('01',459,'02' )
,('01',459,'07' )
,('01',460,'01' )
,('01',460,'02' )
,('01',461,'01' )
,('01',461,'02' )
,('01',461,'07' )
,('01',462,'01' )
,('01',462,'02' )
,('01',463,'01' )
,('01',463,'02' )
,('01',464,'01' )
,('01',464,'02' )
,('01',464,'07' )
,('01',465,'01' )
,('01',466,'01' )
,('01',466,'02' )
,('01',467,'01' )
,('01',467,'02' )
,('01',467,'07' )
,('01',468,'01' )
,('01',468,'02' )
,('01',469,'01' )
,('01',469,'02' )
,('01',469,'07' )
,('01',470,'00' )
,('01',471,'07' )
,('01',472,'01' )
,('01',472,'02' )
,('01',472,'07' )
,('01',473,'01' )
,('01',473,'02' )
,('01',473,'07' )
,('01',474,'01' )
,('01',474,'02' )
,('01',474,'07' )
,('01',475,'00' )
,('01',476,'00' )
,('01',477,'01' )
,('01',477,'02' )
,('01',478,'01' )
,('01',478,'02' )
,('01',478,'07' )
,('01',479,'01' )
,('01',479,'02' )
,('01',480,'01' )
,('01',480,'02' )
,('01',481,'02' )
,('01',482,'01' )
,('01',482,'02' )
,('01',482,'07' )
,('01',483,'01' )
,('01',483,'07' )
,('01',484,'01' )
,('01',484,'02' )
,('01',484,'07' )
,('01',485,'01' )
,('01',485,'02' )
,('01',485,'07' )
,('01',486,'01' )
,('01',486,'02' )
,('01',487,'01' )
,('01',487,'02' )
,('01',487,'07' )
,('01',488,'01' )
,('01',488,'02' )
,('01',488,'07' )
,('01',489,'01' )
,('01',489,'02' )
,('01',489,'07' )
,('01',493,'00' )
,('01',494,'00' )
,('01',495,'00' )
,('01',498,'00' )
,('01',499,'00' )
,('01',500,'00' )
,('01',501,'00' )
,('01',502,'00' )
,('01',503,'00' )
,('01',504,'00' )
,('01',505,'00' )
,('01',506,'00' )
,('01',508,'00' )
,('01',509,'00' )
,('01',510,'00' )
,('01',511,'00' )
,('01',512,'00' )
,('01',513,'00' )
,('01',514,'00' )
,('01',515,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',517,'01' )
,('01',517,'02' )
,('01',518,'00' )
,('01',519,'00' )
,('01',521,'00' )
,('01',523,'00' )
,('01',524,'00' )
,('01',525,'01' )
,('01',525,'02' )
,('01',525,'07' )
,('01',526,'01' )
,('01',526,'02' )
,('01',526,'07' )
,('01',527,'01' )
,('01',527,'02' )
,('01',528,'00' )
,('01',529,'00' )
,('01',531,'00' )
,('01',533,'00' )
,('01',534,'00' )
,('01',535,'00' )
,('01',536,'00' )
,('01',537,'00' )
,('01',538,'00' )
,('01',539,'00' )
,('01',540,'00' )
,('01',541,'00' )
,('01',542,'00' )
,('01',544,'00' )
,('01',545,'00' )
,('01',546,'00' )
,('01',547,'00' )
,('01',548,'00' )
,('01',549,'01' )
,('01',549,'02' )
,('01',549,'07' )
,('01',550,'01' )
,('01',550,'07' )
,('01',551,'01' )
,('01',551,'07' )
,('01',552,'01' )
,('01',552,'07' )
,('01',553,'00' )
,('01',554,'00' )
,('01',555,'00' )
,('01',556,'00' )
,('01',557,'00' )
,('01',558,'00' )
,('01',559,'00' )
,('01',560,'00' )
,('01',561,'00' )
,('01',562,'00' )
,('01',563,'00' )
,('01',564,'00' )
,('01',565,'00' )
,('01',566,'00' )
,('01',571,'01' )
,('01',571,'02' )
,('01',572,'00' )
,('01',573,'00' )
,('01',574,'00' )
,('01',575,'02' )
,('01',576,'02' )
,('01',577,'02' )
,('01',578,'02' )
,('01',579,'02' )
,('01',581,'00' )
,('01',582,'00' )
,('01',583,'02' )
,('01',584,'02' )
,('01',585,'02' )
,('01',586,'02' )
,('01',587,'00' )
,('01',588,'02' )
,('01',589,'00' )
,('01',590,'00' )
,('01',591,'00' )
,('01',592,'00' )
,('01',593,'00' )
,('01',594,'02' )
,('01',595,'02' )
,('01',596,'02' )
,('01',597,'02' )
,('01',598,'01' )
,('01',598,'02' )
,('01',598,'07' )
,('01',599,'01' )
,('01',599,'07' )
,('01',600,'01' )
,('01',600,'02' )
,('01',600,'07' )
,('01',601,'01' )
,('01',601,'02' )
,('01',601,'07' )
,('01',602,'01' )
,('01',602,'02' )
,('01',603,'01' )
,('01',603,'02' )
,('01',604,'00' )
,('01',605,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',606,'00' )
,('01',608,'00' )
,('01',609,'00' )
,('01',610,'00' )
,('01',611,'00' )
,('01',612,'00' )
,('01',613,'00' )
,('01',614,'00' )
,('01',615,'00' )
,('01',616,'00' )
,('01',617,'00' )
,('01',618,'00' )
,('01',619,'00' )
,('01',620,'00' )
,('01',621,'00' )
,('01',624,'00' )
,('01',625,'00' )
,('01',626,'00' )
,('01',627,'00' )
,('01',628,'00' )
,('01',629,'00' )
,('01',630,'00' )
,('01',631,'00' )
,('01',632,'00' )
,('01',633,'00' )
,('01',634,'00' )
,('01',635,'00' )
,('01',636,'00' )
,('01',637,'00' )
,('01',639,'00' )
,('01',640,'00' )
,('01',642,'00' )
,('01',644,'00' )
,('01',645,'00' )
,('01',646,'00' )
,('01',647,'01' )
,('01',647,'02' )
,('01',647,'07' )
,('01',648,'00' )
,('01',649,'00' )
,('01',650,'00' )
,('01',651,'00' )
,('01',652,'00' )
,('01',653,'00' )
,('01',654,'00' )
,('01',655,'00' )
,('01',656,'00' )
,('01',657,'00' )
,('01',658,'00' )
,('01',659,'00' )
,('01',660,'00' )
,('01',662,'00' )
,('01',663,'00' )
,('01',664,'01' )
,('01',664,'02' )
,('01',665,'01' )
,('01',665,'07' )
,('01',666,'00' )
,('01',667,'00' )
,('01',668,'00' )
,('01',669,'00' )
,('01',670,'00' )
,('01',671,'00' )
,('01',672,'00' )
,('01',673,'00' )
,('01',674,'00' )
,('01',675,'01' )
,('01',675,'02' )
,('01',676,'01' )
,('01',676,'02' )
,('01',677,'01' )
,('01',677,'02' )
,('01',678,'01' )
,('01',678,'02' )
,('01',678,'07' )
,('01',679,'00' )
,('01',680,'00' )
,('01',681,'00' )
,('01',682,'00' )
,('01',683,'00' )
,('01',684,'00' )
,('01',685,'00' )
,('01',687,'00' )
,('01',688,'07' )
,('01',689,'01' )
,('01',689,'07' )
,('01',690,'07' )
,('01',691,'00' )
,('01',692,'00' )
,('01',693,'00' )
,('01',694,'00' )
,('01',695,'00' )
,('01',696,'00' )
,('01',698,'01' )
,('01',699,'00' )
,('01',700,'00' )
,('01',701,'00' )
,('01',702,'00' )
,('01',703,'00' )
,('01',704,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',705,'01' )
,('01',706,'01' )
,('01',707,'00' )
,('01',708,'01' )
,('01',708,'02' )
,('01',709,'01' )
,('01',709,'02' )
,('01',709,'07' )
,('01',710,'01' )
,('01',710,'02' )
,('01',710,'07' )
,('01',711,'01' )
,('01',712,'00' )
,('01',713,'00' )
,('01',714,'00' )
,('01',715,'00' )
,('01',716,'00' )
,('01',717,'00' )
,('01',718,'00' )
,('01',719,'00' )
,('01',720,'00' )
,('01',722,'00' )
,('01',723,'00' )
,('01',724,'01' )
,('01',724,'02' )
,('01',724,'07' )
,('01',725,'01' )
,('01',725,'02' )
,('01',725,'07' )
,('01',726,'01' )
,('01',726,'02' )
,('01',726,'07' )
,('01',727,'00' )
,('01',728,'00' )
,('01',729,'00' )
,('01',730,'00' )
,('01',731,'00' )
,('01',732,'00' )
,('01',733,'00' )
,('01',734,'00' )
,('01',735,'00' )
,('01',736,'01' )
,('01',736,'07' )
,('01',737,'01' )
,('01',737,'02' )
,('01',738,'01' )
,('01',739,'00' )
,('01',740,'01' )
,('01',741,'01' )
,('01',741,'02' )
,('01',741,'07' )
,('01',742,'01' )
,('01',742,'02' )
,('01',742,'07' )
,('01',743,'01' )
,('01',743,'07' )
,('01',744,'00' )
,('01',745,'00' )
,('01',746,'00' )
,('01',747,'00' )
,('01',748,'00' )
,('01',749,'00' )
,('01',750,'00' )
,('01',751,'01' )
,('01',751,'02' )
,('01',751,'07' )
,('01',752,'00' )
,('01',753,'00' )
,('01',754,'00' )
,('01',755,'00' )
,('01',756,'00' )
,('01',757,'00' )
,('01',758,'00' )
,('01',759,'00' )
,('01',760,'00' )
,('01',761,'00' )
,('01',762,'00' )
,('01',763,'00' )
,('01',764,'01' )
,('01',765,'00' )
,('01',766,'00' )
,('01',767,'01' )
,('01',767,'07' )
,('01',768,'01' )
,('01',768,'07' )
,('01',769,'00' )
,('01',770,'01' )
,('01',771,'00' )
,('01',772,'01' )
,('01',772,'02' )
,('01',773,'00' )
,('01',774,'00' )
,('01',775,'01' )
,('01',775,'02' )
,('01',775,'07' )
,('01',776,'01' )
,('01',777,'01' )
,('01',778,'01' )
,('01',779,'01' )
,('01',779,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',779,'07' )
,('01',780,'01' )
,('01',780,'02' )
,('01',780,'07' )
,('01',781,'01' )
,('01',781,'02' )
,('01',781,'07' )
,('01',782,'01' )
,('01',782,'02' )
,('01',782,'07' )
,('01',783,'01' )
,('01',783,'02' )
,('01',783,'07' )
,('01',784,'07' )
,('01',785,'01' )
,('01',785,'02' )
,('01',785,'07' )
,('01',786,'01' )
,('01',786,'02' )
,('01',787,'01' )
,('01',787,'07' )
,('01',788,'01' )
,('01',788,'02' )
,('01',788,'07' )
,('01',790,'00' )
,('01',791,'00' )
,('01',792,'00' )
,('01',793,'01' )
,('01',793,'02' )
,('01',793,'07' )
,('01',794,'01' )
,('01',794,'02' )
,('01',794,'07' )
,('01',795,'01' )
,('01',795,'02' )
,('01',796,'01' )
,('01',796,'02' )
,('01',797,'01' )
,('01',797,'02' )
,('01',797,'07' )
,('01',798,'01' )
,('01',798,'02' )
,('01',798,'07' )
,('01',799,'01' )
,('01',799,'07' )
,('01',800,'01' )
,('01',800,'07' )
,('01',801,'01' )
,('01',801,'07' )
,('01',802,'02' )
,('01',802,'07' )
,('01',803,'01' )
,('01',803,'02' )
,('01',803,'07' )
,('01',804,'01' )
,('01',804,'02' )
,('01',804,'07' )
,('01',805,'01' )
,('01',805,'02' )
,('01',805,'07' )
,('01',806,'00' )
,('01',807,'01' )
,('01',807,'02' )
,('01',807,'07' )
,('01',808,'01' )
,('01',808,'07' )
,('01',809,'01' )
,('01',809,'02' )
,('01',810,'01' )
,('01',810,'02' )
,('01',810,'07' )
,('01',811,'01' )
,('01',811,'02' )
,('01',813,'00' )
,('01',814,'01' )
,('01',815,'00' )
,('01',816,'00' )
,('01',817,'00' )
,('01',818,'00' )
,('01',819,'00' )
,('01',820,'00' )
,('01',821,'00' )
,('01',822,'00' )
,('01',823,'01' )
,('01',824,'01' )
,('01',825,'00' )
,('01',826,'00' )
,('01',827,'00' )
,('01',828,'00' )
,('01',829,'00' )
,('01',830,'00' )
,('01',831,'00' )
,('01',832,'01' )
,('01',833,'01' )
,('01',834,'00' )
,('01',835,'00' )
,('01',836,'00' )
,('01',837,'01' )
,('01',837,'02' )
,('01',837,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',838,'01' )
,('01',838,'07' )
,('01',838,'08' )
,('01',839,'00' )
,('01',840,'01' )
,('01',841,'08' )
,('01',842,'07' )
,('01',842,'08' )
,('01',843,'00' )
,('01',844,'02' )
,('01',844,'07' )
,('01',845,'01' )
,('01',845,'02' )
,('01',845,'07' )
,('01',846,'01' )
,('01',846,'02' )
,('01',846,'07' )
,('01',846,'08' )
,('01',847,'01' )
,('01',847,'02' )
,('01',847,'07' )
,('01',847,'08' )
,('01',848,'01' )
,('01',848,'02' )
,('01',848,'07' )
,('01',848,'08' )
,('01',849,'01' )
,('01',849,'02' )
,('01',849,'07' )
,('01',850,'01' )
,('01',850,'02' )
,('01',850,'07' )
,('01',851,'01' )
,('01',851,'02' )
,('01',851,'07' )
,('01',852,'01' )
,('01',852,'02' )
,('01',852,'07' )
,('01',853,'00' )
,('01',854,'00' )
,('01',855,'00' )
,('01',856,'07' )
,('01',857,'01' )
,('01',857,'02' )
,('01',857,'07' )
,('01',858,'00' )
,('01',859,'01' )
,('01',859,'02' )
,('01',859,'07' )
,('01',860,'01' )
,('01',860,'07' )
,('01',861,'01' )
,('01',861,'02' )
,('01',861,'07' )
,('01',862,'02' )
,('01',862,'07' )
,('01',862,'08' )
,('01',863,'01' )
,('01',863,'02' )
,('01',863,'07' )
,('01',863,'08' )
,('01',864,'01' )
,('01',864,'02' )
,('01',864,'07' )
,('01',864,'08' )
,('01',865,'01' )
,('01',865,'02' )
,('01',865,'07' )
,('01',866,'00' )
,('01',867,'01' )
,('01',867,'02' )
,('01',867,'07' )
,('01',868,'01' )
,('01',868,'02' )
,('01',868,'07' )
,('01',869,'01' )
,('01',869,'02' )
,('01',869,'07' )
,('01',870,'02' )
,('01',870,'07' )
,('01',871,'01' )
,('01',871,'02' )
,('01',871,'07' )
,('01',872,'00' )
,('01',873,'00' )
,('01',875,'00' )
,('01',876,'00' )
,('01',877,'01' )
,('01',877,'02' )
,('01',877,'07' )
,('01',878,'01' )
,('01',878,'07' )
,('01',879,'01' )
,('01',879,'07' )
,('01',880,'01' )
,('01',880,'07' )
,('01',880,'08' )
,('01',881,'01' )
,('01',881,'02' )
,('01',881,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',882,'01' )
,('01',882,'02' )
,('01',882,'07' )
,('01',883,'01' )
,('01',883,'02' )
,('01',883,'07' )
,('01',884,'01' )
,('01',884,'02' )
,('01',884,'07' )
,('01',885,'01' )
,('01',885,'07' )
,('01',886,'01' )
,('01',886,'07' )
,('01',886,'08' )
,('01',887,'01' )
,('01',888,'01' )
,('01',889,'01' )
,('01',889,'02' )
,('01',889,'07' )
,('01',890,'01' )
,('01',890,'02' )
,('01',890,'07' )
,('01',891,'02' )
,('01',891,'07' )
,('01',892,'01' )
,('01',892,'02' )
,('01',892,'07' )
,('01',892,'08' )
,('01',893,'01' )
,('01',893,'02' )
,('01',893,'07' )
,('01',893,'08' )
,('01',898,'01' )
,('01',898,'02' )
,('01',898,'07' )
,('01',898,'08' )
,('01',899,'01' )
,('01',899,'02' )
,('01',899,'07' )
,('01',899,'08' )
,('01',900,'00' )
,('01',901,'00' )
,('01',902,'00' )
,('01',903,'00' )
,('01',904,'01' )
,('01',904,'02' )
,('01',904,'07' )
,('01',905,'00' )
,('01',906,'00' )
,('01',907,'01' )
,('01',908,'01' )
,('01',909,'00' )
,('01',910,'00' )
,('01',911,'00' )
,('01',912,'00' )
,('01',913,'01' )
,('01',914,'01' )
,('01',914,'02' )
,('01',914,'07' )
,('01',915,'01' )
,('01',915,'02' )
,('01',915,'07' )
,('01',915,'08' )
,('01',916,'01' )
,('01',916,'07' )
,('01',917,'01' )
,('01',917,'02' )
,('01',917,'07' )
,('01',918,'01' )
,('01',918,'02' )
,('01',918,'07' )
,('01',918,'08' )
,('01',919,'01' )
,('01',919,'02' )
,('01',919,'07' )
,('01',919,'08' )
,('01',920,'02' )
,('01',921,'01' )
,('01',921,'02' )
,('01',922,'01' )
,('01',922,'02' )
,('01',922,'07' )
,('01',922,'08' )
,('01',923,'01' )
,('01',923,'02' )
,('01',923,'07' )
,('01',924,'01' )
,('01',924,'02' )
,('01',924,'07' )
,('01',925,'01' )
,('01',925,'02' )
,('01',925,'07' )
,('01',926,'01' )
,('01',926,'02' )
,('01',926,'07' )
,('01',927,'01' )
,('01',927,'02' )
,('01',927,'07' )
,('01',928,'01' )
,('01',928,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',928,'07' )
,('01',929,'01' )
,('01',929,'02' )
,('01',929,'07' )
,('01',930,'00' )
,('01',931,'01' )
,('01',931,'07' )
,('01',933,'01' )
,('01',933,'07' )
,('01',934,'01' )
,('01',934,'02' )
,('01',934,'07' )
,('01',935,'01' )
,('01',935,'02' )
,('01',935,'07' )
,('01',936,'01' )
,('01',936,'07' )
,('01',937,'01' )
,('01',937,'02' )
,('01',937,'07' )
,('01',938,'01' )
,('01',938,'02' )
,('01',938,'07' )
,('01',939,'01' )
,('01',939,'07' )
,('01',940,'01' )
,('01',940,'02' )
,('01',940,'07' )
,('01',940,'08' )
,('01',941,'01' )
,('01',941,'02' )
,('01',941,'07' )
,('01',942,'01' )
,('01',942,'07' )
,('01',943,'01' )
,('01',943,'02' )
,('01',943,'07' )
,('01',944,'01' )
,('01',944,'02' )
,('01',944,'07' )
,('01',945,'01' )
,('01',945,'02' )
,('01',945,'07' )
,('01',946,'01' )
,('01',946,'02' )
,('01',946,'07' )
,('01',947,'01' )
,('01',947,'02' )
,('01',947,'07' )
,('01',948,'02' )
,('01',949,'01' )
,('01',949,'02' )
,('01',950,'01' )
,('01',950,'02' )
,('01',950,'07' )
,('01',951,'01' )
,('01',951,'02' )
,('01',951,'07' )
,('01',952,'01' )
,('01',952,'02' )
,('01',952,'07' )
,('01',953,'01' )
,('01',953,'02' )
,('01',953,'07' )
,('01',955,'01' )
,('01',955,'02' )
,('01',955,'07' )
,('01',955,'08' )
,('01',956,'01' )
,('01',956,'07' )
,('01',957,'01' )
,('01',957,'07' )
,('01',957,'08' )
,('01',958,'01' )
,('01',958,'02' )
,('01',958,'07' )
,('01',958,'08' )
,('01',959,'01' )
,('01',959,'02' )
,('01',959,'07' )
,('01',960,'01' )
,('01',960,'02' )
,('01',960,'07' )
,('01',961,'01' )
,('01',961,'02' )
,('01',961,'07' )
,('01',962,'01' )
,('01',962,'07' )
,('01',963,'01' )
,('01',963,'02' )
,('01',963,'07' )
,('01',964,'01' )
,('01',964,'02' )
,('01',964,'07' )
,('01',965,'01' )
,('01',965,'02' )
,('01',965,'07' )
,('01',966,'01' )
,('01',966,'02' )
,('01',966,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',967,'01' )
,('01',967,'02' )
,('01',967,'07' )
,('01',968,'01' )
,('01',968,'02' )
,('01',968,'07' )
,('01',969,'01' )
,('01',969,'02' )
,('01',969,'07' )
,('01',970,'00' )
,('01',971,'00' )
,('01',972,'01' )
,('01',972,'02' )
,('01',973,'01' )
,('01',973,'02' )
,('01',973,'07' )
,('01',974,'01' )
,('01',974,'02' )
,('01',974,'07' )
,('01',977,'01' )
,('01',977,'07' )
,('01',978,'01' )
,('01',978,'07' )
,('01',979,'01' )
,('01',979,'02' )
,('01',979,'07' )
,('01',980,'01' )
,('01',980,'02' )
,('01',980,'07' )
,('01',981,'01' )
,('01',981,'02' )
,('01',981,'07' )
,('01',982,'02' )
,('01',983,'01' )
,('01',983,'02' )
,('01',984,'01' )
,('01',984,'02' )
,('01',984,'07' )
,('01',985,'01' )
,('01',985,'02' )
,('01',986,'01' )
,('01',986,'02' )
,('01',986,'07' )
,('01',988,'01' )
,('01',988,'07' )
,('01',989,'01' )
,('01',989,'02' )
,('01',989,'07' )
,('01',990,'01' )
,('01',990,'02' )
,('01',990,'07' )
,('01',991,'01' )
,('01',991,'02' )
,('01',991,'07' )
,('01',992,'01' )
,('01',992,'02' )
,('01',992,'07' )
,('01',993,'01' )
,('01',993,'07' )
,('01',994,'01' )
,('01',994,'07' )
,('01',995,'01' )
,('01',995,'02' )
,('01',995,'07' )
,('01',996,'01' )
,('01',996,'07' )
,('01',997,'01' )
,('01',997,'02' )
,('01',997,'07' )
,('01',998,'01' )
,('01',998,'02' )
,('01',998,'07' )
,('01',999,'01' )
,('01',999,'02' )
,('01',999,'07' )
,('01',1000,'01' )
,('01',1000,'02' )
,('01',1000,'07' )
,('01',1001,'02' )
,('01',1002,'01' )
,('01',1002,'02' )
,('01',1003,'01' )
,('01',1003,'02' )
,('01',1003,'07' )
,('01',1004,'01' )
,('01',1004,'02' )
,('01',1004,'07' )
,('01',1005,'01' )
,('01',1005,'02' )
,('01',1005,'07' )
,('01',1006,'01' )
,('01',1006,'02' )
,('01',1006,'07' )
,('01',1007,'01' )
,('01',1007,'02' )
,('01',1007,'07' )
,('01',1008,'01' )
,('01',1008,'02' )
,('01',1008,'07' )
,('01',1009,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1009,'02' )
,('01',1009,'07' )
,('01',1010,'01' )
,('01',1010,'02' )
,('01',1010,'07' )
,('01',1011,'01' )
,('01',1011,'02' )
,('01',1011,'07' )
,('01',1012,'01' )
,('01',1012,'02' )
,('01',1012,'07' )
,('01',1013,'01' )
,('01',1013,'02' )
,('01',1013,'07' )
,('01',1014,'01' )
,('01',1014,'02' )
,('01',1014,'07' )
,('01',1015,'01' )
,('01',1015,'02' )
,('01',1016,'01' )
,('01',1016,'07' )
,('01',1017,'01' )
,('01',1017,'02' )
,('01',1017,'07' )
,('01',1018,'01' )
,('01',1018,'07' )
,('01',1019,'01' )
,('01',1019,'02' )
,('01',1019,'07' )
,('01',1020,'01' )
,('01',1021,'01' )
,('01',1022,'01' )
,('01',1022,'02' )
,('01',1022,'07' )
,('01',1023,'01' )
,('01',1023,'02' )
,('01',1023,'07' )
,('01',1024,'01' )
,('01',1024,'02' )
,('01',1024,'07' )
,('01',1025,'01' )
,('01',1026,'01' )
,('01',1026,'07' )
,('01',1027,'01' )
,('01',1027,'07' )
,('01',1028,'01' )
,('01',1028,'02' )
,('01',1028,'07' )
,('01',1029,'01' )
,('01',1029,'02' )
,('01',1030,'01' )
,('01',1030,'02' )
,('01',1030,'07' )
,('01',1031,'01' )
,('01',1031,'02' )
,('01',1031,'07' )
,('01',1032,'01' )
,('01',1032,'02' )
,('01',1033,'01' )
,('01',1033,'02' )
,('01',1033,'07' )
,('01',1034,'01' )
,('01',1034,'02' )
,('01',1034,'07' )
,('01',1035,'07' )
,('01',1036,'01' )
,('01',1036,'02' )
,('01',1036,'07' )
,('01',1037,'01' )
,('01',1037,'02' )
,('01',1037,'07' )
,('01',1038,'01' )
,('01',1038,'02' )
,('01',1038,'07' )
,('01',1039,'01' )
,('01',1039,'07' )
,('01',1040,'01' )
,('01',1040,'02' )
,('01',1040,'07' )
,('01',1041,'01' )
,('01',1041,'02' )
,('01',1042,'01' )
,('01',1042,'02' )
,('01',1042,'07' )
,('01',1043,'01' )
,('01',1046,'01' )
,('01',1047,'01' )
,('01',1047,'02' )
,('01',1047,'07' )
,('01',1048,'01' )
,('01',1048,'07' )
,('01',1049,'01' )
,('01',1049,'02' )
,('01',1049,'07' )
,('01',1050,'01' )
,('01',1050,'07' )
,('01',1052,'07' )
,('01',1053,'02' )
,('01',1053,'07' )
,('01',1054,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1054,'02' )
,('01',1054,'07' )
,('01',1055,'01' )
,('01',1055,'02' )
,('01',1055,'07' )
,('01',1056,'01' )
,('01',1057,'01' )
,('01',1058,'01' )
,('01',1058,'02' )
,('01',1058,'07' )
,('01',1059,'01' )
,('01',1060,'01' )
,('01',1060,'02' )
,('01',1060,'07' )
,('01',1061,'01' )
,('01',1061,'02' )
,('01',1061,'07' )
,('01',1062,'01' )
,('01',1062,'02' )
,('01',1062,'07' )
,('01',1063,'01' )
,('01',1063,'02' )
,('01',1063,'07' )
,('01',1064,'01' )
,('01',1064,'02' )
,('01',1065,'01' )
,('01',1065,'02' )
,('01',1065,'07' )
,('01',1066,'01' )
,('01',1066,'07' )
,('01',1067,'01' )
,('01',1067,'02' )
,('01',1068,'01' )
,('01',1068,'02' )
,('01',1068,'07' )
,('01',1069,'01' )
,('01',1069,'02' )
,('01',1069,'07' )
,('01',1070,'01' )
,('01',1070,'02' )
,('01',1070,'07' )
,('01',1071,'01' )
,('01',1071,'02' )
,('01',1072,'01' )
,('01',1072,'02' )
,('01',1072,'07' )
,('01',1073,'01' )
,('01',1074,'01' )
,('01',1075,'01' )
,('01',1075,'07' )
,('01',1076,'01' )
,('01',1076,'02' )
,('01',1076,'07' )
,('01',1077,'01' )
,('01',1077,'02' )
,('01',1077,'07' )
,('01',1079,'01' )
,('01',1080,'01' )
,('01',1080,'02' )
,('01',1080,'07' )
,('01',1081,'01' )
,('01',1081,'02' )
,('01',1081,'07' )
,('01',1082,'01' )
,('01',1082,'02' )
,('01',1082,'07' )
,('01',1083,'01' )
,('01',1083,'02' )
,('01',1083,'07' )
,('01',1084,'01' )
,('01',1084,'02' )
,('01',1084,'07' )
,('01',1085,'01' )
,('01',1085,'02' )
,('01',1085,'07' )
,('01',1086,'01' )
,('01',1086,'02' )
,('01',1086,'07' )
,('01',1087,'01' )
,('01',1087,'02' )
,('01',1087,'07' )
,('01',1088,'01' )
,('01',1090,'00' )
,('01',1091,'07' )
,('01',1092,'01' )
,('01',1093,'01' )
,('01',1093,'02' )
,('01',1093,'07' )
,('01',1094,'01' )
,('01',1094,'02' )
,('01',1094,'07' )
,('01',1095,'01' )
,('01',1095,'02' )
,('01',1095,'07' )
,('01',1096,'01' )
,('01',1096,'02' )
,('01',1096,'07' )
,('01',1097,'01' )
,('01',1097,'07' )
,('01',1098,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1098,'07' )
,('01',1099,'01' )
,('01',1099,'02' )
,('01',1099,'07' )
,('01',1100,'01' )
,('01',1100,'02' )
,('01',1100,'07' )
,('01',1101,'01' )
,('01',1101,'02' )
,('01',1101,'07' )
,('01',1102,'01' )
,('01',1102,'02' )
,('01',1103,'01' )
,('01',1103,'02' )
,('01',1103,'07' )
,('01',1104,'01' )
,('01',1104,'02' )
,('01',1104,'07' )
,('01',1105,'01' )
,('01',1105,'02' )
,('01',1105,'07' )
,('01',1106,'01' )
,('01',1106,'02' )
,('01',1106,'07' )
,('01',1107,'01' )
,('01',1107,'02' )
,('01',1107,'07' )
,('01',1108,'01' )
,('01',1109,'02' )
,('01',1109,'07' )
,('01',1110,'01' )
,('01',1111,'01' )
,('01',1111,'02' )
,('01',1111,'07' )
,('01',1112,'02' )
,('01',1113,'02' )
,('01',1113,'07' )
,('01',1114,'01' )
,('01',1114,'02' )
,('01',1114,'07' )
,('01',1115,'01' )
,('01',1115,'02' )
,('01',1115,'07' )
,('01',1116,'01' )
,('01',1116,'02' )
,('01',1116,'07' )
,('01',1117,'01' )
,('01',1117,'02' )
,('01',1117,'07' )
,('01',1118,'01' )
,('01',1118,'02' )
,('01',1118,'07' )
,('01',1119,'01' )
,('01',1119,'02' )
,('01',1119,'07' )
,('01',1120,'01' )
,('01',1120,'02' )
,('01',1120,'07' )
,('01',1121,'01' )
,('01',1121,'02' )
,('01',1121,'07' )
,('01',1122,'01' )
,('01',1122,'02' )
,('01',1122,'07' )
,('01',1123,'01' )
,('01',1123,'07' )
,('01',1124,'01' )
,('01',1124,'07' )
,('01',1125,'01' )
,('01',1125,'02' )
,('01',1125,'07' )
,('01',1126,'01' )
,('01',1126,'02' )
,('01',1126,'07' )
,('01',1127,'01' )
,('01',1127,'02' )
,('01',1127,'07' )
,('01',1128,'01' )
,('01',1128,'07' )
,('01',1129,'01' )
,('01',1129,'07' )
,('01',1130,'01' )
,('01',1130,'02' )
,('01',1130,'07' )
,('01',1131,'01' )
,('01',1132,'01' )
,('01',1132,'02' )
,('01',1132,'07' )
,('01',1133,'01' )
,('01',1133,'02' )
,('01',1133,'07' )
,('01',1134,'01' )
,('01',1134,'02' )
,('01',1135,'01' )
,('01',1135,'07' )
,('01',1136,'01' )
,('01',1136,'02' )
,('01',1137,'01' )
,('01',1137,'02' )
,('01',1138,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1138,'02' )
,('01',1138,'07' )
,('01',1139,'02' )
,('01',1140,'02' )
,('01',1140,'07' )
,('01',1141,'01' )
,('01',1141,'02' )
,('01',1141,'07' )
,('01',1142,'01' )
,('01',1142,'02' )
,('01',1142,'07' )
,('01',1143,'01' )
,('01',1143,'02' )
,('01',1143,'07' )
,('01',1144,'01' )
,('01',1144,'02' )
,('01',1144,'07' )
,('01',1145,'01' )
,('01',1145,'02' )
,('01',1145,'07' )
,('01',1146,'01' )
,('01',1147,'01' )
,('01',1147,'02' )
,('01',1147,'07' )
,('01',1148,'01' )
,('01',1148,'02' )
,('01',1148,'07' )
,('01',1149,'01' )
,('01',1149,'02' )
,('01',1149,'07' )
,('01',1150,'01' )
,('01',1150,'02' )
,('01',1150,'07' )
,('01',1151,'01' )
,('01',1151,'02' )
,('01',1152,'01' )
,('01',1152,'02' )
,('01',1152,'07' )
,('01',1153,'01' )
,('01',1153,'02' )
,('01',1153,'07' )
,('01',1154,'01' )
,('01',1154,'02' )
,('01',1155,'01' )
,('01',1155,'02' )
,('01',1155,'07' )
,('01',1156,'01' )
,('01',1156,'02' )
,('01',1156,'07' )
,('01',1157,'01' )
,('01',1157,'07' )
,('01',1158,'01' )
,('01',1158,'02' )
,('01',1158,'07' )
,('01',1159,'01' )
,('01',1159,'02' )
,('01',1160,'01' )
,('01',1160,'07' )
,('01',1161,'01' )
,('01',1161,'02' )
,('01',1162,'01' )
,('01',1162,'02' )
,('01',1163,'01' )
,('01',1163,'02' )
,('01',1164,'01' )
,('01',1164,'02' )
,('01',1165,'01' )
,('01',1165,'02' )
,('01',1167,'01' )
,('01',1168,'01' )
,('01',1168,'07' )
,('01',1169,'01' )
,('01',1169,'02' )
,('01',1169,'07' )
,('01',1170,'01' )
,('01',1170,'02' )
,('01',1170,'07' )
,('01',1171,'01' )
,('01',1171,'02' )
,('01',1171,'07' )
,('01',1172,'01' )
,('01',1172,'02' )
,('01',1173,'01' )
,('01',1173,'02' )
,('01',1173,'07' )
,('01',1174,'00' )
,('01',1176,'00' )
,('01',1177,'00' )
,('01',1178,'00' )
,('01',1179,'00' )
,('01',1180,'00' )
,('01',1181,'00' )
,('01',1182,'00' )
,('01',1183,'00' )
,('01',1184,'00' )
,('01',1186,'00' )
,('01',1187,'00' )
,('01',1188,'00' )
,('01',1189,'00' )
,('01',1190,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1191,'00' )
,('01',1192,'00' )
,('01',1193,'00' )
,('01',1194,'00' )
,('01',1195,'00' )
,('01',1196,'00' )
,('01',1197,'00' )
,('01',1198,'00' )
,('01',1199,'00' )
,('01',1200,'00' )
,('01',1201,'00' )
,('01',1202,'00' )
,('01',1203,'00' )
,('01',1204,'00' )
,('01',1205,'00' )
,('01',1206,'00' )
,('01',1207,'00' )
,('01',1208,'00' )
,('01',1209,'00' )
,('01',1210,'00' )
,('01',1211,'00' )
,('01',1212,'00' )
,('01',1213,'00' )
,('01',1214,'00' )
,('01',1215,'01' )
,('01',1215,'02' )
,('01',1216,'00' )
,('01',1217,'00' )
,('01',1218,'00' )
,('01',1219,'00' )
,('01',1220,'00' )
,('01',1221,'00' )
,('01',1222,'00' )
,('01',1223,'00' )
,('01',1224,'00' )
,('01',1226,'00' )
,('01',1227,'00' )
,('01',1228,'00' )
,('01',1229,'00' )
,('01',1230,'00' )
,('01',1231,'00' )
,('01',1232,'00' )
,('01',1233,'00' )
,('01',1234,'07' )
,('01',1234,'08' )
,('01',1235,'01' )
,('01',1235,'07' )
,('01',1235,'08' )
,('01',1236,'00' )
,('01',1237,'00' )
,('01',1238,'00' )
,('01',1239,'00' )
,('01',1240,'00' )
,('01',1241,'00' )
,('01',1242,'01' )
,('01',1242,'02' )
,('01',1243,'01' )
,('01',1243,'07' )
,('01',1243,'08' )
,('01',1244,'07' )
,('01',1244,'08' )
,('01',1245,'01' )
,('01',1245,'02' )
,('01',1245,'07' )
,('01',1246,'01' )
,('01',1247,'00' )
,('01',1249,'00' )
,('01',1250,'00' )
,('01',1251,'00' )
,('01',1252,'00' )
,('01',1253,'00' )
,('01',1254,'00' )
,('01',1255,'00' )
,('01',1256,'00' )
,('01',1257,'00' )
,('01',1258,'00' )
,('01',1259,'00' )
,('01',1260,'00' )
,('01',1261,'01' )
,('01',1262,'02' )
,('01',1263,'02' )
,('01',1264,'00' )
,('01',1265,'02' )
,('01',1266,'00' )
,('01',1267,'02' )
,('01',1268,'00' )
,('01',1269,'00' )
,('01',1270,'00' )
,('01',1271,'00' )
,('01',1272,'00' )
,('01',1273,'00' )
,('01',1274,'00' )
,('01',1275,'02' )
,('01',1276,'01' )
,('01',1276,'02' )
,('01',1276,'07' )
,('01',1277,'01' )
,('01',1277,'02' )
,('01',1277,'07' )
,('01',1278,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1279,'02' )
,('01',1279,'07' )
,('01',1280,'01' )
,('01',1280,'02' )
,('01',1280,'07' )
,('01',1281,'02' )
,('01',1281,'07' )
,('01',1281,'08' )
,('01',1282,'01' )
,('01',1282,'02' )
,('01',1282,'07' )
,('01',1282,'08' )
,('01',1283,'00' )
,('01',1284,'00' )
,('01',1285,'00' )
,('01',1286,'01' )
,('01',1286,'02' )
,('01',1287,'00' )
,('01',1288,'00' )
,('01',1290,'00' )
,('01',1291,'00' )
,('01',1293,'00' )
,('01',1294,'00' )
,('01',1295,'00' )
,('01',1296,'00' )
,('01',1297,'00' )
,('01',1298,'00' )
,('01',1299,'02' )
,('01',1300,'00' )
,('01',1301,'00' )
,('01',1302,'00' )
,('01',1303,'00' )
,('01',1304,'00' )
,('01',1305,'00' )
,('01',1306,'00' )
,('01',1307,'00' )
,('01',1308,'00' )
,('01',1309,'00' )
,('01',1310,'00' )
,('01',1311,'00' )
,('01',1312,'00' )
,('01',1313,'00' )
,('01',1314,'00' )
,('01',1316,'00' )
,('01',1317,'00' )
,('01',1319,'00' )
,('01',1321,'00' )
,('01',1322,'00' )
,('01',1323,'00' )
,('01',1324,'00' )
,('01',1325,'00' )
,('01',1326,'00' )
,('01',1327,'00' )
,('01',1328,'02' )
,('01',1329,'00' )
,('01',1330,'00' )
,('01',1331,'00' )
,('01',1332,'00' )
,('01',1333,'00' )
,('01',1334,'00' )
,('01',1335,'00' )
,('01',1336,'00' )
,('01',1337,'02' )
,('01',1338,'00' )
,('01',1339,'00' )
,('01',1340,'00' )
,('01',1341,'00' )
,('01',1342,'00' )
,('01',1343,'00' )
,('01',1345,'00' )
,('01',1346,'00' )
,('01',1347,'00' )
,('01',1348,'00' )
,('01',1349,'00' )
,('01',1350,'00' )
,('01',1351,'00' )
,('01',1352,'00' )
,('01',1353,'00' )
,('01',1354,'00' )
,('01',1355,'00' )
,('01',1356,'00' )
,('01',1357,'00' )
,('01',1358,'00' )
,('01',1359,'00' )
,('01',1360,'07' )
,('01',1361,'07' )
,('01',1362,'01' )
,('01',1362,'07' )
,('01',1363,'01' )
,('01',1363,'07' )
,('01',1363,'08' )
,('01',1364,'01' )
,('01',1364,'02' )
,('01',1364,'07' )
,('01',1364,'08' )
,('01',1365,'00' )
,('01',1366,'00' )
,('01',1367,'00' )
,('01',1368,'00' )
,('01',1369,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1370,'00' )
,('01',1371,'00' )
,('01',1372,'00' )
,('01',1373,'00' )
,('01',1374,'00' )
,('01',1375,'00' )
,('01',1376,'00' )
,('01',1377,'00' )
,('01',1378,'00' )
,('01',1379,'00' )
,('01',1380,'00' )
,('01',1381,'00' )
,('01',1382,'00' )
,('01',1384,'00' )
,('01',1385,'00' )
,('01',1386,'00' )
,('01',1387,'00' )
,('01',1388,'00' )
,('01',1389,'00' )
,('01',1390,'00' )
,('01',1391,'00' )
,('01',1392,'01' )
,('01',1393,'00' )
,('01',1394,'00' )
,('01',1395,'00' )
,('01',1396,'01' )
,('01',1397,'01' )
,('01',1397,'02' )
,('01',1398,'01' )
,('01',1398,'02' )
,('01',1398,'07' )
,('01',1398,'08' )
,('01',1399,'01' )
,('01',1399,'02' )
,('01',1400,'00' )
,('01',1401,'00' )
,('01',1402,'00' )
,('01',1403,'00' )
,('01',1404,'00' )
,('01',1405,'00' )
,('01',1406,'00' )
,('01',1407,'00' )
,('01',1408,'00' )
,('01',1409,'00' )
,('01',1410,'00' )
,('01',1411,'00' )
,('01',1412,'00' )
,('01',1413,'00' )
,('01',1414,'00' )
,('01',1415,'02' )
,('01',1416,'00' )
,('01',1417,'00' )
,('01',1418,'00' )
,('01',1419,'00' )
,('01',1420,'00' )
,('01',1421,'00' )
,('01',1422,'00' )
,('01',1423,'02' )
,('01',1424,'00' )
,('01',1425,'00' )
,('01',1426,'00' )
,('01',1427,'00' )
,('01',1428,'00' )
,('01',1429,'00' )
,('01',1430,'00' )
,('01',1431,'00' )
,('01',1432,'01' )
,('01',1432,'02' )
,('01',1433,'01' )
,('01',1434,'01' )
,('01',1434,'02' )
,('01',1435,'00' )
,('01',1436,'00' )
,('01',1437,'00' )
,('01',1438,'00' )
,('01',1439,'01' )
,('01',1440,'01' )
,('01',1441,'01' )
,('01',1441,'02' )
,('01',1442,'00' )
,('01',1443,'00' )
,('01',1444,'00' )
,('01',1445,'00' )
,('01',1446,'00' )
,('01',1447,'00' )
,('01',1448,'00' )
,('01',1449,'00' )
,('01',1450,'00' )
,('01',1451,'00' )
,('01',1452,'00' )
,('01',1453,'00' )
,('01',1454,'00' )
,('01',1455,'00' )
,('01',1456,'00' )
,('01',1457,'01' )
,('01',1457,'02' )
,('01',1458,'00' )
,('01',1459,'00' )
,('01',1460,'00' )
,('01',1461,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1462,'01' )
,('01',1462,'02' )
,('01',1462,'07' )
,('01',1463,'01' )
,('01',1463,'02' )
,('01',1463,'07' )
,('01',1464,'01' )
,('01',1464,'02' )
,('01',1465,'00' )
,('01',1466,'00' )
,('01',1467,'00' )
,('01',1468,'01' )
,('01',1468,'02' )
,('01',1468,'07' )
,('01',1469,'01' )
,('01',1469,'02' )
,('01',1469,'07' )
,('01',1470,'00' )
,('01',1472,'00' )
,('01',1473,'00' )
,('01',1474,'01' )
,('01',1475,'01' )
,('01',1476,'00' )
,('01',1477,'00' )
,('01',1478,'01' )
,('01',1479,'02' )
,('01',1480,'02' )
,('01',1481,'00' )
,('01',1482,'00' )
,('01',1483,'00' )
,('01',1484,'00' )
,('01',1485,'00' )
,('01',1486,'00' )
,('01',1487,'00' )
,('01',1488,'00' )
,('01',1489,'02' )
,('01',1490,'02' )
,('01',1491,'02' )
,('01',1492,'00' )
,('01',1493,'00' )
,('01',1494,'01' )
,('01',1495,'00' )
,('01',1496,'01' )
,('01',1497,'01' )
,('01',1498,'02' )
,('01',1499,'02' )
,('01',1500,'00' )
,('01',1501,'00' )
,('01',1502,'00' )
,('01',1503,'00' )
,('01',1504,'00' )
,('01',1505,'00' )
,('01',1506,'00' )
,('01',1507,'02' )
,('01',1508,'01' )
,('01',1509,'01' )
,('01',1510,'00' )
,('01',1511,'00' )
,('01',1512,'00' )
,('01',1513,'00' )
,('01',1514,'00' )
,('01',1515,'00' )
,('01',1516,'00' )
,('01',1517,'00' )
,('01',1518,'07' )
,('01',1519,'00' )
,('01',1520,'00' )
,('01',1521,'00' )
,('01',1522,'00' )
,('01',1523,'01' )
,('01',1524,'01' )
,('01',1525,'01' )
,('01',1526,'01' )
,('01',1527,'00' )
,('01',1528,'00' )
,('01',1529,'00' )
,('01',1530,'00' )
,('01',1531,'00' )
,('01',1532,'00' )
,('01',1533,'00' )
,('01',1534,'00' )
,('01',1535,'01' )
,('01',1535,'02' )
,('01',1535,'07' )
,('01',1535,'08' )
,('01',1536,'02' )
,('01',1536,'07' )
,('01',1537,'01' )
,('01',1537,'02' )
,('01',1537,'07' )
,('01',1538,'01' )
,('01',1538,'02' )
,('01',1538,'07' )
,('01',1539,'02' )
,('01',1539,'07' )
,('01',1540,'01' )
,('01',1540,'02' )
,('01',1540,'07' )
,('01',1541,'01' )
,('01',1541,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1541,'07' )
,('01',1542,'02' )
,('01',1543,'02' )
,('01',1544,'01' )
,('01',1544,'02' )
,('01',1544,'07' )
,('01',1545,'02' )
,('01',1546,'01' )
,('01',1546,'02' )
,('01',1547,'01' )
,('01',1547,'07' )
,('01',1547,'08' )
,('01',1548,'01' )
,('01',1548,'07' )
,('01',1548,'08' )
,('01',1549,'02' )
,('01',1550,'02' )
,('01',1551,'02' )
,('01',1552,'00' )
,('01',1553,'00' )
,('01',1554,'00' )
,('01',1555,'02' )
,('01',1556,'GG' )
,('01',1557,'01' )
,('01',1558,'01' )
,('01',1558,'07' )
,('01',1558,'08' )
,('01',1559,'01' )
,('01',1559,'02' )
,('01',1559,'07' )
,('01',1559,'08' )
,('01',1561,'01' )
,('01',1561,'07' )
,('01',1562,'00' )
,('01',1563,'01' )
,('01',1564,'01' )
,('01',1564,'02' )
,('01',1564,'07' )
,('01',1565,'01' )
,('01',1565,'02' )
,('01',1565,'07' )
,('01',1566,'01' )
,('01',1566,'02' )
,('01',1566,'07' )
,('01',1566,'08' )
,('01',1567,'01' )
,('01',1567,'02' )
,('01',1568,'01' )
,('01',1568,'02' )
,('01',1569,'01' )
,('01',1569,'02' )
,('01',1570,'00' )
,('01',1571,'00' )
,('01',1572,'00' )
,('01',1573,'01' )
,('01',1573,'02' )
,('01',1574,'01' )
,('01',1574,'02' )
,('01',1574,'07' )
,('01',1575,'01' )
,('01',1575,'02' )
,('01',1575,'07' )
,('01',1576,'01' )
,('01',1576,'02' )
,('01',1576,'07' )
,('01',1576,'08' )
,('01',1577,'00' )
,('01',1578,'01' )
,('01',1578,'02' )
,('01',1578,'07' )
,('01',1579,'01' )
,('01',1579,'02' )
,('01',1579,'07' )
,('01',1580,'01' )
,('01',1580,'02' )
,('01',1580,'07' )
,('01',1581,'02' )
,('01',1582,'02' )
,('01',1583,'02' )
,('01',1584,'02' )
,('01',1585,'01' )
,('01',1585,'07' )
,('01',1586,'02' )
,('01',1587,'02' )
,('01',1589,'00' )
,('01',1590,'00' )
,('01',1591,'00' )
,('01',1592,'07' )
,('01',1592,'08' )
,('01',1593,'01' )
,('01',1593,'07' )
,('01',1594,'01' )
,('01',1594,'02' )
,('01',1594,'07' )
,('01',1595,'01' )
,('01',1595,'07' )
,('01',1596,'01' )
,('01',1596,'02' )
,('01',1596,'07' )
,('01',1597,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1597,'02' )
,('01',1597,'07' )
,('01',1598,'01' )
,('01',1598,'02' )
,('01',1598,'07' )
,('01',1599,'01' )
,('01',1599,'02' )
,('01',1600,'01' )
,('01',1600,'07' )
,('01',1601,'01' )
,('01',1601,'02' )
,('01',1601,'07' )
,('01',1602,'02' )
,('01',1602,'07' )
,('01',1603,'01' )
,('01',1603,'02' )
,('01',1603,'07' )
,('01',1604,'01' )
,('01',1604,'02' )
,('01',1604,'07' )
,('01',1605,'01' )
,('01',1605,'02' )
,('01',1605,'07' )
,('01',1606,'00' )
,('01',1607,'01' )
,('01',1612,'01' )
,('01',1612,'02' )
,('01',1612,'07' )
,('01',1613,'01' )
,('01',1613,'02' )
,('01',1613,'07' )
,('01',1614,'01' )
,('01',1615,'01' )
,('01',1615,'02' )
,('01',1615,'07' )
,('01',1616,'01' )
,('01',1616,'02' )
,('01',1616,'07' )
,('01',1617,'02' )
,('01',1617,'07' )
,('01',1617,'08' )
,('01',1618,'01' )
,('01',1618,'02' )
,('01',1618,'07' )
,('01',1618,'08' )
,('01',1619,'01' )
,('01',1619,'02' )
,('01',1619,'07' )
,('01',1619,'08' )
,('01',1620,'01' )
,('01',1620,'07' )
,('01',1620,'08' )
,('01',1621,'01' )
,('01',1621,'02' )
,('01',1621,'07' )
,('01',1622,'01' )
,('01',1623,'00' )
,('01',1624,'00' )
,('01',1625,'01' )
,('01',1625,'02' )
,('01',1626,'01' )
,('01',1626,'02' )
,('01',1626,'07' )
,('01',1627,'01' )
,('01',1627,'02' )
,('01',1627,'07' )
,('01',1628,'01' )
,('01',1629,'00' )
,('01',1630,'00' )
,('01',1631,'01' )
,('01',1631,'02' )
,('01',1631,'07' )
,('01',1631,'08' )
,('01',1632,'02' )
,('01',1633,'01' )
,('01',1633,'02' )
,('01',1633,'07' )
,('01',1634,'01' )
,('01',1636,'01' )
,('01',1636,'02' )
,('01',1637,'01' )
,('01',1637,'02' )
,('01',1638,'01' )
,('01',1638,'02' )
,('01',1639,'00' )
,('01',1640,'01' )
,('01',1641,'01' )
,('01',1641,'02' )
,('01',1642,'01' )
,('01',1642,'02' )
,('01',1642,'07' )
,('01',1643,'01' )
,('01',1643,'02' )
,('01',1643,'07' )
,('01',1644,'01' )
,('01',1644,'02' )
,('01',1645,'00' )
,('01',1646,'00' )
,('01',1647,'00' )
,('01',1648,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1649,'00' )
,('01',1650,'00' )
,('01',1651,'00' )
,('01',1652,'00' )
,('01',1653,'01' )
,('01',1654,'00' )
,('01',1655,'00' )
,('01',1656,'01' )
,('01',1657,'00' )
,('01',1658,'00' )
,('01',1659,'00' )
,('01',1660,'00' )
,('01',1661,'00' )
,('01',1662,'00' )
,('01',1663,'01' )
,('01',1664,'01' )
,('01',1665,'00' )
,('01',1667,'01' )
,('01',1667,'07' )
,('01',1668,'00' )
,('01',1669,'01' )
,('01',1670,'00' )
,('01',1671,'01' )
,('01',1671,'07' )
,('01',1672,'01' )
,('01',1672,'02' )
,('01',1672,'07' )
,('01',1673,'01' )
,('01',1673,'02' )
,('01',1673,'07' )
,('01',1674,'02' )
,('01',1675,'01' )
,('01',1675,'02' )
,('01',1675,'07' )
,('01',1675,'08' )
,('01',1676,'01' )
,('01',1676,'02' )
,('01',1676,'07' )
,('01',1676,'08' )
,('01',1677,'01' )
,('01',1677,'02' )
,('01',1678,'01' )
,('01',1678,'02' )
,('01',1679,'01' )
,('01',1679,'02' )
,('01',1680,'01' )
,('01',1680,'02' )
,('01',1681,'01' )
,('01',1682,'01' )
,('01',1683,'01' )
,('01',1683,'07' )
,('01',1683,'08' )
,('01',1684,'01' )
,('01',1685,'01' )
,('01',1685,'02' )
,('01',1685,'07' )
,('01',1686,'01' )
,('01',1686,'02' )
,('01',1686,'07' )
,('01',1687,'01' )
,('01',1687,'02' )
,('01',1688,'01' )
,('01',1689,'01' )
,('01',1690,'01' )
,('01',1691,'01' )
,('01',1691,'02' )
,('01',1692,'01' )
,('01',1692,'02' )
,('01',1692,'07' )
,('01',1693,'01' )
,('01',1693,'02' )
,('01',1693,'07' )
,('01',1694,'01' )
,('01',1694,'02' )
,('01',1694,'07' )
,('01',1695,'01' )
,('01',1695,'02' )
,('01',1696,'01' )
,('01',1696,'02' )
,('01',1697,'00' )
,('01',1698,'00' )
,('01',1699,'01' )
,('01',1700,'01' )
,('01',1701,'01' )
,('01',1702,'00' )
,('01',1703,'00' )
,('01',1704,'00' )
,('01',1705,'01' )
,('01',1706,'00' )
,('01',1707,'00' )
,('01',1708,'00' )
,('01',1710,'01' )
,('01',1710,'02' )
,('01',1711,'01' )
,('01',1711,'02' )
,('01',1712,'01' )
,('01',1712,'02' )
,('01',1713,'01' )
,('01',1713,'02' )
,('01',1714,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1714,'02' )
,('01',1715,'01' )
,('01',1715,'02' )
,('01',1716,'GG' )
,('01',1717,'01' )
,('01',1717,'02' )
,('01',1718,'01' )
,('01',1718,'02' )
,('01',1719,'01' )
,('01',1719,'02' )
,('01',1720,'01' )
,('01',1720,'02' )
,('01',1721,'01' )
,('01',1721,'02' )
,('01',1722,'01' )
,('01',1722,'02' )
,('01',1723,'01' )
,('01',1723,'02' )
,('01',1724,'01' )
,('01',1724,'02' )
,('01',1725,'07' )
,('01',1726,'07' )
,('01',1726,'08' )
,('01',1727,'01' )
,('01',1727,'02' )
,('01',1728,'01' )
,('01',1728,'02' )
,('01',1729,'01' )
,('01',1729,'02' )
,('01',1729,'07' )
,('01',1730,'01' )
,('01',1730,'02' )
,('01',1730,'07' )
,('01',1731,'01' )
,('01',1731,'02' )
,('01',1731,'07' )
,('01',1732,'01' )
,('01',1732,'02' )
,('01',1733,'01' )
,('01',1733,'02' )
,('01',1734,'01' )
,('01',1734,'02' )
,('01',1735,'02' )
,('01',1735,'07' )
,('01',1735,'08' )
,('01',1736,'01' )
,('01',1736,'02' )
,('01',1736,'07' )
,('01',1736,'08' )
,('01',1737,'01' )
,('01',1737,'02' )
,('01',1737,'07' )
,('01',1738,'01' )
,('01',1738,'02' )
,('01',1738,'07' )
,('01',1738,'08' )
,('01',1739,'01' )
,('01',1739,'02' )
,('01',1739,'07' )
,('01',1739,'08' )
,('01',1740,'01' )
,('01',1740,'02' )
,('01',1741,'01' )
,('01',1741,'02' )
,('01',1741,'07' )
,('01',1741,'08' )
,('01',1742,'01' )
,('01',1742,'02' )
,('01',1742,'07' )
,('01',1742,'08' )
,('01',1743,'01' )
,('01',1743,'02' )
,('01',1744,'01' )
,('01',1744,'02' )
,('01',1745,'01' )
,('01',1745,'02' )
,('01',1746,'01' )
,('01',1746,'02' )
,('01',1746,'07' )
,('01',1746,'08' )
,('01',1747,'01' )
,('01',1747,'02' )
,('01',1748,'01' )
,('01',1748,'02' )
,('01',1749,'02' )
,('01',1750,'01' )
,('01',1750,'02' )
,('01',1751,'01' )
,('01',1751,'02' )
,('01',1752,'01' )
,('01',1752,'02' )
,('01',1753,'01' )
,('01',1753,'02' )
,('01',1754,'01' )
,('01',1754,'02' )
,('01',1755,'01' )
,('01',1756,'01' )
,('01',1756,'02' )
,('01',1757,'02' )
,('01',1758,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1759,'01' )
,('01',1759,'02' )
,('01',1760,'01' )
,('01',1760,'02' )
,('01',1761,'01' )
,('01',1761,'02' )
,('01',1761,'07' )
,('01',1761,'08' )
,('01',1762,'01' )
,('01',1762,'02' )
,('01',1762,'07' )
,('01',1763,'01' )
,('01',1763,'02' )
,('01',1764,'01' )
,('01',1764,'02' )
,('01',1765,'01' )
,('01',1765,'02' )
,('01',1766,'01' )
,('01',1766,'02' )
,('01',1766,'07' )
,('01',1766,'08' )
,('01',1767,'HH' )
,('01',1768,'00' )
,('01',1769,'01' )
,('01',1769,'02' )
,('01',1770,'01' )
,('01',1770,'02' )
,('01',1770,'07' )
,('01',1771,'01' )
,('01',1771,'02' )
,('01',1772,'01' )
,('01',1772,'02' )
,('01',1773,'01' )
,('01',1773,'02' )
,('01',1773,'07' )
,('01',1773,'08' )
,('01',1774,'01' )
,('01',1774,'02' )
,('01',1774,'07' )
,('01',1774,'08' )
,('01',1775,'01' )
,('01',1775,'02' )
,('01',1775,'07' )
,('01',1775,'08' )
,('01',1776,'01' )
,('01',1776,'02' )
,('01',1777,'01' )
,('01',1777,'02' )
,('01',1778,'01' )
,('01',1778,'02' )
,('01',1778,'07' )
,('01',1778,'08' )
,('01',1779,'01' )
,('01',1779,'02' )
,('01',1780,'01' )
,('01',1780,'02' )
,('01',1781,'01' )
,('01',1781,'02' )
,('01',1782,'01' )
,('01',1782,'02' )
,('01',1783,'01' )
,('01',1783,'02' )
,('01',1784,'01' )
,('01',1784,'02' )
,('01',1785,'01' )
,('01',1785,'02' )
,('01',1786,'01' )
,('01',1786,'02' )
,('01',1787,'01' )
,('01',1787,'02' )
,('01',1788,'01' )
,('01',1788,'02' )
,('01',1789,'01' )
,('01',1789,'02' )
,('01',1790,'01' )
,('01',1790,'02' )
,('01',1791,'02' )
,('01',1792,'01' )
,('01',1792,'02' )
,('01',1793,'01' )
,('01',1794,'01' )
,('01',1794,'02' )
,('01',1795,'01' )
,('01',1795,'02' )
,('01',1795,'07' )
,('01',1796,'01' )
,('01',1796,'02' )
,('01',1797,'01' )
,('01',1797,'02' )
,('01',1798,'01' )
,('01',1798,'02' )
,('01',1799,'01' )
,('01',1799,'02' )
,('01',1800,'01' )
,('01',1800,'02' )
,('01',1801,'01' )
,('01',1801,'02' )
,('01',1801,'07' )
,('01',1802,'01' )
,('01',1802,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1803,'01' )
,('01',1803,'02' )
,('01',1803,'07' )
,('01',1803,'08' )
,('01',1804,'01' )
,('01',1804,'02' )
,('01',1804,'07' )
,('01',1805,'01' )
,('01',1805,'02' )
,('01',1806,'01' )
,('01',1806,'02' )
,('01',1807,'01' )
,('01',1807,'02' )
,('01',1808,'01' )
,('01',1809,'01' )
,('01',1810,'01' )
,('01',1810,'02' )
,('01',1811,'01' )
,('01',1811,'02' )
,('01',1811,'07' )
,('01',1812,'01' )
,('01',1812,'02' )
,('01',1812,'07' )
,('01',1813,'01' )
,('01',1813,'02' )
,('01',1813,'07' )
,('01',1814,'01' )
,('01',1814,'02' )
,('01',1815,'01' )
,('01',1815,'02' )
,('01',1816,'02' )
,('01',1817,'01' )
,('01',1817,'02' )
,('01',1817,'07' )
,('01',1817,'08' )
,('01',1818,'01' )
,('01',1818,'02' )
,('01',1818,'07' )
,('01',1818,'08' )
,('01',1819,'01' )
,('01',1819,'02' )
,('01',1820,'01' )
,('01',1820,'02' )
,('01',1821,'01' )
,('01',1821,'02' )
,('01',1822,'01' )
,('01',1822,'02' )
,('01',1823,'01' )
,('01',1823,'02' )
,('01',1823,'07' )
,('01',1823,'08' )
,('01',1824,'01' )
,('01',1824,'02' )
,('01',1824,'07' )
,('01',1825,'01' )
,('01',1825,'02' )
,('01',1826,'00' )
,('01',1827,'00' )
,('01',1828,'01' )
,('01',1828,'02' )
,('01',1828,'07' )
,('01',1828,'08' )
,('01',1829,'01' )
,('01',1829,'02' )
,('01',1829,'07' )
,('01',1830,'00' )
,('01',1831,'00' )
,('01',1832,'00' )
,('01',1833,'07' )
,('01',1834,'01' )
,('01',1834,'02' )
,('01',1834,'07' )
,('01',1835,'01' )
,('01',1835,'02' )
,('01',1835,'07' )
,('01',1836,'02' )
,('01',1836,'07' )
,('01',1838,'01' )
,('01',1838,'02' )
,('01',1838,'07' )
,('01',1839,'02' )
,('01',1839,'07' )
,('01',1840,'01' )
,('01',1840,'02' )
,('01',1840,'07' )
,('01',1841,'01' )
,('01',1841,'02' )
,('01',1841,'07' )
,('01',1842,'01' )
,('01',1842,'02' )
,('01',1842,'07' )
,('01',1843,'01' )
,('01',1843,'02' )
,('01',1843,'07' )
,('01',1843,'08' )
,('01',1844,'01' )
,('01',1844,'02' )
,('01',1844,'07' )
,('01',1844,'08' )
,('01',1845,'01' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1846,'02' )
,('01',1847,'01' )
,('01',1847,'02' )
,('01',1847,'07' )
,('01',1848,'01' )
,('01',1848,'02' )
,('01',1849,'00' )
,('01',1850,'01' )
,('01',1850,'02' )
,('01',1851,'01' )
,('01',1851,'02' )
,('01',1852,'01' )
,('01',1852,'02' )
,('01',1853,'01' )
,('01',1853,'02' )
,('01',1854,'01' )
,('01',1854,'02' )
,('01',1854,'07' )
,('01',1854,'08' )
,('01',1855,'01' )
,('01',1855,'02' )
,('01',1855,'07' )
,('01',1857,'01' )
,('01',1857,'02' )
,('01',1857,'07' )
,('01',1858,'01' )
,('01',1858,'02' )
,('01',1858,'07' )
,('01',1859,'01' )
,('01',1861,'01' )
,('01',1861,'02' )
,('01',1862,'01' )
,('01',1862,'02' )
,('01',1863,'01' )
,('01',1863,'02' )
,('01',1864,'01' )
,('01',1864,'02' )
,('01',1864,'07' )
,('01',1865,'01' )
,('01',1865,'07' )
,('01',1866,'01' )
,('01',1866,'02' )
,('01',1866,'07' )
,('01',1867,'01' )
,('01',1867,'02' )
,('01',1867,'07' )
,('01',1868,'01' )
,('01',1868,'02' )
,('01',1869,'01' )
,('01',1869,'07' )
,('01',1870,'01' )
,('01',1870,'02' )
,('01',1871,'01' )
,('01',1871,'02' )
,('01',1872,'01' )
,('01',1872,'02' )
,('01',1873,'01' )
,('01',1873,'02' )
,('01',1873,'07' )
,('01',1874,'01' )
,('01',1874,'02' )
,('01',1874,'07' )
,('01',1875,'01' )
,('01',1875,'02' )
,('01',1876,'01' )
,('01',1876,'02' )
,('01',1877,'00' )
,('01',1878,'01' )
,('01',1878,'02' )
,('01',1879,'01' )
,('01',1879,'02' )
,('01',1880,'01' )
,('01',1880,'02' )
,('01',1881,'01' )
,('01',1881,'02' )
,('01',1882,'01' )
,('01',1882,'07' )
,('01',1883,'01' )
,('01',1883,'02' )
,('01',1884,'01' )
,('01',1884,'02' )
,('01',1885,'01' )
,('01',1885,'02' )
,('01',1885,'07' )
,('01',1886,'00' )
,('01',1887,'01' )
,('01',1887,'07' )
,('01',1888,'01' )
,('01',1888,'02' )
,('01',1889,'01' )
,('01',1889,'02' )
,('01',1890,'01' )
,('01',1890,'07' )
,('01',1891,'01' )
,('01',1891,'02' )
,('01',1892,'01' )
,('01',1892,'07' )
,('01',1892,'08' )
,('01',1893,'01' )
,('01',1893,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1894,'01' )
,('01',1894,'02' )
,('01',1895,'01' )
,('01',1896,'01' )
,('01',1896,'02' )
,('01',1897,'01' )
,('01',1897,'02' )
,('01',1898,'00' )
,('01',1899,'00' )
,('01',1900,'00' )
,('01',1901,'00' )
,('01',1902,'00' )
,('01',1903,'00' )
,('01',1904,'00' )
,('01',1905,'00' )
,('01',1906,'00' )
,('01',1907,'00' )
,('01',1909,'00' )
,('01',1910,'00' )
,('01',1911,'00' )
,('01',1912,'00' )
,('01',1913,'00' )
,('01',1914,'00' )
,('01',1915,'00' )
,('01',1916,'00' )
,('01',1917,'00' )
,('01',1918,'00' )
,('01',1919,'00' )
,('01',1920,'00' )
,('01',1921,'00' )
,('01',1922,'00' )
,('01',1923,'00' )
,('01',1924,'00' )
,('01',1925,'00' )
,('01',1926,'00' )
,('01',1927,'00' )
,('01',1928,'00' )
,('01',1929,'00' )
,('01',1930,'00' )
,('01',1931,'00' )
,('01',1932,'00' )
,('01',1933,'00' )
,('01',1934,'00' )
,('01',1935,'00' )
,('01',1936,'00' )
,('01',1937,'00' )
,('01',1938,'00' )
,('01',1939,'00' )
,('01',1940,'00' )
,('01',1941,'00' )
,('01',1942,'00' )
,('01',1943,'00' )
,('01',1944,'01' )
,('01',1944,'02' )
,('01',1945,'00' )
,('01',1946,'00' )
,('01',1947,'00' )
,('01',1948,'00' )
,('01',1949,'00' )
,('01',1950,'00' )
,('01',1951,'00' )
,('01',1952,'00' )
,('01',1953,'00' )
,('01',1954,'00' )
,('01',1955,'00' )
,('01',1956,'00' )
,('01',1957,'00' )
,('01',1958,'01' )
,('01',1959,'01' )
,('01',1960,'01' )
,('01',1961,'00' )
,('01',1962,'00' )
,('01',1963,'00' )
,('01',1964,'00' )
,('01',1965,'00' )
,('01',1967,'00' )
,('01',1968,'00' )
,('01',1970,'00' )
,('01',1971,'00' )
,('01',1972,'01' )
,('01',1972,'02' )
,('01',1972,'07' )
,('01',1973,'01' )
,('01',1973,'02' )
,('01',1973,'07' )
,('01',1974,'01' )
,('01',1974,'02' )
,('01',1974,'07' )
,('01',1975,'01' )
,('01',1975,'07' )
,('01',1976,'01' )
,('01',1976,'02' )
,('01',1977,'01' )
,('01',1977,'02' )
,('01',1977,'07' )
,('01',1977,'08' )
,('01',1978,'01' )
,('01',1978,'02' )
,('01',1978,'07' )
,('01',1978,'08' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',1979,'01' )
,('01',1979,'02' )
,('01',1980,'01' )
,('01',1980,'02' )
,('01',1981,'01' )
,('01',1981,'02' )
,('01',1981,'07' )
,('01',1982,'02' )
,('01',1983,'02' )
,('01',1984,'00' )
,('01',1985,'01' )
,('01',1986,'00' )
,('01',1987,'00' )
,('01',1988,'00' )
,('01',1989,'00' )
,('01',1990,'00' )
,('01',1991,'00' )
,('01',1992,'00' )
,('01',1993,'02' )
,('01',1994,'00' )
,('01',1995,'00' )
,('01',1996,'00' )
,('01',1997,'00' )
,('01',1998,'02' )
,('01',1999,'02' )
,('01',2000,'01' )
,('01',2000,'02' )
,('01',2000,'07' )
,('01',2001,'01' )
,('01',2001,'02' )
,('01',2002,'01' )
,('01',2002,'02' )
,('01',2002,'07' )
,('01',2003,'01' )
,('01',2004,'00' )
,('01',2005,'00' )
,('01',2007,'00' )
,('01',2008,'00' )
,('01',2009,'00' )
,('01',2010,'00' )
,('01',2011,'02' )
,('01',2012,'00' )
,('01',2013,'00' )
,('01',2014,'00' )
,('01',2015,'02' )
,('01',2016,'01' )
,('01',2017,'01' )
,('01',2017,'02' )
,('01',2017,'07' )
,('01',2018,'00' )
,('01',2019,'00' )
,('01',2020,'00' )
,('01',2021,'00' )
,('01',2022,'00' )
,('01',2023,'00' )
,('01',2024,'00' )
,('01',2025,'00' )
,('01',2026,'00' )
,('01',2027,'00' )
,('01',2028,'00' )
,('01',2030,'00' )
,('01',2031,'00' )
,('01',2032,'00' )
,('01',2033,'00' )
,('01',2034,'00' )
,('01',2035,'00' )
,('01',2036,'00' )
,('01',2037,'00' )
,('01',2038,'00' )
,('01',2039,'00' )
,('01',2040,'00' )
,('01',2041,'00' )
,('01',2042,'00' )
,('01',2043,'00' )
,('01',2044,'00' )
,('01',2045,'00' )
,('01',2046,'00' )
,('01',2047,'00' )
,('01',2048,'02' )
,('01',2049,'00' )
,('01',2050,'00' )
,('01',2051,'02' )
,('01',2052,'00' )
,('01',2053,'00' )
,('01',2054,'02' )
,('01',2055,'00' )
,('01',2056,'00' )
,('01',2057,'00' )
,('01',2058,'02' )
,('01',2059,'02' )
,('01',2060,'02' )
,('01',2061,'00' )
,('01',2062,'00' )
,('01',2063,'02' )
,('01',2064,'00' )
,('01',2065,'00' )
,('01',2066,'00' )
,('01',2067,'00' )
,('01',2068,'00' )
,('01',2069,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2070,'00' )
,('01',2071,'00' )
,('01',2072,'00' )
,('01',2073,'01' )
,('01',2073,'02' )
,('01',2073,'07' )
,('01',2074,'00' )
,('01',2075,'00' )
,('01',2076,'00' )
,('01',2077,'00' )
,('01',2078,'00' )
,('01',2079,'00' )
,('01',2080,'00' )
,('01',2081,'00' )
,('01',2082,'00' )
,('01',2083,'00' )
,('01',2084,'00' )
,('01',2085,'00' )
,('01',2086,'00' )
,('01',2087,'00' )
,('01',2090,'01' )
,('01',2091,'02' )
,('01',2092,'01' )
,('01',2093,'02' )
,('01',2094,'02' )
,('01',2095,'02' )
,('01',2096,'00' )
,('01',2097,'00' )
,('01',2098,'00' )
,('01',2099,'00' )
,('01',2100,'00' )
,('01',2101,'00' )
,('01',2102,'00' )
,('01',2103,'00' )
,('01',2104,'01' )
,('01',2104,'02' )
,('01',2104,'07' )
,('01',2105,'01' )
,('01',2105,'02' )
,('01',2105,'07' )
,('01',2106,'01' )
,('01',2106,'02' )
,('01',2106,'07' )
,('01',2106,'08' )
,('01',2107,'00' )
,('01',2108,'00' )
,('01',2109,'00' )
,('01',2110,'01' )
,('01',2110,'02' )
,('01',2111,'00' )
,('01',2112,'00' )
,('01',2113,'00' )
,('01',2114,'00' )
,('01',2115,'00' )
,('01',2116,'00' )
,('01',2117,'00' )
,('01',2118,'00' )
,('01',2119,'00' )
,('01',2120,'00' )
,('01',2121,'00' )
,('01',2122,'00' )
,('01',2123,'00' )
,('01',2124,'00' )
,('01',2125,'00' )
,('01',2126,'00' )
,('01',2127,'01' )
,('01',2128,'00' )
,('01',2129,'00' )
,('01',2130,'00' )
,('01',2131,'00' )
,('01',2132,'00' )
,('01',2133,'00' )
,('01',2134,'07' )
,('01',2135,'00' )
,('01',2136,'02' )
,('01',2137,'00' )
,('01',2138,'00' )
,('01',2139,'00' )
,('01',2140,'00' )
,('01',2141,'00' )
,('01',2142,'00' )
,('01',2143,'01' )
,('01',2143,'02' )
,('01',2143,'07' )
,('01',2144,'01' )
,('01',2144,'02' )
,('01',2144,'07' )
,('01',2145,'01' )
,('01',2145,'02' )
,('01',2145,'07' )
,('01',2146,'07' )
,('01',2147,'00' )
,('01',2148,'00' )
,('01',2149,'00' )
,('01',2150,'01' )
,('01',2150,'02' )
,('01',2151,'01' )
,('01',2151,'02' )
,('01',2152,'00' )
,('01',2153,'00' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2154,'00' )
,('01',2155,'00' )
,('01',2156,'00' )
,('01',2157,'00' )
,('01',2158,'00' )
,('01',2159,'00' )
,('01',2160,'00' )
,('01',2161,'00' )
,('01',2162,'00' )
,('01',2163,'00' )
,('01',2164,'00' )
,('01',2165,'00' )
,('01',2166,'00' )
,('01',2167,'00' )
,('01',2168,'00' )
,('01',2169,'00' )
,('01',2170,'00' )
,('01',2171,'00' )
,('01',2172,'00' )
,('01',2173,'00' )
,('01',2174,'00' )
,('01',2175,'00' )
,('01',2176,'01' )
,('01',2177,'00' )
,('01',2179,'00' )
,('01',2180,'00' )
,('01',2181,'00' )
,('01',2182,'01' )
,('01',2183,'01' )
,('01',2183,'02' )
,('01',2183,'07' )
,('01',2184,'01' )
,('01',2184,'02' )
,('01',2184,'07' )
,('01',2185,'00' )
,('01',2186,'00' )
,('01',2187,'00' )
,('01',2188,'00' )
,('01',2189,'00' )
,('01',2190,'00' )
,('01',2191,'00' )
,('01',2192,'00' )
,('01',2193,'00' )
,('01',2194,'00' )
,('01',2195,'00' )
,('01',2196,'00' )
,('01',2197,'00' )
,('01',2198,'00' )
,('01',2199,'01' )
,('01',2199,'02' )
,('01',2199,'07' )
,('01',2200,'01' )
,('01',2201,'01' )
,('01',2202,'02' )
,('01',2203,'02' )
,('01',2204,'02' )
,('01',2205,'02' )
,('01',2206,'02' )
,('01',2207,'02' )
,('01',2208,'02' )
,('01',2209,'02' )
,('01',2210,'00' )
,('01',2211,'00' )
,('01',2212,'00' )
,('01',2213,'01' )
,('01',2214,'00' )
,('01',2215,'01' )
,('01',2216,'01' )
,('01',2217,'01' )
,('01',2218,'00' )
,('01',2219,'01' )
,('01',2220,'01' )
,('01',2221,'00' )
,('01',2222,'02' )
,('01',2223,'01' )
,('01',2223,'02' )
,('01',2224,'01' )
,('01',2225,'01' )
,('01',2226,'00' )
,('01',2227,'00' )
,('01',2228,'00' )
,('01',2229,'00' )
,('01',2230,'00' )
,('01',2231,'00' )
,('01',2232,'01' )
,('01',2233,'01' )
,('01',2233,'02' )
,('01',2233,'07' )
,('01',2234,'01' )
,('01',2234,'02' )
,('01',2234,'07' )
,('01',2235,'00' )
,('01',2236,'00' )
,('01',2237,'00' )
,('01',2238,'01' )
,('01',2238,'02' )
,('01',2238,'07' )
,('01',2239,'01' )
,('01',2239,'02' )
,('01',2239,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2240,'00' )
,('01',2241,'00' )
,('01',2242,'00' )
,('01',2243,'00' )
,('01',2244,'00' )
,('01',2245,'00' )
,('01',2247,'01' )
,('01',2248,'00' )
,('01',2249,'00' )
,('01',2250,'00' )
,('01',2251,'00' )
,('01',2252,'00' )
,('01',2253,'00' )
,('01',2254,'00' )
,('01',2255,'02' )
,('01',2256,'00' )
,('01',2258,'00' )
,('01',2259,'00' )
,('01',2260,'00' )
,('01',2261,'00' )
,('01',2262,'00' )
,('01',2263,'01' )
,('01',2263,'02' )
,('01',2263,'07' )
,('01',2264,'01' )
,('01',2264,'02' )
,('01',2265,'01' )
,('01',2265,'07' )
,('01',2267,'01' )
,('01',2267,'02' )
,('01',2267,'07' )
,('01',2267,'08' )
,('01',2268,'01' )
,('01',2268,'02' )
,('01',2268,'07' )
,('01',2269,'01' )
,('01',2269,'02' )
,('01',2269,'07' )
,('01',2270,'07' )
,('01',2270,'08' )
,('01',2271,'01' )
,('01',2271,'02' )
,('01',2271,'07' )
,('01',2272,'01' )
,('01',2272,'02' )
,('01',2272,'07' )
,('01',2273,'00' )
,('01',2274,'01' )
,('01',2274,'02' )
,('01',2274,'07' )
,('01',2275,'01' )
,('01',2275,'02' )
,('01',2275,'07' )
,('01',2276,'01' )
,('01',2276,'02' )
,('01',2276,'07' )
,('01',2276,'08' )
,('01',2277,'01' )
,('01',2278,'01' )
,('01',2278,'02' )
,('01',2278,'07' )
,('01',2278,'08' )
,('01',2279,'01' )
,('01',2280,'01' )
,('01',2281,'07' )
,('01',2281,'08' )
,('01',2282,'00' )
,('01',2283,'01' )
,('01',2283,'07' )
,('01',2283,'08' )
,('01',2284,'00' )
,('01',2285,'01' )
,('01',2285,'07' )
,('01',2286,'00' )
,('01',2287,'00' )
,('01',2288,'00' )
,('01',2289,'00' )
,('01',2290,'01' )
,('01',2290,'02' )
,('01',2290,'07' )
,('01',2291,'01' )
,('01',2291,'02' )
,('01',2291,'07' )
,('01',2292,'01' )
,('01',2293,'02' )
,('01',2293,'07' )
,('01',2293,'08' )
,('01',2294,'01' )
,('01',2294,'02' )
,('01',2294,'07' )
,('01',2294,'08' )
,('01',2295,'01' )
,('01',2295,'02' )
,('01',2295,'07' )
,('01',2295,'08' )
,('01',2296,'00' )
,('01',2297,'01' )
,('01',2297,'02' )
,('01',2297,'07' )
,('01',2297,'08' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2298,'02' )
,('01',2298,'07' )
,('01',2298,'08' )
,('01',2299,'01' )
,('01',2299,'02' )
,('01',2299,'07' )
,('01',2299,'08' )
,('01',2300,'00' )
,('01',2301,'00' )
,('01',2302,'00' )
,('01',2303,'01' )
,('01',2303,'02' )
,('01',2303,'07' )
,('01',2303,'08' )
,('01',2304,'01' )
,('01',2304,'02' )
,('01',2304,'07' )
,('01',2304,'08' )
,('01',2305,'01' )
,('01',2305,'07' )
,('01',2305,'08' )
,('01',2306,'01' )
,('01',2306,'02' )
,('01',2306,'07' )
,('01',2307,'00' )
,('01',2308,'07' )
,('01',2309,'07' )
,('01',2310,'07' )
,('01',2311,'01' )
,('01',2311,'02' )
,('01',2311,'07' )
,('01',2312,'01' )
,('01',2313,'01' )
,('01',2314,'01' )
,('01',2315,'01' )
,('01',2316,'01' )
,('01',2317,'01' )
,('01',2317,'07' )
,('01',2317,'08' )
,('01',2318,'01' )
,('01',2318,'07' )
,('01',2320,'01' )
,('01',2320,'02' )
,('01',2320,'07' )
,('01',2320,'08' )
,('01',2321,'01' )
,('01',2321,'07' )
,('01',2322,'01' )
,('01',2322,'07' )
,('01',2323,'01' )
,('01',2323,'07' )
,('01',2324,'01' )
,('01',2325,'01' )
,('01',2325,'02' )
,('01',2325,'07' )
,('01',2325,'08' )
,('01',2326,'01' )
,('01',2326,'02' )
,('01',2326,'07' )
,('01',2326,'08' )
,('01',2327,'01' )
,('01',2327,'02' )
,('01',2327,'07' )
,('01',2327,'08' )
,('01',2328,'01' )
,('01',2328,'02' )
,('01',2328,'07' )
,('01',2328,'08' )
,('01',2329,'01' )
,('01',2329,'02' )
,('01',2329,'07' )
,('01',2329,'08' )
,('01',2330,'00' )
,('01',2331,'01' )
,('01',2332,'00' )
,('01',2333,'00' )
,('01',2334,'00' )
,('01',2335,'00' )
,('01',2336,'00' )
,('01',2337,'00' )
,('01',2338,'01' )
,('01',2339,'00' )
,('01',2340,'00' )
,('01',2341,'00' )
,('01',2342,'00' )
,('01',2343,'00' )
,('01',2344,'01' )
,('01',2345,'00' )
,('01',2346,'00' )
,('01',2347,'00' )
,('01',2348,'00' )
,('01',2349,'01' )
,('01',2350,'01' )
,('01',2350,'02' )
,('01',2350,'07' )
,('01',2350,'08' )
,('01',2351,'01' )
,('01',2351,'02' )
,('01',2351,'07' )
,('01',2351,'08' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2352,'01' )
,('01',2353,'01' )
,('01',2353,'02' )
,('01',2353,'07' )
,('01',2353,'08' )
,('01',2354,'00' )
,('01',2356,'00' )
,('01',2358,'00' )
,('01',2360,'00' )
,('01',2361,'01' )
,('01',2362,'00' )
,('01',2363,'00' )
,('01',2364,'00' )
,('01',2365,'00' )
,('01',2366,'00' )
,('01',2367,'00' )
,('01',2368,'00' )
,('01',2369,'00' )
,('01',2370,'00' )
,('01',2371,'00' )
,('01',2372,'00' )
,('01',2373,'00' )
,('01',2374,'00' )
,('01',2375,'00' )
,('01',2377,'01' )
,('01',2377,'02' )
,('01',2377,'07' )
,('01',2377,'08' )
,('01',2378,'01' )
,('01',2378,'07' )
,('01',2378,'08' )
,('01',2379,'01' )
,('01',2379,'02' )
,('01',2379,'07' )
,('01',2379,'08' )
,('01',2380,'01' )
,('01',2380,'02' )
,('01',2380,'07' )
,('01',2380,'08' )
,('01',2381,'01' )
,('01',2381,'07' )
,('01',2381,'08' )
,('01',2382,'01' )
,('01',2382,'02' )
,('01',2382,'07' )
,('01',2383,'07' )
,('01',2384,'02' )
,('01',2384,'07' )
,('01',2385,'01' )
,('01',2385,'02' )
,('01',2385,'07' )
,('01',2386,'01' )
,('01',2386,'07' )
,('01',2387,'HH' )
,('01',2388,'HH' )
,('01',2389,'01' )
,('01',2389,'07' )
,('01',2389,'08' )
,('01',2390,'01' )
,('01',2390,'07' )
,('01',2390,'08' )
,('01',2391,'01' )
,('01',2391,'07' )
,('01',2391,'08' )
,('01',2394,'01' )
,('01',2394,'07' )
,('01',2395,'01' )
,('01',2396,'01' )
,('01',2396,'02' )
,('01',2396,'07' )
,('01',2396,'08' )
,('01',2397,'01' )
,('01',2397,'07' )
,('01',2398,'01' )
,('01',2398,'07' )
,('01',2399,'01' )
,('01',2399,'07' )
,('01',2399,'08' )
,('01',2400,'01' )
,('01',2400,'07' )
,('01',2400,'08' )
,('01',2403,'01' )
,('01',2403,'02' )
,('01',2403,'07' )
,('01',2403,'08' )
,('01',2404,'01' )
,('01',2404,'02' )
,('01',2404,'07' )
,('01',2404,'08' )
,('01',2405,'01' )
,('01',2405,'07' )
,('01',2405,'08' )
,('01',2406,'01' )
,('01',2406,'02' )
,('01',2406,'07' )
,('01',2406,'08' )
,('01',2407,'01' )
,('01',2407,'02' )
,('01',2407,'07' )
,('01',2407,'08' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2408,'01' )
,('01',2409,'01' )
,('01',2409,'02' )
,('01',2409,'07' )
,('01',2409,'08' )
,('01',2410,'01' )
,('01',2410,'07' )
,('01',2410,'08' )
,('01',2411,'01' )
,('01',2411,'07' )
,('01',2411,'08' )
,('01',2412,'01' )
,('01',2412,'07' )
,('01',2412,'08' )
,('01',2413,'01' )
,('01',2413,'02' )
,('01',2413,'07' )
,('01',2414,'01' )
,('01',2414,'02' )
,('01',2414,'07' )
,('01',2415,'01' )
,('01',2415,'07' )
,('01',2415,'08' )
,('01',2416,'01' )
,('01',2416,'02' )
,('01',2416,'07' )
,('01',2417,'01' )
,('01',2417,'02' )
,('01',2417,'07' )
,('01',2418,'01' )
,('01',2418,'07' )
,('01',2418,'08' )
,('01',2419,'01' )
,('01',2419,'07' )
,('01',2419,'08' )
,('01',2420,'01' )
,('01',2420,'02' )
,('01',2420,'07' )
,('01',2421,'02' )
,('01',2421,'07' )
,('01',2422,'01' )
,('01',2422,'02' )
,('01',2422,'07' )
,('01',2423,'01' )
,('01',2423,'07' )
,('01',2424,'01' )
,('01',2424,'07' )
,('01',2424,'08' )
,('01',2425,'00' )
,('01',2426,'01' )
,('01',2426,'02' )
,('01',2426,'07' )
,('01',2426,'08' )
,('01',2427,'01' )
,('01',2428,'01' )
,('01',2428,'07' )
,('01',2428,'08' )
,('01',2429,'01' )
,('01',2429,'07' )
,('01',2429,'08' )
,('01',2430,'01' )
,('01',2430,'02' )
,('01',2430,'07' )
,('01',2430,'08' )
,('01',2431,'01' )
,('01',2431,'02' )
,('01',2431,'07' )
,('01',2432,'01' )
,('01',2432,'07' )
,('01',2432,'08' )
,('01',2433,'01' )
,('01',2433,'07' )
,('01',2433,'08' )
,('01',2434,'01' )
,('01',2434,'02' )
,('01',2434,'07' )
,('01',2435,'01' )
,('01',2435,'07' )
,('01',2435,'08' )
,('01',2436,'01' )
,('01',2436,'02' )
,('01',2436,'07' )
,('01',2437,'01' )
,('01',2437,'07' )
,('01',2437,'08' )
,('01',2438,'01' )
,('01',2438,'02' )
,('01',2438,'07' )
,('01',2438,'08' )
,('01',2439,'01' )
,('01',2439,'07' )
,('01',2439,'08' )
,('01',2440,'01' )
,('01',2440,'02' )
,('01',2440,'07' )
,('01',2441,'01' )
,('01',2441,'02' )
,('01',2441,'07' )
,('01',2442,'01' )
,('01',2442,'02' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2442,'07' )
,('01',2442,'08' )
,('01',2443,'01' )
,('01',2443,'02' )
,('01',2443,'07' )
,('01',2443,'08' )
,('01',2444,'01' )
,('01',2444,'02' )
,('01',2444,'07' )
,('01',2444,'08' )
,('01',2445,'02' )
,('01',2446,'01' )
,('01',2446,'02' )
,('01',2447,'01' )
,('01',2447,'02' )
,('01',2448,'01' )
,('01',2448,'07' )
,('01',2448,'08' )
,('01',2449,'01' )
,('01',2449,'07' )
,('01',2449,'08' )
,('01',2450,'01' )
,('01',2450,'07' )
,('01',2450,'08' )
,('01',2451,'01' )
,('01',2451,'02' )
,('01',2451,'07' )
,('01',2451,'08' )
,('01',2452,'01' )
,('01',2452,'02' )
,('01',2452,'07' )
,('01',2452,'08' )
,('01',2453,'01' )
,('01',2453,'02' )
,('01',2453,'07' )
,('01',2453,'08' )
,('01',2454,'01' )
,('01',2454,'02' )
,('01',2454,'07' )
,('01',2454,'08' )
,('01',2456,'01' )
,('01',2456,'02' )
,('01',2456,'07' )
,('01',2456,'08' )
,('01',2457,'01' )
,('01',2457,'02' )
,('01',2457,'07' )
,('01',2458,'01' )
,('01',2458,'02' )
,('01',2458,'07' )
,('01',2458,'08' )
,('01',2459,'02' )
,('01',2459,'07' )
,('01',2460,'01' )
,('01',2460,'02' )
,('01',2460,'07' )
,('01',2461,'01' )
,('01',2461,'02' )
,('01',2462,'01' )
,('01',2462,'02' )
,('01',2462,'07' )
,('01',2463,'01' )
,('01',2463,'02' )
,('01',2464,'01' )
,('01',2465,'01' )
,('01',2465,'02' )
,('01',2467,'01' )
,('01',2467,'07' )
,('01',2467,'08' )
,('01',2468,'01' )
,('01',2468,'02' )
,('01',2468,'07' )
,('01',2468,'08' )
,('01',2469,'01' )
,('01',2470,'01' )
,('01',2470,'02' )
,('01',2470,'07' )
,('01',2470,'08' )
,('01',2471,'01' )
,('01',2471,'02' )
,('01',2471,'07' )
,('01',2471,'08' )
,('01',2472,'00' )
,('01',2473,'01' )
,('01',2473,'02' )
,('01',2473,'07' )
,('01',2473,'08' )
,('01',2474,'01' )
,('01',2474,'02' )
,('01',2474,'07' )
,('01',2474,'08' )
,('01',2475,'01' )
,('01',2475,'02' )
,('01',2476,'01' )
,('01',2476,'02' )
,('01',2477,'01' )
,('01',2477,'07' )
,('01',2477,'08' )
,('01',2478,'01' )
,('01',2478,'07' )
go
INSERT INTO dbo.ARUPR4_01 VALUES
('01',2478,'08' )
,('01',2479,'01' )
,('01',2479,'02' )
,('01',2479,'07' )
,('01',2479,'08' )
,('01',2480,'01' )
,('01',2480,'02' )
,('01',2480,'07' )
,('01',2480,'08' )
,('01',2481,'01' )
,('01',2481,'02' )
,('01',2481,'07' )
,('01',2481,'08' )
,('01',2482,'01' )
,('01',2482,'02' )
,('01',2482,'07' )
,('01',2482,'08' )
,('01',2483,'01' )
,('01',2483,'02' )
,('01',2483,'07' )
,('01',2484,'01' )
,('01',2484,'02' )
,('01',2485,'01' )
,('01',2485,'02' )
,('01',2486,'01' )
,('01',2486,'02' )
,('01',2487,'01' )
,('01',2487,'02' )
,('01',2488,'01' )
,('01',2489,'01' )
,('01',2489,'02' )
,('01',2490,'01' )
,('01',2491,'01' )
,('01',2491,'02' )
,('01',2491,'07' )
,('01',2491,'08' )
,('01',2492,'01' )
,('01',2493,'01' )
,('01',2493,'07' )
,('01',2493,'08' )
,('01',2494,'01' )
,('01',2494,'02' )
,('01',2494,'07' )
,('01',2494,'08' )
,('01',2495,'01' )
,('01',2495,'07' )
,('01',2495,'08' )
,('01',2496,'01' )
,('01',2496,'07' )
,('01',2496,'08' )
,('01',2498,'01' )
,('01',2498,'02' )
,('01',2499,'01' )
,('01',2499,'02' )
,('01',2500,'01' )
,('01',2500,'02' )
,('01',2501,'01' )
,('01',2501,'02' )
,('01',2501,'07' )
,('01',2502,'01' )
,('01',2503,'01' )
,('01',2503,'07' )
,('01',2503,'08' )
,('01',2504,'01' )
,('01',2504,'02' )
,('01',2504,'07' )
,('01',2504,'08' )
,('01',2505,'01' )
,('01',2505,'02' )
,('01',2505,'07' )
,('01',2506,'01' )
,('01',2506,'02' )
,('01',2506,'07' )
,('01',2507,'01' )
,('01',2507,'07' )
,('01',2508,'01' )
,('01',2508,'02' )
,('01',2508,'07' )
,('01',2509,'01' )
,('01',2509,'07' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ARUPR5', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ARUREG', GetDate())
INSERT INTO dbo.ARUREG_01 VALUES
('01',1,'SEDE VITTORIO VENETO','SEDE VITTORIO V','TV00937',NULL,NULL,'XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',2,'SEDE CONEGLIANO - M. PIOVESANA','SEDE CO - MP','TV12660',NULL,NULL,'XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',3,'SEDE CONEGLIANO - SAN GIUSEPPE','SEDE CO - SG','TV13109',NULL,'2017-06-16','XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',4,'SEDE SACILE FONTANAFREDDA','SEDE SACILE','PN4104',NULL,NULL,'XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',41,'SACILE FONTANAFREDDA-PORDENONE','S.F.- PORDENONE','PN4105',NULL,'2017-08-30','XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',42,'SACILE FONTANAFREDDA-MANIAGO','S.F. MANIAGO','PN4106',NULL,NULL,'XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',43,'SACILE FONTANAFREDDA-TOLMEZZO','S.F. TOLMEZZO','UD8129',NULL,NULL,'XX','','','XX','XX','','','','',0,'01',NULL,NULL )
,('01',9999,'REGISTRO FINTO','REGISTRO FINTO','',NULL,NULL,'','','','','','','','','',0,'01',NULL,NULL )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBADC', GetDate())
INSERT INTO dbo.ATBADC_01 VALUES
('01','DC','2DDTCG',0,'DDT CESSIONE GRATUITA - NO MG','DDT CESSIONE GR','CESSIONE GRATUITA','2',0,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'','',NULL,'','' )
,('01','DC','2DDTCL',0,'DDT CONTO LAVORO','DDT CONTO LAVOR','CONTO LAVORAZIONE','2',0,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTCO',0,'DDT CONFERIMENTO CONEGLIANO','DDT CONF. CONE','CONFERIMENTO','2',0,2,0,0,21,'NMDDT058','2FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTCR',0,'DDT CONTO RIPARAZIONE - NO MG','DDT C/RIPARAZ.','CONTO RIPARAZIONE','2',0,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'','' )
,('01','DC','2DDTOM',0,'DDT OMAGGIO CONEGLIANO','DDT OMAGGI CONE','OMAGGI','2',0,2,0,2,21,'NMDDT058','2FATTURA','N','N',0,'',2,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTRE',0,'DDT RESO C/RIP. - NO MG','DDT RESO','RESO','2',0,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTRESC',0,'DDT DI RESO CLIENTE CONEGLIANO','DDT RESO CO','RESO CLIENTE','2',0,2,0,0,0,'NMDDT058','2NOTA','N','S',0,'',0,'N','','','',1,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTRF',0,'DDT DI VENDITA CON RIC. FISC.','DDT VEND. RF CO','VENDITA','2',0,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTTR',0,'DDT TRASFERIMENTO','DDT TRASF. CONE','TRASFERIMENTO','2',0,2,1,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'N','','','N','S','S','S','','','','','','','','','','','',0,0,'','',NULL,'','' )
,('01','DC','2DDTTRS',0,'DDT TRASFERIMENTO CONEGLIANO','DDT TRASF. CONE','TRASFERIMENTO','2',162,2,0,0,21,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DDTVE',0,'DDT VENDITA CONEGLIANO','DDT VEND. CONE','VENDITA','2',0,2,0,0,21,'NMDDT058','2FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOCO',0,'DOCO CONFERIMENTO CONEGLIANO','DOCO CONF. CONE','CONFERIMENTO','1',0,2,0,0,11,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOLAV',0,'DOCO C/LAVORAZIONE CONEGLIANO','DOCO LAV. CONE','C/LAVORAZIONE','1',0,2,0,0,11,'NMDCN058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOTR',0,'DOCO TRASFER.DA CONE. VINIFIC.','DOCO TRAS. CONE','TRASFERIMENTO INTERNO','1',162,2,0,2,11,'NMDCN058','','N','N',0,'',1,'N','','12','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOTRC',0,'DOCO TRASFERIMENTO DA CONE','DOCO TRAS. CONE','TRASFERIMENTO INTERNO','1',162,2,0,2,11,'NMDCN058','','N','N',0,'',1,'N','','','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOVE',0,'DOCO VENDITA CONEGLIANO','DOCO VEND. CONE','VENDITA','1',0,2,0,0,11,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2DOCOVE3',0,'DOCO VENDITA CONEGLIANO A S.G.','DOCO VEND. S.G.','VENDITA','1',0,2,13,0,11,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'N','','C','S','S','S','S','','','','','','','','','C','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVCG',0,'MVV CESSIONE GRAT. CONEGLIANO','MVV CESS.GRAT.','CESSIONE GRATUITA','5',0,2,0,0,16,'NMMVVXXX','','N','N',0,'',0,'N','','15','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVCO',0,'MVV CONFERIMENTO CONEGLIANO','MVV CONF. CONE','CONFERIMENTO','5',0,2,0,0,16,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','15','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVLAV',0,'MVV C/LAVORAZIONE CONEGLIANO','MVV LAV. CONE','C/LAVORAZIONE','5',0,2,0,0,16,'NMMVVXXX','','N','N',0,'',0,'N','','15','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVTR',0,'MVV TRASFER.DA CONE. VINIFIC.','MVV TRAS. CONE','TRASFERIMENTO INTERNO','5',162,2,0,2,16,'NMMVVXXX','','N','N',0,'',1,'N','','15','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVTRC',0,'MVV TRASFERIMENTO DA CONE.','MVV TRAS. CONE','TRASFERIMENTO INTERNO','5',162,2,0,2,16,'NMMVVXXX','','N','N',0,'',1,'N','','15','',0,'','','C','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVVE',0,'MVV VENDITA CONEGLIANO','MVV VEND. CONE','VENDITA','5',0,2,0,0,16,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','15','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','2MVVVE3',0,'MVV VENDITA CONEGLIANO A S.G.','MVV VEND. S.G.','VENDITA','5',0,2,13,0,16,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','15','',0,'N','','C','S','S','S','S','','','','','','','','','C','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DDTCG',0,'DDT CESSIONE GRATUITA','DDT CESSIONE GR','CESSIONE GRATUITA','2',0,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTCL',0,'DDT A CONTO LAVORO','DDT CONTO LAVOR','CONTO LAVORAZIONE','2',0,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTCO',0,'DDT CONFERIMENTO S.G.','DDT CONF. S.G.','CONFERIMENTO','2',0,3,0,0,22,'NMDDT058','3FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTCR',0,'DDT CONTO RIPARAZIONE - NO MG','DDT C/RIPARAZ.','CONTO RIPARAZIONE','2',0,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DDTINT',0,'DDT TRASF. INTERNO S.GIUSEPPE','DDT TRASF.IN.SG','TRASFERIMENTO INTERNO','2',162,13,0,3,23,'NMDDT058','','N','N',0,'',4,'N','','','',0,'','','','S','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTOM',0,'DDT OMAGGIO SAN GIUSEPPE','DDT OMAGGI S.G.','OMAGGI','2',0,3,0,2,22,'NMDDT058','3FATTURA','N','N',0,'',2,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTPRE',0,'DDT PRESTITO D''USO    - NO MG','DDT C/PRES. USO','PRESTITO D''USO','2',0,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DDTRCL',0,'DDT RESO CONTO LAVORO S.G.','DDT RESO CL SG','RESO CONTO LAVORO','2',0,13,0,0,22,'NMDDT058','3FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTRCLS',0,'DDT RESO C/L SECCO S.G.','DDT RESO CL SG','RESO MATERIALE NON LAVORATO','2',0,13,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DDTRE',0,'DDT RESO C/RIP. - NO MG','DDT RESO','RESO','2',0,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DDTTRS',0,'DDT TRASFERIMENTO S.GIUSEPPE','DDT TRASF. SG','TRASFERIMENTO','2',162,3,0,0,22,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','S','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DDTVE',0,'DDT VENDITA CONEGLIANO','DDT VEND. CONE','VENDITA','2',0,3,0,0,22,'NMDDT058','3FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'N','',NULL,'N','' )
,('01','DC','3DOCOTR',0,'DOCO TRASFER.DA S. GIUSEPPE','DOCO TRASF.S.G.','TRASFERIMENTO INTERNO','1',162,3,0,2,11,'NMDCN058','','N','N',0,'',1,'N','','','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3DOCOVE',0,'DOCO VENDITA S. GIUSEPPE','DOCO VEND. S.G.','VENDITA','1',0,3,0,0,11,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3MVVTR',0,'MVV TRASFER.DA S. GIUSEPPE','MVV TRASF.S.G.','TRASFERIMENTO INTERNO','5',162,3,0,2,17,'NMMVVXXX','','N','N',0,'',1,'N','','31','',0,'','','C','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','3MVVVE',0,'MVV VENDITA S. GIUSEPPE','MVV VEND. S.G.','VENDITA','5',0,3,0,0,17,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','31','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','41DDTRPN',0,'DDT TRASFERIMENTO DA PORDENONE','DDT RESO DA PN','TRASFERIMENTO','2',162,41,4,3,25,'NMDDT058','','N','N',0,'',5,'N','','57','',2,'N','','','N','S','S','','','','','','','','','','M','','',0,3,'S','',NULL,'N','' )
,('01','DC','41MVVRPN',0,'MVV TRASFERIMENTO DA PORDENONE','MVV TR.DA PN','TRASFERIMENTO','5',162,41,4,3,19,'NMMVVXXX','','N','N',0,'',5,'N','','','',2,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTCRIP',0,'DDT CONTO RIPARAZIONE','DDT C.RIPARAZ.','CONTO RIPARAZIONE','2',0,4,0,1,24,'NMDDT058','','N','N',0,'',0,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTMA',0,'DDT VENDITA MANIAGO FT.DIFF.','DDT VEND.FD MA','VENDITA','2',0,42,0,3,26,'NMDDT058','4FATTURA','N','N',0,'',4,'N','','82','',1,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTPN',0,'DDT VENDITA PORDENONE FT.DIFF.','DDT VEND.FD PN','VENDITA','2',0,41,0,3,25,'NMDDT058','4FATTURA','N','N',0,'',4,'N','','82','',1,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTRESO',0,'DDT RESO A FORNITORE','DDT RESO','RESO','2',0,4,0,1,24,'NMDDT058','','N','N',0,'',0,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTTO',0,'DDT VENDITA TOLMEZZO FT.DIFF','DDT VEND.FD TO','VENDITA','2',0,43,0,3,27,'NMDDT058','4FATTURA','N','N',0,'',4,'N','','82','',1,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTTR',0,'DDT TRASFERIMENTO','DDT TRAS.','TRASFERIMENTO','2',162,4,0,1,24,'NMDDT058','','N','N',0,'',5,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTTRCL',0,'DDT TRASFERIMENTO CONTO LAVORO','DDT TR.C.L.','TRASFERIMENTO CONTO LAVORO','2',164,4,0,1,24,'NMDDT058','','N','N',0,'',0,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTTRMA',0,'DDT TRASFERIMENTO A MANIAGO','DDT VEND.FD SA','TRASFERIMENTO','2',162,4,42,1,24,'NMDDT058','','N','N',0,'',5,'N','','57','',2,'N','','','N','S','S','','','','','','','','','','M','','',0,4,'S','',NULL,'N','' )
,('01','DC','4DDTTRPN',0,'DDT TRASFERIMENTO A PORDENONE','DDT VEND.FD SA','TRASFERIMENTO','2',162,4,41,1,24,'NMDDT058','','N','N',0,'',5,'N','','57','',2,'N','','','N','S','S','','','','','','','','','','M','','',0,3,'S','',NULL,'N','' )
,('01','DC','4DDTTRTO',0,'DDT TRASFERIMENTO A TOLMEZZO','DDT VEND.FD SA','TRASFERIMENTO','2',162,4,43,1,24,'NMDDT058','','N','N',0,'',5,'N','','57','',2,'N','','','N','S','S','','','','','','','','','','M','','',0,5,'S','',NULL,'N','' )
,('01','DC','4DDTVEFD',0,'DDT VENDITA SACILE FATT.DIFF.','DDT VEND.FD SA','VENDITA','2',0,4,0,0,24,'NMDDT058','4FATTURA','N','N',0,'',0,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DDTVEFI',0,'DDT VENDITA SACILE FATT.IMM.','DDT VEND.FI SA','VENDITA','2',0,4,0,0,24,'NMDDT058','4FATTIMM','N','N',0,'',0,'N','','57','',2,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DOCODIF',0,'DOCO VENDITA SACILE FONT.DDA','DOCO VEN.SA.FO.','VENDITA','1',0,4,0,0,13,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DOCTRMA',0,'DOCOTRASFERIMENTO A MANIAGO','DOCO TR.MANIAGO','TRASFERIMENTO','1',162,4,42,1,13,'NMMVVXXX','','N','N',0,'',5,'N','','','',2,'S','','C','N','S','S','','','','','','','','','','M','','',0,4,'S','',NULL,'N','' )
,('01','DC','4DOCTRPN',0,'DOCOTRASFERIMENTO A PORDENONE','DOCO TR.PN','TRASFERIMENTO','1',162,4,41,1,13,'NMMVVXXX','','N','N',0,'',5,'N','','','',2,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4DOCTRTO',0,'DOCOTRASFERIMENTO A TOLMEZZO','DOCO TR.TOLMEZZ','TRASFERIMENTO','1',162,4,43,2,13,'NMMVVXXX','','N','N',0,'',2,'N','','','',2,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVCO',0,'MVV CONFERIMENTO SACILE FONTAN','MVV CONF. S.F.','CONFERIMENTO','5',0,4,0,0,18,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVTRC',0,'MVV TRASFER. DA S.F. COMM.','MVV TRAS. S.F.','TRASFERIMENTO INTERNO','5',162,4,0,2,18,'NMMVVXXX','','N','N',0,'',1,'N','','','',0,'','','C','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVTRCL',0,'MVV TRASFER. CONTO LAVORO','MVV TRAS. C.L.','TRASFERIMENTO IN CONTO LAVORO','5',164,4,0,0,18,'NMMVVXXX','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVTRMA',0,'MVV TRASFERIMENTO A MANIAGOED','MVV TR. MANIAGO','TRASFERIMENTO','5',162,4,42,1,18,'NMMVVXXX','','N','N',0,'',5,'N','','57','',1,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVTRPN',0,'MVV TRASFERIMENTO A PORDENONE','MVV TR. PN','TRASFERIMENTO','5',162,4,41,1,18,'NMMVVXXX','','N','N',0,'',5,'N','','','',2,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVTRTO',0,'MVV TRASFERIMENTO A MANIAGOED','MVV TR. MANIAGO','TRASFERIMENTO','5',162,4,43,2,18,'NMMVVXXX','','N','N',0,'',2,'N','','57','',1,'S','','C','N','S','S','','','','','','','','','','M','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVVE',0,'MVV VENDITA SACILE FONTANAFRED','MVV VEND. S.F.','VENDITA','5',0,4,0,0,18,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVVESD',0,'MVV VENDITA SACILE RIVENDITE','MVV VEND.SF RIV','VENDITA','5',0,4,0,0,18,'NMMVVXXX','4FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','4MVVVESI',0,'MVV VENDITA SACILE RIV. IMM.','MVV VEND.S R IM','VENDITA','5',0,4,0,0,18,'NMMVVXXX','4FATTIMM','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTCG',0,'DDT CESSIONE GRATUITA','DDT CESSIONE GR','CESSIONE GRATUITA','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTCL',0,'DDT CONTO LAVORO','DDT CONTO LAVOR','CONTO LAVORAZIONE','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTCR',0,'DDT CONTO RIPARAZIONE - NO MG','DDT C/RIPARAZ.','CONTO RIPARAZIONE','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTOM',0,'DDT OMAGGIO VITTORIO VENETO','DDT OMAGGI VITT','OMAGGI','2',0,1,0,2,20,'NMDDT058','FATTURA','N','N',0,'',2,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTRE',0,'DDT RESO C/RIP. - NO MG','DDT RESO','RESO','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTRESOC',0,'DDT DI RESO CLIENTE V.VENETO','DDT RESO V.VEN.','RESO CLIENTE','2',0,1,0,0,0,'NMDDT058','NOTA','N','S',0,'',0,'N','','','',1,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTRF',0,'DDT DI VENDITA CON RIC. FISC.','DDT VEND. RF CO','VENDITA','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTTRS',0,'DDT TRASFERIMENTO VITTORIO V.','DDT TRASF. v.v.','TRASFERIMENTO','2',162,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTVE',0,'DDT VENDITA VITTORIO VENETO','DDT VEND. V.V.','VENDITA','2',0,1,0,0,20,'NMDDT058','FATTURA','N','N',0,'',0,'N','','','',0,'','','','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DDTVI',0,'DDT C/VISIONE','DDT CESSIONE GR','CONTO VISIONE','2',0,1,0,0,20,'NMDDT058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOCO',0,'DOCO CONFERIMENTO VITTORIO VTO','DOCO CONF. V.V.','CONFERIMENTO','1',0,1,0,0,10,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOLAV',0,'DOCO C/LAVORAZIONE VITTORIO V.','DOCO LAV. V.V.','C/LAVORAZIONE','1',0,1,0,0,10,'NMDCN058','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOTR',0,'DOCO TRASFER. DA V.V. VINIFIC.','DOCO TRAS. V.V.','TRASFERIMENTO INTERNO','1',162,1,0,2,10,'NMDCN058','','N','N',0,'',1,'N','','03','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOTRC',0,'DOCO TRASFER. DA V.V. COMM.','DOCO TRAS. V.V.','TRASFERIMENTO INTERNO','1',162,1,0,2,10,'NMDCN058','','N','N',0,'',1,'N','','','',0,'','','C','S','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOVE',0,'DOCO VENDITA VITTORIO VENETO','DOCO VEND. V.V.','VENDITA','1',0,1,0,0,10,'NMDCN058','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','S','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','DOCOVE3',0,'DOCO VENDITA VITTORIO V. A S.G','DOCO VEND.VV SG','VENDITA','1',0,1,13,0,10,'NMDCN058','FATTURA','N','N',0,'',0,'N','','02','',0,'N','','C','S','S','S','S','','','','','','','','','C','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVCO',0,'MVV CONFERIMENTO VITTORIO VTO','MVV CONF. V.V.','CONFERIMENTO','5',0,1,0,0,15,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVLAV',0,'MVV C/LAVORAZIONE VITTORIO V.','MVV LAV. V.V.TO','C/LAVORAZIONE','5',0,1,0,0,15,'NMMVVXXX','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVRSLAV',0,'MVV RESO C/LAV.   VITTORIO V.','MVV LAV. V.V.TO','RESO DA C/LAVORAZIONE','5',0,1,0,0,15,'NMMVVXXX','','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVTRC',0,'MVV TRASFERIMENTO DA VITT. VTO','MVV TRAS. V.V.','TRASFERIMENTO INTERNO','5',162,1,0,2,15,'NMMVVXXX','','N','N',0,'',1,'N','','','',0,'','','C','S','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVVE',0,'MVV VENDITA VITTORIO VENETO','MVV VEND. V.V.','VENDITA','5',0,1,0,0,15,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'','','C','N','S','S','','','','','','','','','','','','',0,0,'S','',NULL,'N','' )
,('01','DC','MVVVE3',0,'MVV VENDITA VITTORIO V. A S.G','MVV VEND.VV SG','VENDITA','5',0,1,13,0,15,'NMMVVXXX','FATTURA','N','N',0,'',0,'N','','','',0,'N','','C','S','S','S','S','','','','','','','','','C','','',0,0,'S','',NULL,'N','' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBADF', GetDate())
INSERT INTO dbo.ATBADF_01 VALUES
('01','DF','1',0,'RICEZIONE MERCE IN CONTO LAV.','RIC. MERCE C/L',13,0,'','C001','C001','','','N','','CS05','CS06','',0,'','','','','','N','',0,0,'CASD','',NULL,'' )
,('01','DF','2',0,'ACQUISTO FORNITORE','ACQ. FORNITORE',3,0,'','CACQ','CACQ','','','S','','CS03','CS02','',0,'','','','','','N','',0,0,'CASD','',NULL,'' )
,('01','DF','3',0,'CONFERIMENTO FORNITORE','CONF. FORNITORE',0,0,'','CCON','CCON','','','N','','CS03','CS02','',0,'','','','','','N','',0,0,'CASD','',NULL,'' )
,('01','DF','4',0,'RIENTRO NS. CONTO LAVORO','RIENTRO NS. C/L',0,0,'','CCLA','CCLA','','','N','','CS05','CS06','',0,'','','','','','','',0,0,'CASD','',NULL,'' )
,('01','DF','5',0,'ACQUISTO FORNITORE','ACQU.FORNITORE',4,0,'','CACQ','CACQ','','','N','','CS02','CS03','',0,'','','','','','','',0,0,'CASD','',NULL,'' )
,('01','DF','6',0,'ACQUISTO MATERIALE VI/SG/CO','ACQ.MATERIALE',0,0,'','','','','','Z','','','','',0,'','','','','','','',0,0,'','',NULL,'' )
,('01','DF','ZRIPRESA',0,'RIPRESA SALDO','RIPRESA SALDO',0,707,'','ZRIP','CRIP','','','N','','','','',0,'','','','','','','',0,0,'','',NULL,'' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAMA', GetDate())
INSERT INTO dbo.ATBAMA_01 VALUES
('01','MA',1,0,'CANTINA VITTORIO VENETO','CANTINA V.V.','VIA DEL CAMPARDO 3','31029','VITTORIO VENETO','TV',1,0,0,0,0,0,'N','I','D',0,0,0,0,'',0,'',0,'L',1,26092,'2016-11-29',16112457,0,'','S','S','2','D','N' )
,('01','MA',2,0,'CANTINA DI CONEGLIANO','CANTINA DI CON.','VIA MAGGIOR PIOVESANA 15','31015','CONEGLIANO','TV',2,0,0,0,2,0,'N','I','D',0,0,0,0,'',0,'',0,'L',2,26021,'2016-11-29',16153526,0,'','S','S','2','D','N' )
,('01','MA',3,0,'STABILIMENTO SAN GIUSEPPE','SAN GIUSEPPE','VIA SAN GIUSEPPE, 54','31015','CONEGLIANO','TV',3,0,0,0,3,0,'N','D','I',3,0,0,0,'',0,'',0,'L',3,26021,'2016-11-09',15414519,0,'','S','S','1','N','N' )
,('01','MA',4,0,'CANTINA DI SACILE','SACILE','VIA BRIGATA OSOPPO, 174','33074','FONTANAFREDDA','PN',4,0,0,0,4,0,'N','I','D',0,0,0,0,'',0,'',0,'L',4,93022,'2016-11-29',16155447,0,'','S','S','2','D','N' )
,('01','MA',13,0,'STABILIMENTO SAN GIUSEPPE C/L','S.GIUSEPPE C/L','VIA SAN GIUSEPPE, 54','31015','CONEGLIANO','TV',13,0,0,0,13,0,'N','I','D',13,0,0,0,'',0,'',0,'L',3,26021,'2016-11-09',15421551,0,'','S','S','1','N','N' )
,('01','MA',23,0,'CAMPIONI VENDITA SAN GIUSEPPE','S.G. CAMP. VEND','VIA SAN GIUSEPPE 54','31015','CONEGLIANO','TV',3,0,0,0,3,0,'N','D','I',3,0,0,0,'',0,'',0,'L',3,26021,'2016-05-03',16084176,0,'','S','','0','0','0' )
,('01','MA',24,0,'CAMPIONI C/L SAN GIUSEPPE','S.G. CAMP. C/L','VIA SAN GIUSEPPE 54','31015','CONEGLIANO','TV',13,0,0,0,13,0,'N','D','I',13,0,0,0,'',0,'',0,'L',3,26021,'2016-07-01',8284504,0,'','S','','0','0','0' )
,('01','MA',41,0,'CANTINA DI SACILE - PORDENONE','SACILE-PN','VIALE LIBERTA'' 45','33170','PORDENONE','PN',0,0,0,0,0,0,'N','I','D',0,0,0,0,'',0,'',0,'L',41,93033,'2017-01-11',16111000,0,'','S','S','2','D','N' )
,('01','MA',42,0,'CANTINA DI SACILE - MANIAGO','SACILE-MANIAGO','VIA SAN ROCCO 30','33085','MANIAGO','PN',0,0,0,0,0,0,'N','I','D',0,0,0,0,'',0,'',0,'L',42,93025,'2017-01-11',16272851,0,'','S','S','2','D','N' )
,('01','MA',43,0,'CANTINA DI SACILE - TOLMEZZO','SACILE - TOLM.','VIA A. MORO 1/A','33028','TOLMEZZO','UD',0,0,0,0,0,0,'N','I','D',0,0,0,0,'',0,'',0,'L',43,30121,'2017-01-11',16304588,0,'','S','S','2','D','N' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBATR', GetDate())
INSERT INTO dbo.ATBATR_01 VALUES
('01','TR',1,0,'MARCON G.& C. SNC','Via COMUNALE 30','31046','ODERZO','TV','00024450264','','','','MARCON G.& C. S','TV 2650909C','','','','','',0,'','' )
,('01','TR',2,0,'PERUCH S.R.L.','VIA DEI NOBILI,30','31010','GODEGA DI S.URBANO','TV','04314810260','','','','PERUCH S.R.L.','TV 340050','','','','','',0,'','' )
,('01','TR',3,0,'AUTOTRASPORTI CHINOTTI','VIA BRENNERO 71','37026','PESCANTINA','VR','02626750232','','','','AUTOTRASPORTI C','VR2805839F','','','','','',0,'','' )
,('01','TR',4,0,'F.LLI BENEDETTI AUTOTRASP. SNC','VIA D. CIMAROSA,6/01','31046','ODERZO','TV','02316510268','','','','F.LLI BENEDETTI','TV 2655435H','','','','','',0,'','' )
,('01','TR',5,0,'BENZON AUTOTRASPORTI SRL','VIA FERRARIS 18','30020','NOVENTA DI PIAVE','VE','02639760277','','','','BENZON AUT. SRL','VE 2254670A','','','','','',0,'','' )
,('01','TR',6,0,'MIRAVAL GIORGIO','VIA DELLE GINESTRE 6','31015','CONEGLIANO','TV','02068330261','','','','MIRAVAL GIORGIO','TV/2654964/J','','','','','',0,'','' )
,('01','TR',7,0,'AUTOTRASPORTI TORCHIO SNC','VICOLO CASTELLO 3','14026','COLCAVAGNO MONTIGLIO M.TO','AT','01325020053','','','','AUTOTRASPORTI T','AT 0452680/J','','','','','',0,'','' )
,('01','TR',8,0,'TARTABINI TRASPORTI SRL','VIA DEI MESTIERI,24','62014','CORRIDONIA','MC','01413070432','','','','TARTABINI TRASP','MC 5453091/T','','','','','',0,'','' )
,('01','TR',9,0,'SORIA CARLO','VIA RODOTIGLIA,27','14052','CALOSSO','AT','01327940050','','','','SORIA CARLO','AT 0452678T','','','','','',0,'','' )
,('01','TR',10,0,'AUTOTRASPORTI F.LLI MAZZER','VIA COLLOT 14','31020','SAN FIOR','TV','','','','','AUTOTRASPORTI F','','','','','','',0,'','' )
,('01','TR',11,0,'AUTOTRASPORTI MEGRETTO','VIA S. MARIA','37030','RONCA''','VR','','','','','','','','','','','',0,'','' )
,('01','TR',12,0,'AUTOT. PEDERIVA ARMANDO','VIA DELLA VITTORIA 12','31020','SERNAGLIA DELLA BATTAGLIA','TV','','','','','','','','','','','',0,'','' )
,('01','TR',14,0,'AUTOTRASPORTI TESSARI SRL','VIA OSPEDALE VECCHIO','37047','SAN BONIFACIO','VR','','','','','','','','','','','',0,'','' )
,('01','TR',15,0,'AUTOTRASPORTI TOGNI SNC','VIA G. DI VITTORIO','60031','CASTELPLANIO','AN','','','','','','','','','','','',0,'','' )
,('01','TR',16,0,'C.A.P.E. COOP.VA TRASPORTI','VIA PANA 112','48018','FAENZA','RA','00869210393','','','','C.A.P.E. COOP.V','RA 4404493/M','','','','','',0,'','' )
,('01','TR',17,0,'C.T.F.','VIA RISORGIMENTO 37','48018','FAENZA','RA','00865600399','','','','C.T.F.','RA4403770L','','','','','',0,'','' )
,('01','TR',18,0,'CAPE C/FEDERSPED SAS','VIA BIGOLO 40','35010','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',19,0,'CAPPA LUCA','VIA MARTINI 41','46043','CASTIGLIONE DELLE STIVIERE','MN','','','','','','','','','','','',0,'','' )
,('01','TR',20,0,'CASSANI TADDEO SNC','VIA SAN MAURO 30','48027','SOLAROLO','RA','','','','','CASSANI TADDEO','','','','','','',0,'','' )
,('01','TR',21,0,'CAVALLIN L. & C. SNC','VIA A. MARCELLO 8','31050','BADOERE DI MORGANO','TV','02107370260','','','','CAVALLIN L. & C','TV 2655175L','','','','','',0,'','' )
,('01','TR',22,0,'CAVALLON SILVANO','VIA PIAVE 1','36053','GAMBELLARA','VI','02821270242','','','','CAVALLON S.','VI 2956939/A','','','','','',0,'','' )
,('01','TR',23,0,'CAVALLOTTO FRANCO','VIA ALBA BAROLO 65','12060','CASTIGLIONE FALLETTO','CN','','','','','','','','','','','',0,'','' )
,('01','TR',24,0,'COLLA LEONARDO','VIA CAMPOROSOLO','37047','SAN BONIFACIO','VR','00260320239','','','','COLLA LEONARDO','T 2801289L','','','','','',0,'','' )
,('01','TR',25,0,'CONSAV C/FEDERSPED SAS','VIA MALPIGLI,2','48018','FAENZA','RA','00187170394','','','','CONSAV C/FEDERS','RA 4404511/N/00','','','','','',0,'','' )
,('01','TR',26,0,'CONTE SRL TRASPORTI','VIA POMIGLIANO','80048','SANT''ANASTASIA','NA','','','','','','','','','','','',0,'','' )
,('01','TR',28,0,'FEDERSPED SRL','VIA BIGOLO 40','35010','FOSSALTA DI TREBASELEGHE','PD','03798260281','','','','FEDERSPED SRL','PD 2459003N','','','','','',0,'','' )
,('01','TR',29,0,'FRANCESCHINI SIEGDRIED SAS','VIA ORTI 6','39040','SALORNO','BZ','01157200211','','','','FRANCESCHINI SI','BZ 215600V','','','','','',0,'','' )
,('01','TR',30,0,'G. HOLLER & C. SNC','VIA NAZIONALE 2','39040','SALORNO','BZ','','','','','','','','','','','',0,'','' )
,('01','TR',31,0,'G.T.I. SRL GRUPPO TRASP.INTER.','VIA MOSAICI 8','31046','ODERZO','TV','03648680266','','','','G.T.I. SRL GRUP','TV 2657417 H','','','','','',0,'','' )
,('01','TR',32,0,'GENERAL SERVICE SAS','VIA ARIOSTO 2','30036','SANTA MARIA DI SALA','VE','','','','','','','','','','','',0,'','' )
,('01','TR',33,0,'GOTTARDI RINO E SILVANO SNC','VIA DANTE 10','39040','SALORNO','BZ','01156810218','','','','GOTTARDI RINO E','BZ T2151584Z','','','','','',0,'','' )
,('01','TR',34,0,'GREGOLETTO LUIGI','VIA SAN MARTINO 8','31050','PREMAOR DI MIANE','TV','','','','','','','','','','','',0,'','' )
,('01','TR',35,0,'LANFREDI GABRIELE','VIA DIETRO CASERMA CHIODO 8','37100','VERONA','VR','','','','','','','','','','','',0,'','' )
,('01','TR',36,0,'LOGICAL C/FEDERSPED SAS','VIA BIGOLO 40','35010','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',37,0,'MA.TRA. SRL','VIA FORNACE 32','30033','NAOALE','VE','03280300272','','','','MA.TRA. SRL','VE 2256325N','','','','','',0,'','' )
,('01','TR',38,0,'MARSURA BERNARDINO','VIA MADEAN 29','31049','GUIA DI VALDOBBIADENE','TV','','','','','','','','','','','',0,'','' )
,('01','TR',39,0,'MONTAGNER OMAR','VIA SACCA 8','30020','ERACLEA','VE','','','','','','','','','','','',0,'','' )
,('01','TR',40,0,'MURARI NOVELLINO','VIA ROMA 122','37032','MONTEFORTE D''ALPONE','VR','','','','','','','','','','','',0,'','' )
,('01','TR',41,0,'MURELLO AURELIO & FIGLI','VIA OSTERMAN 4','33033','CODROIPO','UD','','','','','','','','','','','',0,'','' )
,('01','TR',42,0,'OBRIST & ANDERGASSEN AUTOTR.','WEINGARTENWEG 3','39100','BOLZANO','BZ','','','','','','','','','','','',0,'','' )
,('01','TR',43,0,'PASETTO RENATO','VIA BASSANO 6','37038','SOAVE','VR','','','','','','','','','','','',0,'','' )
,('01','TR',44,0,'PEDERIVA ARMANDO','VIA DELLA VITTORIA 12','31020','SERNAGLIA DELLA BATTAGLIA','TV','','','','','','','','','','','',0,'','' )
,('01','TR',45,0,'PERUCH C/FEDERSPED SAS','VIA BIGOLO 40','35010','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',46,0,'S.T.E. DI BOGLIACINO SNC','VIALE RISORGIMENTO 68','14053','CANELLI','AT','00137720058','','','','S.T.E. DI BOGLI','AT 0450704 Y','','','','','',0,'','' )
,('01','TR',47,0,'SAR TRASPORTI SCRL','VIA VICOLI 89','48100','RAVENNA','RA','','','','','','','','','','','',0,'','' )
,('01','TR',48,0,'SIGNORATO ALESSIO','VIA ONGARATI','36045','LONIGO','VI','','','','','','','','','','','',0,'','' )
,('01','TR',49,0,'SIGNORATO SAMUELE','VIA ONGARATI','36045','LONIGO','VI','','','','','','','','','','','',0,'','' )
,('01','TR',50,0,'SPEDIZIONI MARCHESE SRL','VIA E. FERMI 12/1','31040','GORGO AL MONTICANO','TV','00465860310','','','','SPEDIZIONI MARC','TV 2658366E','','','','','',0,'','' )
,('01','TR',51,0,'TESSARI GILBERTO','VIA CHIAVICHETTA 26','37047','SAN BONIFACIO','VR','02351010232','','','','TESSARI GILBERT','VR 2805471E','','','','','',0,'','' )
,('01','TR',52,0,'TRASPORTI PIESSE SRL','VIA ALBA 32','12050','CASTAGNITO','CN','','','','','','','','','','','',0,'','' )
,('01','TR',53,0,'VALENTINI TRASPORTI','VIA DEGLI ORTI 3','38010','RALLO DI TASSULLO','TN','','','','','','','','','','','',0,'','' )
,('01','TR',54,0,'ZAMBON ALBERTO','VIA COLVENDRAME 54','31020','REFRONTOLO','TV','','','','','','','','','','','',0,'','' )
,('01','TR',55,0,'KEIM MILCHGROSSHANDEL GMBH','INDUSTRIESRASSE 24','91161','HILPOLTSTEIN','','','','','','','','','','','','',0,'','' )
,('01','TR',56,0,'ETRATANK SRL','VIA G. MATTEOTTI 112','00053','CIVITAVECCHIA','','','','','','ETRATANK SRL','','','','','','',0,'','' )
,('01','TR',57,0,'FASULO TRASPORTI','VIA SCAFA 33','81013','CAIAZZO','CE','','','','','','','','','','','',0,'','' )
,('01','TR',58,0,'ZECCHINELLO ERMENEGILDO','VIA SOSPIRI,3','31047','PONTE DI PIAVE','TV','00503510265','','','','','','','','','','',0,'','' )
,('01','TR',59,0,'VECCHIZIRONI TRASPORTI','VIA M.DA PADOVA,6','42100','REGGIO EMILIA','RE','','','','','','','','','','','',0,'','' )
,('01','TR',60,0,'BAROLO TRASPORTI SNC','VIA MONFORTE,18','12060','BAROLO','CN','','','','','','','','','','','',0,'','' )
,('01','TR',61,0,'ISOLANA TRASPORTI','VIA A. MORO 13','12063','DOGLIANI','CN','01873690042','','','','ISOLANA TRASPOR','CN 05404232A','','','','','',0,'','' )
,('01','TR',62,0,'FIORIN PIERO','VIA MARCONI','31025','SANTA LUCIA DI PIAVE','TV','02343670267','','','','FIORIN PIERO','TV2655373S','','','','','',0,'','' )
,('01','TR',63,0,'ANHALT SPEDITION','.','D25776','BARGEN','','','','','','','','','','','','',0,'','' )
,('01','TR',64,0,'INTERNAT.TRANSP.ROLAND KRUG','ABENBERGER WALD,3','91166','GEORGENSGMUND','','','','','','','','','','','','',0,'','' )
,('01','TR',65,0,'CECCARELLI & CANALI A. & C.','VIA BIRANDOLA','48018','FAENZA','RA','','','','','','','','','','','',0,'','' )
,('01','TR',66,0,'CONSAR SOC.COOP.CONS.','VIA VICOLI,93','48100','RAVENNA','RA','00175490390','','','','CONSAR SOC.COOP','RA 4403037M','','','','','',0,'','' )
,('01','TR',67,0,'EUROTANK SRL','VIA SOMMACAMPAGNA 61','37137','VERONA','VR','03398980239','','','','EUROTANK SRL','TVR2808696K','','','','','',0,'','' )
,('01','TR',68,0,'SPADER ROBERTO','VIA CALPENA 32/I','31020','SAN VENDEMIANO','TV','03083890263','','','','SPADER ROBERTO','TV2655592F','','','','','',0,'','' )
,('01','TR',69,0,'MATRA C/FEDERSPED SAS','VIA BIGOLO,40','35010','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',70,0,'AUTOTRASPORTI EREDI BARBIERI G','VIA VERDETA,52','41030','SORBARA','MO','03215070362','','','','AUT. ER.BARBIER','MO 4109677/R','','','','','',0,'','' )
,('01','TR',71,0,'CONSAV SOC.COOP.P.A.','VIA MALPIGHI,2','48018','FAENZA','RA','00187170394','','','','CONSAV S.C.P.A.','RA 4404511/N/00','','','','','',0,'','' )
,('01','TR',72,0,'Z.B. SRL C/FEDERSPED SAS','VIA BIGOLO 40','','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',73,0,'CAMION CO KFT','NEGYVENI,21','H-6300','KALOCSA','','','','','','','','','','','','',0,'','' )
,('01','TR',74,0,'F.LLI RUFFO SRL','VIALE DELL''INDUSTRIA,4','37030','COLOGNOLA AI COLLI','VR','03545170239','','','','F.LLI RUFFO SRL','TVR2808936B','','','','','',0,'','' )
,('01','TR',75,0,'GRISENDI SANDRO & C. SNC','VIA GONZAGA,61','42011','BAGNOLO IN PIANO','RE','','','','','','','','','','','',0,'','' )
,('01','TR',76,0,'NOTHEGGER TRANSPORT LOGISTIK','ST. ULRICH','','TIROL   AUSTRIA','','','','','','','','','','','','',0,'','' )
,('01','TR',78,0,'GENERAL SERVICE C/FEDERSPED','VIA BIGOLO 40','','FOSSALTA DI TREBASELEGHE','PD','','','','','','','','','','','',0,'','' )
,('01','TR',79,0,'SOLDERA ALBINO SAS','VIA FOSSALOI','','SERNAGLIA DELLA BATTAGLIA','TV','','','','','','','','','','','',0,'','' )
,('01','TR',80,0,'DEI TOS DENIS','VIA DOBERDO'' 3','31029','VITTORIO VENETO','TV','','','','','','','','','','','',0,'','' )
,('01','TR',81,0,'DUEPI SAS DI POLESE DAVIDE & C','LARGO A. VESPUCCI 50','31059','ZERO BRANCO','TV','03539030266','','','','DUEPI SAS','TV 2657108 U','','','','','',0,'','' )
,('01','TR',82,0,'SIMONI RINO','VIA PER RIOLO 74','','CASTELFRANCO EMILIA','MO','','','','','','','','','','','',0,'','' )
,('01','TR',83,0,'TRANSPORTS EUROLIA','ZA DES PRAS DE VESURE','71150','DEMIGNY','','','','','','','','','','','','',0,'','' )
,('01','TR',84,0,'BRUNI GIORGIO','CASA STORINI,8','27041','BARBIANELLO','PV','','','','','','','','','','','',0,'','' )
,('01','TR',85,0,'CEREAL TRASPORTI SPA','VIA TORTONA 28','15050','CARBONARA SCRIVIA','AL','','','','','','','','','','','',0,'','' )
,('01','TR',86,0,'D''APICE TRASPORTI','VIA ALBA,32','12050','CASTAGNITO','CN','','','','','','','','','','','',0,'','' )
,('01','TR',87,0,'SOLDERA ANTONIO','VIA FOSSALOI 9','','FALZE'' DI PIAVE','TV','','','','','','','','','','','',0,'','' )
,('01','TR',88,0,'BRANDANI SRL','VIA VENETO,24','25037','PONTOGLIO','BS','','','','','','','','','','','',0,'','' )
,('01','TR',89,0,'MAGGI SRL','VIA CANTELLO,43/A','21050','CLIVIO','VA','02209600127','','','','MAGGI SRL','VAT 1902907/B','','','','','',0,'','' )
,('01','TR',90,0,'KARLINGER','LINZERSTR. 19','A-4280','KONIGSWIESEN','','','','','','','','','','','','',0,'','' )
,('01','TR',91,0,'LOGICAL SCARL','VIA MALPIGHI,2','48018','FAENZA','RA','','','','','','','','','','','',0,'','' )
,('01','TR',92,0,'AUTOTRASPORTI NEGRETTO SNC','VIA S.MARIA,22','37030','RONCA''','VR','02567720236','','','','AUTOTRASPORTI N','VR2805721 G','','','','','',0,'','' )
,('01','TR',93,0,'CICLAT TRASPORTI SCA','VIA BAIONA 174','48100','RAVENNA','RA','00827710393','','','','CICLAT TRASPORT','BO 1804/O/S','','','','','',0,'','' )
,('01','TR',94,0,'ROMAGNA SPEDIZIONI SRL','VIA A. NEGRINI 23','48100','RAVENNA','RA','02319920399','','','','ROMAGNA SPED.','RA 4406260Q','','','','','',0,'','' )
,('01','TR',95,0,'AUTOTRASPORTI BALLARINI SNC','VIA Z. GELMETTI 6','37020','RIVALTA DI BRENTINO BELLUNO','VR','01703740231','','','','AUT. BALLARINI','VR 2804375 L 00','','','','','',0,'','' )
,('01','TR',96,0,'GRIMALDI VALTER','STRADA ALESSANDRIA 50/','14049','NIZZA MONFERRATO','AT','00114010051','','','','GRIMALDI VALTER','AT 0450622 M','','','','','',0,'','' )
,('01','TR',97,0,'DINAMICA SRL','VIA DEL COMMERCIO 38','60031','CASTELPLANIO','AN','02351830423','','','','DINAMICA SRL','AN 5304317 J','','','','','',0,'','' )
,('01','TR',98,0,'C.A.L. AUTOTRASPORTI SRL','VIA BERTOLUZZA 20','26813','GRAFFIGNANA','','03813710153','','','','C.A.L. AUTOTRAS','LO 9650263 J','','','','','',0,'','' )
,('01','TR',99,0,'FASAN ENRICO AUTOTRASPORTI','VIA PRALONGO 80','31050','MONASTIER DI TREVISO','TV','04341530261','','','','FASAN ENRICO AU','TV 2658754 B','','','','','',0,'','' )
,('01','TR',100,0,'AUTOTRASPORTI GRANZIERA SRL','Via Vittorio veneto,78','31013','CODOGNE''','TV','03612680268','','','','GRANZIERA SRL','TV/2657313/Q','','','','','',0,'','' )
,('01','TR',101,0,'F.LLI SEBETO TRASPORTI SRL','VIA GENERALE R. DE ROSA 4','80048','SANT''ANASTASIA','NA','01402661217','','','','F.LLI SEBETO TR','NA 06608346/G','','','','','',0,'','' )
,('01','TR',102,0,'COSTANT BONIVERS LUXEMBOURG SA','RUE DES ARTISANS 25','8805','RAMBROUCH','','','','','','CB GROUPE','N.LICENCE 0296','','','','','',0,'','' )
,('01','TR',103,0,'EASY CARGO LTD','VIA GOLASH AP.3 ET 1','','SOFIA Kv. MILEV Str 3','','','','','','EASY CARGO LTD','','','','','','',0,'','' )
go
INSERT INTO dbo.ATBATR_01 VALUES
('01','TR',104,0,'MARCATRANS SRL','VIA COPPETELLA 4','60035','JESI','AN','02501720425','','','','MARCATRANS SRL','AN 5304536E','','','','','',0,'','' )
,('01','TR',105,0,'BUSO CRISTIAN','STRADA SOMMAVAL 1','31049','GUIA DI VALDOBBIADENE','TV','04451800264','','','','BUSO CRISTIAN','TV 2658860/A','','','','','',0,'','' )
,('01','TR',106,0,'SPED. MARCHESE SRL C/FEDERSPED','VIA BIGOLO 40','','FOSSALTA DI TREBASELEGHE','PD','03798260281','','','','SPED. MARCHESE','PD 2459003N','','','','','',0,'','' )
,('01','TR',107,0,'CARNIEL CLAUDIO','VIA UNGHERESCA NORD,7','31010','MARENO DI PIAVE','TV','04074030265','','','','CARNIEL CLAUDIO','TV 2658773/E','','','','','',0,'','' )
,('01','TR',108,0,'GALLON ALBINO','VIA S. MARTINO 44 - PREMAOR','31050','MIANE','TV','02068270269','','','','GALLON ALBINO','TV 2654901L','','','','','',0,'','' )
,('01','TR',109,0,'VETRA SRL SOC.UNIPERSONALE','VIA CORNARIOLA,3/b','35010','TREBASELEGHE','PD','04149420285','','','','VETRA SRL SOC.U','PD 2459722/J','','','','','',0,'','' )
,('01','TR',110,0,'P.M.G. SRL','VIA LUIGI PASTRO 181','31040','VOLPAGO DEL MONTELLO','TV','04133920266','','','','P.M.G. SRL','TV/2658590/U','','','','','',0,'','' )
,('01','TR',111,0,'CASSOL TRASPORTI SRL','VIA NEWTON 22/B','31050','VILLORBA','TV','00260600259','','','','CASSOL TRASPORT','TV2400607Z','','','','','',0,'','' )
,('01','TR',112,0,'ARTONI TRASPORTI','VIA NUOVA TREVIGIANA 19','31032','CASALE SUL SILE','TV','02248020352','','','','ARTONI TRASPORT','RE4506624E','','','','','',0,'','' )
,('01','TR',113,0,'F.LLI SEBETO SRL C/FEDERSPED','VIA GENERALE DE ROSA 4','80048','SANT''ANASTASIA','NA','01402661217','','','','F.LLI SEBETO SR','NA 6608346G','','','','','',0,'','' )
,('01','TR',114,0,'SAS SPA TRASPORTI C/FEDERSPED','VIA C. COLOMBO 1 Z.I.','','VALDARO CASTELMASSA','MN','01832770208','','','','SAS SPA TRASPOR','MN 1652957D','','','','','',0,'','' )
,('01','TR',115,0,'LIVERANI GROUP SPA','VIA MAESTRI DEL LAVORO 4','37059','ZEVIO','VR','02996440232','','','','LIVERANI GROUP','VR 2807209 S','','','','','',0,'','' )
,('01','TR',116,0,'PALMESE AUTOTRASPORTI','VIA CROCIFISSO','80039','SAVIANO','NA','04300341213','','','','PALMESE AUTOTRA','NA 6612673/K','','','','','',0,'','' )
,('01','TR',117,0,'C.S.CASARIN SRL/FEDERSPED SAS','VIA NOALESE,44','31059','ZERO BRANCO','TV','01610280263','','','','C.S.CASARIN SRL','TV/2653813/A','','','','','',0,'','' )
,('01','TR',118,0,'DEL VECCHIO GENNARO','VIA PURGATORIO','','SAN GIUSEPPE VESUVIANO','NA','00305641219','','','','DEL VECCHIO GEN','NA 6686299Y','','','','','',0,'','' )
,('01','TR',119,0,'QUERCIOLI D. C/FEDERSPED SAS','VIA BOLOGNA,48','48025','RIOLO TERME','RA','02250530397','','','','QUERCIOLI D. C/','RA440617U','','','','','',0,'','' )
,('01','TR',120,0,'RODELLA TRASP.SRL','VIA BOSCHETTA,2','46046','MEDOLE','MN','01543880205','','','','RODELLA TRASP.S','MN T1652652/k','','','','','',0,'','' )
,('01','TR',121,0,'F.LLI TOBALDO SNC C/FEDERSPED','VIA DEL LAVORO 17','35030','BASTIA DI ROVOLON','PD','03993990286','','','','F.LLI TOBALDO S','PD 2459527F','','','','','',0,'','' )
,('01','TR',122,0,'BOLZAN MARIO SNC','VIA F. DA MILANO, 4','31018','GAIARINE','TV','04014770269','','','','BOLZAN MARIO SN','TV2658400E','','','','','',0,'','' )
,('01','TR',123,0,'ZANARDO SERVIZI LOGISTICI SPA','VIA DELL''ATOMO, 16','30175','VENEZIA - MARGHERA','VE','03321210274','','','','ZANARDO SERVIZI','VE2256555/M/00','','','','','',0,'','' )
,('01','TR',124,0,'GAVA MARZIO & C SNC','VIALE XXIV MAGGIO, 183','31015','CONEGLIANO','TV','03157780267','','','','GAVA MARZIO & C','TV2655807P','','','','','',0,'','' )
,('01','TR',125,0,'L''ECOLOGICA SPURGHI','VIA ISIDORO ME 49 BIS','31020','SAN FIOR','TV','','','','','L''ECOLOGICA SPU','','','','','','',0,'','' )
,('01','TR',126,0,'FOGLIANO EMANUELE IGNAZIO','VIA GEMONA, 4/B','31028','VAZZOLA','TV','03678180260','','','','FOGLIANO EMANUE','TV2657414/E','','','','','',0,'','' )
,('01','TR',127,0,'MIRKO TRASPORTI','VIA MONTEGRAPPA, 37','31028','VISNA'' DI VAZZOLA','TV','04102910264','','','','MIRKO TRASPORTI','TV2658448H','','','','','',0,'','' )
,('01','TR',129,0,'MERLO LOGISTICA SRL','VIA CAL TREVIGIANA, 24','31040','VENEGAZZU''','TV','03722440264','','','','MERLO LOGISTICA','TV/2658445/W','','','','','',0,'','' )
,('01','TR',130,0,'ANDREOLLA DIOTISALVI AUTOTRASP','VIA PRADEGNA, 15','31050','FOLLINA','TV','01877320265','','','','ANDREOLLA DIOTI','TV2654456M','','','','','',0,'','' )
,('01','TR',131,0,'DI LEO SRL','C.DA CITROLO,13','91011','ALCAMO','TP','02035780812','','','','DI LEO SRL','TP 8603734/R','','','','','',0,'','' )
,('01','TR',132,0,'KORTIMED SRL C/FEDERSPED sas','VIA LE SODOLE,40/B','50055','LASTRA A SIGNA','FI','05473540481','','','','KORTIMED SRL C/','FI-T4610728/L','','','','','',0,'','' )
,('01','TR',133,0,'GOTTARDI ALDO & C sNC','VIA SACCON DI LIA, 21','31043','LUTRANO DI FONTANELLE','TV','01835630268','','','','GOTTARDI ALDO &','TV/2654631L','','','','','',0,'','' )
,('01','TR',134,0,'DHL FREIGHT','VIA TORRICELLI 49','37100','VERONA','VR','','','','','DHL FREIGHT','','','','','','',0,'','' )
,('01','TR',135,0,'BRT SPA','VIA MEAZZA L. SAGROGNA','32100','BELLUNO','BL','','','','','BRT SPA','','','','','','',0,'','' )
,('01','TR',136,0,'STI SPA','VIA LABRIOLA, 22','37054','NOGARA','VR','00551440233','','','','STI SPA','TVR2804790R','','','','','',0,'','' )
,('01','TR',137,0,'LU.GI.STE SRL','VIA CHIESA, 71 - NEGRISIA','31047','PONTE DI PIAVE','TV','03302130269','','','','LU.GI.STE SRL','TV2656672X','','','','','',0,'','' )
,('01','TR',138,0,'CHIODERO MIRCO','VIA CAROP, 43','31040','SAN VITO DI VALDOBBIADENE','TV','02225760269','','','','CHIODERO MIRCO','TV2655240/H','','','','','',0,'','' )
,('01','TR',139,0,'EUROSAP SRL C/FEDERSPED SAS','STRADA DELLA PARLESCA 20','06080','SOLFAGNANO','PG','02313780542','','','','EUROSAP SRL C/F','PG/5605484/S','','','','','',0,'','' )
,('01','TR',140,0,'AMG EUROSERVIZI SRL','VIA SAN FRANCESCO,16','31010','FARRA DI SOLIGO','TV','04697590265','','','','AMG EUROSERVIZI','TV 2659242B','','','','','',0,'','' )
,('01','TR',141,0,'PROGET TRANSPORT LTD.','STR. BULAIR 26','4000','PLOVDIV','BG','','','','','PROGET TRANSPOR','VAT:BG202326908','','','','','',0,'','' )
,('01','TR',142,0,'BEDIN AUTOTRASPORTI','VIA MATEOTTI, 28','31041','CORNUDA','TV','01168390266','','','','BEDIN AUTOTRASP','TV2353489N','','','','','',0,'','' )
,('01','TR',143,0,'TOMASI PAOLO','VIA CAMPON, 2','31050','MIANE','TV','03304400264','','','','TOMASI PAOLO','TV2655863N','','','','','',0,'','' )
,('01','TR',144,0,'CITTADELLA SPEDIZIONI SRL','VIA TOMBOLATTA, 88','','GALLIERA VENETA','PD','00322870288','','','','CITTADELLA SPED','PD2456777N','','','','','',0,'','' )
,('01','TR',145,0,'CONTAINERS FIDENZA','VIA PIEMONTE, 11','29122','PIACENZA','PC','00908430341','','','','CONTAINERS FIDE','PC4354051F','','','','','',0,'','' )
,('01','TR',146,0,'CARTURAN AUTOTRASPORTI SRL','VIA PIEROBON 76','35010','LIMENA','PD','03219900283','','','','CARTURAN AUTOTR','PD T 2456721E','','','','','',0,'','' )
,('01','TR',147,0,'TRANS. AND SPED. BULGARIA LTD.','STR. BULAIR 26','4000','PLOVDIV','BG','','','','','TRANSPORT AND S','VAT BG160079430','','','','','',0,'','' )
,('01','TR',148,0,'BERNARDI SRL','LOC. CAMPOGRANDE 5','29013','CARPANETO PIACENTINO','PC','00333310332','','','','BERNARDI SRL','PC 4353814Y','','','','','',0,'','' )
,('01','TR',149,0,'INSERVICE SOC. COOP. A R.L.','VIA PIAVE, 96','31030','CAERANO SAN MARCO','TV','03419050269','','','','INSERVICE SOC.','TV2656764T','','','','','',0,'','' )
,('01','TR',150,0,'ECOSTUDIO SAS','VIA BOCCASSINI 2','31044','MONTEBELLUNA','TV','03014090264','','','','ECOSTUDIO SAS','VE1204','','','','','',0,'','' )
,('01','TR',151,0,'ANGELO FINESSO SPA','VIA VIGONOVESE, 60/62','35127','PADOVA','PD','00227660289','','','','ANGELO FINESSO','PD2453203M','','','','','',0,'','' )
,('01','TR',152,0,'ZANCHETTA & C. SNC','VIA GUIZZA, 49/1','31020','SAN POLO DI PIAVE','TV','00608970265','','','','ZANCHETTA & C.','TV2652042P','','','','','',0,'','' )
,('01','TR',153,0,'SPERTINO TRASPORTI SRL','VIA REGIONE SALINE,38','14050','SAN MARZANO OLIVETO','AT','01281910057','','','','SPERTINO TRASPO','AT 0452533 S','','','','','',0,'','' )
,('01','TR',154,0,'COPPOLA TRAS.SRL C/FEDERSPED','VIA MONTI,8','81020','S.NICOLA LA STRADA','CE','03867030615','','','','COPPOLA TRAS.SR','CE7004633/A','','','','','',0,'','' )
,('01','TR',155,0,'AUTOT.SOSTENIO SAS C/FEDERSPED','VIA S. BRIGIDA,1/A','','CASACORBA DI VEDELAGO','TV','03226330276','','','','AUTOT.SOSTENIO','TV 2658654 F','','','','','',0,'','' )
,('01','TR',156,0,'MURELLO AUTOTR.SNC C/FEDERSPED','VIA F. OSTERMANN,41','33033','CODROIPO','UD','01788800306','','','','MURELLO AUTOTR.','UD 3250484 K','','','','','',0,'','' )
,('01','TR',157,0,'ALECCIA AUTOTR.C/FEDERSPED SAS','VIA C. ONETO,10','91011','ALCAMO','TP','01735720813','','','','ALECCIA AUTOTR.','TP 8603345 T','','','','','',0,'','' )
,('01','TR',158,0,'MARCON G.&C.SNC C/FEDERSPEDsas','VIA C.CAMINO,3','31046','ODERZO','TV','00024450264','','','','MARCON G.&C.SNC','TV 2650909 C','','','','','',0,'','' )
,('01','TR',159,0,'TRASPORTI CAPELLI SRL','VIA VERDI 46/A','29121','PIACENZA','PC','01583490337','','','','TR. CAPELLI SRL','PC4354195V','','','','','',0,'','' )
,('01','TR',160,0,'P.& P.SNC Casagrande e Pagotto','Via Confin,16','31029','VITTORIO VENETO','TV','00043390269','','','','P.& P.SNC Casag','','','','','','',0,'','' )
,('01','TR',161,0,'AUTOTRASPORTI BISSOLI SRL','VIA ARCHIMEDE 10','','SAN MARTINO BUON ALBERGO','VR','','','','','AUTOTR.BISSOLI','','','','','','',0,'','' )
,('01','TR',162,0,'DELLA GIUSTINA SRL','VIA A. VESPUCCI 30','31029','VITTORIO VENETO','TV','03043020266','','','','DELLA GIUSTINA','TV/2655664 W','','','','','',0,'','' )
,('01','TR',163,0,'BELTRANS DI DAL MORO G','VIA SCHOLA CANTORUM, 6','','BELVEDERE DI TEZZE','VI','01595220243','','','','BELTRANS DI DAL','VI/2955351/K/00','','','','','',0,'','' )
,('01','TR',164,0,'MARION TRASPORTI SRL','VIA SAN MICHELE, 6','31010','MARENO DI PIAVE','TV','04039990264','','','','MARION TRASPORT','TV/2658414/P','','','','','',0,'','' )
,('01','TR',165,0,'SARTOR AUTOTRASPORTI SNC','VIA DEGLI ALPINI, 2','31020','SAN POLO DI PIAVE','TV','01783170267','','','','SARTOR AUTOTRAS','TV2655737/P','','','','','',0,'','' )
,('01','TR',166,0,'SUSA TRASPORTI SPA','VIA JURY GAGARIN 39','06074','ELLERA DI CORCIANO','PG','00148710544','','','','SUSA SPA','','','','','','',0,'','' )
,('01','TR',167,0,'NUMBER 1 LOGISTICS GROUP SPA','VIA FORLANINI, 2A','43122','PARMA','PR','01936620341','','','','NUMBER 1 LOGIST','PR4253804A','','','','','',0,'','' )
,('01','TR',168,0,'ROBERTI SRL','VIA CERVANO, 10','31029','VITTORIO VENETO','TV','02421030269','','','','ROBERTI SRL','TV 2655510/Q','','','','','',0,'','' )
,('01','TR',169,0,'AUTOTRASPORTI GRIGOLIN SRL','VIA DELL''ARTIGIANATO, 4','31010','SAN MICHELE DI PIAVE','TV','03582770263','','','','GRIGIOLIN','TV/2657293/M','','','','','',0,'','' )
,('01','TR',170,0,'AUTOTRASP. BERTONCELLO BROTTO','VIA DELL ATERGOLA, 30/3','35013','CITTADELLA','PD','00067810283','','','','BERTONCELLO BRO','PD 2456458 P','','','','','',0,'','' )
,('01','TR',171,0,'GAZZARRI TRASPORTI DI GAZZARRI','VIA CINTOIA, 3','56020','MARTI','PI','01202530505','','','','GAZZARRI TRASPO','PI 5102232 S','','','','','',0,'','' )
,('01','TR',172,0,'FRIULTRASPORTI INDUSTRIALI SRL','VIA SACCHI, 4','20121','MILANO','MI','01687330306','','','','FRIULTRASPORTI','UD T3250411 R','','','','','',0,'','' )
,('01','TR',173,0,'MESSAGGERIE TOSCANE SAS','VIA G.B. OLIVA  N.3','56014','OSPEDALETTO','PI','00109970509','','','','MESSAGGERIE TOS','PI T5103286 S','','','','','',0,'','' )
,('01','TR',174,0,'SETTENTRIONALE TRASPORTI SPA','VIA STRADE NUOVE, 3','31054','POSSAGNO','TV','00546570268','','','','SETTENTRIONALE','TV 2653488 M','','','','','',0,'','' )
,('01','TR',175,0,'COMPRI RENATO AUTOTRASPORTI','VIA OLANDA, 5','37135','VERONA','VR','00321940231','','','','COMPRI RENATO A','TVR2800830R','','','','','',0,'','' )
,('01','TR',176,0,'LUNARDI TRASPORTI SRL','VIA P. BORSELLINO, 2','37060','SONA','VR','04387020235','','','','LUNARDI TRASPOR','VR 2810001 B','','','','','',0,'','' )
,('01','TR',177,0,'LTG LOGISTICA DEL GARDA SRL','VIA SOMMACAMPAGNA, 61','37137','VERONA','','03707160234','','','','LTG LOGISTICA D','TV R2809155 M','','','','','',0,'','' )
,('01','TR',178,0,'AUTOTRASPORTI ROSSATO SNC','VIA PISTORE, 45/A','37058','SANGUINETTO','VR','01823320237','','','','ROSSATO AUTOTR','VR 2804504 F','','','','','',0,'','' )
,('01','TR',179,0,'LOGICOMPANY SRL','VIA TIFERNATE, 204','06024','GUBBIO','PG','03087730549','','','','LOGICOMPANY SRL','PG 5607048 R','','','','','',0,'','' )
,('01','TR',180,0,'COBRA LOGISTIC SRL','VIA DEI CASTAGNI, 16','56128','TIRRENIA','PI','01754420501','','','','COBRA LOGISTIC','PI 510 3467 X','','','','','',0,'','' )
,('01','TR',181,0,'AUTOTRASPORTI BASTASINI','VIA GELMETTO, 1','37135','VERONA','VR','03062760230','','','','AUTOT.BASTASINI','VR 2807402 C','','','','','',0,'','' )
,('01','TR',182,0,'GRILLINI SRL','Via Piave 5','40068','San Lazzaro di Savena','BO','02320481209','','','','GRILLINI SRL','BO1715','','','','','',0,'','' )
,('01','TR',183,0,'CUTI.CONSAI SOC.CONS.COOP','Via Donati, 86','40026','IMOLA','BO','02768801207','','','','CUTI.CONSAI SOC','BOT370721SD','','','','','',0,'','' )
,('01','TR',184,0,'CAVALLIN SNC C/FEDERSPED SAS','VIA A. MARCELLO 8','31050','BADOERE DI MORGANO','TV','02107370260','','','','CAVALLIN SNC C/','TV 2655175L','','','','','',0,'','' )
,('01','TR',185,0,'ERRE LOGISTICA SRL','VIA EUGENIO BARSANTI, 7/A','37139','BASSONA','VR','03378610236','','','','ERRE LOGISTICA','TVR2808544J','','','','','',0,'','' )
,('01','TR',186,0,'EMAI SRL C/FEDERSPED SAS','VIA L.ARIOSTO, 2','30036','S.MARIA DI SALA','VE','03072850278','','','','EMAI SRL C/FEDE','VE2255806','','','','','',0,'','' )
,('01','TR',187,0,'SAMOGIN TRASPORTI SRL','VIA DELLE INDUSTRIE, 7','31030','VACIL DI BREDA DI PIAVE','TV','02134760269','','','','SAMOGIN TRASPOR','TV 2655188 J','','','','','',0,'','' )
,('01','TR',188,0,'FOGLIANO ANTONINO','VIA DELLA CHIESA, 9','31043','FONTANELLE','TV','01728300268','','','','FOGLIANO ANTONI','TV 2654003 K','','','','','',0,'','' )
,('01','TR',189,0,'MAT SRL','VIA DEL MOLO 9/13','19126','LA SPEZIA','SP','01117620110','','','','MAT SRL','SP3602070Z','','','','','',0,'','' )
,('01','TR',190,0,'TRANS EUROPE SRL','PIAZZA REPUBBLICA, 7','43044','COLLECCHIO','PR','01955680341','','','','TRANS EUROPE SR','PR4253831U','','','','','',0,'','' )
,('01','TR',191,0,'COMPAGNIA TRASPORTI INTEGRATI','VIA UGIONE, 2/4','57121','LIVORNO','LI','01090800499','','','','COMPAGNIA TRASP','LI 4852282 Y','','','','','',0,'','' )
,('01','TR',192,0,'CAFA SCRL','VIA DEGLI AMANTI, 1','44123','PONTELAGOSCURO','FE','00144610383','','','','CAFA SCRL','FE3852929 T','','','','','',0,'','' )
,('01','TR',193,0,'MATRA AUTOTRASPORTI SRL','VIA FORNACE N. 32','30033','NOALE','VE','03280300272','','','','MATRA AUTOTRASP','VE2256325N','','','','','',0,'','' )
,('01','TR',194,0,'I.T.T. ENDEPENDENT THANK SRL','VIALE CARNIA, 65','33031','BASILIANO','UD','02817870302','','','','ENDEPENDENT','UD/3255009','','','','','',0,'','' )
,('01','TR',195,0,'AUTOTRASPORTI CIOTTI DARIO','VIA VERONA, 1 int. 2','33010','FELETTO UMBERTO','UD','01739270302','','','','CIOTTI DARIO','UD3252964R','','','','','',0,'','' )
,('01','TR',196,0,'AUTOTRASPORTI F.LLI MARCHI SNC','VIA I MAGGIO, 24','31014','COLLE UMBERTO','TV','01785880269','','','','MARCHI SNC','TV/2654258/E','','','','','',0,'','' )
,('01','TR',197,0,'DOUBLE V TRANSPORT SRL','VIA DELLE SORGENTI, 448A','57121','LIVORNO','LI','00803520493','','','','DOUBLE V TRANSP','LI4851876S','','','','','',0,'','' )
,('01','TR',198,0,'SPINELLI SRL','CORSO SPAGNA, 14','35020','CAMIN','PD','02716640103','','','','SPINELLI SRL','GE/3405504/F','','','','','',0,'','' )
,('01','TR',199,0,'AUTA MAROCCHI SPA','RIVA CADAMOSTO 8/1','34147','TRIESTE','TS','00686490327','','','','AUTA MAROCCHI S','TS/3101379/V','','','','','',0,'','' )
,('01','TR',200,0,'LORMA LOGISTIC','VIA MALCONTENTA','30176','VENEZIA','VE','04052640275','','','','LORMA LOGISTIC','VE/2257396/P','','','','','',0,'','' )
,('01','TR',201,0,'GLS TRASPORTI SPA','VIA BASENTO 19','20098','SAN GIULIANO MILANESE','MI','12144660151','','','','GLS TRASPORTI','','','','','','',0,'','' )
,('01','TR',202,0,'AUTOTRASPORTI LUNARDI SRL','PIAZZA DELLA REPUBBLICA, 29/A','30014','CAVARZERE','VE','04147170270','','','','LUNARDI-CAVARZE','VE2257523E','','','','','',0,'','' )
,('01','TR',203,0,'L.L. TRASPORTI','VIA PARUTA, 4','30172','MESTRE','VE','04188740270','','','','L.L. TRASPORTI','VE2257559S','','','','','',0,'','' )
,('01','TR',204,0,'ITALTRANSPORT SRL','VIA T. EDISON, 61','30035','BALLO'' DI MIRANO','VE','03226320277','','','','ITALTRANSPORT S','VE/2256121/A','','','','','',0,'','' )
go
INSERT INTO dbo.ATBATR_01 VALUES
('01','TR',205,0,'ALPENTRANS LOGISTICS SAS','VIA NAZIONALE, 124','39040','SALORNO','BZ','01020010227','','','','ALPENTRANS LOGI','BZ2153808L','','','','','',0,'','' )
,('01','TR',206,0,'ZM TRASP. DI ZORZETTO MARINO','VIA BOSCHI, 25C','30030','MARTELLAGO','VE','03389720271','','','','ZM TRASP. DI ZO','VE2256465K','','','','','',0,'','' )
,('01','TR',207,0,'F.LLI CASAROSA SILVANO E C.SNC','VIA P. SAVI, 212','56021','CASCINA - MARCIANA','PI','00287300503','','','','F.LLI CASAROSA','PI/5102068/H','','','','','',0,'','' )
,('01','TR',208,0,'C.S.C LOGISTICS SRL','VIA NORVEGIA, 80','56021','CASCINA','PI','01888980503','','','','C.S.C LOGISTICS','PI/5103543/T','','','','','',0,'','' )
,('01','TR',209,0,'NICOLI TRASPORTI SPEDIZ. SPA','VIA PRADELLA, 23','24021','ALBINO','BG','01223850163','','','','NICOLI TRASPORT','BG/1155473/S','','','','','',0,'','' )
,('01','TR',210,0,'PIZZATO MAURO ALFIO','Via delle Rose, 49','36061','BASSANO DEL GRAPPA','VI','01737820249','','','','PIZZATO MAURO A','VI2954236F','','','','','',0,'','' )
,('01','TR',211,0,'CASTAGNINI L. E F. SNC','VIA BELLINI, 6','57023','CECINA','LI','00809330491','','','','CASTAGNINI L.','LI/4851877/T','','','','','',0,'','' )
,('01','TR',212,0,'ULIANA CORRADO SRL','VIA S.QUASIMODO 14','31016','CORDIGNANO','TV','04707030260','','','','ULIANA CORRADO','TV 2659166X','','','','','',0,'','' )
,('01','TR',213,0,'AUTOTRASPORTI CHEROBIN DIEGO','VIA PIAVE 58','36050','QUINTO VICENTINO','VI','01311980245','','','','CHEROBIN DIEGO','VI 2953129-B','','','','','',0,'','' )
,('01','TR',214,0,'F.LLI BISI AUTOTRASPORTI','VIA ARGINI 1901/B','41017','RAVARINO','MO','02251240368','','','','F.LLI BISI','MO4106534P','','','','','',0,'','' )
,('01','TR',215,0,'BASSO MARIO AUT/FEDERSPED SAS','VIA PIAVE 26/C','31050','VEDELAGO','TV','03591290261','','','','BASSO MARIO AUT','TV2667027D','','','','','',0,'','' )
,('01','TR',216,0,'CASARIN LUCA C/FEDERSPED SAS','VIA S. DONO 7/C','31010','TREBASELEGHE','PD','03636770285','','','','CASARIN LUCA C/','PD2458620X','','','','','',0,'','' )
,('01','TR',217,0,'LIVERANI SPA C/FEDERSPED SAS','VIA MAESTRI DEL LAVORO 4','37059','S.MARIA DI ZEVIO','VR','02996440232','','','','LIVERANI FEDERS','VR2807209S','','','','','',0,'','' )
,('01','TR',218,0,'DE MARCHI DENIS C/FEDERSPED','VIA CAPITELLO 6/A','31050','MORGANO','TV','04669280267','','','','DE MARCHI DENIS','TV/2659129/S','','','','','',0,'','' )
,('01','TR',219,0,'CARGOSYSTEM SPA','VIA G. ROSSA, 30/A','57013','ROSIGNANO MARITTIMA','MI','00893450155','','','','CARGOSYSTEM SPA','MI/0850110/R','','','','','',0,'','' )
,('01','TR',220,0,'RI.TRANS SRL','PIAZZA MERCATO 5','30175','MARGHERA','VE','03093680274','','','','RI.TRANS SRL','VE2255841/K','','','','','',0,'','' )
,('01','TR',221,0,'ITT INDEPENDENT TANK TRANSPORT','VIALE CARNIA, 65','33031','BASILIANO','UD','02817870302','','','','ITT INDEPENDENT','UD/3255009/T','','','','','',0,'','' )
,('01','TR',222,0,'TRALFO SRL','STRADA PANTIERA','65020','ROSCAINO','PE','01335890685','','','','TRALFO SRL','PE/6402047/Y/00','','','','','',0,'','' )
,('01','TR',223,0,'AUTOSPEDG SPA','VIALE EUROPA 25','15053','CASTELNUOVO SCRIVIA','AL','00153880067','','','','AUTOSPEDG SPA','AL0350279/P','','','','','',0,'','' )
,('01','TR',224,0,'SDA EXPRESS COURIER SPA','VIALE EUROPA 175','00144','ROMA','RM','05714511002','','','','SDA EXPRESS COU','RM/5818599/U','','','','','',0,'','' )
,('01','TR',225,0,'C&C TRASPORTI DI COMPAGNINI C.','VIALE ITALIA, 284','31040','SEGUSINO','TV','04657290260','','','','C&C TRASPORTI','TV/2659130/X','','','','','',0,'','' )
,('01','TR',226,0,'BASSO MARIO TRASPORTI','VIA PIAVE 26','31050','VEDELAGO','TV','03591290261','','','','BASSO MARIO','TV2657027D','','','','','',0,'','' )
,('01','TR',227,0,'CORA  TRASPORTI SCARL','VIA DELLE CATERATTE, 25','57122','LIVORNO','LI','01263610493','','','','CORA  TRASPORTI','LI/4852663/D','','','','','',0,'','' )
,('01','TR',228,0,'TNT GLOBAL EXPRESS SRL','CORSO GIULIO CESARE 268','10154','TORINO','TO','09399880153','','','','TNT GLOBAL EXPR','TOT0073196W','','','','','',0,'','' )
,('01','TR',229,0,'Valdadige Trasporti Soc.Coop.','Via Giarolo 17','37020','Rivalta - Brentino Belluno','VR','04132360233','','','','Valdadige Trasp','TVR2809645Y','','','','','',0,'','' )
,('01','TR',230,0,'LAZZARIN ALBINO AUTOTRASPORTI','VIA S. GIOVANNI, 3','35020','CANDIANA','PD','02629580289','','','','LAZZARIN ALBINO','PD2456544D','','','','','',0,'','' )
,('01','TR',231,0,'TECNOSPURGHI DI E. FIASCHI','VIA CIMAROSA, 118','57124','LIVORNO','LI','01321500496','','','','TECNOSPURGHI DI','LI/4852985/R','','','','','',0,'','' )
,('01','TR',232,0,'L.T. LOGISTICA E TRASPORTI SRL','VIA DELLE COLLINE','57014','COLLESALVETTI','LI','01806590491','','','','L.T. LOGISTICA','LI/4853490/W','','','','','',0,'','' )
,('01','TR',233,0,'CON.ECO TRASPORTI C/FEDERSPED','VIALE V.RANDI 44','48121','RAVENNA','RA','02272700390','','','','CON.ECO FEDERSP','RA 4406200M','','','','','',0,'','' )
,('01','TR',234,0,'SETTORE TRASPORTI SRL','SS 67 BIS KM 17+400','57014','COLLESALVETTI','LI','01552800490','','','','SETTORE TRASPOR','LI/4853232/W','','','','','',0,'','' )
,('01','TR',235,0,'NEKTA SRL C/FEDERSPED SRL','VIA PONTECORVO 1','30027','SAN DONA DI PIAVE','TV','02299920278','','','','NEKTA SRL C/FED','VE2254317L00','','','','','',0,'','' )
,('01','TR',236,0,'CONSAR SOC.COOP.C/FEDERSPED','VIA VICOLI 93','48124','RAVENNA','RA','00175490390','','','','CONSAR SOC.COOP','RA4403037M','','','','','',0,'','' )
,('01','TR',237,0,'F.LLI TOBALDO SNC','VIA DEL LAVORO 17','35030','BASTIA DI ROVOLON','PD','03993990286','','','','F.LLI TOBALDO S','2459527F','','','','','',0,'','' )
,('01','TR',238,0,'PM TRASPORTI SAS DI P. MASIERO','VIA BIASUTTI, 34','33072','CASARSA DELLA DELIZIA','PN','01222300939','','','','PM TRASPORTI SA','PN/3202132/D','','','','','',0,'','' )
,('01','TR',239,0,'C.A.P.E.SRL C/FEDERSPED SRL','VIA PANA 112','48018','FAENZA','RA','00869210393','','','','C.A.P.E.SRL C/F','RA/4404493/M','','','','','',0,'','' )
,('01','TR',240,0,'ADAMI AUTOTRASPORTI SPA','VIA VALPOLICELLA NR. 74','37024','ARBIZZANO','VR','01769310234','','','','ADAMI SPA','TVR2704308S','','','','','',0,'','' )
,('01','TR',241,0,'C.A.M.T. S.C.C.','VIA MADONNA,4','31048','S.BIAGIO DI CALLALTA','TV','','','','','C.A.M.T. S.C.C.','TV2656078/X','','','','','',0,'','' )
,('01','TR',242,0,'AUTOTRASPORTI RIGHETTI SRL','VIA DON CALABRIA 14','37026','BALCONI DI PESCATINA','VR','03139590230','','','','RIGHETTI SRL','TVR2807740Z','','','','','',0,'','' )
,('01','TR',243,0,'PENTAGON FREIGHT SERVICES SRL','VIA AURELIO NICOLODI 15','20161','MILANO','MI','','','','','PENTAGON FREIGH','','','','','','',0,'','' )
,('01','TR',244,0,'CONTI & TRUCK SRL','VIA S. PELLICO 37','','ALBIGNASEGO','PD','','','','','CONTI & TRUCK S','PD 2459895 H','','','','','',0,'','' )
,('01','TR',245,0,'LEKA TRASPORTI E LOGISTICA SRL','VIA PROVINCIALE CANIPALETTI 25','55054','MASSAROSA','LU','02508240468','','','','LEKA TRASPORTI','LU/4963166/T','','','','','',0,'','' )
,('01','TR',246,0,'V&V SERVICE SRL','VIA CADORE - SS 667','31031','CAERANO SAN MARCO','TV','03929790289','','','','V&V SERVICE SRL','TV/2658347/B','','','','','',0,'','' )
,('01','TR',247,0,'TRANS ITALIA SRL','PIAZZA MARTINEZ, 5','84084','FISCIANO','SA','02032300655','','','','TRANS ITALIA SR','SA/7106006/E','','','','','',0,'','' )
,('01','TR',248,0,'TIR SERVICE SRL','VIA RONCHE, 2','31020','PORTOBUFFOLE''','TV','04965680269','','','','TIR SERVICE SRL','TV2652496/L','','','','','',0,'','' )
,('01','TR',249,0,'KORTIMED SRL','VIA LE SODOLE 40/B','50055','LASTRA A SIGNA','FI','05473540481','','','','KORTIMED SRL','FI-T4610728/L','','','','','',0,'','' )
,('01','TR',250,0,'B.C.E. SRL','VIA CONTI AGOSTI, 205','31010','MARENO DI PIAVE','TV','04217240268','','','','B.C.E. SRL','TV/2658621/W','','','','','',0,'','' )
,('01','TR',251,0,'TRA.SPED. SRL','LOC. LA PIANA, 42','12058','S. STEFANO BELBO','CN','02017580040','','','','TRA.SPED. SRL','CN 0503972/F','','','','','',0,'','' )
,('01','TR',252,0,'ITALTRANSPORT SRL','VIA T. EDISON, 61','30035','BALLO'' DI MIRANO','VE','03226320277','','','','ITALTRANSPORT S','VE/2256612/A','','','','','',0,'','' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAUM', GetDate())
INSERT INTO dbo.ATBAUM_01 VALUES
('01','UM',1,0,'LITRI','LT',0,0,0,'O','LT','','L',0,1,0,0,0,'',0,0,'',0,0,'',0,'S','N',0,0,0,'',0,'' )
,('01','UM',2,0,'CHILOGRAMMI','KG',0,0,0,'N','KG','','K',0,0,0,1,0,'',0,0,'',0,0,'',0,'N','N',0,0,0,'',0,'' )
,('01','UM',106,0,'CARTONE  06 BOTTIGLIE 0,75 LT','CRT06',104,6,0.75,'N','NR','Crt  06 bott 0,75','X',6,4.5,12,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,0.75,'',0,'' )
,('01','UM',112,0,'CARTONE  12 BOTTIGLIE 0,75 LT','CRT 1',104,12,0.75,'N','NR','Crt  12 bott 0,75','X',12,9,12,0,0,'',0,0,'',0,0,'',0,'N','S',12,0,0.75,'',0,'' )
,('01','UM',206,0,'CESTELLO 06 BOTTIGLIE 2,00 LT','CEST.',0,0,2,'N','NR','Cest  6 bott 2,0','X',6,12,20,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,2,'',0,'' )
,('01','UM',501,0,'BOTTIGLIA DA 0,50','BOTT',103,1,0.75,'N','NR','BOTT 0,50','X',1,0.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.5,'',0,'' )
,('01','UM',502,0,'BOTTIGLIA DA 0,75','BOTT',104,1,0.75,'N','NR','BOTT 0,75','X',1,0.75,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.75,'',0,'N' )
,('01','UM',503,0,'BOTTIGLIA DA 1.00','BOTT',105,1,0.75,'N','NR','BOTT 1.00','X',1,1,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,1,'',0,'' )
,('01','UM',504,0,'BOTTIGLIA DA 1.50','BOTT',106,1,0.75,'N','NR','BOTT 1.50','X',1,1.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,1.5,'',0,'N' )
,('01','UM',505,0,'BAG IN BOX DA 5 LITRI','BiB5L',115,1,0,'N','BB','BAG IN BOX DA 5 LITRI','X',1,5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,5,'',0,'N' )
,('01','UM',506,0,'BOTTIGLIA 0,7','B0700',107,1,0,'N','NR','BOTTIGLIA 0,7','X',1,0.7,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.7,'',0,'N' )
,('01','UM',520,0,'Fusto da 20 litri','Fs20L',0,0,0,'N','FS','Fusto da 20 litri','X',1,20,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,20,'',0,'N' )
,('01','UM',9006,0,'CARTONE MISTO 6 BOTT. 0,75','CRT 6',0,0,0,'N','NR','Crt  6 bott 0,75 missto','X',1,0,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,0,'',0,'' )
,('01','UM',9106,0,'CASSETTA MOGANO 6 BOTTIGLIE','CAS 6',0,0,0,'N','NR','Cassetta mogano 6 bott','X',1,0,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,0,'',0,'' )
,('01','UM',9998,0,'IMPORTI','IMP.',0,0,0,'O','IM','','X',0,0,0,0,0,'',0,0,'',0,0,'',0,'N','N',0,0,0,'',0,'' )
,('01','UM',9999,0,'NUMERO GENERICO','NUMER',0,0,0,'O','NR','','X',1,0,0,0,0,'',0,0,'',0,0,'',0,'N','N',0,0,0,'',0,'' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU1_01 (ID_AZI,NUMBOL)
CREATE INDEX KEY02 ON dbo.AACQU1_01 (ID_AZI,CODFOR,NUMBOL)
CREATE INDEX KEY03 ON dbo.AACQU1_01 (ID_AZI,DTABOL,CODFOR,NUMBOL)
CREATE INDEX KEY04 ON dbo.AACQU1_01 (ID_AZI,CODFOR,NUMREG,NUMBOL)
CREATE INDEX KEY05 ON dbo.AACQU1_01 (ID_AZI,CODFOR,DATFAT,NUMFAT,NUMBOL)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUQ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUQ_01 (ID_AZI,NUMBOL,NUMRIG,CODVAS)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUZ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUZ_01 (ID_AZI,NUMBOL,NUMRIG)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL1_01 (ID_AZI,CODICE)
CREATE INDEX KEY02 ON dbo.AANCL1_01 (ID_AZI,RAGSOC,CODICE)
CREATE INDEX KEY03 ON dbo.AANCL1_01 (ID_AZI,PARIVA,CODICE)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO1_01 (ID_AZI,CODICE)
CREATE INDEX KEY02 ON dbo.AANFO1_01 (ID_AZI,RAGSOC,CODICE)
CREATE INDEX KEY03 ON dbo.AANFO1_01 (ID_AZI,PARIVA,CODICE)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI1_01 (ID_AZI,CODICE)
CREATE INDEX KEY02 ON dbo.AARTI1_01 (ID_AZI,DESCRI,CODICE)
CREATE INDEX KEY03 ON dbo.AARTI1_01 (ID_AZI,CODABB,CODICE)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI3_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI3_01 (ID_AZI,CODART,CODCMP)
CREATE INDEX KEY02 ON dbo.AARTI3_01 (ID_AZI,CODCMP,CODART)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL1_01 (ID_AZI,NUMBOL)
CREATE INDEX KEY02 ON dbo.ABOLL1_01 (ID_AZI,CODCLI,NUMBOL)
CREATE INDEX KEY03 ON dbo.ABOLL1_01 (ID_AZI,DTABOL,CODCLI,NUMBOL)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL9_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL9_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM,NUMLOT)
CREATE INDEX KEY02 ON dbo.ABOLL9_01 (ID_AZI,LOTTOS,DTASCA,SPACES,NUMBOL,NUMRIG,NUMCOM,NUMLOT)
CREATE INDEX KEY03 ON dbo.ABOLL9_01 (ID_AZI,CODART,ANNATA,LOTTOS,DTASCA,SPACES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLQ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLQ_01 (ID_AZI,NUMBOL,NUMRIG,FLAGPA,CODVAS)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLZ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLZ_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APICOL_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.APICOL_01 (ID_AZI,ZEROES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROD1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.APROD1_01 (ID_AZI,NUMPRO)
CREATE INDEX KEY02 ON dbo.APROD1_01 (ID_AZI,CODART,ANNATA,ZEROES,DTAPRO,NUMPRO)
CREATE INDEX KEY03 ON dbo.APROD1_01 (ID_AZI,DTAPRO,CODART,ANNATA,ZEROES,NUMPRO)
CREATE INDEX KEY04 ON dbo.APROD1_01 (ID_AZI,FLAGOP,DTAPRO,NUMPRO)
CREATE INDEX KEY05 ON dbo.APROD1_01 (ID_AZI,NUMMMG)
CREATE INDEX KEY06 ON dbo.APROD1_01 (ID_AZI,LOTTON)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROD2_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.APROD2_01 (ID_AZI,NUMPRO,NUMRGA)
CREATE INDEX KEY02 ON dbo.APROD2_01 (ID_AZI,CODCOM,ANNATA,NLOTTO,NUMPRO,NUMRGA)
CREATE INDEX KEY03 ON dbo.APROD2_01 (ID_AZI,CODFOR,LOTTOF,NUMPRO,NUMRGA)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APRODQ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.APRODQ_01 (ID_AZI,NUMPRO,IDPROD,CODVAS)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUFA1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUFA1_01 (ID_AZI,IDFAMI,CODMEN)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUFAM_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUFAM_01 (ID_AZI,IDFAMI)
CREATE INDEX KEY02 ON dbo.ARUFAM_01 (ID_AZI,CODICE)
CREATE INDEX KEY03 ON dbo.ARUFAM_01 (ID_AZI,DESCRI,IDFAMI)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBC_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBC_01 (ID_AZI,CODVEN,CODREG,NUMCON,CODVIT)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBP_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBP_01 (ID_AZI,CODVEN,CODREG,NUMCON,CODRAG)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBQ_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBQ_01 (ID_AZI,CODICE)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBR_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBR_01 (ID_AZI,CODVEN,CODVIT)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBS_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBS_01 (ID_AZI,CODVEN,CODSOC)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBT_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBT_01 (ID_AZI,CODREG,IDPROD)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUGBV_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUGBV_01 (ID_AZI,CODREG,IDPROD,CODVAS)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR1_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR1_01 (ID_AZI,IDPROD)
CREATE INDEX KEY02 ON dbo.ARUPR1_01 (ID_AZI,IDFAMI,ANNATA,IDPROD)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR2_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR2_01 (ID_AZI,IDPROD,CODISO)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR3_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR3_01 (ID_AZI,IDPROD,CODVAR)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR4_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR4_01 (ID_AZI,IDPROD,CODMAN)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR5_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR5_01 (ID_AZI,IDPROD,ANNATA)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUREG_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ARUREG_01 (ID_AZI,CODICE)
CREATE INDEX KEY02 ON dbo.ARUREG_01 (ID_AZI,DESCRI,CODICE)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBADC_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ATBADC_01 (ID_AZI,TIPREC,CODICE,ZEROES)
CREATE INDEX KEY02 ON dbo.ATBADC_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBADF_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ATBADF_01 (ID_AZI,TIPREC,CODICE,ZEROES)
CREATE INDEX KEY02 ON dbo.ATBADF_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAMA_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAMA_01 (ID_AZI,TIPREC,CODICE,ZEROES)
CREATE INDEX KEY02 ON dbo.ATBAMA_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBATR_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ATBATR_01 (ID_AZI,TIPREC,CODICE,ZEROES)
CREATE INDEX KEY02 ON dbo.ATBATR_01 (ID_AZI,TIPREC,RAGSOC,CODICE,ZEROES)
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAUM_01', GetDate())
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAUM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
CREATE INDEX KEY02 ON dbo.ATBAUM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione script /data/av2000/sql/av_col_tmp_v3.sql', GetDate())
-- v2 - 26/04/2018
--      aggiunto scelte a conferimenti
--      per aggiornare clienti fare agg completo, aggiungere al db ARUGBS.
--
-- v3 - 25/05/2018
--      aggiunto tabella carichi_uve (conferimenti come carichi di raggruppamenti di vinificazione).
--      tolto qualche commento assurdo su mysql
--      per aggiornare clienti fare agg completo, aggiungere al db ARUGBP e ARUGBQ.
 
-- n.b. I DB AV_COL_TMP E AV_COL VANNO CREATI MANUALMENTE
 
-- LE TABELLE DEL DB AV_COL VENGONO AGGIORNATE DA QUESTO SCRIPT LANCIATO IN CODA ALLA
-- CREAZIONE DI UN DATABASE TEMPORANEO CHE CREATO DA AV2000
 
-- LE TABELLE VENGONO CREATE SOLO CON I CAMPI GESTITI AD OGGI SUI RECORD, PER FARE QUESTO
-- VIENE CREATA UNA TABELLA TEMPORANEA (STRUTTURA) CON UNA SELECT SULLA TABELLA
-- NEL DATABASE TEMPORANEO CHE SELEZIONA I CAMPI GESTITI AD OGGI (QUESTO EVITA
-- DI FARE UNA CREATE TABLE CON TUTTE LE PICTURE DEI CAMPI).
 
-- DOPO LA CREATE VIENE FATTO L'ALLINEAMENTO TRA LE DUE TABELLE ATTRAVERSO:
-- - LA INSERT DELLE RIGHE PRESENTI NEL DATABASE TEMPORANEO E NON IN QUELLO REALE
-- - LA DELETE DELLE RIGHE PRESENTI NEL DATABASE RELAE NON IN QUELLO TEMPORANEO
-- - LA UPDATE DEI VALORI DEI CAMPI DIVERSI NEL DATABASE RELAE RISPETTO A QUELLO
--   TEMPORANEO
 
-- *********
-- SOGGETTI --
-- *********
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_SOGGETTI') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_SOGGETTI;
go
 
-- CREA TABELLA STRUTTURA (LA WHERE 1=2 SERVE PER NON INSERIRE NEANCHE UNA RIGA)
SELECT ID_AZI,CODICE,RAGSOC,PARIVA
INTO AV_COL_TMP.dbo.STRUTTURA_SOGGETTI
FROM AV_COL_TMP.dbo.AANCL1_01
WHERE 1 = 2
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_SOGGETTI ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_SOGGETTI ADD TIPSOG VARCHAR(1) NOT NULL;
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_SOGGETTI ADD CODSOG VARCHAR(7) NOT NULL;
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_SOGGETTI ADD PRIMARY KEY (
ID_AZI,
CODSOG);
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'SOGGETTI')
SELECT * INTO AV_COL.dbo.SOGGETTI FROM AV_COL_TMP.dbo.STRUTTURA_SOGGETTI WHERE 1 = 0;
 
go
 
-- CLIENTI --
 
-- AGGIUNGE UN CAMPO ALLA TABELLA CLIENTI CON IL VALORE DELL'ATTRIBUTO INSERITO NEI PARAMETRI DI INTERFACCIA COME SELEZIONE DEI CLIENTI DA ESPORTARE
-- MI SEMBRA L'UNICO MODO PER POTERLO FILTRARE NELLE SUCCESSIVE OPERAZIONI CONSIDERANDO CHE IN SQL NON CI SONO GLI ARRAY
 
ALTER TABLE AV_COL_TMP.dbo.AANCL1_01 ADD ATTSEL INTEGER;
 
go
 
-- SERVE PER NON AVERE IL VALORE NULL IN MODO CHE SE NEI PARAMTERI NON C'E' UN ATTRIBUTO IMPOSTATO INSERISCE TUTTI I SOGGETTI
UPDATE CLIENTI SET CLIENTI.ATTSEL = 0
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI;
 
go
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_1
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 1;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_2
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 2;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_3
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 3;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_4
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 4;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_5
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 5;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_6
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 6;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_7
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 7;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_8
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 8;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_9
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 9;
 
UPDATE CLIENTI SET CLIENTI.ATTSEL=CLIENTI.CODATT_10
FROM AV_COL_TMP.dbo.AANCL1_01 CLIENTI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON CLIENTI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.CNRATT = 10;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.SOGGETTI
(ID_AZI,
CODICE,
TIPSOG,
CODSOG,
RAGSOC,
PARIVA)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODICE,
'C',
'C'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODICE))) + RTRIM(SORGENTE.CODICE),
SORGENTE.RAGSOC,
SORGENTE.PARIVA
FROM AV_COL_TMP.dbo.AANCL1_01 SORGENTE
LEFT JOIN AV_COL.dbo.SOGGETTI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODICE = DESTINAZIONE.CODICE
AND DESTINAZIONE.TIPSOG = 'C'
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON SORGENTE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.CODICE IS NULL
AND SORGENTE.ATTSEL = PARAMETRI.CCDATT;
 
-- RIMOZIONE DEI CLIENTI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!) O CON ATTRIBUTO NO
DELETE AV_COL.dbo.SOGGETTI
FROM AV_COL.dbo.SOGGETTI
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 ON AV_COL_TMP.dbo.AANCL1_01.ID_AZI = AV_COL.dbo.SOGGETTI.ID_AZI AND AV_COL_TMP.dbo.AANCL1_01.CODICE = AV_COL.dbo.SOGGETTI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 ON AV_COL.dbo.SOGGETTI.ID_AZI = AV_COL_TMP.dbo.APICOL_01.ID_AZI
WHERE AV_COL.dbo.SOGGETTI.TIPSOG = 'C' AND (AV_COL_TMP.dbo.AANCL1_01.CODICE IS NULL OR AV_COL_TMP.dbo.AANCL1_01.ATTSEL <> AV_COL_TMP.dbo.APICOL_01.CCDATT);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODICE,
DESTINAZIONE.TIPSOG='C',
DESTINAZIONE.CODSOG='C'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODICE))) + RTRIM(SORGENTE.CODICE),
DESTINAZIONE.RAGSOC=SORGENTE.RAGSOC,
DESTINAZIONE.PARIVA=SORGENTE.PARIVA
FROM AV_COL.dbo.SOGGETTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.AANCL1_01 SORGENTE
ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI
AND DESTINAZIONE.CODICE = SORGENTE.CODICE
AND DESTINAZIONE.TIPSOG = 'C'
WHERE DESTINAZIONE.RAGSOC <> SORGENTE.RAGSOC
OR DESTINAZIONE.PARIVA <> SORGENTE.PARIVA;
 
go
 
-- FORNITORI --
 
-- AGGIUNGE UN CAMPO ALLA TABELLA CLIENTI CON IL VALORE DELL'ATTRIBUTO INSERITO NEI PARAMETRI DI INTERFACCIA COME SELEZIONE DEI CLIENTI DA ESPORTARE
-- MI SEMBRA L'UNICO MODO PER POTERLO FILTRARE NELLE SUCCESSIVE OPERAZIONI CONSIDERANDO CHE IN SQL NON CI SONO GLI ARRAY
 
ALTER TABLE AV_COL_TMP.dbo.AANFO1_01 ADD ATTSEL INTEGER;
 
go
 
-- SERVE PER NON AVERE IL VALORE NULL IN MODOC HE SE NEI PARAMTERI NON C'E' UN ATTRIBUTO IMPOSTATO INSERISCE TUTTI I SOGGETTI
UPDATE FORNITORI SET FORNITORI.ATTSEL = 0
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
 
go
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_1
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 1;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_2
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 2;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_3
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 3;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_4
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 4;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_5
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 5;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_6
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 6;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_7
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 7;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_8
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 8;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_9
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 9;
 
UPDATE FORNITORI SET FORNITORI.ATTSEL=FORNITORI.CODATT_10
FROM AV_COL_TMP.dbo.AANFO1_01 FORNITORI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON FORNITORI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.FNRATT = 10;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.SOGGETTI
(ID_AZI,
CODICE,
TIPSOG,
CODSOG,
RAGSOC,
PARIVA)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODICE,
'F',
'F'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODICE))) + RTRIM(SORGENTE.CODICE),
SORGENTE.RAGSOC,
SORGENTE.PARIVA
FROM AV_COL_TMP.dbo.AANFO1_01 SORGENTE LEFT JOIN AV_COL.dbo.SOGGETTI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODICE = DESTINAZIONE.CODICE
AND DESTINAZIONE.TIPSOG = 'F'
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON SORGENTE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.CODICE IS NULL
AND SORGENTE.ATTSEL = PARAMETRI.FCDATT;
 
go
 
-- RIMOZIONE DEI FORNITORI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!) O CON ATTRIBUTO NO
DELETE AV_COL.dbo.SOGGETTI
FROM AV_COL.dbo.SOGGETTI
LEFT JOIN AV_COL_TMP.dbo.AANFO1_01 ON AV_COL_TMP.dbo.AANFO1_01.ID_AZI = AV_COL.dbo.SOGGETTI.ID_AZI AND AV_COL_TMP.dbo.AANFO1_01.CODICE = AV_COL.dbo.SOGGETTI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 ON AV_COL.dbo.SOGGETTI.ID_AZI = AV_COL_TMP.dbo.APICOL_01.ID_AZI
WHERE AV_COL.dbo.SOGGETTI.TIPSOG = 'F' AND (AV_COL_TMP.dbo.AANFO1_01.CODICE IS NULL OR AV_COL_TMP.dbo.AANFO1_01.ATTSEL <> AV_COL_TMP.dbo.APICOL_01.FCDATT);
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODICE,
DESTINAZIONE.TIPSOG='F',
DESTINAZIONE.CODSOG='F'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODICE))) + RTRIM(SORGENTE.CODICE),
DESTINAZIONE.RAGSOC=SORGENTE.RAGSOC,
DESTINAZIONE.PARIVA=SORGENTE.PARIVA
FROM AV_COL.dbo.SOGGETTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.AANFO1_01 SORGENTE
ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI
AND DESTINAZIONE.CODICE = SORGENTE.CODICE
AND DESTINAZIONE.TIPSOG = 'F'
WHERE DESTINAZIONE.RAGSOC <> SORGENTE.RAGSOC
OR DESTINAZIONE.PARIVA <> SORGENTE.PARIVA;
 
go
 
-- SOCI--
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.SOGGETTI
(ID_AZI,
CODICE,
TIPSOG,
CODSOG,
RAGSOC,
PARIVA)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODSOC,
'S',
'S'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODSOC))) + RTRIM(SORGENTE.CODSOC),
SORGENTE.RAGSOC,
SORGENTE.PARIVA
FROM AV_COL_TMP.dbo.ARUGBS_01 SORGENTE LEFT JOIN AV_COL.dbo.SOGGETTI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODSOC = DESTINAZIONE.CODICE
AND DESTINAZIONE.TIPSOG = 'S'
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON SORGENTE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.CODICE IS NULL
AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
-- RIMOZIONE DEI SOCI CANCELLATI SU AV2000 NELLA VENDEMMIA CORRENTE
DELETE DESTINAZIONE
FROM AV_COL.dbo.SOGGETTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ARUGBS_01 SORGENTE ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODSOC = DESTINAZIONE.CODICE
AND SORGENTE.CODVEN = PARAMETRI.CODVEN
WHERE DESTINAZIONE.TIPSOG = 'S' AND SORGENTE.CODSOC IS NULL
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODSOC,
DESTINAZIONE.TIPSOG='S',
DESTINAZIONE.CODSOG='S'+REPLICATE('0',6-LEN(RTRIM(SORGENTE.CODSOC))) + RTRIM(SORGENTE.CODSOC),
DESTINAZIONE.RAGSOC=SORGENTE.RAGSOC,
DESTINAZIONE.PARIVA=SORGENTE.PARIVA
FROM AV_COL.dbo.SOGGETTI DESTINAZIONE
LEFT JOIN AV_COL_TMP.dbo.ARUGBS_01 SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.CODICE = SORGENTE.CODSOC AND DESTINAZIONE.TIPSOG = 'S'
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
WHERE (DESTINAZIONE.RAGSOC <> SORGENTE.RAGSOC
OR DESTINAZIONE.PARIVA <> SORGENTE.PARIVA)
AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
 
-- ************
-- PRODOTTI RU --
-- ************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_PRODOTTI') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_PRODOTTI;
 
go
 
-- CREA TABELLA STRUTTURA INSERENDO TUTTI I VALORI INQUESTO CASO, IN MODO DA AVERE UNA TABELLA PRONTAPER L'ALLINEAMENTO CON IL DB REALE
 
SELECT
PRODOTTI.ID_AZI,
PRODOTTI.IDPROD,
PRODOTTI.IDFAMI,
FAMIGLIE.CODICE AS CODFAM,
FAMIGLIE.DESCRI,
PRODOTTI.ANNATA,
FAMIGLIE.CODCAT,
FAMIGLIE.CODATT,
FAMIGLIE.CODCLA,
FAMIGLIE.CODDOI,
FAMIGLIE.CODEBA,
FAMIGLIE.CODZON,
FAMIGLIE.CODSOT,
FAMIGLIE.CODVIG,
FAMIGLIE.CODCOL,
FAMIGLIE.CODBIO,
FAMIGLIE.CODSTF,
CAST(
     SUBSTRING(
        (   SELECT ','+TB1.CODMEN  AS [text()]
            FROM AV_COL_TMP.DBO.ARUFA1_01 TB1
            WHERE TB1.ID_AZI = FAMIGLIE.ID_AZI AND TB1.IDFAMI = FAMIGLIE.IDFAMI
            ORDER BY TB1.CODMEN
            FOR XML PATH ('')
        ), 2, 1000) AS VARCHAR(200)) DESMEN,
CAST(
  (CASE
      WHEN PRODOTTI.CODCOM <> 0 THEN PRODOTTI.TIPCOM+REPLICATE('0',6-LEN(RTRIM(PRODOTTI.CODCOM))) + RTRIM(PRODOTTI.CODCOM)
      ELSE NULL
   END) AS varchar(7)) CODCOM,
CAST(
  (CASE
      WHEN PRODOTTI.TIPCOM='C' THEN CLIENTI.RAGSOC
      WHEN PRODOTTI.TIPCOM='F' THEN FORNITORI.RAGSOC
      ELSE ' '
   END) AS varchar(40)) DESCOM,
CAST(
     SUBSTRING(
        (   SELECT ','+TB1.CODMAN  AS [text()]
            FROM AV_COL_TMP.DBO.ARUPR4_01 TB1
            WHERE TB1.ID_AZI = PRODOTTI.ID_AZI AND TB1.IDPROD = PRODOTTI.IDPROD
            ORDER BY TB1.CODMAN
            FOR XML PATH ('')
        ), 2, 1000) AS VARCHAR(200)) PRAENO,
PRODOTTI.MASSAV,
PRODOTTI.NUMCER,
PRODOTTI.DTACER,
PRODOTTI.CODORU,
PRODOTTI.CODPRV,
CAST(
     SUBSTRING(
        (   SELECT ','+TB1.CODISO  AS [text()]
            FROM AV_COL_TMP.DBO.ARUPR2_01 TB1
            WHERE TB1.ID_AZI = PRODOTTI.ID_AZI AND TB1.IDPROD = PRODOTTI.IDPROD
            ORDER BY TB1.CODISO
            FOR XML PATH ('')
        ), 2, 1000) AS VARCHAR(200)) PAEPRV,
PRODOTTI.CODPAR,
CAST(
     SUBSTRING(
        (   SELECT ','+'TB1.CODVAR' AS [text()]
            FROM AV_COL_TMP.DBO.ARUPR3_01 TB1
            WHERE TB1.ID_AZI = PRODOTTI.ID_AZI AND TB1.IDPROD = PRODOTTI.IDPROD
            ORDER BY TB1.CODVAR
            FOR XML PATH ('')
        ), 2, 1000) AS VARCHAR(200)) DESVAR,
PRODOTTI.ALTVAR
INTO AV_COL_TMP.dbo.STRUTTURA_PRODOTTI
FROM AV_COL_TMP.dbo.ARUPR1_01 PRODOTTI
LEFT JOIN AV_COL_TMP.dbo.ARUFAM_01 FAMIGLIE ON PRODOTTI.ID_AZI = FAMIGLIE.ID_AZI AND PRODOTTI.IDFAMI = FAMIGLIE.IDFAMI
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 CLIENTI ON PRODOTTI.ID_AZI = CLIENTI.ID_AZI AND PRODOTTI.CODCOM = CLIENTI.CODICE AND PRODOTTI.TIPCOM = 'C'
LEFT JOIN AV_COL_TMP.dbo.AANFO1_01 FORNITORI ON PRODOTTI.ID_AZI = FORNITORI.ID_AZI AND PRODOTTI.CODCOM = FORNITORI.CODICE AND PRODOTTI.TIPCOM = 'F'
WHERE FAMIGLIE.CODSTF = 1;
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_PRODOTTI ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_PRODOTTI ALTER COLUMN IDPROD DECIMAL(13,0) NOT NULL
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_PRODOTTI ADD PRIMARY KEY (
ID_AZI,
IDPROD);
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'PRODOTTI')
SELECT * INTO AV_COL.dbo.PRODOTTI FROM AV_COL_TMP.dbo.STRUTTURA_PRODOTTI WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.PRODOTTI
(ID_AZI,
IDPROD,
IDFAMI,
CODFAM,
DESCRI,
ANNATA,
CODCAT,
CODATT,
CODCLA,
CODDOI,
CODEBA,
CODZON,
CODSOT,
CODVIG,
CODCOL,
CODBIO,
CODSTF,
DESMEN,
CODCOM,
DESCOM,
PRAENO,
MASSAV,
NUMCER,
DTACER,
CODORU,
CODPRV,
PAEPRV,
CODPAR,
DESVAR,
ALTVAR)
SELECT
SORGENTE.ID_AZI,
SORGENTE.IDPROD,
SORGENTE.IDFAMI,
SORGENTE.CODFAM,
SORGENTE.DESCRI,
SORGENTE.ANNATA,
SORGENTE.CODCAT,
SORGENTE.CODATT,
SORGENTE.CODCLA,
SORGENTE.CODDOI,
SORGENTE.CODEBA,
SORGENTE.CODZON,
SORGENTE.CODSOT,
SORGENTE.CODVIG,
SORGENTE.CODCOL,
SORGENTE.CODBIO,
SORGENTE.CODSTF,
SORGENTE.DESMEN,
SORGENTE.CODCOM,
SORGENTE.DESCOM,
SORGENTE.PRAENO,
SORGENTE.MASSAV,
SORGENTE.NUMCER,
SORGENTE.DTACER,
SORGENTE.CODORU,
SORGENTE.CODPRV,
SORGENTE.PAEPRV,
SORGENTE.CODPAR,
SORGENTE.DESVAR,
SORGENTE.ALTVAR
From AV_COL_TMP.dbo.STRUTTURA_PRODOTTI SORGENTE LEFT JOIN AV_COL.dbo.PRODOTTI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.IDPROD = DESTINAZIONE.IDPROD
WHERE DESTINAZIONE.IDPROD IS NULL;
 
-- RIMOZIONE DEI PRODOTTI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!)
DELETE AV_COL.dbo.PRODOTTI
FROM AV_COL.dbo.PRODOTTI
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_PRODOTTI ON AV_COL_TMP.dbo.STRUTTURA_PRODOTTI.ID_AZI = AV_COL.dbo.PRODOTTI.ID_AZI AND AV_COL_TMP.dbo.STRUTTURA_PRODOTTI.IDPROD = AV_COL.dbo.PRODOTTI.IDPROD
WHERE AV_COL_TMP.dbo.STRUTTURA_PRODOTTI.IDPROD IS NULL;
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.IDPROD=SORGENTE.IDPROD,
DESTINAZIONE.IDFAMI=SORGENTE.IDFAMI,
DESTINAZIONE.CODFAM=SORGENTE.CODFAM,
DESTINAZIONE.DESCRI=SORGENTE.DESCRI,
DESTINAZIONE.ANNATA=SORGENTE.ANNATA,
DESTINAZIONE.CODCAT=SORGENTE.CODCAT,
DESTINAZIONE.CODATT=SORGENTE.CODATT,
DESTINAZIONE.CODCLA=SORGENTE.CODCLA,
DESTINAZIONE.CODDOI=SORGENTE.CODDOI,
DESTINAZIONE.CODEBA=SORGENTE.CODEBA,
DESTINAZIONE.CODZON=SORGENTE.CODZON,
DESTINAZIONE.CODSOT=SORGENTE.CODSOT,
DESTINAZIONE.CODVIG=SORGENTE.CODVIG,
DESTINAZIONE.CODCOL=SORGENTE.CODCOL,
DESTINAZIONE.CODBIO=SORGENTE.CODBIO,
DESTINAZIONE.CODSTF=SORGENTE.CODSTF,
DESTINAZIONE.DESMEN=SORGENTE.DESMEN,
DESTINAZIONE.CODCOM=SORGENTE.CODCOM,
DESTINAZIONE.DESCOM=SORGENTE.DESCOM,
DESTINAZIONE.PRAENO=SORGENTE.PRAENO,
DESTINAZIONE.MASSAV=SORGENTE.MASSAV,
DESTINAZIONE.NUMCER=SORGENTE.NUMCER,
DESTINAZIONE.DTACER=SORGENTE.DTACER,
DESTINAZIONE.CODORU=SORGENTE.CODORU,
DESTINAZIONE.CODPRV=SORGENTE.CODPRV,
DESTINAZIONE.PAEPRV=SORGENTE.PAEPRV,
DESTINAZIONE.CODPAR=SORGENTE.CODPAR,
DESTINAZIONE.DESVAR=SORGENTE.DESVAR,
DESTINAZIONE.ALTVAR=SORGENTE.ALTVAR
FROM AV_COL.dbo.PRODOTTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_PRODOTTI SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.IDPROD = SORGENTE.IDPROD
JOIN AV_COL_TMP.dbo.ARUFAM_01 FAMIGLIA_SORGENTE ON FAMIGLIA_SORGENTE.ID_AZI = SORGENTE.ID_AZI AND FAMIGLIA_SORGENTE.IDFAMI = SORGENTE.IDFAMI
WHERE DESTINAZIONE.IDFAMI <> SORGENTE.IDFAMI
OR DESTINAZIONE.DESCRI <> SORGENTE.DESCRI
OR DESTINAZIONE.ANNATA <> SORGENTE.ANNATA;
 
go
 
--
-- ***********
-- GIACENZE RU --
-- ***********
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'GIACENZE')
SELECT * INTO AV_COL.dbo.GIACENZE FROM AV_COL_TMP.dbo.ARUGBT_01 WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
-- LE GIACENZE PRESENTI IN ARUGBT SONO SOLO QUELLE DELLO SFUSO (VEDI NRUGBT)
 
INSERT INTO AV_COL.dbo.GIACENZE
(ID_AZI,
CODREG,
IDPROD,
QTAGIA)
SELECT
GIACENZE_SORGENTE.ID_AZI,
GIACENZE_SORGENTE.CODREG,
GIACENZE_SORGENTE.IDPROD,
GIACENZE_SORGENTE.QTAGIA
FROM AV_COL_TMP.dbo.ARUGBT_01 GIACENZE_SORGENTE
LEFT JOIN AV_COL.dbo.GIACENZE DESTINAZIONE
ON GIACENZE_SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND GIACENZE_SORGENTE.CODREG = DESTINAZIONE.CODREG
AND GIACENZE_SORGENTE.IDPROD = DESTINAZIONE.IDPROD
WHERE DESTINAZIONE.IDPROD IS NULL
AND GIACENZE_SORGENTE.QTAGIA <> 0;
 
-- RIMOZIONE DELLE GIACENZE NON PIU' PRESENTI IN AV2000
DELETE AV_COL.dbo.GIACENZE
FROM AV_COL.dbo.GIACENZE
LEFT JOIN AV_COL_TMP.dbo.ARUGBT_01
ON AV_COL_TMP.dbo.ARUGBT_01.ID_AZI = AV_COL.dbo.GIACENZE.ID_AZI
AND AV_COL_TMP.dbo.ARUGBT_01.CODREG = AV_COL.dbo.GIACENZE.CODREG
AND AV_COL_TMP.dbo.ARUGBT_01.IDPROD = AV_COL.dbo.GIACENZE.IDPROD
WHERE AV_COL.dbo.GIACENZE.QTAGIA <> 0
AND (AV_COL_TMP.dbo.ARUGBT_01.QTAGIA = 0 OR AV_COL_TMP.dbo.ARUGBT_01.QTAGIA IS NULL);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=GIACENZE_SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=GIACENZE_SORGENTE.CODREG,
DESTINAZIONE.IDPROD=GIACENZE_SORGENTE.IDPROD,
DESTINAZIONE.QTAGIA=GIACENZE_SORGENTE.QTAGIA
FROM AV_COL.dbo.GIACENZE DESTINAZIONE
JOIN AV_COL_TMP.dbo.ARUGBT_01 GIACENZE_SORGENTE
ON DESTINAZIONE.ID_AZI = GIACENZE_SORGENTE.ID_AZI
AND DESTINAZIONE.CODREG = GIACENZE_SORGENTE.CODREG
AND DESTINAZIONE.IDPROD = GIACENZE_SORGENTE.IDPROD
WHERE DESTINAZIONE.QTAGIA <> GIACENZE_SORGENTE.QTAGIA;
 
go
 
-- **************************
-- GIACENZE RU DETT.VASCHE --
-- **************************
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'GIACENZE_VASCHE')
SELECT * INTO AV_COL.dbo.GIACENZE_VASCHE FROM AV_COL_TMP.dbo.ARUGBV_01 WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
-- LE GIACENZE PRESENTI IN ARUGBV SONO SOLO QUELLE DELLO SFUSO (VEDI NRUGBT)
 
INSERT INTO AV_COL.dbo.GIACENZE_VASCHE
(ID_AZI,
CODREG,
IDPROD,
CODVAS,
QTAGIA)
SELECT
GIACENZE_VASCHE_SORGENTE.ID_AZI,
GIACENZE_VASCHE_SORGENTE.CODREG,
GIACENZE_VASCHE_SORGENTE.IDPROD,
GIACENZE_VASCHE_SORGENTE.CODVAS,
GIACENZE_VASCHE_SORGENTE.QTAGIA
FROM AV_COL_TMP.dbo.ARUGBV_01 GIACENZE_VASCHE_SORGENTE
LEFT JOIN AV_COL.dbo.GIACENZE_VASCHE DESTINAZIONE
ON GIACENZE_VASCHE_SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND GIACENZE_VASCHE_SORGENTE.CODREG = DESTINAZIONE.CODREG
AND GIACENZE_VASCHE_SORGENTE.IDPROD = DESTINAZIONE.IDPROD
AND GIACENZE_VASCHE_SORGENTE.CODVAS = DESTINAZIONE.CODVAS
WHERE (DESTINAZIONE.IDPROD IS NULL OR DESTINAZIONE.CODVAS IS NULL)
AND GIACENZE_VASCHE_SORGENTE.QTAGIA <> 0;
 
-- RIMOZIONE DELLE GIACENZE_VASCHE NON PIU' PRESENTI IN AV2000
DELETE AV_COL.dbo.GIACENZE_VASCHE
FROM AV_COL.dbo.GIACENZE_VASCHE
LEFT JOIN AV_COL_TMP.dbo.ARUGBV_01
ON AV_COL_TMP.dbo.ARUGBV_01.ID_AZI = AV_COL.dbo.GIACENZE_VASCHE.ID_AZI
AND AV_COL_TMP.dbo.ARUGBV_01.CODREG = AV_COL.dbo.GIACENZE_VASCHE.CODREG
AND AV_COL_TMP.dbo.ARUGBV_01.IDPROD = AV_COL.dbo.GIACENZE_VASCHE.IDPROD
AND AV_COL_TMP.dbo.ARUGBV_01.CODVAS = AV_COL.dbo.GIACENZE_VASCHE.CODVAS
WHERE AV_COL.dbo.GIACENZE_VASCHE.QTAGIA <> 0
AND (AV_COL_TMP.dbo.ARUGBV_01.QTAGIA = 0 OR AV_COL_TMP.dbo.ARUGBV_01.QTAGIA IS NULL);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=GIACENZE_VASCHE_SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=GIACENZE_VASCHE_SORGENTE.CODREG,
DESTINAZIONE.IDPROD=GIACENZE_VASCHE_SORGENTE.IDPROD,
DESTINAZIONE.CODVAS=GIACENZE_VASCHE_SORGENTE.CODVAS,
DESTINAZIONE.QTAGIA=GIACENZE_VASCHE_SORGENTE.QTAGIA
FROM AV_COL.dbo.GIACENZE_VASCHE DESTINAZIONE
JOIN AV_COL_TMP.dbo.ARUGBV_01 GIACENZE_VASCHE_SORGENTE
ON DESTINAZIONE.ID_AZI = GIACENZE_VASCHE_SORGENTE.ID_AZI
AND DESTINAZIONE.CODREG = GIACENZE_VASCHE_SORGENTE.CODREG
AND DESTINAZIONE.IDPROD = GIACENZE_VASCHE_SORGENTE.IDPROD
AND DESTINAZIONE.CODVAS = GIACENZE_VASCHE_SORGENTE.CODVAS
WHERE DESTINAZIONE.QTAGIA <> GIACENZE_VASCHE_SORGENTE.QTAGIA;
 
go
 
-- *****************
-- BOLLE VENDITA --
-- *****************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_DOCUMENTI_V') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V;
go
 
-- CREA TABELLA STRUTTURA
 
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
TESTATA.NUMBOL,
TESTATA.NUMDOC,
'C'+REPLICATE('0',6-LEN(RTRIM(CLIENTI.CODICE))) + RTRIM(CLIENTI.CODICE) AS CODSOG,
TESTATA.DTABOL,
RIGHE.NUMRIG+RIGHE.NUMCOM AS IDRIGA,
--RIGHE.NUMRIG AS IDRIGA,
ARTICOLI.DESCRI AS DESART,
RIGHE.QTAVEN,
TRASPORTATORI.RAGSOC AS DESTRA
INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V
FROM AV_COL_TMP.dbo.ABOLL1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 AS CLIENTI ON TESTATA.ID_AZI = CLIENTI.ID_AZI AND TESTATA.CODCLI = CLIENTI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBATR_01 AS TRASPORTATORI ON TESTATA.ID_AZI = TRASPORTATORI.ID_AZI AND TESTATA.CODTRA = TRASPORTATORI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLLZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.ATBADC_01 AS CAUSALI ON TESTATA.ID_AZI = CAUSALI.ID_AZI AND TESTATA.CAUBOL = CAUSALI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMG1 = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE (CAUSALI.TIPDOC = '1' OR CAUSALI.TIPDOC = '5')
AND TESTATA.NUMDOC <> ' '
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
 
go
 
-- A soave hanno delle bolle senza righe....
 
DELETE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V
FROM AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V
WHERE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.IDRIGA IS NULL
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V ALTER COLUMN NUMBOL DECIMAL(10,0) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V ALTER COLUMN IDRIGA VARCHAR(18) NOT NULL
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V ADD PRIMARY KEY (
ID_AZI,
NUMBOL,
IDRIGA)
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'DOCUMENTI_V')
SELECT * INTO AV_COL.dbo.DOCUMENTI_V FROM AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.DOCUMENTI_V
(ID_AZI,
CODREG,
DESREG,
NUMBOL,
NUMDOC,
CODSOG,
DTABOL,
IDRIGA,
DESART,
QTAVEN,
DESTRA)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODREG,
SORGENTE.DESREG,
SORGENTE.NUMBOL,
SORGENTE.NUMDOC,
SORGENTE.CODSOG,
SORGENTE.DTABOL,
SORGENTE.IDRIGA,
SORGENTE.DESART,
SORGENTE.QTAVEN,
SORGENTE.DESTRA
From AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V SORGENTE LEFT JOIN AV_COL.dbo.DOCUMENTI_V DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.NUMBOL = DESTINAZIONE.NUMBOL
AND SORGENTE.IDRIGA = DESTINAZIONE.IDRIGA
WHERE DESTINAZIONE.IDRIGA IS NULL;
 
-- RIMOZIONE DEI DOCUMENTI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!) O SENZA SOGGETTO
DELETE AV_COL.dbo.DOCUMENTI_V
FROM AV_COL.dbo.DOCUMENTI_V
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V ON AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.ID_AZI = AV_COL.dbo.DOCUMENTI_V.ID_AZI
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.NUMBOL = AV_COL.dbo.DOCUMENTI_V.NUMBOL
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.IDRIGA = AV_COL.dbo.DOCUMENTI_V.IDRIGA
LEFT JOIN AV_COL.dbo.SOGGETTI ON AV_COL.dbo.DOCUMENTI_V.ID_AZI = AV_COL.dbo.SOGGETTI.ID_AZI
AND AV_COL.dbo.DOCUMENTI_V.CODSOG = AV_COL.dbo.SOGGETTI.CODSOG
WHERE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.IDRIGA IS NULL
OR (AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V.IDRIGA IS NOT NULL and AV_COL.dbo.SOGGETTI.CODSOG IS NULL);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=SORGENTE.CODREG,
DESTINAZIONE.DESREG=SORGENTE.DESREG,
DESTINAZIONE.NUMBOL=SORGENTE.NUMBOL,
DESTINAZIONE.NUMDOC=SORGENTE.NUMDOC,
DESTINAZIONE.CODSOG=SORGENTE.CODSOG,
DESTINAZIONE.DTABOL=SORGENTE.DTABOL,
DESTINAZIONE.IDRIGA=SORGENTE.IDRIGA,
DESTINAZIONE.DESART=SORGENTE.DESART,
DESTINAZIONE.QTAVEN=SORGENTE.QTAVEN,
DESTINAZIONE.DESTRA=SORGENTE.DESTRA
FROM AV_COL.dbo.DOCUMENTI_V DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.NUMBOL = SORGENTE.NUMBOL AND DESTINAZIONE.IDRIGA = SORGENTE.IDRIGA
WHERE DESTINAZIONE.NUMDOC <> SORGENTE.NUMDOC
OR DESTINAZIONE.CODSOG <> SORGENTE.CODSOG
OR DESTINAZIONE.CODREG <> SORGENTE.CODREG
OR DESTINAZIONE.DTABOL <> SORGENTE.DTABOL
OR DESTINAZIONE.DESART <> SORGENTE.DESART
OR DESTINAZIONE.QTAVEN <> SORGENTE.QTAVEN
OR DESTINAZIONE.DESTRA <> SORGENTE.DESTRA;
 
go
 
-- ****************************
-- BOLLE VENDITA DETT.VASCHE --
-- ****************************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_DOCUMENTI_V_VASCHE') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE;
go
 
-- CREA TABELLA STRUTTURA
 
SELECT
ID_AZI,
NUMBOL,
NUMRIG AS IDRIGA,
CODVAS,
QTAVAS
INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE
FROM AV_COL_TMP.dbo.ABOLLQ_01 AS VASCHE_BOLLE
WHERE VASCHE_BOLLE.FLAGPA = 'P'
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ALTER COLUMN NUMBOL DECIMAL(10,0) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ALTER COLUMN IDRIGA VARCHAR(18) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ALTER COLUMN CODVAS VARCHAR(8) NOT NULL
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ADD PRIMARY KEY (
ID_AZI,
NUMBOL,
IDRIGA,
CODVAS)
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'DOCUMENTI_V_VASCHE')
SELECT * INTO AV_COL.dbo.DOCUMENTI_V_VASCHE FROM AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.DOCUMENTI_V_VASCHE
(ID_AZI,
NUMBOL,
IDRIGA,
CODVAS,
QTAVAS)
SELECT
SORGENTE.ID_AZI,
SORGENTE.NUMBOL,
SORGENTE.IDRIGA,
SORGENTE.CODVAS,
SORGENTE.QTAVAS
From AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE SORGENTE LEFT JOIN AV_COL.dbo.DOCUMENTI_V_VASCHE DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.NUMBOL = DESTINAZIONE.NUMBOL
AND SORGENTE.IDRIGA = DESTINAZIONE.IDRIGA
WHERE DESTINAZIONE.IDRIGA IS NULL;
 
go
 
-- RIMOZIONE DEL DETTAGLIO VASCHE CANCELLATO SU AV2000
DELETE AV_COL.dbo.DOCUMENTI_V_VASCHE
FROM AV_COL.dbo.DOCUMENTI_V_VASCHE
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE ON AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE.ID_AZI = AV_COL.dbo.DOCUMENTI_V_VASCHE.ID_AZI
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE.NUMBOL = AV_COL.dbo.DOCUMENTI_V_VASCHE.NUMBOL
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE.IDRIGA = AV_COL.dbo.DOCUMENTI_V_VASCHE.IDRIGA
WHERE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE.IDRIGA IS NULL;
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.NUMBOL=SORGENTE.NUMBOL,
DESTINAZIONE.IDRIGA=SORGENTE.IDRIGA,
DESTINAZIONE.CODVAS=SORGENTE.CODVAS,
DESTINAZIONE.QTAVAS=SORGENTE.QTAVAS
FROM AV_COL.dbo.DOCUMENTI_V_VASCHE DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_V_VASCHE SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.NUMBOL = SORGENTE.NUMBOL AND DESTINAZIONE.IDRIGA = SORGENTE.IDRIGA
WHERE DESTINAZIONE.CODVAS <> SORGENTE.CODVAS
OR DESTINAZIONE.QTAVAS <> SORGENTE.QTAVAS;
 
go
 
-- *****************
-- BOLLE ACQUISTO --
-- *****************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_DOCUMENTI_A') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A;
go
 
-- CREA TABELLA STRUTTURA
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
TESTATA.NUMBOL,
TESTATA.NUMDOC,
'F'+REPLICATE('0',6-LEN(RTRIM(FORNITORI.CODICE))) + RTRIM(FORNITORI.CODICE) AS CODSOG,
TESTATA.DTABOL,
RIGHE.NUMRIG AS IDRIGA,
ARTICOLI.DESCRI AS DESART,
RIGHE.QTABOL,
RIGHE.LOTTOS
INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A
FROM AV_COL_TMP.dbo.AACQU1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANFO1_01 AS FORNITORI ON TESTATA.ID_AZI = FORNITORI.ID_AZI AND TESTATA.CODFOR = FORNITORI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMAG = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AACQUZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE TESTATA.NUMDOC <> ' '
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
-- lungo 11 per mettere bolle trasferimento
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A ALTER COLUMN NUMBOL DECIMAL(11,0) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A ALTER COLUMN IDRIGA VARCHAR(18) NOT NULL
 
go
 
-- AGGIUNGE ALLE BOLLE DI ACQUISTO IL CARICO DELLE BOLLE DI TRASFERIMENTO
INSERT INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A
(ID_AZI,
CODREG,
DESREG,
NUMBOL,
NUMDOC,
CODSOG,
DTABOL,
IDRIGA,
DESART,
QTABOL,
LOTTOS)
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
'9'+REPLICATE('0',10-LEN(RTRIM(TESTATA.NUMBOL))) + RTRIM(TESTATA.NUMBOL),
TESTATA.NUMDOC,
'C'+REPLICATE('0',6-LEN(RTRIM(CLIENTI.CODICE))) + RTRIM(CLIENTI.CODICE),
TESTATA.DTABOL,
RIGHE.NUMRIG AS IDRIGA,
ARTICOLI.DESCRI AS DESART,
RIGHE.QTAVEN AS QTABOL,
' ' AS LOTTOS
FROM AV_COL_TMP.dbo.ABOLL1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 AS CLIENTI ON TESTATA.ID_AZI = CLIENTI.ID_AZI AND TESTATA.CODCLI = CLIENTI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLLZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.ATBADC_01 AS CAUSALI ON TESTATA.ID_AZI = CAUSALI.ID_AZI AND TESTATA.CAUBOL = CAUSALI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMG2 = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE (CAUSALI.TIPDOC = '1' OR CAUSALI.TIPDOC = '5')
AND TESTATA.NUMDOC <> ' '
AND TESTATA.CODMG2 <> 0
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A ADD PRIMARY KEY (
ID_AZI,
NUMBOL,
IDRIGA)
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'DOCUMENTI_A')
SELECT * INTO AV_COL.dbo.DOCUMENTI_A FROM AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.DOCUMENTI_A
(ID_AZI,
CODREG,
DESREG,
NUMBOL,
NUMDOC,
CODSOG,
DTABOL,
IDRIGA,
DESART,
QTABOL,
LOTTOS)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODREG,
SORGENTE.DESREG,
SORGENTE.NUMBOL,
SORGENTE.NUMDOC,
SORGENTE.CODSOG,
SORGENTE.DTABOL,
SORGENTE.IDRIGA,
SORGENTE.DESART,
SORGENTE.QTABOL,
SORGENTE.LOTTOS
From AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A SORGENTE LEFT JOIN AV_COL.dbo.DOCUMENTI_A DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.NUMBOL = DESTINAZIONE.NUMBOL
AND SORGENTE.IDRIGA = DESTINAZIONE.IDRIGA
WHERE DESTINAZIONE.IDRIGA IS NULL;
 
-- RIMOZIONE DEI DOCUMENTI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!) O SENZA SOGGETTO (IMPORTANTE PER SCARTARE ACQUISTI DI MATERIALI)
DELETE AV_COL.dbo.DOCUMENTI_A
FROM AV_COL.dbo.DOCUMENTI_A
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A ON AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A.ID_AZI = AV_COL.dbo.DOCUMENTI_A.ID_AZI
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A.NUMBOL = AV_COL.dbo.DOCUMENTI_A.NUMBOL
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A.IDRIGA = AV_COL.dbo.DOCUMENTI_A.IDRIGA
LEFT JOIN AV_COL.dbo.SOGGETTI ON AV_COL.dbo.DOCUMENTI_A.ID_AZI = AV_COL.dbo.SOGGETTI.ID_AZI
AND AV_COL.dbo.DOCUMENTI_A.CODSOG = AV_COL.dbo.SOGGETTI.CODSOG
WHERE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A.IDRIGA IS NULL
OR (AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A.IDRIGA IS NOT NULL and AV_COL.dbo.SOGGETTI.CODSOG IS NULL);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=SORGENTE.CODREG,
DESTINAZIONE.DESREG=SORGENTE.DESREG,
DESTINAZIONE.NUMBOL=SORGENTE.NUMBOL,
DESTINAZIONE.NUMDOC=SORGENTE.NUMDOC,
DESTINAZIONE.CODSOG=SORGENTE.CODSOG,
DESTINAZIONE.DTABOL=SORGENTE.DTABOL,
DESTINAZIONE.IDRIGA=SORGENTE.IDRIGA,
DESTINAZIONE.DESART=SORGENTE.DESART,
DESTINAZIONE.QTABOL=SORGENTE.QTABOL,
DESTINAZIONE.LOTTOS=SORGENTE.LOTTOS
FROM AV_COL.dbo.DOCUMENTI_A DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.NUMBOL = SORGENTE.NUMBOL AND DESTINAZIONE.IDRIGA = SORGENTE.IDRIGA
WHERE DESTINAZIONE.NUMDOC <> SORGENTE.NUMDOC
OR DESTINAZIONE.CODSOG <> SORGENTE.CODSOG
OR DESTINAZIONE.CODREG <> SORGENTE.CODREG
OR DESTINAZIONE.DTABOL <> SORGENTE.DTABOL
OR DESTINAZIONE.DESART <> SORGENTE.DESART
OR DESTINAZIONE.QTABOL <> SORGENTE.QTABOL
OR DESTINAZIONE.LOTTOS <> SORGENTE.LOTTOS;
 
go
 
-- *****************************
-- BOLLE ACQUISTO DETT.VASCHE --
-- *****************************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_DOCUMENTI_A_VASCHE') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE;
go
 
-- CREA TABELLA STRUTTURA
 
SELECT
ID_AZI,
NUMBOL,
NUMRIG AS IDRIGA,
CODVAS,
QTAVAS
INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE
FROM AV_COL_TMP.dbo.AACQUQ_01 AS VASCHE_BOLLE
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ALTER COLUMN NUMBOL DECIMAL(11,0) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ALTER COLUMN IDRIGA VARCHAR(18) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ALTER COLUMN CODVAS VARCHAR(8) NOT NULL
 
go
 
-- AGGIUNGE ALLE BOLLE DI ACQUISTO IL CARICO DELLE BOLLE DI TRASFERIMENTO
INSERT INTO AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE
(ID_AZI,
NUMBOL,
IDRIGA,
CODVAS,
QTAVAS)
SELECT
ID_AZI,
'9'+REPLICATE('0',10-LEN(RTRIM(VASCHE_BOLLE.NUMBOL))) + RTRIM(VASCHE_BOLLE.NUMBOL),
NUMRIG AS IDRIGA,
CODVAS,
QTAVAS
FROM AV_COL_TMP.dbo.ABOLLQ_01 AS VASCHE_BOLLE
WHERE VASCHE_BOLLE.FLAGPA = 'A'
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ADD PRIMARY KEY (
ID_AZI,
NUMBOL,
IDRIGA,
CODVAS)
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'DOCUMENTI_A_VASCHE')
SELECT * INTO AV_COL.dbo.DOCUMENTI_A_VASCHE FROM AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.DOCUMENTI_A_VASCHE
(ID_AZI,
NUMBOL,
IDRIGA,
CODVAS,
QTAVAS)
SELECT
SORGENTE.ID_AZI,
SORGENTE.NUMBOL,
SORGENTE.IDRIGA,
SORGENTE.CODVAS,
SORGENTE.QTAVAS
From AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE SORGENTE LEFT JOIN AV_COL.dbo.DOCUMENTI_A_VASCHE DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.NUMBOL = DESTINAZIONE.NUMBOL
AND SORGENTE.IDRIGA = DESTINAZIONE.IDRIGA
WHERE DESTINAZIONE.IDRIGA IS NULL;
 
go
 
-- RIMOZIONE DEL DETTAGLIO VASCHE CANCELLATO SU AV2000
DELETE AV_COL.dbo.DOCUMENTI_A_VASCHE
FROM AV_COL.dbo.DOCUMENTI_A_VASCHE
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE ON AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE.ID_AZI = AV_COL.dbo.DOCUMENTI_A_VASCHE.ID_AZI
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE.NUMBOL = AV_COL.dbo.DOCUMENTI_A_VASCHE.NUMBOL
AND AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE.IDRIGA = AV_COL.dbo.DOCUMENTI_A_VASCHE.IDRIGA
WHERE AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE.IDRIGA IS NULL;
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.NUMBOL=SORGENTE.NUMBOL,
DESTINAZIONE.IDRIGA=SORGENTE.IDRIGA,
DESTINAZIONE.CODVAS=SORGENTE.CODVAS,
DESTINAZIONE.QTAVAS=SORGENTE.QTAVAS
FROM AV_COL.dbo.DOCUMENTI_A_VASCHE DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_DOCUMENTI_A_VASCHE SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.NUMBOL = SORGENTE.NUMBOL AND DESTINAZIONE.IDRIGA = SORGENTE.IDRIGA
WHERE DESTINAZIONE.CODVAS <> SORGENTE.CODVAS
OR DESTINAZIONE.QTAVAS <> SORGENTE.QTAVAS;
go
 
-- ***********
-- VITIGNI --
-- ***********
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'VITIGNI')
SELECT ID_AZI, CODVIT AS CODICE, DESCRI INTO AV_COL.dbo.VITIGNI FROM AV_COL_TMP.dbo.ARUGBR_01 WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.VITIGNI
(ID_AZI,
CODICE,
DESCRI)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODVIT,
SORGENTE.DESCRI
FROM AV_COL_TMP.dbo.ARUGBR_01 SORGENTE
LEFT JOIN AV_COL.dbo.VITIGNI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI AND SORGENTE.CODVIT = DESTINAZIONE.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON SORGENTE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.CODICE IS NULL AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
-- RIMOZIONE DEI VITIGNI CANCELLATI SU AV2000 NELLA VENDEMMIA CORRENTE
DELETE DESTINAZIONE
FROM AV_COL.dbo.VITIGNI DESTINAZIONE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ARUGBR_01 SORGENTE ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODVIT = DESTINAZIONE.CODICE
AND SORGENTE.CODVEN = PARAMETRI.CODVEN
WHERE SORGENTE.CODVIT IS NULL;
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODVIT,
DESTINAZIONE.DESCRI=SORGENTE.DESCRI
FROM AV_COL.dbo.VITIGNI DESTINAZIONE
LEFT JOIN AV_COL_TMP.dbo.ARUGBR_01 SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.CODICE = SORGENTE.CODVIT
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.DESCRI <> SORGENTE.DESCRI
AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
-- ***************
-- CONFERIMENTI --
-- ***************
 
-- DECISO DI TENERE ALLINEATA SOLO LA VENDEMMIA CORRENTE --
-- LO STORICO E' IN AV_COL_TMP --
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'CONFERIMENTI')
SELECT ID_AZI, CODREG, NUMCON, DTACON, CODVIT, CODSOG, QTAQLI, GRADOB, FLGOLT INTO AV_COL.dbo.CONFERIMENTI FROM AV_COL_TMP.dbo.ARUGBC_01 WHERE 1 = 0;
go
 
-- AGGIUNGE, SE NECESSARIO, I CAMPI SCELTE
IF COL_LENGTH('AV_COL.dbo.CONFERIMENTI', 'CODSC1') IS NULL
BEGIN
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [CODSC1] SMALLINT
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [DESSC1] VARCHAR(30)
END
IF COL_LENGTH('AV_COL.dbo.CONFERIMENTI', 'CODSC2') IS NULL
BEGIN
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [CODSC2] SMALLINT
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [DESSC2] VARCHAR(30)
END
IF COL_LENGTH('AV_COL.dbo.CONFERIMENTI', 'CODSC3') IS NULL
BEGIN
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [CODSC3] SMALLINT
    ALTER TABLE AV_COL.dbo.CONFERIMENTI ADD [DESSC3] VARCHAR(30)
END
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
-- LE GIACENZE PRESENTI IN ARUGBT SONO SOLO QUELLE DELLO SFUSO (VEDI NRUGBT)
 
INSERT INTO AV_COL.dbo.CONFERIMENTI
(ID_AZI,
CODREG,
NUMCON,
DTACON,
CODVIT,
CODSOG,
QTAQLI,
GRADOB,
FLGOLT,
CODSC1,
DESSC1,
CODSC2,
DESSC2,
CODSC3,
DESSC3)
SELECT
CONFERIMENTI_SORGENTE.ID_AZI,
CONFERIMENTI_SORGENTE.CODREG,
CONFERIMENTI_SORGENTE.NUMCON,
CONFERIMENTI_SORGENTE.DTACON,
CONFERIMENTI_SORGENTE.CODVIT,
CONFERIMENTI_SORGENTE.CODSOG,
CONFERIMENTI_SORGENTE.QTAQLI,
CONFERIMENTI_SORGENTE.GRADOB,
CONFERIMENTI_SORGENTE.FLGOLT,
CONFERIMENTI_SORGENTE.CODSC1,
CONFERIMENTI_SORGENTE.DESSC1,
CONFERIMENTI_SORGENTE.CODSC2,
CONFERIMENTI_SORGENTE.DESSC2,
CONFERIMENTI_SORGENTE.CODSC3,
CONFERIMENTI_SORGENTE.DESSC3
FROM AV_COL_TMP.dbo.ARUGBC_01 CONFERIMENTI_SORGENTE
LEFT JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON CONFERIMENTI_SORGENTE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL.dbo.CONFERIMENTI DESTINAZIONE
ON CONFERIMENTI_SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND CONFERIMENTI_SORGENTE.CODREG = DESTINAZIONE.CODREG
AND CONFERIMENTI_SORGENTE.NUMCON = DESTINAZIONE.NUMCON
AND CONFERIMENTI_SORGENTE.CODVIT = DESTINAZIONE.CODVIT
WHERE CONFERIMENTI_SORGENTE.QTAQLI <> 0
AND CONFERIMENTI_SORGENTE.CODVEN = PARAMETRI.CODVEN
AND DESTINAZIONE.NUMCON IS NULL;
 
go
 
-- RIMOZIONE DELLE CONFERIMENTI NON PIU' PRESENTI IN AV2000
DELETE DESTINAZIONE
FROM AV_COL.dbo.CONFERIMENTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ARUGBC_01 SORGENTE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODREG = DESTINAZIONE.CODREG
AND SORGENTE.NUMCON = DESTINAZIONE.NUMCON
AND SORGENTE.CODVIT = DESTINAZIONE.CODVIT
AND SORGENTE.CODVEN = PARAMETRI.CODVEN
WHERE SORGENTE.QTAQLI IS NULL;
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=SORGENTE.CODREG,
DESTINAZIONE.NUMCON=SORGENTE.NUMCON,
DESTINAZIONE.DTACON=SORGENTE.DTACON,
DESTINAZIONE.CODVIT=SORGENTE.CODVIT,
DESTINAZIONE.CODSOG=SORGENTE.CODSOG,
DESTINAZIONE.QTAQLI=SORGENTE.QTAQLI,
DESTINAZIONE.GRADOB=SORGENTE.GRADOB,
DESTINAZIONE.FLGOLT=SORGENTE.FLGOLT,
DESTINAZIONE.CODSC1=SORGENTE.CODSC1,
DESTINAZIONE.DESSC1=SORGENTE.DESSC1,
DESTINAZIONE.CODSC2=SORGENTE.CODSC2,
DESTINAZIONE.DESSC2=SORGENTE.DESSC2,
DESTINAZIONE.CODSC3=SORGENTE.CODSC3,
DESTINAZIONE.DESSC3=SORGENTE.DESSC3
FROM AV_COL.dbo.CONFERIMENTI DESTINAZIONE
LEFT JOIN AV_COL_TMP.dbo.ARUGBC_01 SORGENTE
ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI
AND DESTINAZIONE.CODREG = SORGENTE.CODREG
AND DESTINAZIONE.NUMCON = SORGENTE.NUMCON
AND DESTINAZIONE.CODVIT = SORGENTE.CODVIT
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
WHERE (DESTINAZIONE.DTACON <> SORGENTE.DTACON
OR DESTINAZIONE.CODSOG <> SORGENTE.CODSOG
OR DESTINAZIONE.QTAQLI <> SORGENTE.QTAQLI
OR DESTINAZIONE.GRADOB <> SORGENTE.GRADOB
OR DESTINAZIONE.FLGOLT <> SORGENTE.FLGOLT
OR DESTINAZIONE.CODSC1 <> SORGENTE.CODSC1 OR DESTINAZIONE.CODSC1 IS NULL
OR DESTINAZIONE.CODSC2 <> SORGENTE.CODSC2 OR DESTINAZIONE.CODSC2 IS NULL
OR DESTINAZIONE.CODSC3 <> SORGENTE.CODSC3 OR DESTINAZIONE.CODSC3 IS NULL)
AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
-- **************
-- RAGGRUPPAMENTI --
-- **************
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'RAGGRUPPAMENTI')
SELECT ID_AZI, CODICE AS CODICE, DESCRI INTO AV_COL.dbo.RAGGRUPPAMENTI FROM AV_COL_TMP.dbo.ARUGBQ_01 WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.RAGGRUPPAMENTI
(ID_AZI,
CODICE,
DESCRI)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODICE,
SORGENTE.DESCRI
FROM AV_COL_TMP.dbo.ARUGBQ_01 SORGENTE
LEFT JOIN AV_COL.dbo.RAGGRUPPAMENTI DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI AND SORGENTE.CODICE = DESTINAZIONE.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON SORGENTE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.CODICE IS NULL;
 
go
 
-- RIMOZIONE DEI RAGGRUPPAMENTI CANCELLATI SU AV2000 NELLA VENDEMMIA CORRENTE
DELETE DESTINAZIONE
FROM AV_COL.dbo.RAGGRUPPAMENTI DESTINAZIONE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ARUGBQ_01 SORGENTE ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODICE = DESTINAZIONE.CODICE
WHERE SORGENTE.CODICE IS NULL;
 
go
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODICE,
DESTINAZIONE.DESCRI=SORGENTE.DESCRI
FROM AV_COL.dbo.RAGGRUPPAMENTI DESTINAZIONE
LEFT JOIN AV_COL_TMP.dbo.ARUGBQ_01 SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.CODICE = SORGENTE.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
WHERE DESTINAZIONE.DESCRI <> SORGENTE.DESCRI;
 
go
 
-- ***************
-- CARICHI_UVE --
-- ***************
 
-- DECISO DI TENERE ALLINEATA SOLO LA VENDEMMIA CORRENTE --
-- LO STORICO E' IN AV_COL_TMP --
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'CARICHI_UVE')
SELECT ID_AZI, CODREG, NUMCON, DTACON, CODRAG, CODSOG, QTAQLI, GRADOB, FLGOLT, CODSC1, DESSC1, CODSC2, DESSC2, CODSC3, DESSC3 INTO AV_COL.dbo.CARICHI_UVE FROM AV_COL_TMP.dbo.ARUGBP_01 WHERE 1 = 0;
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
-- LE GIACENZE PRESENTI IN ARUGBT SONO SOLO QUELLE DELLO SFUSO (VEDI NRUGBT)
 
INSERT INTO AV_COL.dbo.CARICHI_UVE
(ID_AZI,
CODREG,
NUMCON,
DTACON,
CODRAG,
CODSOG,
QTAQLI,
GRADOB,
FLGOLT,
CODSC1,
DESSC1,
CODSC2,
DESSC2,
CODSC3,
DESSC3)
SELECT
CARICHI_UVE_SORGENTE.ID_AZI,
CARICHI_UVE_SORGENTE.CODREG,
CARICHI_UVE_SORGENTE.NUMCON,
CARICHI_UVE_SORGENTE.DTACON,
CARICHI_UVE_SORGENTE.CODRAG,
CARICHI_UVE_SORGENTE.CODSOG,
CARICHI_UVE_SORGENTE.QTAQLI,
CARICHI_UVE_SORGENTE.GRADOB,
CARICHI_UVE_SORGENTE.FLGOLT,
CARICHI_UVE_SORGENTE.CODSC1,
CARICHI_UVE_SORGENTE.DESSC1,
CARICHI_UVE_SORGENTE.CODSC2,
CARICHI_UVE_SORGENTE.DESSC2,
CARICHI_UVE_SORGENTE.CODSC3,
CARICHI_UVE_SORGENTE.DESSC3
FROM AV_COL_TMP.dbo.ARUGBP_01 CARICHI_UVE_SORGENTE
LEFT JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON CARICHI_UVE_SORGENTE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL.dbo.CARICHI_UVE DESTINAZIONE
ON CARICHI_UVE_SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND CARICHI_UVE_SORGENTE.CODREG = DESTINAZIONE.CODREG
AND CARICHI_UVE_SORGENTE.NUMCON = DESTINAZIONE.NUMCON
AND CARICHI_UVE_SORGENTE.CODRAG = DESTINAZIONE.CODRAG
WHERE CARICHI_UVE_SORGENTE.QTAQLI <> 0
AND CARICHI_UVE_SORGENTE.CODVEN = PARAMETRI.CODVEN
AND DESTINAZIONE.NUMCON IS NULL;
 
go
 
-- RIMOZIONE DELLE CARICHI_UVE NON PIU' PRESENTI IN AV2000
DELETE DESTINAZIONE
FROM AV_COL.dbo.CARICHI_UVE DESTINAZIONE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ARUGBP_01 SORGENTE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODREG = DESTINAZIONE.CODREG
AND SORGENTE.NUMCON = DESTINAZIONE.NUMCON
AND SORGENTE.CODRAG = DESTINAZIONE.CODRAG
AND SORGENTE.CODVEN = PARAMETRI.CODVEN
WHERE SORGENTE.QTAQLI IS NULL;
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=SORGENTE.CODREG,
DESTINAZIONE.NUMCON=SORGENTE.NUMCON,
DESTINAZIONE.DTACON=SORGENTE.DTACON,
DESTINAZIONE.CODRAG=SORGENTE.CODRAG,
DESTINAZIONE.CODSOG=SORGENTE.CODSOG,
DESTINAZIONE.QTAQLI=SORGENTE.QTAQLI,
DESTINAZIONE.GRADOB=SORGENTE.GRADOB,
DESTINAZIONE.FLGOLT=SORGENTE.FLGOLT,
DESTINAZIONE.CODSC1=SORGENTE.CODSC1,
DESTINAZIONE.DESSC1=SORGENTE.DESSC1,
DESTINAZIONE.CODSC2=SORGENTE.CODSC2,
DESTINAZIONE.DESSC2=SORGENTE.DESSC2,
DESTINAZIONE.CODSC3=SORGENTE.CODSC3,
DESTINAZIONE.DESSC3=SORGENTE.DESSC3
FROM AV_COL.dbo.CARICHI_UVE DESTINAZIONE
LEFT JOIN AV_COL_TMP.dbo.ARUGBP_01 SORGENTE
ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI
AND DESTINAZIONE.CODREG = SORGENTE.CODREG
AND DESTINAZIONE.NUMCON = SORGENTE.NUMCON
AND DESTINAZIONE.CODRAG = SORGENTE.CODRAG
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON DESTINAZIONE.ID_AZI = PARAMETRI.ID_AZI
WHERE (DESTINAZIONE.DTACON <> SORGENTE.DTACON
OR DESTINAZIONE.CODSOG <> SORGENTE.CODSOG
OR DESTINAZIONE.QTAQLI <> SORGENTE.QTAQLI
OR DESTINAZIONE.GRADOB <> SORGENTE.GRADOB
OR DESTINAZIONE.FLGOLT <> SORGENTE.FLGOLT
OR DESTINAZIONE.CODSC1 <> SORGENTE.CODSC1 OR DESTINAZIONE.CODSC1 IS NULL
OR DESTINAZIONE.CODSC2 <> SORGENTE.CODSC2 OR DESTINAZIONE.CODSC2 IS NULL
OR DESTINAZIONE.CODSC3 <> SORGENTE.CODSC3 OR DESTINAZIONE.CODSC3 IS NULL)
AND SORGENTE.CODVEN = PARAMETRI.CODVEN;
 
go
 
-- ******************
-- PRODOTTI ENOLOGICI --
-- ******************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_ANAG_PRODOTTI_ENO') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO;
 
go
 
-- AGGIUNGE UN CAMPO ALLA TABELLA ARTICOLI CON IL VALORE DELL'ATTRIBUTO INSERITO NEI PARAMETRI DI INTERFACCIA COME SELEZIONE DEI PRODOTTI ENOLOGICI
-- MI SEMBRA L'UNICO MODO PER POTERLO FILTRARE NELLE SUCCESSIVE OPERAZIONI CONSIDERANDO CHE IN SQL NON CI SONO GLI ARRAY
 
ALTER TABLE AV_COL_TMP.dbo.AARTI1_01 ADD ATTENO INTEGER;
 
go
 
-- SERVE PER NON AVERE IL VALORE NULL IN MODO CHE SE NEI PARAMTERI NON C'E' UN ATTRIBUTO IMPOSTATO NON INSERISCE NIENTE
UPDATE ARTICOLI SET ARTICOLI.ATTENO = 0
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI;
 
go
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_1
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 1;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_2
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 2;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_3
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 3;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_4
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 4;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_5
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 5;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_6
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 6;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_7
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 7;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_8
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 8;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_9
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 9;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_10
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 10;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_11
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 11;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_12
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 12;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_13
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 13;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_14
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 14;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_15
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 15;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_16
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 16;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_17
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 17;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_18
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 18;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_19
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 19;
 
UPDATE ARTICOLI SET ARTICOLI.ATTENO=ARTICOLI.CODATT_20
FROM AV_COL_TMP.dbo.AARTI1_01 ARTICOLI
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI
ON ARTICOLI.ID_AZI = PARAMETRI.ID_AZI
WHERE PARAMETRI.PNRATT = 20;
 
go
 
-- CREA TABELLA STRUTTURA INSERENDO TUTTI I VALORI IN QUESTO CASO, IN MODO DA AVERE UNA TABELLA PRONTAPER L'ALLINEAMENTO CON IL DB REALE
 
SELECT
ANAG_PRODOTTI_ENO.ID_AZI,
ANAG_PRODOTTI_ENO.CODICE,
ANAG_PRODOTTI_ENO.DESCRI,
' ' AS CATEGORIA,
UDM.SIGUDM AS UM
INTO AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO
FROM AV_COL_TMP.dbo.AARTI1_01 ANAG_PRODOTTI_ENO
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON ANAG_PRODOTTI_ENO.ID_AZI = PARAMETRI.ID_AZI
LEFT JOIN AV_COL_TMP.dbo.ATBAUM_01 UDM ON ANAG_PRODOTTI_ENO.ID_AZI = UDM.ID_AZI AND ANAG_PRODOTTI_ENO.CODUDM = UDM.CODICE
WHERE ANAG_PRODOTTI_ENO.ATTENO = PARAMETRI.PCDATT AND ANAG_PRODOTTI_ENO.ATTENO <> 0;
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO ADD PRIMARY KEY (
ID_AZI,
CODICE);
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ANAG_PRODOTTI_ENO')
SELECT * INTO AV_COL.dbo.ANAG_PRODOTTI_ENO FROM AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.ANAG_PRODOTTI_ENO
(ID_AZI,
CODICE,
DESCRI,
CATEGORIA,
UM)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODICE,
SORGENTE.DESCRI,
SORGENTE.CATEGORIA,
SORGENTE.UM
FROM AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO SORGENTE LEFT JOIN AV_COL.dbo.ANAG_PRODOTTI_ENO DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.CODICE = DESTINAZIONE.CODICE
WHERE DESTINAZIONE.CODICE IS NULL;
 
-- RIMOZIONE DEI ANAG_PRODOTTI_ENO CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!)
DELETE AV_COL.dbo.ANAG_PRODOTTI_ENO
FROM AV_COL.dbo.ANAG_PRODOTTI_ENO
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO ON AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO.ID_AZI = AV_COL.dbo.ANAG_PRODOTTI_ENO.ID_AZI AND AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO.CODICE = AV_COL.dbo.ANAG_PRODOTTI_ENO.CODICE
WHERE AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO.CODICE IS NULL;
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODICE=SORGENTE.CODICE,
DESTINAZIONE.DESCRI=SORGENTE.DESCRI,
DESTINAZIONE.CATEGORIA=SORGENTE.CATEGORIA,
DESTINAZIONE.UM=SORGENTE.UM
FROM AV_COL.dbo.ANAG_PRODOTTI_ENO DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_ANAG_PRODOTTI_ENO SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.CODICE = SORGENTE.CODICE
WHERE DESTINAZIONE.DESCRI <> SORGENTE.DESCRI
OR DESTINAZIONE.CATEGORIA <> SORGENTE.CATEGORIA
OR DESTINAZIONE.UM <> SORGENTE.UM;
 
go
 
-- ************************************
-- MOVIMENTI CARICO PRODOTTI ENOLOGICI --
-- ************************************
 
-- CANCELLA TABELLA STRUTTURA (SERVE PER FARE I TEST)
IF EXISTS (SELECT TABLE_NAME FROM AV_COL_TMP.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'STRUTTURA_CARICO_PRODOTTI_ENO') DROP TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO;
go
 
-- CREA TABELLA STRUTTURA
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
TESTATA.DTABOL,
TESTATA.NUMBOL,
TESTATA.NUMDOC,
'F'+REPLICATE('0',6-LEN(RTRIM(FORNITORI.CODICE))) + RTRIM(FORNITORI.CODICE) AS CODSOG,
RIGHE.NUMRIG AS IDRIGA,
RIGHE.CODART AS PROENO,
RIGHE.QTABOL,
RIGHE.PREZZO,
RIGHE.LOTTOS
INTO AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO
FROM AV_COL_TMP.dbo.AACQU1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANFO1_01 AS FORNITORI ON TESTATA.ID_AZI = FORNITORI.ID_AZI AND TESTATA.CODFOR = FORNITORI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMAG = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AACQUZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE TESTATA.NUMDOC <> ' '
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
AND ARTICOLI.ATTENO = PARAMETRI.PCDATT;
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ALTER COLUMN ID_AZI VARCHAR(2) NOT NULL
 
-- lungo 11 per mettere bolle trasferimento
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ALTER COLUMN NUMBOL DECIMAL(11,0) NOT NULL
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ALTER COLUMN IDRIGA VARCHAR(18) NOT NULL
 
go
 
-- AGGIUNGE ALLE BOLLE DI ACQUISTO IL CARICO DELLE BOLLE DI TRASFERIMENTO (GESTISCE SOLO 1 LOTTO PER RIGA)
-- PER OGNI TRASFERIMENTO FA DUE RIGHE, UNA DI SCARICO CON QTA NEGATIVA E UNA DI CARICO CON QTA POSITIVA
 
-- INSERISCE RIGHE CARICO TRASFERIMENTI CON IL NUMERO BOLLA ADDIZIONATO DI 90000000000
INSERT INTO AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO
(ID_AZI,
CODREG,
DESREG,
DTABOL,
NUMBOL,
NUMDOC,
CODSOG,
IDRIGA,
PROENO,
QTABOL,
PREZZO,
LOTTOS)
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
TESTATA.DTABOL,
'9'+REPLICATE('0',10-LEN(RTRIM(TESTATA.NUMBOL))) + RTRIM(TESTATA.NUMBOL),
TESTATA.NUMDOC,
'C'+REPLICATE('0',6-LEN(RTRIM(CLIENTI.CODICE))) + RTRIM(CLIENTI.CODICE),
RIGHE.NUMRIG AS IDRIGA,
RIGHE.CODART AS PROENO,
IIF(LOTTI.QTALOT IS NULL, RIGHE.QTABOL, LOTTI.QTALOT) AS QTABOL,
RIGHE.PREZZO,
LOTTI.LOTTOS
FROM AV_COL_TMP.dbo.ABOLL1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 AS CLIENTI ON TESTATA.ID_AZI = CLIENTI.ID_AZI AND TESTATA.CODCLI = CLIENTI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLLZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.ATBADC_01 AS CAUSALI ON TESTATA.ID_AZI = CAUSALI.ID_AZI AND TESTATA.CAUBOL = CAUSALI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMG2 = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLL9_01 AS LOTTI ON RIGHE.ID_AZI = LOTTI.ID_AZI AND RIGHE.NUMBOL = LOTTI.NUMBOL AND RIGHE.NUMRIG = LOTTI.NUMRIG AND RIGHE.NUMCOM = LOTTI.NUMCOM
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE (CAUSALI.TIPDOC = '2')
AND TESTATA.NUMDOC <> ' '
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
AND TESTATA.CODMG2 <> 0
AND ARTICOLI.ATTENO = PARAMETRI.PCDATT;
 
go
 
-- INSERISCE RIGHE SCARICO TRASFERIMENTI CON IL NUMERO BOLLA ADDIZIONATO DI 80000000000 PER NON SOVRAPPORSI AI CARICHI
INSERT INTO AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO
(ID_AZI,
CODREG,
DESREG,
DTABOL,
NUMBOL,
NUMDOC,
CODSOG,
IDRIGA,
PROENO,
QTABOL,
PREZZO,
LOTTOS)
SELECT
TESTATA.ID_AZI,
REGISTRI.CODICE AS CODREG,
REGISTRI.DESCRI AS DESREG,
TESTATA.DTABOL,
'8'+REPLICATE('0',10-LEN(RTRIM(TESTATA.NUMBOL))) + RTRIM(TESTATA.NUMBOL),
TESTATA.NUMDOC,
'C'+REPLICATE('0',6-LEN(RTRIM(CLIENTI.CODICE))) + RTRIM(CLIENTI.CODICE),
RIGHE.NUMRIG AS IDRIGA,
RIGHE.CODART AS PROENO,
IIF(LOTTI.QTALOT IS NULL, (RIGHE.QTABOL * -1), (LOTTI.QTALOT * -1)) AS QTABOL,
RIGHE.PREZZO,
LOTTI.LOTTOS
FROM AV_COL_TMP.dbo.ABOLL1_01 AS TESTATA
LEFT JOIN AV_COL_TMP.dbo.AANCL1_01 AS CLIENTI ON TESTATA.ID_AZI = CLIENTI.ID_AZI AND TESTATA.CODCLI = CLIENTI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLLZ_01 AS RIGHE ON TESTATA.ID_AZI = RIGHE.ID_AZI AND TESTATA.NUMBOL = RIGHE.NUMBOL
LEFT JOIN AV_COL_TMP.dbo.ATBADC_01 AS CAUSALI ON TESTATA.ID_AZI = CAUSALI.ID_AZI AND TESTATA.CAUBOL = CAUSALI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ATBAMA_01 AS MAGAZZINI ON TESTATA.ID_AZI = MAGAZZINI.ID_AZI AND TESTATA.CODMG1 = MAGAZZINI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ARUREG_01 AS REGISTRI ON MAGAZZINI.ID_AZI = REGISTRI.ID_AZI AND MAGAZZINI.REGVUN = REGISTRI.CODICE
LEFT JOIN AV_COL_TMP.dbo.AARTI1_01 AS ARTICOLI ON RIGHE.ID_AZI = ARTICOLI.ID_AZI AND RIGHE.CODART = ARTICOLI.CODICE
LEFT JOIN AV_COL_TMP.dbo.ABOLL9_01 AS LOTTI ON RIGHE.ID_AZI = LOTTI.ID_AZI AND RIGHE.NUMBOL = LOTTI.NUMBOL AND RIGHE.NUMRIG = LOTTI.NUMRIG AND RIGHE.NUMCOM = LOTTI.NUMCOM
JOIN AV_COL_TMP.dbo.APICOL_01 PARAMETRI ON TESTATA.ID_AZI = PARAMETRI.ID_AZI
WHERE (CAUSALI.TIPDOC = '2')
AND TESTATA.NUMDOC <> ' '
AND (TESTATA.DTABOL >= PARAMETRI.DTAELA OR PARAMETRI.DTAELA IS NULL)
AND TESTATA.CODMG2 <> 0
AND ARTICOLI.ATTENO = PARAMETRI.PCDATT;
 
go
 
UPDATE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO
SET
LOTTOS= ' '
WHERE LOTTOS IS NULL
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ALTER COLUMN LOTTOS VARCHAR(30) NOT NULL
 
go
 
ALTER TABLE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ADD PRIMARY KEY (
ID_AZI,
NUMBOL,
IDRIGA,
LOTTOS)
 
go
 
-- CREA TABELLA SU DATABASE REALE CON CONDIZIONE IF EXISTS
IF NOT EXISTS (SELECT TABLE_NAME FROM AV_COL.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'CARICO_PRODOTTI_ENO')
SELECT * INTO AV_COL.dbo.CARICO_PRODOTTI_ENO FROM AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO WHERE 1 = 0;
 
go
 
-- NELLA INSERT VENGONO SPECIFICATI TUTTI I CAMPI PER EVITARE CHE CI SIA UN
-- MOMENTO IN CUI LA TABELLA E' INCOMPLETA (IN REALTA' L'UPDATE SUCCESSIVA LI
-- INSERIREBBE COMUNQUE)
 
INSERT INTO AV_COL.dbo.CARICO_PRODOTTI_ENO
(ID_AZI,
CODREG,
DESREG,
DTABOL,
NUMBOL,
NUMDOC,
CODSOG,
IDRIGA,
PROENO,
QTABOL,
PREZZO,
LOTTOS)
SELECT
SORGENTE.ID_AZI,
SORGENTE.CODREG,
SORGENTE.DESREG,
SORGENTE.DTABOL,
SORGENTE.NUMBOL,
SORGENTE.NUMDOC,
SORGENTE.CODSOG,
SORGENTE.IDRIGA,
SORGENTE.PROENO,
SORGENTE.QTABOL,
SORGENTE.PREZZO,
SORGENTE.LOTTOS
From AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO SORGENTE LEFT JOIN AV_COL.dbo.CARICO_PRODOTTI_ENO DESTINAZIONE
ON SORGENTE.ID_AZI = DESTINAZIONE.ID_AZI
AND SORGENTE.NUMBOL = DESTINAZIONE.NUMBOL
AND SORGENTE.IDRIGA = DESTINAZIONE.IDRIGA
WHERE DESTINAZIONE.IDRIGA IS NULL;
 
-- RIMOZIONE DEI DOCUMENTI CANCELLATI SU AV2000 (NON SI CANCELLANO MAI!) O SENZA SOGGETTO (IMPORTANTE PER SCARTARE ACQUISTI DI MATERIALI)
DELETE AV_COL.dbo.CARICO_PRODOTTI_ENO
FROM AV_COL.dbo.CARICO_PRODOTTI_ENO
LEFT JOIN AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO ON AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO.ID_AZI = AV_COL.dbo.CARICO_PRODOTTI_ENO.ID_AZI
AND AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO.NUMBOL = AV_COL.dbo.CARICO_PRODOTTI_ENO.NUMBOL
AND AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO.IDRIGA = AV_COL.dbo.CARICO_PRODOTTI_ENO.IDRIGA
LEFT JOIN AV_COL.dbo.SOGGETTI ON AV_COL.dbo.CARICO_PRODOTTI_ENO.ID_AZI = AV_COL.dbo.SOGGETTI.ID_AZI AND AV_COL.dbo.CARICO_PRODOTTI_ENO.CODSOG = AV_COL.dbo.SOGGETTI.CODSOG
WHERE AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO.IDRIGA IS NULL
OR (AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO.IDRIGA IS NOT NULL and AV_COL.dbo.SOGGETTI.CODSOG IS NULL);
 
-- AGGIORNAMENTO
UPDATE DESTINAZIONE
SET
DESTINAZIONE.ID_AZI=SORGENTE.ID_AZI,
DESTINAZIONE.CODREG=SORGENTE.CODREG,
DESTINAZIONE.DESREG=SORGENTE.DESREG,
DESTINAZIONE.DTABOL=SORGENTE.DTABOL,
DESTINAZIONE.NUMBOL=SORGENTE.NUMBOL,
DESTINAZIONE.NUMDOC=SORGENTE.NUMDOC,
DESTINAZIONE.CODSOG=SORGENTE.CODSOG,
DESTINAZIONE.IDRIGA=SORGENTE.IDRIGA,
DESTINAZIONE.PROENO=SORGENTE.PROENO,
DESTINAZIONE.QTABOL=SORGENTE.QTABOL,
DESTINAZIONE.PREZZO=SORGENTE.PREZZO,
DESTINAZIONE.LOTTOS=SORGENTE.LOTTOS
FROM AV_COL.dbo.CARICO_PRODOTTI_ENO DESTINAZIONE
JOIN AV_COL_TMP.dbo.STRUTTURA_CARICO_PRODOTTI_ENO SORGENTE ON DESTINAZIONE.ID_AZI = SORGENTE.ID_AZI AND DESTINAZIONE.NUMBOL = SORGENTE.NUMBOL AND DESTINAZIONE.IDRIGA = SORGENTE.IDRIGA
WHERE DESTINAZIONE.NUMDOC <> SORGENTE.NUMDOC
OR DESTINAZIONE.CODSOG <> SORGENTE.CODSOG
OR DESTINAZIONE.CODREG <> SORGENTE.CODREG
OR DESTINAZIONE.DTABOL <> SORGENTE.DTABOL
OR DESTINAZIONE.NUMDOC <> SORGENTE.NUMDOC
OR DESTINAZIONE.PROENO <> SORGENTE.PROENO
OR DESTINAZIONE.QTABOL <> SORGENTE.QTABOL
OR DESTINAZIONE.PREZZO <> SORGENTE.PREZZO OR DESTINAZIONE.PREZZO IS NULL
OR DESTINAZIONE.LOTTOS <> SORGENTE.LOTTOS;
 
go
 
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione script /data/av2000/sql/esegue_store_col_058.sql', GetDate())
USE VITVEN_COL;
go
EXECUTE [dbo].[SP_IMPORT_REGISTRO_UNICO_AV2000];
go
EXECUTE [dbo].[SP_IMPORT_CLIFOR];
go
EXECUTE [dbo].[SP_IMPORT_CONFERIMENTI_AV2000];
go
USE VITVEN_COL_NEW;
go
EXECUTE [dbo].[SP_IMPORT_REGISTRO_UNICO_AV2000];
go
EXECUTE [dbo].[SP_IMPORT_CLIFOR];
go
EXECUTE [dbo].[SP_IMPORT_CONFERIMENTI_AV2000];
go
USE AV_COL_TMP;
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Fine elaborazione', GetDate())
go
