-- Table structure for table `online64`
--

CREATE TABLE `online64` (
  `DataGps_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Mobitel_ID` int(11) NOT NULL DEFAULT '0' COMMENT 'РљРѕРґ РўРµР»РµС‚СЂРµРєР°',
  `Latitude` int(11) NOT NULL DEFAULT '0' COMMENT 'РЁРёСЂРѕС‚Р°',
  `Longitude` int(11) NOT NULL DEFAULT '0' COMMENT 'Р”РѕР»РіРѕС‚Р°',
  `Direction` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT 'РіСЂР°РґСѓСЃС‹/1.5',
  `Acceleration` int(11) DEFAULT '0' COMMENT 'РР·РјРµРЅРµРЅРёРµ СЃРєРѕСЂРѕСЃС‚Рё РїРѕ GPS Р·Р° РїРѕСЃР»РµРґРЅСЋСЋ СЃРµРєСѓРЅРґСѓ',
  `UnixTime` int(11) NOT NULL DEFAULT '0',
  `Speed` smallint(6) NOT NULL DEFAULT '0' COMMENT 'РЎРѕС‚РµРЅ РјРµС‚СЂРѕРІ РІ С‡Р°СЃ (0,1 РєРј/С‡)',
  `Valid` tinyint(1) NOT NULL DEFAULT '1',
  `Satellites` tinyint(1) unsigned DEFAULT '0' COMMENT 'РљРѕР»РёС‡РµСЃС‚РІРѕ СЃРїСѓС‚РЅРёРєРѕРІ ',
  `RssiGsm` tinyint(1) unsigned DEFAULT '0' COMMENT 'РЈСЂРѕРІРµРЅСЊ GSM СЃРёРіРЅР°Р»Р°',
  `Events` int(11) DEFAULT '0' COMMENT 'Р¤Р»Р°РіРё СЃРѕР±С‹С‚РёР№',
  `SensorsSet` tinyint(1) DEFAULT '0' COMMENT 'РљРѕРґ РЅР°Р±РѕСЂР° РґР°С‚С‡РёРєРѕРІ',
  `Sensors` varbinary(50) DEFAULT '0' COMMENT 'Р—РЅР°С‡РµРЅРёСЏ РґР°С‚С‡РёРєРѕРІ',
  `Voltage` tinyint(4) unsigned DEFAULT '0' COMMENT 'РќР°РїСЂСЏР¶РµРЅРёРµ РїРёС‚Р°РЅРёСЏ С‚РµРєСѓС‰РµРіРѕ РёСЃС‚РѕС‡РЅРёРєР°/1.5 РѕС‚ 0 РґРѕ 38,2',
  `DGPS` varchar(32) DEFAULT NULL,
  `LogID` int(11) DEFAULT '0' COMMENT 'РРґРµРЅС‚РёС„РёРєР°С‚РѕСЂ Р·Р°РїРёСЃРё РІ Р¶СѓСЂРЅР°Р»Рµ РўРµР»РµС‚СЂРµРєР°',
  `SrvPacketID` bigint(20) NOT NULL DEFAULT '0' COMMENT 'ID СЃРµСЂРІРµСЂРЅРѕРіРѕ РїР°РєРµС‚Р° РІ СЃРѕСЃС‚Р°РІ РєРѕС‚РѕСЂРѕРіРѕ РІС…РѕРґРёС‚ СЌС‚Р° Р·Р°РїРёСЃСЊ',
  PRIMARY KEY (`DataGps_ID`),
  KEY `IDX_MobitelidUnixtimeValid64` (`Mobitel_ID`,`UnixTime`,`Valid`)
) ENGINE=InnoDB AUTO_INCREMENT=1130 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `online64`
--

INSERT INTO `online64` VALUES (187,102,506715900,258112900,204,0,1587535798,40,1,19,0,0,0,_binary 'EAAAAAAAAAD6M34AAAAAAAAAAAAAAAAchg==',0,'',6354,438086670546),(188,102,506716100,258112500,210,0,1587535801,20,1,19,0,0,0,_binary 'EAAAAAAAAAD6M4MAAAAAAAAAAAAAAAAb8g==',0,'',6355,438086670547),(190,102,506716100,258112300,213,0,1587535860,0,1,19,0,0,0,_binary 'EAAAAAAAAAD6M5oAAAAAAAAAAAAAAAAcHA==',0,'',6356,438086670548),(191,102,506716100,258112300,213,0,1587535900,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6M68AAAAAAAAAAAAAAAAAAA==',0,'',6357,438086670549),(193,102,506716100,258112300,213,0,1587535960,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6L9AAAAAAAAAAAAAAAAAAAA==',0,'',6358,438086670550),(209,102,506716100,258112300,213,0,1587536020,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6L1QAAAAAAAAAAAAAAAAAAA==',0,'',6359,438086670551),(210,102,506716100,258112300,213,0,1587536080,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LwYAAAAAAAAAAAAAAAAAAA==',0,'',6360,438086670552),(212,102,506716100,258112300,213,0,1587536140,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LtIAAAAAAAAAAAAAAAAAAA==',0,'',6361,438086670553),(214,102,506716100,258112300,213,0,1587536200,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LrgAAAAAAAAAAAAAAAAAAA==',0,'',6362,438086670554),(231,102,506716100,258112300,213,0,1587536260,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6Lp4AAAAAAAAAAAAAAAAAAA==',0,'',6363,438086670555),(233,102,506716100,258112300,213,0,1587536320,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LoYAAAAAAAAAAAAAAAAAAA==',0,'',6364,438086670556),(237,102,506716100,258112300,213,0,1587536380,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LhQAAAAAAAAAAAAAAAAAAA==',0,'',6365,438086670557),(255,102,506716100,258112300,213,0,1587536440,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LlIAAAAAAAAAAAAAAAAAAA==',0,'',6366,438086670558),(257,102,506716100,258112300,213,0,1587536500,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6Lk0AAAAAAAAAAAAAAAAAAA==',0,'',6367,438086670559),(259,102,506716100,258112300,213,0,1587536560,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LkMAAAAAAAAAAAAAAAAAAA==',0,'',6368,438086670560),(274,102,506716100,258112300,213,0,1587536620,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LjMAAAAAAAAAAAAAAAAAAA==',0,'',6369,438086670561),(275,102,506716100,258112300,213,0,1587536680,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LikAAAAAAAAAAAAAAAAAAA==',0,'',6370,438086670562),(277,102,506716100,258112300,213,0,1587536721,0,1,19,0,0,0,_binary 'EAAAAAAAAAD6LgIAAAAAAAAAAAAAAAACTA==',0,'',6371,438086670563),(278,102,506716100,258112300,213,0,1587536722,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6ImEAAAAAAAAAAAAAAAAAAA==',0,'',6372,438086670564),(279,102,506716100,258112300,213,0,1587536724,0,1,19,0,0,0,_binary 'EAAAAAAAAAD6KrcAAAAAAAAAAAAAAAAcAg==',0,'',6373,438086670565),(281,102,506716100,258112300,213,0,1587536784,0,1,18,0,0,0,_binary 'EAAAAAAAAAD6M7IAAAAAAAAAAAAAAAArKg==',0,'',6374,438086670566),(297,102,506716200,258112600,86,0,1587536826,20,1,20,0,0,0,_binary 'EAAAAAAAAAD6MDgAAAAAAAAAAAAAAAAspg==',0,'',6375,438086670567),(299,102,506716200,258112700,91,0,1587536884,20,1,18,0,0,0,_binary 'EAAAAAAAAAD6M3sAAAAAAAAAAAAAAAAc3g==',0,'',6376,438086670568),(300,102,506716100,258112900,87,0,1587536886,30,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3MAAAAAAAAAAAAAAAAdIA==',0,'',6377,438086670569),(301,102,506716000,258113000,82,0,1587536887,40,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3YAAAAAAAAAAAAAAAAdgA==',0,'',6378,438086670570),(302,102,506716000,258113100,71,0,1587536888,40,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3MAAAAAAAAAAAAAAAAeTg==',0,'',6379,438086670571),(303,102,506715900,258113400,79,0,1587536890,40,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3YAAAAAAAAAAAAAAAAl5g==',0,'',6380,438086670572),(304,102,506715800,258113600,83,0,1587536891,30,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3sAAAAAAAAAAAAAAAAgwA==',0,'',6381,438086670573),(305,102,506715600,258114000,89,0,1587536894,50,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3gAAAAAAAAAAAAAAAAm9A==',0,'',6382,438086670574),(306,102,506715400,258114300,97,0,1587536896,40,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3gAAAAAAAAAAAAAAAAoRA==',0,'',6383,438086670575),(307,102,506715100,258114500,103,0,1587536898,60,1,19,0,0,0,_binary 'EAAAAAAAAAD6M34AAAAAAAAAAAAAAAArzA==',0,'',6384,438086670576),(308,102,506715000,258114600,95,0,1587536899,50,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3gAAAAAAAAAAAAAAAAqfg==',0,'',6385,438086670577),(309,102,506714800,258114700,85,0,1587536900,50,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3sAAAAAAAAAAAAAAAAuVA==',0,'',6386,438086670578),(310,102,506714800,258114900,71,0,1587536901,60,1,19,0,0,0,_binary 'EAAAAAAAAAD6M4AAAAAAAAAAAAAAAAAyQA==',0,'',6387,438086670579),(311,102,506714700,258115200,67,0,1587536902,70,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3gAAAAAAAAAAAAAAAAyMg==',0,'',6388,438086670580),(312,102,506714700,258115500,53,0,1587536903,70,1,19,0,0,0,_binary 'EAAAAAAAAAD6M34AAAAAAAAAAAAAAAAx8A==',0,'',6389,438086670581),(313,102,506714700,258115700,47,0,1587536904,60,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3sAAAAAAAAAAAAAAAAw8A==',0,'',6390,438086670582),(314,102,506714800,258115900,35,0,1587536905,60,1,19,0,0,0,_binary 'EAAAAAAAAAD6M3MAAAAAAAAAAAAAAAAvPg==',0,'',6391,438086670583),(315,102,506714900,258116100,26,0,1587536906,60,1,19,0,0,0,_binary 'EAAAAAAAAAD6M0oAAAAAAAAAAAAAAAAmHA==',0,'',6392,438086670584),(316,102,506715300,258116600,32,0,1587536910,20,1,19,0,0,0,_binary 'EAAAAAAAAAD6Mv4AAAAAAAAAAAAAAAAd0g==',0,'',6393,438086670585),(317,102,506715300,258116600,32,0,1587536926,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6M5IAAAAAAAAAAAAAAAAAAA==',0,'',6394,438086670586),(319,102,506715300,258116600,32,0,1587536986,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6L6wAAAAAAAAAAAAAAAAAAA==',0,'',6395,438086670587),(337,102,506715300,258116600,32,0,1587537046,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6Ly0AAAAAAAAAAAAAAAAAAA==',0,'',6396,438086670588),(339,102,506715300,258116600,32,0,1587537106,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LvYAAAAAAAAAAAAAAAAAAA==',0,'',6397,438086670589),(341,102,506715300,258116600,32,0,1587537166,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6Lr0AAAAAAAAAAAAAAAAAAA==',0,'',6398,438086670590),(348,102,506715300,258116600,32,0,1587537226,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LpsAAAAAAAAAAAAAAAAAAA==',0,'',6399,438086670591),(350,102,506715300,258116600,32,0,1587537286,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LoQAAAAAAAAAAAAAAAAAAA==',0,'',6400,438086670592),(352,102,506715300,258116600,32,0,1587537346,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LmoAAAAAAAAAAAAAAAAAAA==',0,'',6401,438086670593),(354,102,506715300,258116600,32,0,1587537398,0,1,18,0,0,0,_binary 'EAAAAAAAAAD6LiYAAAAAAAAAAAAAAAAAAA==',0,'',6402,438086670594),(355,102,506715300,258116600,32,0,1587537399,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6I70AAAAAAAAAAAAAAAAAAA==',0,'',6403,438086670595),(356,102,506715300,258116600,32,0,1587537401,0,1,18,0,0,0,_binary 'EAAAAAAAAAD6KqUAAAAAAAAAAAAAAAAcCA==',0,'',6404,438086670596),(367,102,506715300,258116600,32,0,1587537443,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6M5AAAAAAAAAAAAAAAAAAAA==',0,'',6405,438086670597),(369,102,506715300,258116600,32,0,1587537502,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LiYAAAAAAAAAAAAAAAAAAA==',0,'',6406,438086670598),(371,102,506715300,258116600,32,0,1587537562,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LfoAAAAAAAAAAAAAAAAAAA==',0,'',6407,438086670599),(386,102,506715300,258116600,32,0,1587537622,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6Ld0AAAAAAAAAAAAAAAAAAA==',0,'',6408,438086670600),(387,102,506715300,258116600,32,0,1587537671,0,1,19,0,0,0,_binary 'EAAAAAAAAAD6LZoAAAAAAAAAAAAAAAAAAA==',0,'',6409,438086670601),(388,102,506715300,258116600,32,0,1587537674,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6IvAAAAAAAAAAAAAAAAAAAA==',0,'',6410,438086670602),(389,102,506715300,258116600,32,0,1587537676,0,1,17,0,0,0,_binary 'EAAAAAAAAAD6Ko4AAAAAAAAAAAAAAAAb+g==',0,'',6411,438086670603),(390,102,506715300,258116600,32,0,1587537699,0,1,16,0,0,0,_binary 'AAAAAAAAAAD6M7QAAAAAAAAAAAAAAAAAAA==',0,'',6412,438086670604),(392,102,506715300,258116600,32,0,1587537758,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LUYAAAAAAAAAAAAAAAAAAA==',0,'',6413,438086670605),(408,102,506715300,258116600,32,0,1587537818,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LUkAAAAAAAAAAAAAAAAAAA==',0,'',6414,438086670606),(410,102,506715300,258116600,32,0,1587537878,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LUYAAAAAAAAAAAAAAAAAAA==',0,'',6415,438086670607),(412,102,506715300,258116600,32,0,1587537938,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LUQAAAAAAAAAAAAAAAAAAA==',0,'',6416,438086670608),(426,102,506715300,258116600,32,0,1587537998,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LTwAAAAAAAAAAAAAAAAAAA==',0,'',6417,438086670609),(428,102,506715300,258116600,32,0,1587538058,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LUEAAAAAAAAAAAAAAAAAAA==',0,'',6418,438086670610),(430,102,506715300,258116600,32,0,1587538118,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LR8AAAAAAAAAAAAAAAAAAA==',0,'',6419,438086670611),(448,102,506715300,258116600,32,0,1587538178,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LT8AAAAAAAAAAAAAAAAAAA==',0,'',6420,438086670612),(450,102,506715300,258116600,32,0,1587538238,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LT8AAAAAAAAAAAAAAAAAAA==',0,'',6421,438086670613),(452,102,506715300,258116600,32,0,1587538298,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LTcAAAAAAAAAAAAAAAAAAA==',0,'',6422,438086670614),(469,102,506715300,258116600,32,0,1587538358,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LTIAAAAAAAAAAAAAAAAAAA==',0,'',6423,438086670615),(471,102,506715300,258116600,32,0,1587538418,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LTkAAAAAAAAAAAAAAAAAAA==',0,'',6424,438086670616),(473,102,506715300,258116600,32,0,1587538478,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LSwAAAAAAAAAAAAAAAAAAA==',0,'',6425,438086670617),(488,102,506715300,258116600,32,0,1587538538,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LTIAAAAAAAAAAAAAAAAAAA==',0,'',6426,438086670618),(490,102,506715300,258116600,32,0,1587538598,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LSoAAAAAAAAAAAAAAAAAAA==',0,'',6427,438086670619),(492,102,506715300,258116600,32,0,1587538658,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LSoAAAAAAAAAAAAAAAAAAA==',0,'',6428,438086670620),(509,102,506715300,258116600,32,0,1587538718,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LScAAAAAAAAAAAAAAAAAAA==',0,'',6429,438086670621),(511,102,506715300,258116600,32,0,1587538778,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LSoAAAAAAAAAAAAAAAAAAA==',0,'',6430,438086670622),(513,102,506715300,258116600,32,0,1587538838,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LSoAAAAAAAAAAAAAAAAAAA==',0,'',6431,438086670623),(516,102,506715300,258116600,32,0,1587538898,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LOkAAAAAAAAAAAAAAAAAAA==',0,'',6432,438086670624),(531,101,506711200,257324000,10,0,1587538864,90,1,18,0,0,0,_binary 'EAAAAAAAAAD3Mz0AAAAAAAAAAAAE5qwwKg==',0,'',8440,433791705336),(532,101,506711400,257324100,6,0,1587538865,100,1,18,0,0,0,_binary 'EAAAAAAAAAD3Mz0AAAAAAAAAAAAE5qw6ZA==',0,'',8441,433791705337),(533,101,506712000,257324300,11,0,1587538867,100,1,18,0,0,0,_binary 'EAAAAAAAAAD1M0oAAAAAAAAAAAAE5qw5rg==',0,'',8442,433791705338),(534,102,506715300,258116600,32,0,1587538958,0,1,17,0,0,0,_binary 'AAAAAAAAAAD6LScAAAAAAAAAAAAAAAAAAA==',0,'',6433,438086670625),(535,101,506731300,257334100,12,0,1587538926,140,1,17,0,0,0,_binary 'EAAAAAAAAAD6MxsAAAAAAAAAAAAE5q8yTA==',0,'',8443,433791705339),(536,101,506743000,257340000,8,0,1587538963,130,1,18,0,0,0,_binary 'EAAAAAAAAAD6MyUAAAAAAAAAAAAE5rA3ug==',0,'',8444,433791705340),(537,101,506744300,257340600,12,0,1587538967,120,1,18,0,0,0,_binary 'EAAAAAAAAAD6MyAAAAAAAAAAAAAE5rA1fg==',0,'',8445,433791705341),(538,102,506715300,258116600,32,0,1587539018,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LSwAAAAAAAAAAAAAAAAAAA==',0,'',6434,438086670626),(539,101,506756100,257346700,7,0,1587539017,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMyAAAAAAAAAAAAAE5rIlNA==',0,'',8446,433791705342),(540,101,506756400,257346900,17,0,1587539019,80,1,18,0,0,0,_binary 'EAAAAAAAAADoMwkAAAAAAAAAAAAE5rIxmg==',0,'',8447,433791705343),(541,101,506756600,257347000,35,0,1587539020,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMyAAAAAAAAAAAAAE5rItFA==',0,'',8448,433791705344),(542,101,506756600,257347200,48,-1,1587539021,50,1,18,0,0,0,_binary 'EAAAAAAAAADoMxgAAAAAAAAAAAAE5rIsfg==',0,'',8449,433791705345),(543,101,506756600,257347500,63,1,1587539022,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMxMAAAAAAAAAAAAE5rIveg==',0,'',8450,433791705346),(544,101,506756500,257347700,79,0,1587539023,60,1,18,0,0,0,_binary 'EAAAAAAAAADoMxsAAAAAAAAAAAAE5rIu4g==',0,'',8451,433791705347),(545,101,506756400,257347900,93,0,1587539024,60,1,18,0,0,0,_binary 'EAAAAAAAAADoMw4AAAAAAAAAAAAE5rIxVA==',0,'',8452,433791705348),(546,101,506756200,257348000,110,0,1587539025,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMwMAAAAAAAAAAAAE5rIynA==',0,'',8453,433791705349),(547,101,506756000,257348000,124,0,1587539026,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMwkAAAAAAAAAAAAE5rIvAg==',0,'',8454,433791705350),(548,101,506755700,257347900,137,0,1587539027,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMwMAAAAAAAAAAAAE5rIr5A==',0,'',8455,433791705351),(549,101,506755600,257347800,144,0,1587539028,60,1,18,0,0,0,_binary 'EAAAAAAAAADoMv4AAAAAAAAAAAAE5rIqhg==',0,'',8456,433791705352),(550,102,506715300,258116600,32,0,1587539078,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LSwAAAAAAAAAAAAAAAAAAA==',0,'',6435,438086670627),(551,101,506755500,257347600,153,0,1587539029,60,1,18,0,0,0,_binary 'EAAAAAAAAADoMsoAAAAAAAAAAAAE5rIssA==',0,'',8457,433791705353),(552,101,506755300,257347300,157,0,1587539030,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMs0AAAAAAAAAAAAE5rIr8A==',0,'',8458,433791705354),(553,101,506755200,257347100,153,0,1587539031,70,1,18,0,0,0,_binary 'EAAAAAAAAADoMuIAAAAAAAAAAAAE5rIsRA==',0,'',8459,433791705355),(554,101,506755000,257346900,137,0,1587539032,80,1,18,0,0,0,_binary 'EAAAAAAAAADoMuQAAAAAAAAAAAAE5rIylg==',0,'',8460,433791705356),(555,101,506754400,257346500,130,0,1587539035,120,1,18,0,0,0,_binary 'EAAAAAAAAADoMwkAAAAAAAAAAAAE5rI6QA==',0,'',8461,433791705357),(556,102,506715300,258116600,32,0,1587539138,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LScAAAAAAAAAAAAAAAAAAA==',0,'',6436,438086670628),(557,101,506737200,257337900,133,0,1587539095,100,1,18,0,0,0,_binary 'EAAAAAAAAADZMxAAAAAAAAAAAAAE5rU7Zg==',0,'',8462,433791705358),(558,102,506715300,258116600,32,0,1587539198,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6437,438086670629),(559,101,506723500,257330900,132,0,1587539155,90,1,17,0,0,0,_binary 'EAAAAAAAAADUMyoAAAAAAAAAAAAE5rc2eA==',0,'',8463,433791705359),(560,102,506715300,258116600,32,0,1587539258,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6438,438086670630),(561,101,506709900,257323900,139,0,1587539211,90,1,18,0,0,0,_binary 'EAAAAAAAAADtMx0AAAAAAAAAAAAE5rkuDA==',0,'',8464,433791705360),(562,101,506709400,257323600,128,0,1587539213,90,1,18,0,0,0,_binary 'EAAAAAAAAADtMz8AAAAAAAAAAAAE5rksjA==',0,'',8465,433791705361),(563,101,506709300,257323600,110,0,1587539214,80,1,18,0,0,0,_binary 'EAAAAAAAAADtM0wAAAAAAAAAAAAE5rkoaA==',0,'',8466,433791705362),(564,101,506709100,257323700,93,0,1587539215,80,1,18,0,0,0,_binary 'EAAAAAAAAADwM1QAAAAAAAAAAAAE5rkqfg==',0,'',8467,433791705363),(565,101,506709000,257324000,81,0,1587539216,80,1,18,0,0,0,_binary 'EAAAAAAAAADwM1EAAAAAAAAAAAAE5rktYA==',0,'',8468,433791705364),(566,101,506708900,257324300,66,1,1587539217,100,1,18,0,0,0,_binary 'EAAAAAAAAADwM1EAAAAAAAAAAAAE5rkxNg==',0,'',8469,433791705365),(567,101,506708900,257324700,51,0,1587539218,110,1,18,0,0,0,_binary 'EAAAAAAAAADwM0oAAAAAAAAAAAAE5rkyqA==',0,'',8470,433791705366),(568,101,506709000,257325100,33,0,1587539219,100,1,18,0,0,0,_binary 'EAAAAAAAAADwM1EAAAAAAAAAAAAE5rkyKg==',0,'',8471,433791705367),(569,101,506709200,257325400,21,0,1587539220,100,1,18,0,0,0,_binary 'EAAAAAAAAADyM0QAAAAAAAAAAAAE5rkz7A==',0,'',8472,433791705368),(570,101,506709400,257325500,13,0,1587539221,100,1,18,0,0,0,_binary 'EAAAAAAAAADyMz0AAAAAAAAAAAAE5rkzGg==',0,'',8473,433791705369),(571,101,506709700,257325600,232,0,1587539222,110,1,18,0,0,0,_binary 'EAAAAAAAAADyM08AAAAAAAAAAAAE5rkzFg==',0,'',8474,433791705370),(572,101,506710000,257325500,226,-1,1587539223,90,1,19,0,0,0,_binary 'EAAAAAAAAAD1M0IAAAAAAAAAAAAE5rkvug==',0,'',8475,433791705371),(573,101,506710200,257325400,237,0,1587539224,90,1,19,0,0,0,_binary 'EAAAAAAAAAD1M08AAAAAAAAAAAAE5rkuTA==',0,'',8476,433791705372),(574,101,506710500,257325400,3,0,1587539225,80,1,19,0,0,0,_binary 'EAAAAAAAAAD1Mz8AAAAAAAAAAAAE5rksMg==',0,'',8477,433791705373),(575,101,506710600,257325500,9,0,1587539226,80,1,19,0,0,0,_binary 'EAAAAAAAAAD1M0QAAAAAAAAAAAAE5rk0Zg==',0,'',8478,433791705374),(576,101,506711400,257325800,13,0,1587539229,120,1,19,0,0,0,_binary 'EAAAAAAAAAD1Mz0AAAAAAAAAAAAE5rk7rA==',0,'',8479,433791705375),(577,102,506715300,258116600,32,0,1587539318,0,1,19,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6439,438086670631),(578,101,506731100,257335900,12,0,1587539289,130,1,19,0,0,0,_binary 'EAAAAAAAAAD6Mx0AAAAAAAAAAAAE5rwy7A==',0,'',8480,433791705376),(579,102,506715300,258116600,32,0,1587539378,0,1,18,0,0,0,_binary 'AAAAAAAAAAD6LR8AAAAAAAAAAAAAAAAAAA==',0,'',6440,438086670632),(580,101,506748600,257344600,12,0,1587539349,110,1,19,0,0,0,_binary 'EAAAAAAAAADeMvwAAAAAAAAAAAAE5r440g==',0,'',8481,433791705377),(581,101,506755300,257348000,4,0,1587539378,70,1,19,0,0,0,_binary 'EAAAAAAAAADoMvkAAAAAAAAAAAAE5r8uyA==',0,'',8482,433791705378),(582,101,506755700,257348200,16,0,1587539380,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMwsAAAAAAAAAAAAE5r8tcA==',0,'',8483,433791705379),(583,101,506755800,257348300,36,0,1587539381,70,1,20,0,0,0,_binary 'EAAAAAAAAADmMxMAAAAAAAAAAAAE5r8p9A==',0,'',8484,433791705380),(584,101,506755900,257348600,49,0,1587539382,70,1,20,0,0,0,_binary 'EAAAAAAAAADmMwkAAAAAAAAAAAAE5sAwYA==',0,'',8485,433791705381),(585,101,506755900,257348900,61,0,1587539383,80,1,20,0,0,0,_binary 'EAAAAAAAAADjMwYAAAAAAAAAAAAE5sArcg==',0,'',8486,433791705382),(586,101,506755800,257349200,84,0,1587539384,70,1,20,0,0,0,_binary 'EAAAAAAAAADjMwkAAAAAAAAAAAAE5sAtnA==',0,'',8487,433791705383),(587,101,506755700,257349400,99,0,1587539385,70,1,20,0,0,0,_binary 'EAAAAAAAAADjMwkAAAAAAAAAAAAE5sAvkA==',0,'',8488,433791705384),(588,101,506755500,257349500,115,0,1587539386,80,1,20,0,0,0,_binary 'EAAAAAAAAADjMwMAAAAAAAAAAAAE5sAt+A==',0,'',8489,433791705385),(589,101,506755300,257349500,130,0,1587539387,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMvkAAAAAAAAAAAAE5sAv+g==',0,'',8490,433791705386),(590,101,506755100,257349400,143,0,1587539388,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMsoAAAAAAAAAAAAE5sAv5g==',0,'',8491,433791705387),(591,102,506715300,258116600,32,0,1587539438,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LR8AAAAAAAAAAAAAAAAAAA==',0,'',6441,438086670633),(592,101,506754900,257349200,151,0,1587539389,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMqsAAAAAAAAAAAAE5sAr6A==',0,'',8492,433791705388),(593,101,506754800,257349000,157,0,1587539390,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMrUAAAAAAAAAAAAE5sArIA==',0,'',8493,433791705389),(594,101,506754500,257348500,143,0,1587539392,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMucAAAAAAAAAAAAE5sAsVg==',0,'',8494,433791705390),(595,101,506754300,257348300,139,0,1587539393,80,1,20,0,0,0,_binary 'EAAAAAAAAADmMwMAAAAAAAAAAAAE5sAxQA==',0,'',8495,433791705391),(596,101,506753800,257348000,133,0,1587539395,100,1,20,0,0,0,_binary 'EAAAAAAAAADjMvEAAAAAAAAAAAAE5sA25A==',0,'',8496,433791705392),(597,102,506715300,258116600,32,0,1587539498,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6442,438086670634),(598,101,506736400,257339300,131,0,1587539455,90,1,20,0,0,0,_binary 'EAAAAAAAAADwMy0AAAAAAAAAAAAE5sIyug==',0,'',8497,433791705393),(599,102,506715300,258116600,32,0,1587539558,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6443,438086670635),(600,101,506723300,257332600,131,0,1587539514,80,1,20,0,0,0,_binary 'EAAAAAAAAADSM0IAAAAAAAAAAAAE5sQ1Zg==',0,'',8498,433791705394),(601,102,506715300,258116600,32,0,1587539618,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LR8AAAAAAAAAAAAAAAAAAA==',0,'',6444,438086670636),(602,101,506709900,257325800,139,0,1587539570,100,1,20,0,0,0,_binary 'EAAAAAAAAADoMxYAAAAAAAAAAAAE5sYxEA==',0,'',8499,433791705395),(603,101,506709700,257325600,132,0,1587539571,100,1,20,0,0,0,_binary 'EAAAAAAAAADoM0IAAAAAAAAAAAAE5sYvRg==',0,'',8500,433791705396),(604,101,506709500,257325500,123,0,1587539572,90,1,20,0,0,0,_binary 'EAAAAAAAAADoMzoAAAAAAAAAAAAE5sYy0A==',0,'',8501,433791705397),(605,101,506709300,257325600,105,0,1587539573,80,1,20,0,0,0,_binary 'EAAAAAAAAADoMz0AAAAAAAAAAAAE5sYwXg==',0,'',8502,433791705398),(606,101,506709100,257325800,85,1,1587539574,100,1,20,0,0,0,_binary 'EAAAAAAAAADoMz0AAAAAAAAAAAAE5sY1iA==',0,'',8503,433791705399),(607,101,506709000,257326100,72,0,1587539575,110,1,20,0,0,0,_binary 'EAAAAAAAAADoMz8AAAAAAAAAAAAE5sY3RA==',0,'',8504,433791705400),(608,101,506709000,257326500,54,0,1587539576,100,1,20,0,0,0,_binary 'EAAAAAAAAADoMz8AAAAAAAAAAAAE5sY1JA==',0,'',8505,433791705401),(609,101,506709100,257326900,33,1,1587539577,130,1,20,0,0,0,_binary 'EAAAAAAAAADoM0IAAAAAAAAAAAAE5sY2gg==',0,'',8506,433791705402),(610,101,506709300,257327300,19,0,1587539578,130,1,20,0,0,0,_binary 'EAAAAAAAAADrM0oAAAAAAAAAAAAE5sYvZg==',0,'',8507,433791705403),(611,101,506709600,257327400,235,0,1587539579,120,1,20,0,0,0,_binary 'EAAAAAAAAADrMz8AAAAAAAAAAAAE5sYvLg==',0,'',8508,433791705404),(612,101,506709900,257327300,227,0,1587539580,110,1,20,0,0,0,_binary 'EAAAAAAAAADrM1QAAAAAAAAAAAAE5sYrSg==',0,'',8509,433791705405),(613,101,506710400,257327100,3,0,1587539582,100,1,20,0,0,0,_binary 'EAAAAAAAAADtM0IAAAAAAAAAAAAE5sYm9g==',0,'',8510,433791705406),(614,101,506710600,257327200,8,0,1587539583,90,1,20,0,0,0,_binary 'EAAAAAAAAADwM0QAAAAAAAAAAAAE5scoJA==',0,'',8511,433791705407),(615,101,506713700,257328700,12,0,1587539593,120,1,20,0,0,0,_binary 'EAAAAAAAAAD1MzIAAAAAAAAAAAAE5sc2eA==',0,'',8512,433791705408),(616,102,506715300,258116600,32,0,1587539678,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LO4AAAAAAAAAAAAAAAAAAA==',0,'',6445,438086670637),(617,101,506733500,257338800,11,0,1587539653,130,1,20,0,0,0,_binary 'EAAAAAAAAAD6MwsAAAAAAAAAAAAE5sk6FA==',0,'',8513,433791705409),(618,102,506715300,258116600,32,0,1587539738,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSUAAAAAAAAAAAAAAAAAAA==',0,'',6446,438086670638),(619,101,506750700,257347300,11,0,1587539713,100,1,20,0,0,0,_binary 'EAAAAAAAAADhMvkAAAAAAAAAAAAE5ss2SA==',0,'',8514,433791705410),(620,101,506754800,257349500,5,0,1587539731,80,1,20,0,0,0,_binary 'EAAAAAAAAADhMwYAAAAAAAAAAAAE5swx6A==',0,'',8515,433791705411),(621,101,506755000,257349600,14,0,1587539732,80,1,20,0,0,0,_binary 'EAAAAAAAAADhMvEAAAAAAAAAAAAE5swyOA==',0,'',8516,433791705412),(622,101,506755100,257349700,36,-1,1587539733,60,1,20,0,0,0,_binary 'EAAAAAAAAADhMwsAAAAAAAAAAAAE5swrpg==',0,'',8517,433791705413),(623,101,506755200,257350000,47,0,1587539734,70,1,20,0,0,0,_binary 'EAAAAAAAAADhMwYAAAAAAAAAAAAE5swtpg==',0,'',8518,433791705414),(624,101,506755200,257350200,62,0,1587539735,80,1,20,0,0,0,_binary 'EAAAAAAAAADhMwsAAAAAAAAAAAAE5swxjA==',0,'',8519,433791705415),(625,101,506755100,257350600,81,0,1587539736,80,1,20,0,0,0,_binary 'EAAAAAAAAADhMvkAAAAAAAAAAAAE5swz0g==',0,'',8520,433791705416),(626,101,506754900,257350800,96,0,1587539737,90,1,20,0,0,0,_binary 'EAAAAAAAAADhMvYAAAAAAAAAAAAE5sw1FA==',0,'',8521,433791705417),(627,101,506754700,257350900,119,0,1587539738,90,1,20,0,0,0,_binary 'EAAAAAAAAADjMwkAAAAAAAAAAAAE5swyjg==',0,'',8522,433791705418),(628,101,506754500,257350800,132,0,1587539739,80,1,20,0,0,0,_binary 'EAAAAAAAAADjMv4AAAAAAAAAAAAE5swxcA==',0,'',8523,433791705419),(629,101,506754300,257350700,145,0,1587539740,80,1,20,0,0,0,_binary 'EAAAAAAAAADjMwEAAAAAAAAAAAAE5swwFg==',0,'',8524,433791705420),(630,101,506754100,257350500,151,0,1587539741,80,1,20,0,0,0,_binary 'EAAAAAAAAADjMv4AAAAAAAAAAAAE5sww/A==',0,'',8525,433791705421),(631,101,506754000,257350200,158,0,1587539742,90,1,20,0,0,0,_binary 'EAAAAAAAAADhMxAAAAAAAAAAAAAE5swxDg==',0,'',8526,433791705422),(632,101,506753700,257349600,145,0,1587539744,80,1,20,0,0,0,_binary 'EAAAAAAAAADhMxAAAAAAAAAAAAAE5swseg==',0,'',8527,433791705423),(633,101,506753500,257349500,136,0,1587539745,90,1,20,0,0,0,_binary 'EAAAAAAAAADhMwEAAAAAAAAAAAAE5sw22A==',0,'',8528,433791705424),(634,101,506753300,257349300,130,0,1587539746,100,1,20,0,0,0,_binary 'EAAAAAAAAADhMxgAAAAAAAAAAAAE5sw1fA==',0,'',8529,433791705425),(635,102,506715300,258116600,32,0,1587539798,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSIAAAAAAAAAAAAAAAAAAA==',0,'',6447,438086670639),(636,101,506736500,257341000,131,0,1587539806,120,1,20,0,0,0,_binary 'EAAAAAAAAAD6MyUAAAAAAAAAAAAE5s81Sg==',0,'',8530,433791705426),(637,102,506715300,258116600,32,0,1587539858,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LRoAAAAAAAAAAAAAAAAAAA==',0,'',6448,438086670640),(638,101,506723300,257334300,132,0,1587539866,80,1,20,0,0,0,_binary 'EAAAAAAAAADNMz8AAAAAAAAAAAAE5tEziA==',0,'',8531,433791705427),(639,102,506715300,258116600,32,0,1587539918,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSIAAAAAAAAAAAAAAAAAAA==',0,'',6449,438086670641),(640,101,506709600,257327300,139,0,1587539925,100,1,20,0,0,0,_binary 'EAAAAAAAAADmM2QAAAAAAAAAAAAE5tMz9g==',0,'',8532,433791705428),(641,101,506709400,257327100,135,0,1587539926,90,1,20,0,0,0,_binary 'EAAAAAAAAADmM24AAAAAAAAAAAAE5tMpqA==',0,'',8533,433791705429),(642,101,506709200,257327000,118,0,1587539927,80,1,20,0,0,0,_binary 'EAAAAAAAAADmM2sAAAAAAAAAAAAE5tMnQg==',0,'',8534,433791705430),(643,102,506715300,258116600,32,0,1587539978,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LRgAAAAAAAAAAAAAAAAAAA==',0,'',6450,438086670642),(644,101,506709000,257327100,103,1,1587539928,100,1,20,0,0,0,_binary 'EAAAAAAAAADmM1cAAAAAAAAAAAAE5tMpDg==',0,'',8535,433791705431),(645,101,506708800,257327300,88,-1,1587539929,80,1,20,0,0,0,_binary 'EAAAAAAAAADoM1EAAAAAAAAAAAAE5tMgLA==',0,'',8536,433791705432),(646,101,506708700,257327600,83,-1,1587539930,60,1,20,0,0,0,_binary 'EAAAAAAAAADoMzUAAAAAAAAAAAAE5tMZkg==',0,'',8537,433791705433),(647,102,506715300,258116600,32,0,1587540038,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LR8AAAAAAAAAAAAAAAAAAA==',0,'',6451,438086670643),(648,101,506708500,257328000,83,0,1587539990,0,1,20,0,0,0,_binary 'EAAAAAAAAADhMygAAAAAAAAAAAAE5tQfeA==',0,'',8538,433791705434),(1127,102,506715300,258116600,32,0,1587540098,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LRgAAAAAAAAAAAAAAAAAAA==',0,'',6452,438086670644),(1128,101,506708500,257328000,83,0,1587540050,0,1,20,0,0,0,_binary 'EAAAAAAAAADhMwsAAAAAAAAAAAAE5tQfog==',0,'',8539,433791705435),(1129,102,506715300,258116600,32,0,1587540158,0,1,20,0,0,0,_binary 'AAAAAAAAAAD6LSIAAAAAAAAAAAAAAAAAAA==',0,'',6453,438086670645);

--
-- Table structure for table `parameters`
--

CREATE TABLE `parameters` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Number` int(11) NOT NULL COMMENT 'Номер параметра',
  `Value` varchar(255) DEFAULT NULL COMMENT 'Значение',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `parameters`
--

INSERT INTO `parameters` VALUES (1,24,'False'),(2,18,'True'),(3,13,'True'),(4,22,'0'),(5,12,'False'),(6,21,'uk'),(7,19,'osm.lwco.biz'),(8,23,'8670b246cca7b8d6e140a25b7c8b068d'),(9,25,'False'),(10,20,'----'),(11,26,'ABQIAAAAWaQgWiEBF3lW97ifKnAczhRAzBk5Igf8Z5n2W3hNnMT0j2TikxTLtVIGU7hCLLHMAuAMt-BO5UrEWA'),(12,29,'960'),(13,27,'False'),(14,28,'gisfile.com'),(15,11,'0'),(16,6,'False'),(17,8,'False'),(18,9,'False'),(19,7,'0'),(20,3,'5'),(21,1,'24'),(22,10,'0'),(23,5,'False'),(24,2,'12'),(25,4,'0');

--
-- Table structure for table `pcbdata`
--

CREATE TABLE `pcbdata` (
  `Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Индекс',
  `Typedata` varchar(255) NOT NULL DEFAULT ' ' COMMENT 'Тип данных',
  `koeffK` double NOT NULL DEFAULT '0' COMMENT 'Коеффициент К',
  `Startbit` int(11) NOT NULL DEFAULT '0' COMMENT 'Стартовый бит поля',
  `Lengthbit` int(11) NOT NULL DEFAULT '0' COMMENT 'Длина поля',
  `Comment` varchar(255) DEFAULT ' ' COMMENT 'Коментарий',
  `Idpcb` int(11) NOT NULL DEFAULT '0' COMMENT 'Индекс платы датчика',
  `NameVal` varchar(12) DEFAULT ' ' COMMENT 'Name meassurement value',
  `NumAlg` int(11) DEFAULT '0' COMMENT 'Number of algorithm',
  `Shifter` double DEFAULT '0' COMMENT 'Shift coefficient',
  `S` tinyint(1) DEFAULT '0' COMMENT 'Sign arifmetic',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=cp1251 AVG_ROW_LENGTH=2340 COMMENT='Описание платы датчиков';

--
-- Dumping data for table `pcbdata`
--

INSERT INTO `pcbdata` VALUES (18,'правий бак',1,20,16,'',6,' л',7,0,0),(22,'бортмережа',0.1181,36,8,'',6,' В',6,0,0),(24,'запалювання',1,60,1,'',6,' ',5,0,0),(25,'лівий бак',1,44,16,'',6,'л',7,0,0),(26,'бортмережа',0.1181,36,8,'',7,'В',4,0,0),(27,'запалювання',1,60,1,'',7,'#',5,0,0),(28,'бак',1,20,16,'',7,'л',7,0,0),(30,'штатний ДРП',0.4,128,8,'',8,' %',7,0,0),(31,'оберти двигуна',0.125,0,16,'',8,' rpm',5,0,0),(32,'витрата',0.5,16,64,'',8,' л',27,0,0),(33,'бортмережа',0.001,112,16,'',8,' В',4,0,0),(35,'запалювання',1,196,1,'',8,' ',2,0,0),(36,'бак',0.3922,0,8,'',9,'%',7,0,0),(37,'бортмережа',0.1181,8,8,'',9,'В',6,0,0),(38,'витрата за бортовим компом',0.1,16,32,'',9,'л',27,0,0),(39,'одометр за штатним датчику швидкості',1,48,32,'',9,'км',6,0,0),(40,'оберти двигуна',0.25,80,16,'',9,'rpm',5,0,0),(41,'розрахункове значення навантаження на двигун',0.3922,96,8,'',9,'%',6,0,0),(42,'температура охолоджуючої рідини',0,104,8,'',9,'°C',6,0,0),(43,'температура повітря, що всмоктується',0,112,8,'',9,'°C',6,0,0),(44,'запалювання',1,199,1,'',9,'#',2,0,0),(45,'бортмережа',1,0,16,'',10,'В',4,0,0),(46,'запалювання',1,48,1,'',10,'#',5,0,0),(47,'вірт. бак',1,49,8,'',10,'л',7,0,0),(48,'напруга акумулятора трекера',1,16,32,'',10,'В',6,0,0);

--
-- Table structure for table `pcbversion`
--

CREATE TABLE `pcbversion` (
  `Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Индекс',
  `Name` varchar(50) NOT NULL DEFAULT '*' COMMENT 'Имя платы датчика',
  `Comment` varchar(255) DEFAULT ' ' COMMENT 'Комментарий',
  `MobitelId` int(11) DEFAULT '-1' COMMENT 'ID машины на которую назначена эта плата датчиков',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=cp1251 AVG_ROW_LENGTH=5461 COMMENT='Распределение данных для версии исполнения платы датчиков';

--
-- Dumping data for table `pcbversion`
--

INSERT INTO `pcbversion` VALUES (6,'SCAD_37f_16 bit','для версии исполнения ПД SCAD',-1),(7,'SCAD_37','для версии исполнения ПД SCAD',-1),(8,'SCAD_CAN64','для версии исполнения ПД SCAD',-1),(9,'SCAD_OBD II 64','для версии исполнения ПД SCAD',-1),(10,'SCAD_5xx','для версии исполнения ПД SCAD',-1);

--
-- Table structure for table `points`
--

CREATE TABLE `points` (
  `Point_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `ID` int(11) DEFAULT '0',
  `Latitude` int(11) DEFAULT '0',
  `Longitude` int(11) DEFAULT '0',
  `Zone_ID` int(11) DEFAULT '0',
  PRIMARY KEY (`Point_ID`),
  KEY `FK_points_zones` (`Zone_ID`),
  CONSTRAINT `FK_points_zones` FOREIGN KEY (`Zone_ID`) REFERENCES `zones` (`Zone_ID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7643 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `points`
--

INSERT INTO `points` VALUES (1,NULL,NULL,0,30407598,15435208,1),(2,NULL,NULL,0,30407639,15435311,1),(3,NULL,NULL,0,30407704,15435852,1),(4,NULL,NULL,0,30407598,15436354,1),(5,NULL,NULL,0,30404546,15442624,1),(6,NULL,NULL,0,30403159,15445508,1),(7,NULL,NULL,0,30402017,15445379,1),(8,NULL,NULL,0,30402050,15445508,1),(9,NULL,NULL,0,30402017,15443988,1),(10,NULL,NULL,0,30402148,15442289,1),(11,NULL,NULL,0,30402425,15440280,1),(12,NULL,NULL,0,30402596,15439250,1),(13,NULL,NULL,0,30402898,15436135,1),(14,NULL,NULL,0,30403306,15436315,1),(15,NULL,NULL,0,30403828,15433251,1),(16,NULL,NULL,0,30405558,15433869,1),(17,NULL,NULL,0,30406374,15435234,1),(18,NULL,NULL,0,30406815,15435234,1),(101,NULL,NULL,0,30426543,15428223,3),(102,NULL,NULL,0,30423779,15425758,3),(103,NULL,NULL,0,30423673,15425758,3),(104,NULL,NULL,0,30423110,15427213,3),(105,NULL,NULL,0,30422621,15428668,3),(106,NULL,NULL,0,30422621,15428668,3),(107,NULL,NULL,0,30422503,15429620,3),(108,NULL,NULL,0,30422556,15430534,3),(109,NULL,NULL,0,30422605,15431513,3),(110,NULL,NULL,0,30422690,15431983,3),(111,NULL,NULL,0,30422698,15431983,3),(112,NULL,NULL,0,30422694,15431957,3),(113,NULL,NULL,0,30422833,15432324,3),(114,NULL,NULL,0,30422955,15432594,3),(115,NULL,NULL,0,30423127,15432620,3),(116,NULL,NULL,0,30423290,15432427,3),(117,NULL,NULL,0,30423387,15432272,3),(118,NULL,NULL,0,30423477,15432298,3),(119,NULL,NULL,0,30423322,15432646,3),(120,NULL,NULL,0,30423110,15433045,3),(121,NULL,NULL,0,30423224,15433740,3),(122,NULL,NULL,0,30423465,15435221,3),(123,NULL,NULL,0,30423665,15436367,3),(124,NULL,NULL,0,30423787,15437023,3),(125,NULL,NULL,0,30423979,15437435,3),(126,NULL,NULL,0,30424138,15437628,3),(127,NULL,NULL,0,30424317,15437525,3),(128,NULL,NULL,0,30424476,15437216,3),(129,NULL,NULL,0,30424639,15436849,3),(130,NULL,NULL,0,30424794,15436379,3),(131,NULL,NULL,0,30424953,15435884,3),(132,NULL,NULL,0,30425181,15435388,3),(133,NULL,NULL,0,30425458,15434822,3),(134,NULL,NULL,0,30425752,15433972,3),(135,NULL,NULL,0,30425980,15433425,3),(136,NULL,NULL,0,30426164,15432987,3),(137,NULL,NULL,0,30426795,15429852,3),(138,NULL,NULL,0,30426808,15429440,3),(139,NULL,NULL,0,30426636,15428429,3),(140,NULL,NULL,0,30430574,15426653,4),(141,NULL,NULL,0,30429832,15430425,4),(142,NULL,NULL,0,30429363,15430110,4),(143,NULL,NULL,0,30428821,15429659,4),(144,NULL,NULL,0,30428548,15429627,4),(145,NULL,NULL,0,30428532,15429659,4),(146,NULL,NULL,0,30428181,15429414,4),(147,NULL,NULL,0,30427020,15428706,4),(148,NULL,NULL,0,30426848,15428507,4),(149,NULL,NULL,0,30426848,15427972,4),(150,NULL,NULL,0,30426877,15427663,4),(151,NULL,NULL,0,30426967,15427502,4),(152,NULL,NULL,0,30427301,15427245,4),(153,NULL,NULL,0,30427509,15427039,4),(154,NULL,NULL,0,30427713,15426762,4),(155,NULL,NULL,0,30428051,15426048,4),(156,NULL,NULL,0,30428149,15425983,4),(157,NULL,NULL,0,30428499,15426125,4),(158,NULL,NULL,0,30429029,15426344,4),(159,NULL,NULL,0,30429437,15426556,4),(160,NULL,NULL,0,30429563,15426582,4),(161,NULL,NULL,0,30430040,15426653,4),(199,NULL,NULL,0,30429873,15430464,5),(200,NULL,NULL,0,30429751,15431268,5),(201,NULL,NULL,0,30429689,15431648,5),(202,NULL,NULL,0,30429702,15431815,5),(203,NULL,NULL,0,30429848,15431873,5),(204,NULL,NULL,0,30430329,15432041,5),(205,NULL,NULL,0,30431650,15432672,5),(206,NULL,NULL,0,30431825,15432633,5),(207,NULL,NULL,0,30432624,15433045,5),(208,NULL,NULL,0,30433056,15433277,5),(209,NULL,NULL,0,30433899,15433702,5),(210,NULL,NULL,0,30434266,15433882,5),(211,NULL,NULL,0,30434735,15434023,5),(212,NULL,NULL,0,30435208,15434152,5),(213,NULL,NULL,0,30435387,15434088,5),(214,NULL,NULL,0,30435485,15433766,5),(215,NULL,NULL,0,30435489,15433483,5),(216,NULL,NULL,0,30435358,15433270,5),(217,NULL,NULL,0,30434849,15432935,5),(218,NULL,NULL,0,30434861,15432794,5),(219,NULL,NULL,0,30435236,15433051,5),(220,NULL,NULL,0,30435599,15433199,5),(221,NULL,NULL,0,30435847,15433225,5),(222,NULL,NULL,0,30435652,15428925,5),(223,NULL,NULL,0,30434539,15428462,5),(224,NULL,NULL,0,30434111,15428230,5),(225,NULL,NULL,0,30433594,15427728,5),(226,NULL,NULL,0,30433414,15427284,5),(227,NULL,NULL,0,30433357,15426498,5),(228,NULL,NULL,0,30433227,15426163,5),(229,NULL,NULL,0,30432958,15426041,5),(230,NULL,NULL,0,30432253,15426035,5),(231,NULL,NULL,0,30431964,15426196,5),(232,NULL,NULL,0,30431548,15426511,5),(233,NULL,NULL,0,30430973,15426498,5),(234,NULL,NULL,0,30430745,15426556,5),(235,NULL,NULL,0,30430615,15426621,5),(318,NULL,NULL,0,30420273,15426608,8),(319,NULL,NULL,0,30421520,15427927,8),(320,NULL,NULL,0,30421263,15428017,8),(321,NULL,NULL,0,30420966,15428114,8),(322,NULL,NULL,0,30420697,15428101,8),(323,NULL,NULL,0,30420603,15428384,8),(324,NULL,NULL,0,30420778,15428623,8),(325,NULL,NULL,0,30421006,15428590,8),(326,NULL,NULL,0,30421227,15428500,8),(327,NULL,NULL,0,30421422,15428449,8),(328,NULL,NULL,0,30421577,15428436,8),(329,NULL,NULL,0,30421708,15428565,8),(330,NULL,NULL,0,30421806,15428777,8),(331,NULL,NULL,0,30421936,15429247,8),(332,NULL,NULL,0,30422213,15429556,8),(333,NULL,NULL,0,30420680,15433508,8),(334,NULL,NULL,0,30419612,15432517,8),(335,NULL,NULL,0,30419563,15432195,8),(336,NULL,NULL,0,30418495,15431242,8),(337,NULL,NULL,0,30418544,15431088,8),(338,NULL,NULL,0,30421655,15428050,9),(339,NULL,NULL,0,30421740,15427245,9),(340,NULL,NULL,0,30421838,15426028,9),(341,NULL,NULL,0,30421936,15425063,9),(342,NULL,NULL,0,30422189,15424573,9),(343,NULL,NULL,0,30422393,15424020,9),(344,NULL,NULL,0,30422503,15423634,9),(345,NULL,NULL,0,30422597,15423119,9),(346,NULL,NULL,0,30422784,15422874,9),(347,NULL,NULL,0,30422939,15422720,9),(348,NULL,NULL,0,30423078,15422449,9),(349,NULL,NULL,0,30423167,15422076,9),(350,NULL,NULL,0,30423306,15421767,9),(351,NULL,NULL,0,30423391,15421554,9),(352,NULL,NULL,0,30423550,15421252,9),(353,NULL,NULL,0,30423591,15421065,9),(354,NULL,NULL,0,30423599,15420763,9),(355,NULL,NULL,0,30423648,15420376,9),(356,NULL,NULL,0,30423893,15420402,9),(357,NULL,NULL,0,30423958,15420325,9),(358,NULL,NULL,0,30423958,15420325,9),(359,NULL,NULL,0,30424023,15420106,9),(360,NULL,NULL,0,30424023,15420106,9),(361,NULL,NULL,0,30424068,15419848,9),(362,NULL,NULL,0,30424068,15419848,9),(363,NULL,NULL,0,30424011,15419707,9),(364,NULL,NULL,0,30423885,15419507,9),(365,NULL,NULL,0,30423754,15419288,9),(366,NULL,NULL,0,30423661,15419205,9),(367,NULL,NULL,0,30423481,15419147,9),(368,NULL,NULL,0,30423310,15419095,9),(369,NULL,NULL,0,30423114,15419095,9),(370,NULL,NULL,0,30423029,15419082,9),(371,NULL,NULL,0,30422841,15418864,9),(372,NULL,NULL,0,30422735,15418638,9),(373,NULL,NULL,0,30422645,15418407,9),(374,NULL,NULL,0,30422507,15418020,9),(375,NULL,NULL,0,30422454,15417718,9),(376,NULL,NULL,0,30422458,15417377,9),(377,NULL,NULL,0,30422368,15417286,9),(378,NULL,NULL,0,30422091,15417312,9),(379,NULL,NULL,0,30421944,15417383,9),(380,NULL,NULL,0,30421834,15417512,9),(381,NULL,NULL,0,30421724,15417647,9),(382,NULL,NULL,0,30421410,15418085,9),(383,NULL,NULL,0,30421418,15418213,9),(384,NULL,NULL,0,30421687,15418490,9),(385,NULL,NULL,0,30421814,15418632,9),(386,NULL,NULL,0,30421810,15418761,9),(387,NULL,NULL,0,30421753,15418883,9),(388,NULL,NULL,0,30421598,15418896,9),(389,NULL,NULL,0,30421414,15419037,9),(390,NULL,NULL,0,30421267,15418883,9),(391,NULL,NULL,0,30420941,15418497,9),(392,NULL,NULL,0,30420835,15418464,9),(393,NULL,NULL,0,30420693,15419578,9),(394,NULL,NULL,0,30420566,15420273,9),(395,NULL,NULL,0,30420481,15420711,9),(396,NULL,NULL,0,30420354,15421097,9),(397,NULL,NULL,0,30420069,15421690,9),(398,NULL,NULL,0,30419751,15422050,9),(399,NULL,NULL,0,30419306,15422597,9),(400,NULL,NULL,0,30418988,15422893,9),(401,NULL,NULL,0,30418788,15423086,9),(402,NULL,NULL,0,30418768,15423505,9),(403,NULL,NULL,0,30418821,15423775,9),(404,NULL,NULL,0,30418854,15423988,9),(405,NULL,NULL,0,30418923,15424116,9),(406,NULL,NULL,0,30418841,15424406,9),(407,NULL,NULL,0,30418780,15424870,9),(408,NULL,NULL,0,30419608,15425739,9),(503,NULL,NULL,0,30386677,15490073,10),(504,NULL,NULL,0,30387946,15493710,10),(505,NULL,NULL,0,30388085,15493324,10),(506,NULL,NULL,0,30388167,15493375,10),(507,NULL,NULL,0,30388028,15493916,10),(508,NULL,NULL,0,30388167,15494135,10),(509,NULL,NULL,0,30388534,15494521,10),(510,NULL,NULL,0,30388926,15494959,10),(511,NULL,NULL,0,30389162,15495307,10),(512,NULL,NULL,0,30389334,15495448,10),(513,NULL,NULL,0,30391269,15493620,10),(514,NULL,NULL,0,30391660,15493311,10),(515,NULL,NULL,0,30394036,15491509,10),(516,NULL,NULL,0,30394452,15491200,10),(517,NULL,NULL,0,30394791,15490948,10),(518,NULL,NULL,0,30394178,15489011,10),(519,NULL,NULL,0,30394517,15488753,10),(520,NULL,NULL,0,30393913,15486758,10),(521,NULL,NULL,0,30393105,15487440,10),(522,NULL,NULL,0,30392428,15485354,10),(523,NULL,NULL,0,30390648,15486796,10),(524,NULL,NULL,0,30389709,15487595,10),(525,NULL,NULL,0,30390252,15489301,10),(526,NULL,NULL,0,30389681,15489700,10),(527,NULL,NULL,0,30389154,15488045,10),(528,NULL,NULL,0,30388607,15488489,10),(529,NULL,NULL,0,30388922,15489468,10),(530,NULL,NULL,0,30388142,15490157,10),(531,NULL,NULL,0,30387779,15489114,10),(532,NULL,NULL,0,30387432,15489410,10),(533,NULL,NULL,0,30387787,15490498,10),(534,NULL,NULL,0,30387575,15490672,10),(535,NULL,NULL,0,30387228,15489577,10),(536,NULL,NULL,0,30387056,15489732,10),(537,NULL,NULL,0,30386868,15489880,10),(538,NULL,NULL,0,30436043,15426929,12),(539,NULL,NULL,0,30434939,15427161,12),(540,NULL,NULL,0,30434988,15428603,12),(541,NULL,NULL,0,30434747,15428513,12),(542,NULL,NULL,0,30434482,15428449,12),(543,NULL,NULL,0,30434205,15428275,12),(544,NULL,NULL,0,30434083,15428165,12),(545,NULL,NULL,0,30434018,15428030,12),(546,NULL,NULL,0,30433973,15427792,12),(547,NULL,NULL,0,30433981,15427451,12),(548,NULL,NULL,0,30433961,15427193,12),(549,NULL,NULL,0,30433952,15426962,12),(550,NULL,NULL,0,30433871,15426781,12),(551,NULL,NULL,0,30433846,15426595,12),(552,NULL,NULL,0,30433793,15426427,12),(553,NULL,NULL,0,30433696,15426247,12),(554,NULL,NULL,0,30433561,15426209,12),(555,NULL,NULL,0,30433459,15426189,12),(556,NULL,NULL,0,30433382,15426118,12),(557,NULL,NULL,0,30433284,15426022,12),(558,NULL,NULL,0,30433203,15425932,12),(559,NULL,NULL,0,30433117,15425887,12),(560,NULL,NULL,0,30433031,15425861,12),(561,NULL,NULL,0,30432803,15425887,12),(562,NULL,NULL,0,30432673,15425874,12),(563,NULL,NULL,0,30432510,15425848,12),(564,NULL,NULL,0,30432412,15425758,12),(565,NULL,NULL,0,30432151,15425578,12),(566,NULL,NULL,0,30431980,15425410,12),(567,NULL,NULL,0,30431646,15425475,12),(568,NULL,NULL,0,30431479,15425681,12),(569,NULL,NULL,0,30431324,15425900,12),(570,NULL,NULL,0,30431206,15426054,12),(571,NULL,NULL,0,30431112,15426157,12),(572,NULL,NULL,0,30430928,15426266,12),(573,NULL,NULL,0,30430655,15426279,12),(574,NULL,NULL,0,30430260,15426447,12),(575,NULL,NULL,0,30429909,15426421,12),(576,NULL,NULL,0,30429551,15426292,12),(577,NULL,NULL,0,30429261,15426106,12),(578,NULL,NULL,0,30429078,15426067,12),(579,NULL,NULL,0,30428662,15426060,12),(580,NULL,NULL,0,30428434,15425957,12),(581,NULL,NULL,0,30428141,15425874,12),(582,NULL,NULL,0,30427973,15425719,12),(583,NULL,NULL,0,30427937,15425603,12),(584,NULL,NULL,0,30427990,15425294,12),(585,NULL,NULL,0,30428030,15425018,12),(586,NULL,NULL,0,30428055,15424734,12),(587,NULL,NULL,0,30428075,15424425,12),(588,NULL,NULL,0,30428092,15424110,12),(589,NULL,NULL,0,30428104,15423769,12),(590,NULL,NULL,0,30428165,15423434,12),(591,NULL,NULL,0,30428230,15423041,12),(592,NULL,NULL,0,30428320,15422700,12),(593,NULL,NULL,0,30428328,15422604,12),(594,NULL,NULL,0,30428263,15422520,12),(595,NULL,NULL,0,30428194,15422552,12),(596,NULL,NULL,0,30428124,15422617,12),(597,NULL,NULL,0,30428039,15422842,12),(598,NULL,NULL,0,30428006,15423035,12),(599,NULL,NULL,0,30427957,15423183,12),(600,NULL,NULL,0,30427908,15423370,12),(601,NULL,NULL,0,30427876,15423563,12),(602,NULL,NULL,0,30427872,15423692,12),(603,NULL,NULL,0,30427892,15423885,12),(604,NULL,NULL,0,30427949,15424110,12),(605,NULL,NULL,0,30427973,15424335,12),(606,NULL,NULL,0,30427949,15424503,12),(607,NULL,NULL,0,30427876,15424870,12),(608,NULL,NULL,0,30427778,15425243,12),(609,NULL,NULL,0,30427676,15425687,12),(610,NULL,NULL,0,30427545,15426299,12),(611,NULL,NULL,0,30427456,15426582,12),(612,NULL,NULL,0,30427350,15426942,12),(613,NULL,NULL,0,30427113,15427135,12),(614,NULL,NULL,0,30426852,15427290,12),(615,NULL,NULL,0,30426730,15427522,12),(616,NULL,NULL,0,30426640,15427715,12),(617,NULL,NULL,0,30426457,15427631,12),(618,NULL,NULL,0,30426318,15427509,12),(619,NULL,NULL,0,30426151,15427412,12),(620,NULL,NULL,0,30425996,15427284,12),(621,NULL,NULL,0,30425903,15427174,12),(622,NULL,NULL,0,30425817,15426975,12),(623,NULL,NULL,0,30425711,15426711,12),(624,NULL,NULL,0,30425617,15426427,12),(625,NULL,NULL,0,30425642,15426060,12),(626,NULL,NULL,0,30425723,15425784,12),(627,NULL,NULL,0,30425703,15425700,12),(628,NULL,NULL,0,30425638,15425597,12),(629,NULL,NULL,0,30425585,15425468,12),(630,NULL,NULL,0,30425511,15425256,12),(631,NULL,NULL,0,30425462,15425037,12),(632,NULL,NULL,0,30425389,15424779,12),(633,NULL,NULL,0,30425320,15424509,12),(634,NULL,NULL,0,30425218,15424258,12),(635,NULL,NULL,0,30425161,15424110,12),(636,NULL,NULL,0,30425067,15424052,12),(637,NULL,NULL,0,30425043,15424129,12),(638,NULL,NULL,0,30425100,15424258,12),(639,NULL,NULL,0,30425157,15424483,12),(640,NULL,NULL,0,30425263,15424767,12),(641,NULL,NULL,0,30425328,15425018,12),(642,NULL,NULL,0,30425389,15425243,12),(643,NULL,NULL,0,30425446,15425462,12),(644,NULL,NULL,0,30425475,15425661,12),(645,NULL,NULL,0,30425511,15425957,12),(646,NULL,NULL,0,30425519,15426125,12),(647,NULL,NULL,0,30425499,15426344,12),(648,NULL,NULL,0,30425430,15426498,12),(649,NULL,NULL,0,30425361,15426569,12),(650,NULL,NULL,0,30425275,15426556,12),(651,NULL,NULL,0,30425140,15426511,12),(652,NULL,NULL,0,30425006,15426395,12),(653,NULL,NULL,0,30424892,15426389,12),(654,NULL,NULL,0,30424806,15426357,12),(655,NULL,NULL,0,30424737,15426389,12),(656,NULL,NULL,0,30424627,15426569,12),(657,NULL,NULL,0,30424566,15426472,12),(658,NULL,NULL,0,30424301,15426228,12),(659,NULL,NULL,0,30423958,15425951,12),(660,NULL,NULL,0,30423742,15425745,12),(661,NULL,NULL,0,30423648,15425771,12),(662,NULL,NULL,0,30423542,15425964,12),(663,NULL,NULL,0,30422548,15428642,12),(664,NULL,NULL,0,30422270,15428513,12),(665,NULL,NULL,0,30422075,15428449,12),(666,NULL,NULL,0,30421997,15428294,12),(667,NULL,NULL,0,30421895,15427959,12),(668,NULL,NULL,0,30421859,15427625,12),(669,NULL,NULL,0,30421903,15427361,12),(670,NULL,NULL,0,30421944,15427071,12),(671,NULL,NULL,0,30421952,15426704,12),(672,NULL,NULL,0,30421961,15426402,12),(673,NULL,NULL,0,30422001,15426131,12),(674,NULL,NULL,0,30422009,15425751,12),(675,NULL,NULL,0,30422062,15425301,12),(676,NULL,NULL,0,30422213,15424882,12),(677,NULL,NULL,0,30422450,15424348,12),(678,NULL,NULL,0,30422658,15423930,12),(679,NULL,NULL,0,30422817,15423531,12),(680,NULL,NULL,0,30422988,15423170,12),(681,NULL,NULL,0,30423110,15422945,12),(682,NULL,NULL,0,30423281,15422436,12),(683,NULL,NULL,0,30423404,15422102,12),(684,NULL,NULL,0,30423497,15421850,12),(685,NULL,NULL,0,30423616,15421541,12),(686,NULL,NULL,0,30423673,15421310,12),(687,NULL,NULL,0,30423762,15420936,12),(688,NULL,NULL,0,30423901,15420454,12),(689,NULL,NULL,0,30424101,15419861,12),(690,NULL,NULL,0,30424215,15419559,12),(691,NULL,NULL,0,30424268,15419430,12),(692,NULL,NULL,0,30424317,15419282,12),(693,NULL,NULL,0,30424366,15419198,12),(694,NULL,NULL,0,30424415,15419082,12),(695,NULL,NULL,0,30424570,15418960,12),(696,NULL,NULL,0,30425034,15418896,12),(697,NULL,NULL,0,30425263,15418870,12),(698,NULL,NULL,0,30425540,15418767,12),(699,NULL,NULL,0,30425996,15418664,12),(700,NULL,NULL,0,30426461,15418503,12),(701,NULL,NULL,0,30426702,15418464,12),(702,NULL,NULL,0,30426963,15418432,12),(703,NULL,NULL,0,30427154,15418419,12),(704,NULL,NULL,0,30427329,15418304,12),(705,NULL,NULL,0,30427521,15418291,12),(706,NULL,NULL,0,30427623,15418374,12),(707,NULL,NULL,0,30427607,15418548,12),(708,NULL,NULL,0,30427562,15418735,12),(709,NULL,NULL,0,30427492,15418915,12),(710,NULL,NULL,0,30427439,15419089,12),(711,NULL,NULL,0,30427350,15419263,12),(712,NULL,NULL,0,30427256,15419482,12),(713,NULL,NULL,0,30427138,15419662,12),(714,NULL,NULL,0,30427036,15419791,12),(715,NULL,NULL,0,30427016,15419887,12),(716,NULL,NULL,0,30427126,15419900,12),(717,NULL,NULL,0,30427276,15419752,12),(718,NULL,NULL,0,30427407,15419688,12),(719,NULL,NULL,0,30427497,15419681,12),(720,NULL,NULL,0,30427570,15419771,12),(721,NULL,NULL,0,30427598,15419900,12),(722,NULL,NULL,0,30427570,15420067,12),(723,NULL,NULL,0,30427541,15420248,12),(724,NULL,NULL,0,30427562,15420370,12),(725,NULL,NULL,0,30427635,15420666,12),(726,NULL,NULL,0,30427692,15420615,12),(727,NULL,NULL,0,30427708,15420544,12),(728,NULL,NULL,0,30427692,15420466,12),(729,NULL,NULL,0,30427721,15420228,12),(730,NULL,NULL,0,30427814,15419810,12),(731,NULL,NULL,0,30427880,15419507,12),(732,NULL,NULL,0,30427933,15419237,12),(733,NULL,NULL,0,30427986,15419147,12),(734,NULL,NULL,0,30428083,15419108,12),(735,NULL,NULL,0,30428189,15419070,12),(736,NULL,NULL,0,30428263,15419005,12),(737,NULL,NULL,0,30428308,15418793,12),(738,NULL,NULL,0,30428332,15418567,12),(739,NULL,NULL,0,30428377,15418439,12),(740,NULL,NULL,0,30428491,15418284,12),(741,NULL,NULL,0,30428601,15418265,12),(742,NULL,NULL,0,30428727,15418220,12),(743,NULL,NULL,0,30428756,15418188,12),(744,NULL,NULL,0,30428825,15418033,12),(745,NULL,NULL,0,30428866,15417962,12),(746,NULL,NULL,0,30429017,15417904,12),(747,NULL,NULL,0,30429237,15417872,12),(748,NULL,NULL,0,30429424,15417840,12),(749,NULL,NULL,0,30429852,15417731,12),(750,NULL,NULL,0,30430704,15417505,12),(751,NULL,NULL,0,30431010,15417422,12),(752,NULL,NULL,0,30431532,15417274,12),(753,NULL,NULL,0,30431870,15417190,12),(754,NULL,NULL,0,30432811,15417003,12),(755,NULL,NULL,0,30433512,15416849,12),(756,NULL,NULL,0,30434197,15416694,12),(757,NULL,NULL,0,30434568,15416604,12),(758,NULL,NULL,0,30434710,15416604,12),(759,NULL,NULL,0,30434935,15416572,12),(760,NULL,NULL,0,30435167,15418226,12),(761,NULL,NULL,0,30435330,15419230,12),(762,NULL,NULL,0,30435415,15419894,12),(763,NULL,NULL,0,30435485,15420351,12),(764,NULL,NULL,0,30435562,15420698,12),(765,NULL,NULL,0,30435603,15421001,12),(766,NULL,NULL,0,30435688,15422121,12),(767,NULL,NULL,0,30435713,15422790,12),(768,NULL,NULL,0,30435750,15423466,12),(769,NULL,NULL,0,30435908,15424973,12),(770,NULL,NULL,0,30435933,15425282,12),(771,NULL,NULL,0,30436988,15439353,13),(772,NULL,NULL,0,30437037,15439740,13),(773,NULL,NULL,0,30437049,15440293,13),(774,NULL,NULL,0,30437078,15440886,13),(775,NULL,NULL,0,30437135,15441510,13),(776,NULL,NULL,0,30437164,15441787,13),(777,NULL,NULL,0,30437200,15442160,13),(778,NULL,NULL,0,30436838,15442295,13),(779,NULL,NULL,0,30436601,15442315,13),(780,NULL,NULL,0,30436544,15442295,13),(781,NULL,NULL,0,30436385,15442328,13),(782,NULL,NULL,0,30436043,15442424,13),(783,NULL,NULL,0,30435851,15442546,13),(784,NULL,NULL,0,30435737,15442624,13),(785,NULL,NULL,0,30435395,15442823,13),(786,NULL,NULL,0,30435069,15442952,13),(787,NULL,NULL,0,30434666,15443151,13),(788,NULL,NULL,0,30434474,15443203,13),(789,NULL,NULL,0,30434340,15443242,13),(790,NULL,NULL,0,30434217,15443274,13),(791,NULL,NULL,0,30434079,15443254,13),(792,NULL,NULL,0,30434034,15443184,13),(793,NULL,NULL,0,30433985,15442984,13),(794,NULL,NULL,0,30434026,15442823,13),(795,NULL,NULL,0,30434091,15442727,13),(796,NULL,NULL,0,30434225,15442637,13),(797,NULL,NULL,0,30434246,15442476,13),(798,NULL,NULL,0,30434238,15442257,13),(799,NULL,NULL,0,30434262,15442031,13),(800,NULL,NULL,0,30434323,15441774,13),(801,NULL,NULL,0,30434397,15441523,13),(802,NULL,NULL,0,30434466,15441330,13),(803,NULL,NULL,0,30434547,15441156,13),(804,NULL,NULL,0,30434617,15440976,13),(805,NULL,NULL,0,30434564,15440918,13),(806,NULL,NULL,0,30434437,15440976,13),(807,NULL,NULL,0,30434376,15441034,13),(808,NULL,NULL,0,30434331,15441162,13),(809,NULL,NULL,0,30434242,15441458,13),(810,NULL,NULL,0,30434168,15441664,13),(811,NULL,NULL,0,30434071,15441999,13),(812,NULL,NULL,0,30433989,15442276,13),(813,NULL,NULL,0,30433899,15442637,13),(814,NULL,NULL,0,30433916,15442920,13),(815,NULL,NULL,0,30433932,15443184,13),(816,NULL,NULL,0,30433908,15443319,13),(817,NULL,NULL,0,30433842,15443480,13),(818,NULL,NULL,0,30433749,15443531,13),(819,NULL,NULL,0,30433541,15443666,13),(820,NULL,NULL,0,30433427,15443718,13),(821,NULL,NULL,0,30433321,15443782,13),(822,NULL,NULL,0,30433235,15443872,13),(823,NULL,NULL,0,30433133,15444001,13),(824,NULL,NULL,0,30433007,15444207,13),(825,NULL,NULL,0,30432913,15444330,13),(826,NULL,NULL,0,30432844,15444400,13),(827,NULL,NULL,0,30432750,15444445,13),(828,NULL,NULL,0,30432603,15444458,13),(829,NULL,NULL,0,30432469,15444413,13),(830,NULL,NULL,0,30432294,15444375,13),(831,NULL,NULL,0,30432123,15444349,13),(832,NULL,NULL,0,30431903,15444278,13),(833,NULL,NULL,0,30431719,15444175,13),(834,NULL,NULL,0,30431548,15444085,13),(835,NULL,NULL,0,30431450,15443963,13),(836,NULL,NULL,0,30431377,15443808,13),(837,NULL,NULL,0,30431307,15443724,13),(838,NULL,NULL,0,30431254,15443583,13),(839,NULL,NULL,0,30431189,15443448,13),(840,NULL,NULL,0,30431104,15443293,13),(841,NULL,NULL,0,30431067,15443100,13),(842,NULL,NULL,0,30431030,15442868,13),(843,NULL,NULL,0,30431002,15442694,13),(844,NULL,NULL,0,30430985,15442456,13),(845,NULL,NULL,0,30430916,15442250,13),(846,NULL,NULL,0,30430920,15442167,13),(847,NULL,NULL,0,30431067,15442102,13),(848,NULL,NULL,0,30431381,15441973,13),(849,NULL,NULL,0,30431931,15441703,13),(850,NULL,NULL,0,30432404,15441439,13),(851,NULL,NULL,0,30432942,15441162,13),(852,NULL,NULL,0,30433728,15440795,13),(853,NULL,NULL,0,30433753,15440783,13),(854,NULL,NULL,0,30434560,15440396,13),(855,NULL,NULL,0,30434759,15440255,13),(856,NULL,NULL,0,30435986,15439637,13),(857,NULL,NULL,0,30436520,15439399,13),(858,NULL,NULL,0,30436911,15439276,13),(859,NULL,NULL,0,30436976,15439308,13),(860,NULL,NULL,0,30436992,15439373,13),(861,NULL,NULL,0,30436980,15439360,13),(1001,NULL,NULL,0,30415812,15437641,15),(1002,NULL,NULL,0,30414535,15438903,15),(1003,NULL,NULL,0,30414389,15438678,15),(1004,NULL,NULL,0,30414254,15438491,15),(1005,NULL,NULL,0,30414181,15438401,15),(1006,NULL,NULL,0,30414017,15438208,15),(1007,NULL,NULL,0,30413814,15438008,15),(1008,NULL,NULL,0,30413769,15437950,15),(1009,NULL,NULL,0,30413667,15437847,15),(1010,NULL,NULL,0,30413569,15437763,15),(1011,NULL,NULL,0,30413467,15437693,15),(1012,NULL,NULL,0,30413340,15437577,15),(1013,NULL,NULL,0,30413210,15437487,15),(1014,NULL,NULL,0,30413084,15437397,15),(1015,NULL,NULL,0,30412977,15437300,15),(1016,NULL,NULL,0,30412896,15437152,15),(1017,NULL,NULL,0,30412769,15436985,15),(1018,NULL,NULL,0,30412668,15436849,15),(1019,NULL,NULL,0,30412541,15436598,15),(1020,NULL,NULL,0,30412464,15436457,15),(1021,NULL,NULL,0,30412358,15436283,15),(1022,NULL,NULL,0,30412223,15436038,15),(1023,NULL,NULL,0,30412125,15435839,15),(1024,NULL,NULL,0,30411999,15435620,15),(1025,NULL,NULL,0,30411917,15435440,15),(1026,NULL,NULL,0,30411884,15435330,15),(1027,NULL,NULL,0,30411783,15434995,15),(1028,NULL,NULL,0,30411660,15434480,15),(1029,NULL,NULL,0,30411628,15434268,15),(1030,NULL,NULL,0,30411542,15433901,15),(1031,NULL,NULL,0,30411468,15433599,15),(1032,NULL,NULL,0,30411411,15433412,15),(1033,NULL,NULL,0,30411371,15433161,15),(1034,NULL,NULL,0,30411318,15432852,15),(1035,NULL,NULL,0,30411273,15432530,15),(1036,NULL,NULL,0,30411248,15432356,15),(1037,NULL,NULL,0,30411240,15432208,15),(1038,NULL,NULL,0,30411248,15431938,15),(1039,NULL,NULL,0,30411293,15431648,15),(1040,NULL,NULL,0,30411375,15431403,15),(1041,NULL,NULL,0,30411517,15431056,15),(1042,NULL,NULL,0,30411685,15430676,15),(1043,NULL,NULL,0,30411868,15430341,15),(1044,NULL,NULL,0,30412121,15429904,15),(1045,NULL,NULL,0,30412296,15429665,15),(1046,NULL,NULL,0,30412476,15429414,15),(1047,NULL,NULL,0,30412655,15429202,15),(1048,NULL,NULL,0,30412765,15429047,15),(1049,NULL,NULL,0,30412912,15428848,15),(1050,NULL,NULL,0,30413047,15428635,15),(1051,NULL,NULL,0,30413177,15428417,15),(1052,NULL,NULL,0,30413340,15428191,15),(1053,NULL,NULL,0,30413532,15428050,15),(1054,NULL,NULL,0,30413683,15427959,15),(1055,NULL,NULL,0,30413862,15427856,15),(1056,NULL,NULL,0,30413997,15427792,15),(1057,NULL,NULL,0,30414160,15427741,15),(1058,NULL,NULL,0,30414266,15427760,15),(1059,NULL,NULL,0,30414401,15427966,15),(1060,NULL,NULL,0,30414527,15428230,15),(1061,NULL,NULL,0,30414637,15428436,15),(1062,NULL,NULL,0,30414780,15428771,15),(1063,NULL,NULL,0,30414878,15428925,15),(1064,NULL,NULL,0,30414972,15429112,15),(1065,NULL,NULL,0,30414992,15429240,15),(1066,NULL,NULL,0,30415041,15429466,15),(1067,NULL,NULL,0,30415074,15429704,15),(1068,NULL,NULL,0,30415090,15430019,15),(1069,NULL,NULL,0,30415119,15430316,15),(1070,NULL,NULL,0,30415155,15430541,15),(1071,NULL,NULL,0,30415212,15431191,15),(1072,NULL,NULL,0,30415257,15431790,15),(1073,NULL,NULL,0,30415314,15432427,15),(1074,NULL,NULL,0,30415392,15433032,15),(1075,NULL,NULL,0,30415481,15433965,15),(1076,NULL,NULL,0,30415575,15435008,15),(1077,NULL,NULL,0,30415669,15435781,15),(1078,NULL,NULL,0,30415747,15436862,15),(1079,NULL,NULL,0,30415779,15437268,15),(1080,NULL,NULL,0,30415812,15437429,15),(1081,NULL,NULL,0,30404485,15447040,16),(1082,NULL,NULL,0,30404404,15447291,16),(1083,NULL,NULL,0,30404302,15447574,16),(1084,NULL,NULL,0,30404216,15447773,16),(1085,NULL,NULL,0,30404122,15447992,16),(1086,NULL,NULL,0,30404020,15448288,16),(1087,NULL,NULL,0,30403934,15448546,16),(1088,NULL,NULL,0,30403828,15448791,16),(1089,NULL,NULL,0,30403682,15449067,16),(1090,NULL,NULL,0,30403571,15449318,16),(1091,NULL,NULL,0,30403473,15449589,16),(1092,NULL,NULL,0,30403502,15449866,16),(1093,NULL,NULL,0,30403559,15449962,16),(1094,NULL,NULL,0,30403845,15450239,16),(1095,NULL,NULL,0,30404175,15450702,16),(1096,NULL,NULL,0,30404449,15450921,16),(1097,NULL,NULL,0,30404865,15451449,16),(1098,NULL,NULL,0,30405187,15451855,16),(1099,NULL,NULL,0,30405411,15452183,16),(1100,NULL,NULL,0,30405538,15452441,16),(1101,NULL,NULL,0,30405676,15452679,16),(1102,NULL,NULL,0,30405774,15452756,16),(1103,NULL,NULL,0,30405933,15452312,16),(1104,NULL,NULL,0,30406158,15451790,16),(1105,NULL,NULL,0,30406345,15451314,16),(1106,NULL,NULL,0,30406513,15450954,16),(1107,NULL,NULL,0,30406627,15450690,16),(1108,NULL,NULL,0,30406708,15450516,16),(1109,NULL,NULL,0,30406766,15450342,16),(1110,NULL,NULL,0,30406806,15450213,16),(1111,NULL,NULL,0,30406855,15450091,16),(1112,NULL,NULL,0,30406904,15449949,16),(1113,NULL,NULL,0,30406917,15449827,16),(1114,NULL,NULL,0,30406847,15449724,16),(1115,NULL,NULL,0,30406737,15449640,16),(1116,NULL,NULL,0,30406562,15449466,16),(1117,NULL,NULL,0,30406354,15449241,16),(1118,NULL,NULL,0,30406280,15449138,16),(1119,NULL,NULL,0,30405778,15448559,16),(1120,NULL,NULL,0,30405138,15447812,16),(1121,NULL,NULL,0,30404571,15447104,16),(1122,NULL,NULL,0,30404510,15447046,16),(1123,NULL,NULL,0,30404481,15447027,16),(1124,NULL,NULL,0,30405211,15458150,17),(1125,NULL,NULL,0,30405073,15458524,17),(1126,NULL,NULL,0,30405028,15458678,17),(1127,NULL,NULL,0,30404999,15458968,17),(1128,NULL,NULL,0,30405073,15459142,17),(1129,NULL,NULL,0,30405203,15459425,17),(1130,NULL,NULL,0,30405273,15459663,17),(1131,NULL,NULL,0,30405379,15460300,17),(1132,NULL,NULL,0,30405464,15460822,17),(1133,NULL,NULL,0,30405546,15461240,17),(1134,NULL,NULL,0,30405587,15461594,17),(1135,NULL,NULL,0,30405627,15462045,17),(1136,NULL,NULL,0,30405681,15462360,17),(1137,NULL,NULL,0,30405742,15462534,17),(1138,NULL,NULL,0,30405791,15462985,17),(1139,NULL,NULL,0,30405803,15463371,17),(1140,NULL,NULL,0,30405844,15463641,17),(1141,NULL,NULL,0,30405868,15463641,17),(1142,NULL,NULL,0,30406162,15462882,17),(1143,NULL,NULL,0,30406505,15462090,17),(1144,NULL,NULL,0,30406749,15461498,17),(1145,NULL,NULL,0,30406908,15461163,17),(1146,NULL,NULL,0,30406949,15461054,17),(1147,NULL,NULL,0,30407059,15460951,17),(1148,NULL,NULL,0,30407039,15460918,17),(1149,NULL,NULL,0,30407039,15460918,17),(1150,NULL,NULL,0,30407072,15461034,18),(1151,NULL,NULL,0,30406937,15461176,18),(1152,NULL,NULL,0,30406806,15461491,18),(1153,NULL,NULL,0,30406745,15461633,18),(1154,NULL,NULL,0,30406651,15461852,18),(1155,NULL,NULL,0,30406570,15462039,18),(1156,NULL,NULL,0,30406468,15462322,18),(1157,NULL,NULL,0,30406358,15462586,18),(1158,NULL,NULL,0,30406256,15462824,18),(1159,NULL,NULL,0,30406133,15463101,18),(1160,NULL,NULL,0,30406003,15463416,18),(1161,NULL,NULL,0,30405901,15463693,18),(1162,NULL,NULL,0,30405815,15463925,18),(1163,NULL,NULL,0,30405689,15464195,18),(1164,NULL,NULL,0,30405579,15464491,18),(1165,NULL,NULL,0,30405464,15464716,18),(1166,NULL,NULL,0,30405375,15464832,18),(1167,NULL,NULL,0,30405289,15464929,18),(1168,NULL,NULL,0,30405060,15465437,18),(1169,NULL,NULL,0,30404889,15465804,18),(1170,NULL,NULL,0,30404693,15466203,18),(1171,NULL,NULL,0,30404424,15466738,18),(1172,NULL,NULL,0,30404171,15467195,18),(1173,NULL,NULL,0,30403947,15467652,18),(1174,NULL,NULL,0,30403559,15468444,18),(1175,NULL,NULL,0,30403176,15469178,18),(1176,NULL,NULL,0,30402882,15469750,18),(1177,NULL,NULL,0,30402539,15470343,18),(1178,NULL,NULL,0,30402013,15471398,18),(1179,NULL,NULL,0,30401789,15471920,18),(1180,NULL,NULL,0,30401752,15472094,18),(1181,NULL,NULL,0,30401838,15472177,18),(1182,NULL,NULL,0,30402384,15472950,18),(1183,NULL,NULL,0,30402715,15473388,18),(1184,NULL,NULL,0,30403008,15473793,18),(1185,NULL,NULL,0,30403119,15473941,18),(1186,NULL,NULL,0,30403347,15473413,18),(1187,NULL,NULL,0,30403714,15472731,18),(1188,NULL,NULL,0,30404632,15470851,18),(1189,NULL,NULL,0,30404677,15470626,18),(1190,NULL,NULL,0,30404722,15470510,18),(1191,NULL,NULL,0,30404803,15470439,18),(1192,NULL,NULL,0,30404914,15470285,18),(1193,NULL,NULL,0,30405146,15469802,18),(1194,NULL,NULL,0,30405615,15468836,18),(1195,NULL,NULL,0,30405872,15468308,18),(1196,NULL,NULL,0,30406048,15467929,18),(1197,NULL,NULL,0,30406252,15467472,18),(1198,NULL,NULL,0,30406500,15466989,18),(1199,NULL,NULL,0,30406696,15466551,18),(1200,NULL,NULL,0,30406904,15466126,18),(1201,NULL,NULL,0,30407104,15465708,18),(1202,NULL,NULL,0,30407422,15465064,18),(1203,NULL,NULL,0,30407871,15464092,18),(1204,NULL,NULL,0,30408124,15463590,18),(1205,NULL,NULL,0,30408430,15463004,18),(1206,NULL,NULL,0,30408075,15462496,18),(1207,NULL,NULL,0,30407496,15461601,18),(1208,NULL,NULL,0,30407190,15461124,18),(1209,NULL,NULL,0,30407108,15461021,18),(1210,NULL,NULL,0,30407116,15461054,18),(1273,NULL,NULL,0,30420350,15513949,20),(1274,NULL,NULL,0,30420387,15514239,20),(1275,NULL,NULL,0,30420432,15514483,20),(1276,NULL,NULL,0,30420464,15514715,20),(1277,NULL,NULL,0,30420489,15514921,20),(1278,NULL,NULL,0,30420493,15515043,20),(1279,NULL,NULL,0,30420476,15515204,20),(1280,NULL,NULL,0,30420423,15515346,20),(1281,NULL,NULL,0,30420358,15515475,20),(1282,NULL,NULL,0,30420269,15515629,20),(1283,NULL,NULL,0,30420150,15515822,20),(1284,NULL,NULL,0,30419930,15516170,20),(1285,NULL,NULL,0,30419775,15516569,20),(1286,NULL,NULL,0,30419722,15516736,20),(1287,NULL,NULL,0,30419694,15516904,20),(1288,NULL,NULL,0,30419743,15517155,20),(1289,NULL,NULL,0,30419800,15517361,20),(1290,NULL,NULL,0,30419857,15517470,20),(1291,NULL,NULL,0,30419922,15517657,20),(1292,NULL,NULL,0,30419979,15517741,20),(1293,NULL,NULL,0,30420061,15517747,20),(1294,NULL,NULL,0,30420146,15517805,20),(1295,NULL,NULL,0,30420240,15517901,20),(1296,NULL,NULL,0,30420322,15518069,20),(1297,NULL,NULL,0,30420383,15518198,20),(1298,NULL,NULL,0,30420452,15518481,20),(1299,NULL,NULL,0,30420513,15518571,20),(1300,NULL,NULL,0,30420644,15518622,20),(1301,NULL,NULL,0,30420717,15518655,20),(1302,NULL,NULL,0,30420746,15518687,20),(1303,NULL,NULL,0,30420725,15518816,20),(1304,NULL,NULL,0,30420684,15518989,20),(1305,NULL,NULL,0,30420668,15519131,20),(1306,NULL,NULL,0,30420627,15519311,20),(1307,NULL,NULL,0,30420611,15519421,20),(1308,NULL,NULL,0,30420660,15519517,20),(1309,NULL,NULL,0,30420701,15519530,20),(1310,NULL,NULL,0,30420803,15519607,20),(1311,NULL,NULL,0,30420982,15519672,20),(1312,NULL,NULL,0,30421149,15519730,20),(1313,NULL,NULL,0,30421390,15519768,20),(1314,NULL,NULL,0,30421590,15519820,20),(1315,NULL,NULL,0,30421749,15519865,20),(1316,NULL,NULL,0,30422075,15519949,20),(1317,NULL,NULL,0,30422397,15520032,20),(1318,NULL,NULL,0,30422592,15520116,20),(1319,NULL,NULL,0,30422678,15520006,20),(1320,NULL,NULL,0,30422784,15519852,20),(1321,NULL,NULL,0,30422902,15519717,20),(1322,NULL,NULL,0,30423008,15519588,20),(1323,NULL,NULL,0,30423102,15519459,20),(1324,NULL,NULL,0,30423175,15519350,20),(1325,NULL,NULL,0,30423232,15519247,20),(1326,NULL,NULL,0,30423290,15519086,20),(1327,NULL,NULL,0,30423367,15518867,20),(1328,NULL,NULL,0,30423420,15518674,20),(1329,NULL,NULL,0,30423465,15518519,20),(1330,NULL,NULL,0,30423506,15518313,20),(1331,NULL,NULL,0,30423526,15518165,20),(1332,NULL,NULL,0,30423555,15517940,20),(1333,NULL,NULL,0,30423555,15517811,20),(1334,NULL,NULL,0,30423591,15517663,20),(1335,NULL,NULL,0,30423632,15517451,20),(1336,NULL,NULL,0,30423718,15517161,20),(1337,NULL,NULL,0,30423771,15516859,20),(1338,NULL,NULL,0,30423828,15516569,20),(1339,NULL,NULL,0,30423897,15516253,20),(1340,NULL,NULL,0,30423979,15515957,20),(1341,NULL,NULL,0,30424044,15515784,20),(1342,NULL,NULL,0,30424113,15515655,20),(1343,NULL,NULL,0,30424166,15515468,20),(1344,NULL,NULL,0,30424219,15515185,20),(1345,NULL,NULL,0,30424248,15514966,20),(1346,NULL,NULL,0,30424292,15514747,20),(1347,NULL,NULL,0,30424305,15514560,20),(1348,NULL,NULL,0,30424313,15514361,20),(1349,NULL,NULL,0,30424268,15514142,20),(1350,NULL,NULL,0,30424219,15513865,20),(1351,NULL,NULL,0,30424215,15513601,20),(1352,NULL,NULL,0,30424227,15513286,20),(1353,NULL,NULL,0,30424248,15513112,20),(1354,NULL,NULL,0,30424292,15512938,20),(1355,NULL,NULL,0,30424390,15512661,20),(1356,NULL,NULL,0,30424557,15512217,20),(1357,NULL,NULL,0,30424684,15511908,20),(1358,NULL,NULL,0,30424814,15511625,20),(1359,NULL,NULL,0,30424941,15511380,20),(1360,NULL,NULL,0,30425051,15511207,20),(1361,NULL,NULL,0,30425173,15511104,20),(1362,NULL,NULL,0,30425202,15511091,20),(1363,NULL,NULL,0,30425312,15510949,20),(1364,NULL,NULL,0,30425173,15510981,20),(1365,NULL,NULL,0,30425018,15511071,20),(1366,NULL,NULL,0,30424912,15511071,20),(1367,NULL,NULL,0,30424778,15511117,20),(1368,NULL,NULL,0,30424696,15511136,20),(1369,NULL,NULL,0,30424574,15511084,20),(1370,NULL,NULL,0,30424464,15510981,20),(1371,NULL,NULL,0,30424390,15510904,20),(1372,NULL,NULL,0,30424309,15510808,20),(1373,NULL,NULL,0,30424235,15510730,20),(1374,NULL,NULL,0,30424170,15510705,20),(1375,NULL,NULL,0,30424121,15510782,20),(1376,NULL,NULL,0,30424121,15510898,20),(1377,NULL,NULL,0,30424150,15510962,20),(1378,NULL,NULL,0,30424109,15511104,20),(1379,NULL,NULL,0,30424085,15511194,20),(1380,NULL,NULL,0,30424068,15511284,20),(1381,NULL,NULL,0,30424015,15511348,20),(1382,NULL,NULL,0,30423877,15511355,20),(1383,NULL,NULL,0,30423709,15511323,20),(1384,NULL,NULL,0,30423514,15511303,20),(1385,NULL,NULL,0,30423359,15511265,20),(1386,NULL,NULL,0,30423265,15511252,20),(1387,NULL,NULL,0,30423167,15511252,20),(1388,NULL,NULL,0,30423086,15511335,20),(1389,NULL,NULL,0,30422984,15511509,20),(1390,NULL,NULL,0,30422919,15511722,20),(1391,NULL,NULL,0,30422874,15511941,20),(1392,NULL,NULL,0,30422853,15512063,20),(1393,NULL,NULL,0,30422796,15512198,20),(1394,NULL,NULL,0,30422760,15512391,20),(1395,NULL,NULL,0,30422698,15512649,20),(1396,NULL,NULL,0,30422613,15512925,20),(1397,NULL,NULL,0,30422568,15513228,20),(1398,NULL,NULL,0,30422552,15513453,20),(1399,NULL,NULL,0,30422507,15513608,20),(1400,NULL,NULL,0,30422421,15513691,20),(1401,NULL,NULL,0,30422340,15513717,20),(1402,NULL,NULL,0,30422213,15513691,20),(1403,NULL,NULL,0,30422087,15513614,20),(1404,NULL,NULL,0,30422030,15513428,20),(1405,NULL,NULL,0,30421985,15513086,20),(1406,NULL,NULL,0,30421928,15512758,20),(1407,NULL,NULL,0,30421891,15512391,20),(1408,NULL,NULL,0,30421814,15511895,20),(1409,NULL,NULL,0,30421732,15511541,20),(1410,NULL,NULL,0,30421663,15511445,20),(1411,NULL,NULL,0,30421545,15511458,20),(1412,NULL,NULL,0,30421459,15511477,20),(1413,NULL,NULL,0,30421377,15511561,20),(1414,NULL,NULL,0,30421284,15511606,20),(1415,NULL,NULL,0,30421214,15511677,20),(1416,NULL,NULL,0,30421161,15511741,20),(1417,NULL,NULL,0,30421145,15511876,20),(1418,NULL,NULL,0,30421170,15512018,20),(1419,NULL,NULL,0,30421239,15512140,20),(1420,NULL,NULL,0,30421267,15512224,20),(1421,NULL,NULL,0,30421259,15512314,20),(1422,NULL,NULL,0,30421235,15512398,20),(1423,NULL,NULL,0,30421165,15512430,20),(1424,NULL,NULL,0,30421100,15512391,20),(1425,NULL,NULL,0,30421027,15512340,20),(1426,NULL,NULL,0,30420994,15512224,20),(1427,NULL,NULL,0,30420974,15512179,20),(1428,NULL,NULL,0,30420921,15512082,20),(1429,NULL,NULL,0,30420852,15512056,20),(1430,NULL,NULL,0,30420770,15512050,20),(1431,NULL,NULL,0,30420705,15512056,20),(1432,NULL,NULL,0,30420672,15512127,20),(1433,NULL,NULL,0,30420680,15512230,20),(1434,NULL,NULL,0,30420660,15512378,20),(1435,NULL,NULL,0,30420627,15512546,20),(1436,NULL,NULL,0,30420615,15512700,20),(1437,NULL,NULL,0,30420619,15512848,20),(1438,NULL,NULL,0,30420648,15513086,20),(1439,NULL,NULL,0,30420644,15513254,20),(1440,NULL,NULL,0,30420660,15513382,20),(1441,NULL,NULL,0,30420660,15513479,20),(1442,NULL,NULL,0,30420656,15513582,20),(1443,NULL,NULL,0,30420640,15513646,20),(1444,NULL,NULL,0,30420574,15513704,20),(1445,NULL,NULL,0,30420497,15513685,20),(1446,NULL,NULL,0,30420440,15513614,20),(1447,NULL,NULL,0,30420370,15513485,20),(1448,NULL,NULL,0,30420301,15513318,20),(1449,NULL,NULL,0,30420281,15513222,20),(1450,NULL,NULL,0,30420297,15513473,20),(1451,NULL,NULL,0,30420309,15513608,20),(1452,NULL,NULL,0,30422552,15520187,21),(1453,NULL,NULL,0,30422482,15520335,21),(1454,NULL,NULL,0,30422417,15520579,21),(1455,NULL,NULL,0,30422376,15520772,21),(1456,NULL,NULL,0,30422340,15520933,21),(1457,NULL,NULL,0,30422303,15521127,21),(1458,NULL,NULL,0,30422291,15521371,21),(1459,NULL,NULL,0,30422274,15521526,21),(1460,NULL,NULL,0,30422242,15521815,21),(1461,NULL,NULL,0,30422197,15522060,21),(1462,NULL,NULL,0,30422140,15522317,21),(1463,NULL,NULL,0,30422034,15522633,21),(1464,NULL,NULL,0,30421899,15522910,21),(1465,NULL,NULL,0,30421753,15523238,21),(1466,NULL,NULL,0,30421622,15523444,21),(1467,NULL,NULL,0,30421553,15523547,21),(1468,NULL,NULL,0,30421479,15523695,21),(1469,NULL,NULL,0,30421422,15523843,21),(1470,NULL,NULL,0,30421373,15524068,21),(1471,NULL,NULL,0,30421345,15524287,21),(1472,NULL,NULL,0,30421320,15524525,21),(1473,NULL,NULL,0,30421300,15524738,21),(1474,NULL,NULL,0,30421271,15524937,21),(1475,NULL,NULL,0,30421231,15525150,21),(1476,NULL,NULL,0,30421186,15525008,21),(1477,NULL,NULL,0,30421096,15524815,21),(1478,NULL,NULL,0,30421011,15524648,21),(1479,NULL,NULL,0,30420856,15524493,21),(1480,NULL,NULL,0,30420693,15524345,21),(1481,NULL,NULL,0,30420562,15524216,21),(1482,NULL,NULL,0,30420517,15524120,21),(1483,NULL,NULL,0,30420419,15523933,21),(1484,NULL,NULL,0,30420334,15523862,21),(1485,NULL,NULL,0,30420264,15523856,21),(1486,NULL,NULL,0,30420134,15523817,21),(1487,NULL,NULL,0,30420012,15523772,21),(1488,NULL,NULL,0,30419877,15523695,21),(1489,NULL,NULL,0,30419718,15523611,21),(1490,NULL,NULL,0,30419539,15523534,21),(1491,NULL,NULL,0,30419302,15523405,21),(1492,NULL,NULL,0,30419172,15523335,21),(1493,NULL,NULL,0,30419070,15523238,21),(1494,NULL,NULL,0,30418956,15523064,21),(1495,NULL,NULL,0,30418903,15522916,21),(1496,NULL,NULL,0,30418801,15522839,21),(1497,NULL,NULL,0,30418642,15522820,21),(1498,NULL,NULL,0,30418646,15522704,21),(1499,NULL,NULL,0,30418605,15522517,21),(1500,NULL,NULL,0,30418536,15522292,21),(1501,NULL,NULL,0,30418515,15522047,21),(1502,NULL,NULL,0,30418458,15521596,21),(1503,NULL,NULL,0,30418401,15521081,21),(1504,NULL,NULL,0,30418352,15520547,21),(1505,NULL,NULL,0,30418271,15520045,21),(1506,NULL,NULL,0,30418234,15519594,21),(1507,NULL,NULL,0,30418279,15519491,21),(1508,NULL,NULL,0,30418348,15519382,21),(1509,NULL,NULL,0,30418426,15519240,21),(1510,NULL,NULL,0,30418503,15519125,21),(1511,NULL,NULL,0,30418609,15519073,21),(1512,NULL,NULL,0,30418719,15519092,21),(1513,NULL,NULL,0,30418825,15519157,21),(1514,NULL,NULL,0,30418980,15519260,21),(1515,NULL,NULL,0,30419066,15519285,21),(1516,NULL,NULL,0,30419176,15519298,21),(1517,NULL,NULL,0,30419298,15519279,21),(1518,NULL,NULL,0,30419420,15519253,21),(1519,NULL,NULL,0,30419526,15519228,21),(1520,NULL,NULL,0,30419649,15519234,21),(1521,NULL,NULL,0,30419779,15519253,21),(1522,NULL,NULL,0,30420012,15519285,21),(1523,NULL,NULL,0,30420240,15519350,21),(1524,NULL,NULL,0,30420464,15519427,21),(1525,NULL,NULL,0,30420607,15519491,21),(1526,NULL,NULL,0,30420701,15519582,21),(1527,NULL,NULL,0,30420823,15519665,21),(1528,NULL,NULL,0,30420962,15519723,21),(1529,NULL,NULL,0,30421104,15519755,21),(1530,NULL,NULL,0,30421284,15519807,21),(1531,NULL,NULL,0,30421426,15519826,21),(1532,NULL,NULL,0,30421561,15519852,21),(1533,NULL,NULL,0,30422026,15519974,21),(1534,NULL,NULL,0,30422340,15520052,21),(1535,NULL,NULL,0,30422584,15520154,21),(1536,NULL,NULL,0,30422572,15520180,21),(1537,NULL,NULL,0,30426873,15518281,22),(1538,NULL,NULL,0,30426033,15518487,22),(1539,NULL,NULL,0,30425935,15518519,22),(1540,NULL,NULL,0,30424423,15518828,22),(1541,NULL,NULL,0,30423318,15519099,22),(1542,NULL,NULL,0,30423257,15519240,22),(1543,NULL,NULL,0,30423171,15519401,22),(1544,NULL,NULL,0,30423029,15519594,22),(1545,NULL,NULL,0,30422817,15519858,22),(1546,NULL,NULL,0,30422670,15520071,22),(1547,NULL,NULL,0,30422580,15520193,22),(1548,NULL,NULL,0,30422507,15520360,22),(1549,NULL,NULL,0,30422450,15520573,22),(1550,NULL,NULL,0,30422393,15520824,22),(1551,NULL,NULL,0,30422360,15521030,22),(1552,NULL,NULL,0,30422340,15521101,22),(1553,NULL,NULL,0,30422327,15521268,22),(1554,NULL,NULL,0,30422311,15521448,22),(1555,NULL,NULL,0,30422287,15521667,22),(1556,NULL,NULL,0,30422238,15521996,22),(1557,NULL,NULL,0,30422201,15522227,22),(1558,NULL,NULL,0,30422115,15522498,22),(1559,NULL,NULL,0,30421985,15522820,22),(1560,NULL,NULL,0,30421895,15523013,22),(1561,NULL,NULL,0,30421785,15523257,22),(1562,NULL,NULL,0,30421671,15523444,22),(1563,NULL,NULL,0,30421573,15523579,22),(1564,NULL,NULL,0,30421528,15523682,22),(1565,NULL,NULL,0,30421492,15523772,22),(1566,NULL,NULL,0,30421451,15523907,22),(1567,NULL,NULL,0,30421402,15524126,22),(1568,NULL,NULL,0,30421365,15524352,22),(1569,NULL,NULL,0,30421345,15524564,22),(1570,NULL,NULL,0,30421320,15524815,22),(1571,NULL,NULL,0,30421271,15525073,22),(1572,NULL,NULL,0,30421263,15525246,22),(1573,NULL,NULL,0,30421284,15525343,22),(1574,NULL,NULL,0,30421369,15525394,22),(1575,NULL,NULL,0,30421459,15525401,22),(1576,NULL,NULL,0,30421577,15525382,22),(1577,NULL,NULL,0,30421765,15525317,22),(1578,NULL,NULL,0,30421924,15525272,22),(1579,NULL,NULL,0,30422075,15525298,22),(1580,NULL,NULL,0,30422177,15525311,22),(1581,NULL,NULL,0,30422421,15525317,22),(1582,NULL,NULL,0,30422662,15525311,22),(1583,NULL,NULL,0,30422906,15525298,22),(1584,NULL,NULL,0,30423090,15525452,22),(1585,NULL,NULL,0,30423220,15525646,22),(1586,NULL,NULL,0,30423453,15525794,22),(1587,NULL,NULL,0,30423603,15525961,22),(1588,NULL,NULL,0,30423815,15526122,22),(1589,NULL,NULL,0,30423970,15526212,22),(1590,NULL,NULL,0,30424060,15526283,22),(1591,NULL,NULL,0,30424166,15526218,22),(1592,NULL,NULL,0,30424268,15526096,22),(1593,NULL,NULL,0,30424337,15525987,22),(1594,NULL,NULL,0,30424378,15525819,22),(1595,NULL,NULL,0,30424407,15525742,22),(1596,NULL,NULL,0,30424447,15525755,22),(1597,NULL,NULL,0,30424468,15525839,22),(1598,NULL,NULL,0,30424496,15526006,22),(1599,NULL,NULL,0,30424521,15526135,22),(1600,NULL,NULL,0,30424545,15526328,22),(1601,NULL,NULL,0,30424590,15526444,22),(1602,NULL,NULL,0,30424631,15526547,22),(1603,NULL,NULL,0,30424737,15526579,22),(1604,NULL,NULL,0,30424790,15526611,22),(1605,NULL,NULL,0,30424839,15526733,22),(1606,NULL,NULL,0,30424908,15526836,22),(1607,NULL,NULL,0,30425002,15526914,22),(1608,NULL,NULL,0,30425185,15526933,22),(1609,NULL,NULL,0,30425267,15526881,22),(1610,NULL,NULL,0,30425303,15526856,22),(1611,NULL,NULL,0,30425365,15526785,22),(1612,NULL,NULL,0,30425471,15526721,22),(1613,NULL,NULL,0,30425560,15526675,22),(1614,NULL,NULL,0,30425695,15526637,22),(1615,NULL,NULL,0,30425752,15526585,22),(1616,NULL,NULL,0,30425842,15526495,22),(1617,NULL,NULL,0,30425911,15526418,22),(1618,NULL,NULL,0,30425972,15526366,22),(1619,NULL,NULL,0,30426029,15526354,22),(1620,NULL,NULL,0,30426086,15526392,22),(1621,NULL,NULL,0,30426172,15526347,22),(1622,NULL,NULL,0,30426257,15526309,22),(1623,NULL,NULL,0,30426331,15526257,22),(1624,NULL,NULL,0,30426404,15526167,22),(1625,NULL,NULL,0,30426490,15526193,22),(1626,NULL,NULL,0,30426575,15526231,22),(1627,NULL,NULL,0,30426649,15526244,22),(1628,NULL,NULL,0,30426718,15526244,22),(1629,NULL,NULL,0,30426799,15526270,22),(1630,NULL,NULL,0,30426865,15526321,22),(1631,NULL,NULL,0,30426897,15526399,22),(1632,NULL,NULL,0,30426983,15526508,22),(1633,NULL,NULL,0,30427040,15526553,22),(1634,NULL,NULL,0,30427215,15526560,22),(1635,NULL,NULL,0,30427419,15526560,22),(1636,NULL,NULL,0,30427643,15526566,22),(1637,NULL,NULL,0,30427786,15526579,22),(1638,NULL,NULL,0,30427937,15526605,22),(1639,NULL,NULL,0,30428165,15526650,22),(1640,NULL,NULL,0,30428300,15526669,22),(1641,NULL,NULL,0,30428405,15526682,22),(1642,NULL,NULL,0,30428463,15526656,22),(1643,NULL,NULL,0,30428503,15526592,22),(1644,NULL,NULL,0,30428487,15526424,22),(1645,NULL,NULL,0,30428405,15526045,22),(1646,NULL,NULL,0,30428357,15525871,22),(1647,NULL,NULL,0,30428291,15525594,22),(1648,NULL,NULL,0,30428210,15525143,22),(1649,NULL,NULL,0,30428055,15524442,22),(1650,NULL,NULL,0,30427949,15524049,22),(1651,NULL,NULL,0,30427778,15523244,22),(1652,NULL,NULL,0,30427655,15522633,22),(1653,NULL,NULL,0,30427444,15521526,22),(1654,NULL,NULL,0,30427362,15521049,22),(1655,NULL,NULL,0,30427093,15519575,22),(1656,NULL,NULL,0,30448713,15468939,23),(1657,NULL,NULL,0,30448713,15468939,23),(1658,NULL,NULL,0,30448819,15469029,23),(1659,NULL,NULL,0,30448819,15469029,23),(1660,NULL,NULL,0,30448917,15469197,23),(1661,NULL,NULL,0,30448917,15469197,23),(1662,NULL,NULL,0,30448974,15469319,23),(1663,NULL,NULL,0,30448974,15469326,23),(1664,NULL,NULL,0,30448978,15469461,23),(1665,NULL,NULL,0,30448978,15469461,23),(1666,NULL,NULL,0,30448835,15469532,23),(1667,NULL,NULL,0,30448835,15469538,23),(1668,NULL,NULL,0,30448713,15469667,23),(1669,NULL,NULL,0,30448713,15469667,23),(1670,NULL,NULL,0,30449426,15472106,23),(1671,NULL,NULL,0,30449422,15472106,23),(1672,NULL,NULL,0,30449650,15472010,23),(1673,NULL,NULL,0,30450257,15471656,23),(1674,NULL,NULL,0,30450509,15471501,23),(1675,NULL,NULL,0,30451002,15471173,23),(1676,NULL,NULL,0,30451185,15471817,23),(1677,NULL,NULL,0,30450957,15471971,23),(1678,NULL,NULL,0,30451613,15473787,23),(1679,NULL,NULL,0,30451613,15473787,23),(1680,NULL,NULL,0,30452130,15473297,23),(1681,NULL,NULL,0,30452525,15472956,23),(1682,NULL,NULL,0,30452937,15472551,23),(1683,NULL,NULL,0,30453173,15472332,23),(1684,NULL,NULL,0,30453340,15472164,23),(1685,NULL,NULL,0,30453653,15471875,23),(1686,NULL,NULL,0,30453405,15471180,23),(1687,NULL,NULL,0,30453063,15470323,23),(1688,NULL,NULL,0,30452448,15470800,23),(1689,NULL,NULL,0,30452167,15471012,23),(1690,NULL,NULL,0,30451996,15471160,23),(1691,NULL,NULL,0,30451874,15471263,23),(1692,NULL,NULL,0,30451723,15471386,23),(1693,NULL,NULL,0,30451495,15471553,23),(1694,NULL,NULL,0,30451222,15471791,23),(1695,NULL,NULL,0,30451226,15471772,23),(1696,NULL,NULL,0,30451401,15471604,23),(1697,NULL,NULL,0,30451670,15471366,23),(1698,NULL,NULL,0,30451817,15471270,23),(1699,NULL,NULL,0,30451914,15471180,23),(1700,NULL,NULL,0,30452012,15471083,23),(1701,NULL,NULL,0,30452151,15470999,23),(1702,NULL,NULL,0,30452318,15470845,23),(1703,NULL,NULL,0,30452012,15469841,23),(1704,NULL,NULL,0,30451699,15468727,23),(1705,NULL,NULL,0,30451487,15468064,23),(1706,NULL,NULL,0,30451263,15467388,23),(1707,NULL,NULL,0,30450819,15467787,23),(1708,NULL,NULL,0,30451100,15466828,23),(1709,NULL,NULL,0,30450929,15466236,23),(1710,NULL,NULL,0,30450819,15465888,23),(1711,NULL,NULL,0,30450762,15465650,23),(1712,NULL,NULL,0,30450689,15465373,23),(1713,NULL,NULL,0,30450623,15465116,23),(1714,NULL,NULL,0,30450550,15464819,23),(1715,NULL,NULL,0,30450497,15464607,23),(1716,NULL,NULL,0,30450465,15464388,23),(1717,NULL,NULL,0,30450371,15464247,23),(1718,NULL,NULL,0,30450045,15465141,23),(1719,NULL,NULL,0,30449626,15466332,23),(1720,NULL,NULL,0,30449002,15468064,23),(1721,NULL,NULL,0,30448778,15468720,23),(1722,NULL,NULL,0,30448778,15468720,23),(1876,NULL,NULL,0,30407190,15503707,25),(1877,NULL,NULL,0,30407190,15503707,25),(1878,NULL,NULL,0,30406733,15504119,25),(1879,NULL,NULL,0,30406280,15504563,25),(1880,NULL,NULL,0,30405819,15504975,25),(1881,NULL,NULL,0,30405354,15505413,25),(1882,NULL,NULL,0,30404677,15506018,25),(1883,NULL,NULL,0,30404253,15506449,25),(1884,NULL,NULL,0,30403400,15507228,25),(1885,NULL,NULL,0,30403143,15507454,25),(1886,NULL,NULL,0,30402237,15508316,25),(1887,NULL,NULL,0,30402009,15508548,25),(1888,NULL,NULL,0,30401911,15508709,25),(1889,NULL,NULL,0,30401687,15508934,25),(1890,NULL,NULL,0,30401499,15509134,25),(1891,NULL,NULL,0,30401413,15509321,25),(1892,NULL,NULL,0,30401270,15509707,25),(1893,NULL,NULL,0,30401181,15509964,25),(1894,NULL,NULL,0,30401454,15510312,25),(1895,NULL,NULL,0,30401523,15510338,25),(1896,NULL,NULL,0,30401715,15510254,25),(1897,NULL,NULL,0,30402001,15510183,25),(1898,NULL,NULL,0,30402433,15510087,25),(1899,NULL,NULL,0,30402613,15510009,25),(1900,NULL,NULL,0,30402792,15509990,25),(1901,NULL,NULL,0,30403110,15510196,25),(1902,NULL,NULL,0,30403510,15510473,25),(1903,NULL,NULL,0,30403845,15510711,25),(1904,NULL,NULL,0,30404306,15510962,25),(1905,NULL,NULL,0,30404722,15511265,25),(1906,NULL,NULL,0,30405248,15511586,25),(1907,NULL,NULL,0,30405681,15511883,25),(1908,NULL,NULL,0,30406146,15512198,25),(1909,NULL,NULL,0,30406615,15511677,25),(1910,NULL,NULL,0,30407532,15510756,25),(1911,NULL,NULL,0,30408275,15510035,25),(1912,NULL,NULL,0,30408919,15509494,25),(1913,NULL,NULL,0,30409380,15509057,25),(1914,NULL,NULL,0,30409401,15509037,25),(1915,NULL,NULL,0,30409278,15508297,25),(1916,NULL,NULL,0,30409221,15508033,25),(1917,NULL,NULL,0,30409180,15507763,25),(1918,NULL,NULL,0,30409066,15507125,25),(1919,NULL,NULL,0,30408968,15506636,25),(1920,NULL,NULL,0,30408805,15505780,25),(1921,NULL,NULL,0,30408744,15505510,25),(1922,NULL,NULL,0,30408724,15505310,25),(1923,NULL,NULL,0,30408679,15505091,25),(1924,NULL,NULL,0,30408577,15504467,25),(1925,NULL,NULL,0,30408389,15503559,25),(1926,NULL,NULL,0,30408279,15503012,25),(1927,NULL,NULL,0,30408222,15502690,25),(1928,NULL,NULL,0,30408148,15502812,25),(1929,NULL,NULL,0,30408046,15502922,25),(1930,NULL,NULL,0,30407912,15503051,25),(1931,NULL,NULL,0,30407585,15503353,25),(1932,NULL,NULL,0,30407459,15503443,25),(1933,NULL,NULL,0,30409401,15509076,26),(1934,NULL,NULL,0,30409584,15510125,26),(1935,NULL,NULL,0,30409645,15510428,26),(1936,NULL,NULL,0,30409686,15510595,26),(1937,NULL,NULL,0,30409760,15510608,26),(1938,NULL,NULL,0,30409833,15510608,26),(1939,NULL,NULL,0,30409866,15510569,26),(1940,NULL,NULL,0,30410008,15510447,26),(1941,NULL,NULL,0,30410269,15510280,26),(1942,NULL,NULL,0,30410608,15510067,26),(1943,NULL,NULL,0,30411073,15509771,26),(1944,NULL,NULL,0,30411330,15509630,26),(1945,NULL,NULL,0,30411444,15509565,26),(1946,NULL,NULL,0,30411493,15509630,26),(1947,NULL,NULL,0,30411517,15509720,26),(1948,NULL,NULL,0,30411436,15510415,26),(1949,NULL,NULL,0,30411248,15511966,26),(1950,NULL,NULL,0,30411150,15512919,26),(1951,NULL,NULL,0,30411134,15513305,26),(1952,NULL,NULL,0,30411191,15513588,26),(1953,NULL,NULL,0,30411305,15514013,26),(1954,NULL,NULL,0,30411424,15514367,26),(1955,NULL,NULL,0,30411513,15514747,26),(1956,NULL,NULL,0,30411766,15515397,26),(1957,NULL,NULL,0,30411962,15515726,26),(1958,NULL,NULL,0,30412182,15516157,26),(1959,NULL,NULL,0,30412427,15516569,26),(1960,NULL,NULL,0,30412643,15517000,26),(1961,NULL,NULL,0,30412778,15517277,26),(1962,NULL,NULL,0,30412924,15517567,26),(1963,NULL,NULL,0,30413059,15517805,26),(1964,NULL,NULL,0,30413173,15518024,26),(1965,NULL,NULL,0,30413349,15518320,26),(1966,NULL,NULL,0,30413540,15518725,26),(1967,NULL,NULL,0,30413634,15518964,26),(1968,NULL,NULL,0,30413765,15519337,26),(1969,NULL,NULL,0,30413691,15519388,26),(1970,NULL,NULL,0,30413479,15519562,26),(1971,NULL,NULL,0,30413259,15519743,26),(1972,NULL,NULL,0,30413185,15519865,26),(1973,NULL,NULL,0,30413120,15520006,26),(1974,NULL,NULL,0,30413202,15520296,26),(1975,NULL,NULL,0,30413414,15520863,26),(1976,NULL,NULL,0,30413553,15521152,26),(1977,NULL,NULL,0,30413614,15521307,26),(1978,NULL,NULL,0,30413618,15521487,26),(1979,NULL,NULL,0,30413565,15521745,26),(1980,NULL,NULL,0,30413446,15521848,26),(1981,NULL,NULL,0,30413275,15521860,26),(1982,NULL,NULL,0,30413226,15521770,26),(1983,NULL,NULL,0,30412998,15521603,26),(1984,NULL,NULL,0,30412737,15521481,26),(1985,NULL,NULL,0,30412382,15521300,26),(1986,NULL,NULL,0,30412215,15521017,26),(1987,NULL,NULL,0,30411933,15520573,26),(1988,NULL,NULL,0,30411709,15520212,26),(1989,NULL,NULL,0,30411432,15519936,26),(1990,NULL,NULL,0,30411305,15519704,26),(1991,NULL,NULL,0,30410914,15519318,26),(1992,NULL,NULL,0,30410510,15518803,26),(1993,NULL,NULL,0,30410384,15518545,26),(1994,NULL,NULL,0,30410225,15518339,26),(1995,NULL,NULL,0,30410061,15518037,26),(1996,NULL,NULL,0,30409813,15517650,26),(1997,NULL,NULL,0,30409539,15517245,26),(1998,NULL,NULL,0,30409221,15516627,26),(1999,NULL,NULL,0,30409474,15516331,26),(2000,NULL,NULL,0,30409323,15516048,26),(2001,NULL,NULL,0,30409140,15515796,26),(2002,NULL,NULL,0,30408980,15515636,26),(2003,NULL,NULL,0,30408772,15515378,26),(2004,NULL,NULL,0,30408605,15515140,26),(2005,NULL,NULL,0,30408426,15514921,26),(2006,NULL,NULL,0,30408242,15514663,26),(2007,NULL,NULL,0,30408034,15514412,26),(2008,NULL,NULL,0,30407842,15514174,26),(2009,NULL,NULL,0,30407626,15513904,26),(2010,NULL,NULL,0,30407394,15513627,26),(2011,NULL,NULL,0,30407329,15513485,26),(2012,NULL,NULL,0,30407198,15513344,26),(2013,NULL,NULL,0,30407100,15513183,26),(2014,NULL,NULL,0,30407039,15513086,26),(2015,NULL,NULL,0,30406957,15512932,26),(2016,NULL,NULL,0,30406929,15512758,26),(2017,NULL,NULL,0,30406855,15512713,26),(2018,NULL,NULL,0,30406757,15512681,26),(2019,NULL,NULL,0,30406704,15512732,26),(2020,NULL,NULL,0,30406443,15512475,26),(2021,NULL,NULL,0,30406292,15512282,26),(2022,NULL,NULL,0,30406158,15512217,26),(2023,NULL,NULL,0,30406415,15511928,26),(2024,NULL,NULL,0,30406737,15511593,26),(2025,NULL,NULL,0,30407100,15511226,26),(2026,NULL,NULL,0,30407500,15510820,26),(2027,NULL,NULL,0,30407867,15510460,26),(2028,NULL,NULL,0,30408263,15510080,26),(2029,NULL,NULL,0,30408724,15509700,26),(2030,NULL,NULL,0,30409013,15509443,26),(2031,NULL,NULL,0,30409184,15509269,26),(2032,NULL,NULL,0,30409184,15509269,26),(2033,NULL,NULL,0,30403270,15445553,27),(2034,NULL,NULL,0,30403649,15445997,27),(2035,NULL,NULL,0,30403922,15446293,27),(2036,NULL,NULL,0,30404167,15446531,27),(2037,NULL,NULL,0,30404391,15446789,27),(2038,NULL,NULL,0,30404567,15447020,27),(2039,NULL,NULL,0,30404881,15447426,27),(2040,NULL,NULL,0,30405179,15447812,27),(2041,NULL,NULL,0,30405493,15448179,27),(2042,NULL,NULL,0,30405697,15448424,27),(2043,NULL,NULL,0,30405917,15448662,27),(2044,NULL,NULL,0,30406223,15449016,27),(2045,NULL,NULL,0,30406513,15449338,27),(2046,NULL,NULL,0,30406843,15449679,27),(2047,NULL,NULL,0,30406974,15449763,27),(2048,NULL,NULL,0,30407002,15449692,27),(2049,NULL,NULL,0,30407076,15449512,27),(2050,NULL,NULL,0,30407125,15449235,27),(2051,NULL,NULL,0,30407284,15448816,27),(2052,NULL,NULL,0,30407496,15448282,27),(2053,NULL,NULL,0,30407765,15447658,27),(2054,NULL,NULL,0,30408038,15446956,27),(2055,NULL,NULL,0,30408422,15446010,27),(2056,NULL,NULL,0,30408617,15445514,27),(2057,NULL,NULL,0,30409152,15444252,27),(2058,NULL,NULL,0,30409902,15442418,27),(2059,NULL,NULL,0,30409331,15441800,27),(2060,NULL,NULL,0,30409576,15441285,27),(2061,NULL,NULL,0,30409747,15440860,27),(2062,NULL,NULL,0,30409902,15440383,27),(2063,NULL,NULL,0,30409458,15439901,27),(2064,NULL,NULL,0,30408968,15439399,27),(2065,NULL,NULL,0,30408369,15438774,27),(2066,NULL,NULL,0,30407528,15437899,27),(2067,NULL,NULL,0,30407161,15437500,27),(2068,NULL,NULL,0,30407104,15437435,27),(2069,NULL,NULL,0,30406835,15437989,27),(2070,NULL,NULL,0,30406562,15438594,27),(2071,NULL,NULL,0,30405542,15440757,27),(2072,NULL,NULL,0,30405011,15441928,27),(2073,NULL,NULL,0,30404551,15442978,27),(2074,NULL,NULL,0,30404196,15443705,27),(2075,NULL,NULL,0,30403731,15444651,27),(2076,NULL,NULL,0,30403731,15444651,27),(5247,NULL,NULL,0,30451503,15473883,32),(5248,NULL,NULL,0,30450986,15471965,32),(5249,NULL,NULL,0,30451385,15471643,32),(5250,NULL,NULL,0,30451743,15471347,32),(5251,NULL,NULL,0,30451878,15471244,32),(5252,NULL,NULL,0,30452045,15471122,32),(5253,NULL,NULL,0,30452138,15471044,32),(5254,NULL,NULL,0,30452599,15470697,32),(5255,NULL,NULL,0,30453071,15470323,32),(5256,NULL,NULL,0,30453250,15470182,32),(5257,NULL,NULL,0,30453344,15470092,32),(5258,NULL,NULL,0,30453417,15469963,32),(5259,NULL,NULL,0,30453568,15469776,32),(5260,NULL,NULL,0,30453694,15470201,32),(5261,NULL,NULL,0,30453743,15470349,32),(5262,NULL,NULL,0,30453837,15470401,32),(5263,NULL,NULL,0,30453979,15470368,32),(5264,NULL,NULL,0,30454101,15470265,32),(5265,NULL,NULL,0,30454378,15469969,32),(5266,NULL,NULL,0,30454639,15470652,32),(5267,NULL,NULL,0,30454696,15470845,32),(5268,NULL,NULL,0,30451389,15467832,33),(5269,NULL,NULL,0,30451633,15468630,33),(5270,NULL,NULL,0,30452660,15467729,33),(5271,NULL,NULL,0,30453360,15469918,33),(5272,NULL,NULL,0,30453735,15469557,33),(5273,NULL,NULL,0,30453539,15468991,33),(5274,NULL,NULL,0,30453588,15468888,33),(5275,NULL,NULL,0,30453051,15467034,33),(5276,NULL,NULL,0,30452611,15467369,33),(5277,NULL,NULL,0,30452481,15466982,33),(5278,NULL,NULL,0,30452318,15467085,33),(5279,NULL,NULL,0,30452318,15467085,33),(5280,NULL,NULL,0,30453067,15464382,34),(5281,NULL,NULL,0,30453279,15465103,34),(5282,NULL,NULL,0,30452138,15466030,34),(5283,NULL,NULL,0,30451927,15465334,34),(5284,NULL,NULL,0,30452236,15465077,34),(5285,NULL,NULL,0,30452415,15464948,34),(5286,NULL,NULL,0,30450607,15464871,35),(5287,NULL,NULL,0,30451373,15462785,35),(5288,NULL,NULL,0,30451943,15464691,35),(5289,NULL,NULL,0,30450786,15465566,35),(5290,NULL,NULL,0,30450705,15465309,35),(5291,NULL,NULL,0,30449972,15463146,36),(5292,NULL,NULL,0,30450281,15463995,36),(5293,NULL,NULL,0,30449890,15465154,36),(5294,NULL,NULL,0,30449385,15463583,36),(5295,NULL,NULL,0,30449418,15463609,36),(5296,NULL,NULL,0,30435110,15443164,37),(5297,NULL,NULL,0,30435648,15442830,37),(5298,NULL,NULL,0,30436202,15442418,37),(5299,NULL,NULL,0,30436414,15442418,37),(5300,NULL,NULL,0,30436723,15442237,37),(5301,NULL,NULL,0,30437147,15442057,37),(5302,NULL,NULL,0,30437701,15450220,37),(5303,NULL,NULL,0,30435713,15451713,37),(5304,NULL,NULL,0,30434996,15452280,37),(5305,NULL,NULL,0,30434278,15452795,37),(5306,NULL,NULL,0,30433431,15449705,37),(5307,NULL,NULL,0,30434376,15449035,37),(5308,NULL,NULL,0,30434458,15449061,37),(5309,NULL,NULL,0,30434914,15448700,37),(5310,NULL,NULL,0,30435273,15449911,37),(5311,NULL,NULL,0,30435354,15450297,37),(5312,NULL,NULL,0,30435631,15450065,37),(5313,NULL,NULL,0,30435534,15449627,37),(5314,NULL,NULL,0,30435322,15449370,37),(5315,NULL,NULL,0,30435045,15448726,37),(5316,NULL,NULL,0,30434572,15448855,37),(5317,NULL,NULL,0,30434474,15448906,37),(5318,NULL,NULL,0,30434034,15448366,37),(5319,NULL,NULL,0,30433838,15448263,37),(5320,NULL,NULL,0,30433578,15448288,37),(5321,NULL,NULL,0,30433512,15448288,37),(5322,NULL,NULL,0,30433300,15446126,37),(5323,NULL,NULL,0,30433170,15444967,37),(5324,NULL,NULL,0,30434001,15444426,37),(5325,NULL,NULL,0,30434001,15443448,37),(5326,NULL,NULL,0,30434963,15443190,37),(5327,NULL,NULL,0,30432110,15446306,38),(5328,NULL,NULL,0,30433040,15445688,38),(5329,NULL,NULL,0,30433056,15445224,38),(5330,NULL,NULL,0,30432811,15444529,38),(5331,NULL,NULL,0,30432078,15444606,38),(5332,NULL,NULL,0,30431377,15444143,38),(5333,NULL,NULL,0,30431605,15444761,38),(5334,NULL,NULL,0,30431605,15444761,38),(5335,NULL,NULL,0,30430284,15448160,39),(5336,NULL,NULL,0,30430937,15450039,39),(5337,NULL,NULL,0,30431882,15449344,39),(5338,NULL,NULL,0,30431197,15447439,39),(5339,NULL,NULL,0,30431197,15447439,39),(5340,NULL,NULL,0,30431475,15451584,40),(5341,NULL,NULL,0,30432013,15453361,40),(5342,NULL,NULL,0,30433056,15452589,40),(5343,NULL,NULL,0,30432436,15450863,40),(5344,NULL,NULL,0,30432176,15451044,40),(5345,NULL,NULL,0,30429437,15451430,41),(5346,NULL,NULL,0,30430121,15450889,41),(5347,NULL,NULL,0,30429795,15449988,41),(5348,NULL,NULL,0,30429127,15450503,41),(5349,NULL,NULL,0,30429127,15450503,41),(5350,NULL,NULL,0,30428833,15449602,42),(5351,NULL,NULL,0,30428475,15448469,42),(5352,NULL,NULL,0,30428442,15448288,42),(5353,NULL,NULL,0,30428426,15448057,42),(5354,NULL,NULL,0,30428507,15447799,42),(5355,NULL,NULL,0,30428785,15447413,42),(5356,NULL,NULL,0,30429045,15447053,42),(5357,NULL,NULL,0,30429274,15446847,42),(5358,NULL,NULL,0,30429502,15447439,42),(5359,NULL,NULL,0,30429013,15447851,42),(5360,NULL,NULL,0,30429453,15449112,42),(5361,NULL,NULL,0,30429208,15449318,42),(5362,NULL,NULL,0,30428964,15453490,43),(5363,NULL,NULL,0,30428491,15451971,43),(5364,NULL,NULL,0,30429355,15451301,43),(5365,NULL,NULL,0,30429812,15452846,43),(5366,NULL,NULL,0,30429812,15452846,43),(5367,NULL,NULL,0,30427741,15449730,44),(5368,NULL,NULL,0,30428393,15449215,44),(5369,NULL,NULL,0,30428132,15448494,44),(5370,NULL,NULL,0,30427953,15448391,44),(5371,NULL,NULL,0,30427708,15448546,44),(5372,NULL,NULL,0,30427448,15448726,44),(5373,NULL,NULL,0,30427464,15448726,44),(5374,NULL,NULL,0,30427431,15452125,45),(5375,NULL,NULL,0,30428312,15451430,45),(5376,NULL,NULL,0,30428116,15450760,45),(5377,NULL,NULL,0,30427236,15451456,45),(5378,NULL,NULL,0,30427317,15451739,45),(5379,NULL,NULL,0,30429719,15431880,7),(5380,NULL,NULL,0,30429593,15432479,7),(5381,NULL,NULL,0,30429503,15433122,7),(5382,NULL,NULL,0,30429389,15433496,7),(5383,NULL,NULL,0,30429095,15434229,7),(5384,NULL,NULL,0,30428924,15434732,7),(5385,NULL,NULL,0,30428753,15435182,7),(5386,NULL,NULL,0,30428687,15435620,7),(5387,NULL,NULL,0,30428711,15435864,7),(5388,NULL,NULL,0,30428711,15436046,7),(5389,NULL,NULL,0,30428663,15436199,7),(5390,NULL,NULL,0,30428589,15436251,7),(5391,NULL,NULL,0,30428464,15436109,7),(5392,NULL,NULL,0,30428381,15436097,7),(5393,NULL,NULL,0,30428051,15436920,7),(5394,NULL,NULL,0,30428264,15437010,7),(5395,NULL,NULL,0,30428442,15437229,7),(5396,NULL,NULL,0,30428525,15437384,7),(5397,NULL,NULL,0,30427941,15438485,7),(5398,NULL,NULL,0,30427537,15438092,7),(5399,NULL,NULL,0,30427333,15438658,7),(5400,NULL,NULL,0,30427488,15438787,7),(5401,NULL,NULL,0,30427187,15439534,7),(5402,NULL,NULL,0,30429217,15441439,7),(5403,NULL,NULL,0,30429592,15441568,7),(5404,NULL,NULL,0,30430309,15442122,7),(5405,NULL,NULL,0,30430366,15442276,7),(5406,NULL,NULL,0,30430472,15442096,7),(5407,NULL,NULL,0,30430847,15439650,7),(5408,NULL,NULL,0,30431100,15438389,7),(5409,NULL,NULL,0,30431100,15438092,7),(5410,NULL,NULL,0,30431124,15437810,7),(5411,NULL,NULL,0,30431108,15437423,7),(5412,NULL,NULL,0,30431100,15437049,7),(5413,NULL,NULL,0,30430946,15436754,7),(5414,NULL,NULL,0,30430863,15436574,7),(5415,NULL,NULL,0,30430766,15436238,7),(5416,NULL,NULL,0,30430685,15435839,7),(5417,NULL,NULL,0,30430700,15435459,7),(5418,NULL,NULL,0,30430712,15435086,7),(5419,NULL,NULL,0,30430806,15434693,7),(5420,NULL,NULL,0,30430928,15434255,7),(5421,NULL,NULL,0,30431141,15433805,7),(5422,NULL,NULL,0,30431303,15433470,7),(5423,NULL,NULL,0,30431609,15432845,7),(5424,NULL,NULL,0,30431625,15432718,7),(5425,NULL,NULL,0,30430718,15432285,7),(5426,NULL,NULL,0,30430457,15432144,7),(5440,NULL,NULL,0,30439250,15469866,47),(5441,NULL,NULL,0,30439902,15469364,47),(5442,NULL,NULL,0,30439413,15467793,47),(5443,NULL,NULL,0,30439062,15469055,47),(5444,NULL,NULL,0,30439119,15469441,47),(5445,NULL,NULL,0,30397994,15488444,48),(5446,NULL,NULL,0,30398655,15490363,48),(5447,NULL,NULL,0,30398998,15490092,48),(5448,NULL,NULL,0,30399438,15489745,48),(5449,NULL,NULL,0,30400083,15491637,48),(5450,NULL,NULL,0,30400385,15491418,48),(5451,NULL,NULL,0,30400622,15491225,48),(5452,NULL,NULL,0,30399936,15489371,48),(5453,NULL,NULL,0,30400108,15489294,48),(5454,NULL,NULL,0,30400246,15489243,48),(5455,NULL,NULL,0,30400332,15489127,48),(5456,NULL,NULL,0,30400577,15488927,48),(5457,NULL,NULL,0,30401246,15490697,48),(5458,NULL,NULL,0,30400654,15491219,48),(5459,NULL,NULL,0,30400671,15491251,48),(5460,NULL,NULL,0,30401536,15490485,48),(5461,NULL,NULL,0,30402103,15491959,48),(5462,NULL,NULL,0,30400736,15492963,48),(5463,NULL,NULL,0,30399128,15494264,48),(5464,NULL,NULL,0,30398639,15492809,48),(5465,NULL,NULL,0,30398622,15492757,48),(5466,NULL,NULL,0,30397888,15493337,48),(5467,NULL,NULL,0,30398606,15495467,48),(5468,NULL,NULL,0,30397092,15496697,48),(5469,NULL,NULL,0,30396272,15497373,48),(5470,NULL,NULL,0,30393697,15499452,48),(5471,NULL,NULL,0,30392930,15500070,48),(5472,NULL,NULL,0,30391518,15498293,48),(5473,NULL,NULL,0,30391048,15497708,48),(5474,NULL,NULL,0,30389305,15495551,48),(5475,NULL,NULL,0,30390073,15494785,48),(5476,NULL,NULL,0,30390407,15494463,48),(5477,NULL,NULL,0,30392166,15493041,48),(5478,NULL,NULL,0,30393003,15492378,48),(5479,NULL,NULL,0,30394713,15491084,48),(5480,NULL,NULL,0,30395497,15490472,48),(5481,NULL,NULL,0,30396043,15490041,48),(5482,NULL,NULL,0,30396745,15492023,48),(5483,NULL,NULL,0,30397055,15491753,48),(5484,NULL,NULL,0,30396378,15489796,48),(5485,NULL,NULL,0,30396966,15489281,48),(5486,NULL,NULL,0,30397643,15491303,48),(5487,NULL,NULL,0,30397876,15491097,48),(5488,NULL,NULL,0,30397194,15489088,48),(5489,NULL,NULL,0,30397194,15489088,48),(5534,NULL,NULL,0,30382500,15499581,50),(5535,NULL,NULL,0,30382423,15499671,50),(5536,NULL,NULL,0,30382321,15499684,50),(5537,NULL,NULL,0,30382166,15499497,50),(5538,NULL,NULL,0,30381970,15499285,50),(5539,NULL,NULL,0,30381782,15499130,50),(5540,NULL,NULL,0,30381639,15499040,50),(5541,NULL,NULL,0,30381504,15498899,50),(5542,NULL,NULL,0,30381402,15498641,50),(5543,NULL,NULL,0,30381280,15498100,50),(5544,NULL,NULL,0,30381165,15497585,50),(5545,NULL,NULL,0,30381031,15497000,50),(5546,NULL,NULL,0,30380928,15496555,50),(5547,NULL,NULL,0,30380818,15495989,50),(5548,NULL,NULL,0,30380720,15495390,50),(5549,NULL,NULL,0,30380679,15495107,50),(5550,NULL,NULL,0,30380606,15494759,50),(5551,NULL,NULL,0,30380553,15494547,50),(5552,NULL,NULL,0,30380459,15494141,50),(5553,NULL,NULL,0,30380267,15493382,50),(5554,NULL,NULL,0,30380055,15492538,50),(5555,NULL,NULL,0,30379891,15491933,50),(5556,NULL,NULL,0,30379802,15491566,50),(5557,NULL,NULL,0,30379785,15491341,50),(5558,NULL,NULL,0,30379806,15491225,50),(5559,NULL,NULL,0,30380136,15490994,50),(5560,NULL,NULL,0,30380549,15490665,50),(5561,NULL,NULL,0,30381178,15490221,50),(5562,NULL,NULL,0,30381349,15490092,50),(5563,NULL,NULL,0,30382023,15489655,50),(5564,NULL,NULL,0,30382231,15489494,50),(5565,NULL,NULL,0,30382496,15489346,50),(5566,NULL,NULL,0,30382692,15489294,50),(5567,NULL,NULL,0,30382851,15489326,50),(5568,NULL,NULL,0,30383868,15489487,50),(5569,NULL,NULL,0,30384313,15489603,50),(5570,NULL,NULL,0,30384566,15489693,50),(5571,NULL,NULL,0,30384999,15489873,50),(5572,NULL,NULL,0,30385399,15490067,50),(5573,NULL,NULL,0,30385754,15490215,50),(5574,NULL,NULL,0,30385995,15490318,50),(5575,NULL,NULL,0,30386093,15490363,50),(5576,NULL,NULL,0,30386170,15490356,50),(5577,NULL,NULL,0,30386289,15490318,50),(5578,NULL,NULL,0,30386399,15490247,50),(5579,NULL,NULL,0,30386546,15490131,50),(5580,NULL,NULL,0,30386607,15490092,50),(5581,NULL,NULL,0,30386652,15490112,50),(5582,NULL,NULL,0,30386815,15490588,50),(5583,NULL,NULL,0,30387505,15492519,50),(5584,NULL,NULL,0,30387897,15493665,50),(5585,NULL,NULL,0,30387975,15493832,50),(5586,NULL,NULL,0,30388020,15493955,50),(5587,NULL,NULL,0,30388060,15494103,50),(5588,NULL,NULL,0,30387922,15494148,50),(5589,NULL,NULL,0,30387681,15494231,50),(5590,NULL,NULL,0,30387477,15494296,50),(5591,NULL,NULL,0,30387203,15494450,50),(5592,NULL,NULL,0,30386877,15494605,50),(5593,NULL,NULL,0,30385305,15495397,50),(5594,NULL,NULL,0,30384991,15495609,50),(5595,NULL,NULL,0,30384787,15495841,50),(5596,NULL,NULL,0,30384019,15497096,50),(5597,NULL,NULL,0,30383158,15498519,50),(5598,NULL,NULL,0,30382835,15499085,50),(5599,NULL,NULL,0,30382835,15499085,50),(5600,NULL,NULL,0,30420362,15505774,51),(5601,NULL,NULL,0,30420366,15505774,51),(5602,NULL,NULL,0,30420040,15505645,51),(5603,NULL,NULL,0,30419755,15505542,51),(5604,NULL,NULL,0,30419579,15505529,51),(5605,NULL,NULL,0,30419229,15505671,51),(5606,NULL,NULL,0,30418560,15505992,51),(5607,NULL,NULL,0,30418059,15506224,51),(5608,NULL,NULL,0,30417088,15506701,51),(5609,NULL,NULL,0,30416998,15506720,51),(5610,NULL,NULL,0,30416962,15506720,51),(5611,NULL,NULL,0,30416766,15505374,51),(5612,NULL,NULL,0,30416725,15505143,51),(5613,NULL,NULL,0,30416570,15504505,51),(5614,NULL,NULL,0,30416562,15504383,51),(5615,NULL,NULL,0,30416591,15504254,51),(5616,NULL,NULL,0,30416925,15504119,51),(5617,NULL,NULL,0,30417280,15503952,51),(5618,NULL,NULL,0,30417598,15503804,51),(5619,NULL,NULL,0,30417944,15503701,51),(5620,NULL,NULL,0,30417993,15503836,51),(5621,NULL,NULL,0,30417977,15504126,51),(5622,NULL,NULL,0,30417940,15504415,51),(5623,NULL,NULL,0,30418001,15504686,51),(5624,NULL,NULL,0,30418124,15504847,51),(5625,NULL,NULL,0,30418364,15504879,51),(5626,NULL,NULL,0,30418768,15504802,51),(5627,NULL,NULL,0,30418988,15504737,51),(5628,NULL,NULL,0,30419335,15504583,51),(5629,NULL,NULL,0,30419526,15504518,51),(5630,NULL,NULL,0,30419669,15504589,51),(5631,NULL,NULL,0,30419897,15504859,51),(5632,NULL,NULL,0,30420065,15505130,51),(5633,NULL,NULL,0,30420101,15505175,51),(5665,NULL,NULL,0,30424317,15452769,56),(5666,NULL,NULL,0,30424659,15454520,56),(5667,NULL,NULL,0,30424953,15455833,56),(5668,NULL,NULL,0,30425116,15456528,56),(5669,NULL,NULL,0,30425638,15457558,56),(5670,NULL,NULL,0,30424219,15459567,56),(5671,NULL,NULL,0,30424301,15459155,56),(5672,NULL,NULL,0,30423697,15456837,56),(5673,NULL,NULL,0,30424089,15454185,56),(5674,NULL,NULL,0,30424089,15454185,56),(5675,NULL,NULL,0,30420746,15456528,57),(5676,NULL,NULL,0,30421398,15456271,57),(5677,NULL,NULL,0,30421838,15456399,57),(5678,NULL,NULL,0,30422050,15456708,57),(5679,NULL,NULL,0,30422148,15457352,57),(5680,NULL,NULL,0,30421920,15458073,57),(5681,NULL,NULL,0,30421757,15458202,57),(5682,NULL,NULL,0,30421235,15457970,57),(5683,NULL,NULL,0,30420974,15458073,57),(5684,NULL,NULL,0,30420958,15458253,57),(5685,NULL,NULL,0,30421479,15458871,57),(5686,NULL,NULL,0,30421545,15458743,57),(5687,NULL,NULL,0,30422621,15459670,57),(5688,NULL,NULL,0,30424089,15458537,57),(5689,NULL,NULL,0,30423648,15456837,57),(5690,NULL,NULL,0,30424007,15454056,57),(5691,NULL,NULL,0,30424170,15453387,57),(5692,NULL,NULL,0,30424235,15452614,57),(5693,NULL,NULL,0,30424040,15452022,57),(5694,NULL,NULL,0,30423714,15451533,57),(5695,NULL,NULL,0,30423648,15451610,57),(5696,NULL,NULL,0,30423599,15451584,57),(5697,NULL,NULL,0,30422931,15453181,57),(5698,NULL,NULL,0,30422246,15453593,57),(5699,NULL,NULL,0,30421626,15455061,57),(5700,NULL,NULL,0,30421104,15455962,57),(5701,NULL,NULL,0,30421104,15455962,57),(5702,NULL,NULL,0,30408479,15503727,49),(5703,NULL,NULL,0,30409482,15503057,49),(5704,NULL,NULL,0,30410127,15502607,49),(5705,NULL,NULL,0,30409760,15500772,49),(5706,NULL,NULL,0,30410189,15500489,49),(5707,NULL,NULL,0,30410714,15500057,49),(5708,NULL,NULL,0,30411146,15499736,49),(5709,NULL,NULL,0,30411164,15499736,49),(5710,NULL,NULL,0,30411444,15500675,49),(5711,NULL,NULL,0,30412060,15503044,49),(5712,NULL,NULL,0,30413039,15502310,49),(5713,NULL,NULL,0,30412924,15499710,49),(5714,NULL,NULL,0,30413014,15499568,49),(5715,NULL,NULL,0,30413781,15498989,49),(5716,NULL,NULL,0,30414181,15498667,49),(5717,NULL,NULL,0,30414841,15499195,49),(5718,NULL,NULL,0,30415257,15499851,49),(5719,NULL,NULL,0,30415510,15500366,49),(5720,NULL,NULL,0,30415901,15502323,49),(5721,NULL,NULL,0,30416171,15503147,49),(5722,NULL,NULL,0,30416277,15503456,49),(5723,NULL,NULL,0,30416244,15504011,49),(5724,NULL,NULL,0,30416154,15504563,49),(5725,NULL,NULL,0,30415983,15505310,49),(5726,NULL,NULL,0,30415919,15505902,49),(5727,NULL,NULL,0,30415862,15506393,49),(5728,NULL,NULL,0,30415820,15506649,49),(5729,NULL,NULL,0,30415428,15506855,49),(5730,NULL,NULL,0,30415029,15506855,49),(5731,NULL,NULL,0,30414548,15506507,49),(5732,NULL,NULL,0,30414182,15506256,49),(5733,NULL,NULL,0,30413744,15505947,49),(5734,NULL,NULL,0,30413006,15505503,49),(5735,NULL,NULL,0,30412488,15505787,49),(5736,NULL,NULL,0,30412178,15506018,49),(5737,NULL,NULL,0,30412085,15506186,49),(5738,NULL,NULL,0,30411823,15507280,49),(5739,NULL,NULL,0,30411746,15507879,49),(5740,NULL,NULL,0,30411530,15509481,49),(5741,NULL,NULL,0,30410155,15510357,49),(5742,NULL,NULL,0,30409751,15510647,49),(5743,NULL,NULL,0,30409694,15510550,49),(5744,NULL,NULL,0,30408920,15506018,49),(5745,NULL,NULL,0,30408927,15506031,49),(5759,NULL,NULL,0,30454712,15465476,59),(5760,NULL,NULL,0,30455494,15467948,59),(5761,NULL,NULL,0,30455795,15467716,59),(5762,NULL,NULL,0,30456113,15469132,59),(5763,NULL,NULL,0,30455413,15469647,59),(5764,NULL,NULL,0,30455225,15469467,59),(5765,NULL,NULL,0,30454908,15468527,59),(5766,NULL,NULL,0,30454908,15468527,59),(5767,NULL,NULL,0,30454574,15467266,59),(5768,NULL,NULL,0,30454338,15466545,59),(5769,NULL,NULL,0,30454704,15466184,59),(5770,NULL,NULL,0,30454541,15465618,59),(5771,NULL,NULL,0,30454598,15465579,59),(5838,NULL,NULL,0,30401307,15477771,60),(5839,NULL,NULL,0,30400960,15478396,60),(5840,NULL,NULL,0,30401813,15479619,60),(5841,NULL,NULL,0,30401662,15479870,60),(5842,NULL,NULL,0,30400813,15478608,60),(5843,NULL,NULL,0,30400556,15478994,60),(5844,NULL,NULL,0,30401413,15480295,60),(5845,NULL,NULL,0,30401238,15480572,60),(5846,NULL,NULL,0,30400385,15479310,60),(5847,NULL,NULL,0,30399977,15479934,60),(5848,NULL,NULL,0,30399528,15479316,60),(5849,NULL,NULL,0,30399414,15479535,60),(5850,NULL,NULL,0,30399839,15480167,60),(5851,NULL,NULL,0,30399359,15480926,60),(5852,NULL,NULL,0,30398541,15479831,60),(5853,NULL,NULL,0,30398819,15479420,60),(5854,NULL,NULL,0,30398582,15479123,60),(5855,NULL,NULL,0,30398451,15479316,60),(5856,NULL,NULL,0,30398157,15478943,60),(5857,NULL,NULL,0,30397643,15479702,60),(5858,NULL,NULL,0,30397415,15479510,60),(5859,NULL,NULL,0,30396869,15478827,60),(5860,NULL,NULL,0,30396549,15478376,60),(5861,NULL,NULL,0,30396884,15478029,60),(5862,NULL,NULL,0,30397586,15477462,60),(5863,NULL,NULL,0,30398337,15476948,60),(5864,NULL,NULL,0,30398826,15476445,60),(5865,NULL,NULL,0,30399308,15476085,60),(5866,NULL,NULL,0,30399675,15475802,60),(5867,NULL,NULL,0,30399855,15475737,60),(5868,NULL,NULL,0,30400197,15476240,60),(5869,NULL,NULL,0,30400932,15477269,60),(5870,NULL,NULL,0,30400997,15477386,60),(5876,NULL,NULL,0,30419685,15488380,62),(5877,NULL,NULL,0,30419808,15488547,62),(5878,NULL,NULL,0,30419816,15488934,62),(5879,NULL,NULL,0,30419840,15489243,62),(5880,NULL,NULL,0,30420061,15489410,62),(5881,NULL,NULL,0,30420305,15489719,62),(5882,NULL,NULL,0,30420387,15489783,62),(5883,NULL,NULL,0,30421121,15488200,62),(5884,NULL,NULL,0,30421243,15488341,62),(5885,NULL,NULL,0,30421781,15487337,62),(5886,NULL,NULL,0,30420990,15486423,62),(5887,NULL,NULL,0,30420558,15487427,62),(5888,NULL,NULL,0,30420493,15487543,62),(5889,NULL,NULL,0,30420199,15487247,62),(5890,NULL,NULL,0,30420199,15487247,62),(5926,NULL,NULL,0,30458076,15472068,65),(5927,NULL,NULL,0,30457921,15471411,65),(5928,NULL,NULL,0,30457872,15471038,65),(5929,NULL,NULL,0,30457913,15470536,65),(5930,NULL,NULL,0,30458255,15470317,65),(5931,NULL,NULL,0,30458784,15470085,65),(5932,NULL,NULL,0,30458931,15470356,65),(5933,NULL,NULL,0,30459452,15470317,65),(5934,NULL,NULL,0,30459566,15470858,65),(5935,NULL,NULL,0,30459607,15471154,65),(5936,NULL,NULL,0,30459590,15471231,65),(5937,NULL,NULL,0,30459493,15471347,65),(5938,NULL,NULL,0,30459281,15471411,65),(5939,NULL,NULL,0,30459053,15471437,65),(5940,NULL,NULL,0,30458971,15471488,65),(5941,NULL,NULL,0,30458906,15471669,65),(5942,NULL,NULL,0,30458344,15472042,65),(5943,NULL,NULL,0,30458125,15472171,65),(5944,NULL,NULL,0,30458125,15472184,65),(5945,NULL,NULL,0,30396623,15481338,66),(5946,NULL,NULL,0,30395897,15478891,66),(5947,NULL,NULL,0,30394795,15479741,66),(5948,NULL,NULL,0,30395521,15482123,66),(5949,NULL,NULL,0,30394876,15482638,66),(5950,NULL,NULL,0,30394150,15480153,66),(5951,NULL,NULL,0,30391175,15482606,66),(5952,NULL,NULL,0,30389175,15484138,66),(5953,NULL,NULL,0,30384856,15487511,66),(5954,NULL,NULL,0,30383599,15488515,66),(5955,NULL,NULL,0,30383227,15488837,66),(5956,NULL,NULL,0,30383039,15489056,66),(5957,NULL,NULL,0,30382941,15489146,66),(5958,NULL,NULL,0,30382725,15489210,66),(5959,NULL,NULL,0,30382704,15489268,66),(5960,NULL,NULL,0,30383215,15489358,66),(5961,NULL,NULL,0,30384284,15489616,66),(5962,NULL,NULL,0,30385293,15489983,66),(5963,NULL,NULL,0,30386032,15490363,66),(5964,NULL,NULL,0,30386203,15490318,66),(5965,NULL,NULL,0,30386652,15490015,66),(5966,NULL,NULL,0,30389028,15488013,66),(5967,NULL,NULL,0,30390024,15487260,66),(5968,NULL,NULL,0,30390979,15486513,66),(5969,NULL,NULL,0,30391101,15486429,66),(5970,NULL,NULL,0,30393742,15484337,66),(5971,NULL,NULL,0,30393554,15483668,66),(5972,NULL,NULL,0,30394991,15482574,66),(5973,NULL,NULL,0,30394999,15482561,66),(6073,NULL,NULL,0,30413724,15443911,70),(6074,NULL,NULL,0,30413169,15445121,70),(6075,NULL,NULL,0,30411546,15443126,70),(6076,NULL,NULL,0,30412068,15441864,70),(6077,NULL,NULL,0,30412068,15441877,70),(6078,NULL,NULL,0,30410518,15452292,71),(6079,NULL,NULL,0,30411318,15453104,71),(6080,NULL,NULL,0,30411130,15453863,71),(6081,NULL,NULL,0,30411040,15454507,71),(6082,NULL,NULL,0,30410959,15454687,71),(6083,NULL,NULL,0,30409906,15453670,71),(6084,NULL,NULL,0,30409906,15453670,71),(6085,NULL,NULL,0,30425059,15458601,72),(6086,NULL,NULL,0,30425801,15459966,72),(6087,NULL,NULL,0,30425532,15460558,72),(6088,NULL,NULL,0,30426111,15461639,72),(6089,NULL,NULL,0,30427574,15464504,72),(6090,NULL,NULL,0,30427896,15464176,72),(6091,NULL,NULL,0,30428059,15463931,72),(6092,NULL,NULL,0,30427725,15463287,72),(6093,NULL,NULL,0,30427643,15462824,72),(6094,NULL,NULL,0,30427570,15462476,72),(6095,NULL,NULL,0,30427570,15462283,72),(6096,NULL,NULL,0,30427448,15462039,72),(6097,NULL,NULL,0,30427570,15461807,72),(6098,NULL,NULL,0,30427651,15461562,72),(6099,NULL,NULL,0,30427660,15461305,72),(6100,NULL,NULL,0,30427627,15460996,72),(6101,NULL,NULL,0,30427578,15460712,72),(6102,NULL,NULL,0,30427366,15460391,72),(6103,NULL,NULL,0,30427064,15459811,72),(6104,NULL,NULL,0,30426869,15459451,72),(6105,NULL,NULL,0,30426804,15459438,72),(6106,NULL,NULL,0,30426665,15459502,72),(6107,NULL,NULL,0,30426502,15459682,72),(6108,NULL,NULL,0,30426420,15459567,72),(6109,NULL,NULL,0,30426453,15459283,72),(6110,NULL,NULL,0,30426502,15458781,72),(6111,NULL,NULL,0,30426274,15458421,72),(6112,NULL,NULL,0,30425984,15457964,72),(6113,NULL,NULL,0,30425764,15457610,72),(6114,NULL,NULL,0,30425764,15457610,72),(6115,NULL,NULL,0,30419473,15505683,19),(6116,NULL,NULL,0,30416994,15506816,19),(6117,NULL,NULL,0,30417369,15509186,19),(6118,NULL,NULL,0,30417689,15511181,19),(6119,NULL,NULL,0,30417884,15512391,19),(6120,NULL,NULL,0,30418162,15514181,19),(6121,NULL,NULL,0,30417761,15514515,19),(6122,NULL,NULL,0,30417182,15514670,19),(6123,NULL,NULL,0,30416741,15514760,19),(6124,NULL,NULL,0,30416505,15514818,19),(6125,NULL,NULL,0,30416379,15514832,19),(6126,NULL,NULL,0,30416309,15514902,19),(6127,NULL,NULL,0,30416370,15515417,19),(6128,NULL,NULL,0,30416517,15516447,19),(6129,NULL,NULL,0,30416738,15517967,19),(6130,NULL,NULL,0,30416880,15519164,19),(6131,NULL,NULL,0,30417008,15519041,19),(6132,NULL,NULL,0,30417269,15518765,19),(6133,NULL,NULL,0,30417497,15518585,19),(6134,NULL,NULL,0,30417981,15518192,19),(6135,NULL,NULL,0,30418503,15517793,19),(6136,NULL,NULL,0,30418854,15517515,19),(6137,NULL,NULL,0,30419208,15517245,19),(6138,NULL,NULL,0,30419429,15517110,19),(6139,NULL,NULL,0,30419540,15517007,19),(6140,NULL,NULL,0,30419645,15516917,19),(6141,NULL,NULL,0,30419694,15516827,19),(6142,NULL,NULL,0,30419726,15516627,19),(6143,NULL,NULL,0,30419808,15516434,19),(6144,NULL,NULL,0,30419870,15516254,19),(6145,NULL,NULL,0,30419918,15516164,19),(6146,NULL,NULL,0,30419987,15516002,19),(6147,NULL,NULL,0,30420074,15515900,19),(6148,NULL,NULL,0,30420155,15515765,19),(6149,NULL,NULL,0,30420252,15515603,19),(6150,NULL,NULL,0,30420338,15515468,19),(6151,NULL,NULL,0,30420423,15515262,19),(6152,NULL,NULL,0,30420464,15515127,19),(6153,NULL,NULL,0,30420456,15514883,19),(6154,NULL,NULL,0,30420392,15514433,19),(6155,NULL,NULL,0,30420305,15513815,19),(6156,NULL,NULL,0,30420281,15513506,19),(6157,NULL,NULL,0,30420257,15513242,19),(6158,NULL,NULL,0,30420224,15513029,19),(6159,NULL,NULL,0,30420191,15512945,19),(6160,NULL,NULL,0,30420171,15512765,19),(6161,NULL,NULL,0,30420164,15512630,19),(6162,NULL,NULL,0,30420146,15512468,19),(6163,NULL,NULL,0,30420101,15512147,19),(6164,NULL,NULL,0,30420036,15511670,19),(6165,NULL,NULL,0,30419955,15510815,19),(6166,NULL,NULL,0,30419882,15510242,19),(6167,NULL,NULL,0,30419849,15509837,19),(6168,NULL,NULL,0,30419816,15509501,19),(6169,NULL,NULL,0,30419820,15509282,19),(6170,NULL,NULL,0,30419775,15509057,19),(6171,NULL,NULL,0,30419702,15508542,19),(6172,NULL,NULL,0,30419552,15507788,19),(6173,NULL,NULL,0,30419450,15507320,19),(6174,NULL,NULL,0,30419388,15506843,19),(6175,NULL,NULL,0,30419388,15506649,19),(6176,NULL,NULL,0,30419400,15506585,19),(6177,NULL,NULL,0,30408577,15432787,2),(6178,NULL,NULL,0,30407141,15432762,2),(6179,NULL,NULL,0,30405587,15432827,2),(6180,NULL,NULL,0,30405546,15433838,2),(6181,NULL,NULL,0,30402989,15432942,2),(6182,NULL,NULL,0,30403046,15430148,2),(6183,NULL,NULL,0,30403046,15427484,2),(6184,NULL,NULL,0,30402989,15426762,2),(6185,NULL,NULL,0,30402890,15425489,2),(6186,NULL,NULL,0,30402989,15425307,2),(6187,NULL,NULL,0,30403457,15425258,2),(6188,NULL,NULL,0,30404591,15424703,2),(6189,NULL,NULL,0,30405029,15424644,2),(6190,NULL,NULL,0,30405521,15424517,2),(6191,NULL,NULL,0,30405869,15424767,2),(6192,NULL,NULL,0,30406109,15425321,2),(6193,NULL,NULL,0,30406439,15426041,2),(6194,NULL,NULL,0,30406668,15426383,2),(6195,NULL,NULL,0,30406754,15426788,2),(6196,NULL,NULL,0,30406749,15427406,2),(6197,NULL,NULL,0,30406685,15427644,2),(6198,NULL,NULL,0,30406154,15427676,2),(6199,NULL,NULL,0,30405591,15427766,2),(6200,NULL,NULL,0,30405183,15427998,2),(6201,NULL,NULL,0,30404825,15428669,2),(6202,NULL,NULL,0,30404450,15429183,2),(6203,NULL,NULL,0,30404171,15429287,2),(6204,NULL,NULL,0,30403943,15429002,2),(6205,NULL,NULL,0,30403877,15429054,2),(6206,NULL,NULL,0,30404270,15429596,2),(6207,NULL,NULL,0,30404469,15429543,2),(6208,NULL,NULL,0,30404930,15428984,2),(6209,NULL,NULL,0,30405273,15428288,2),(6210,NULL,NULL,0,30405605,15427998,2),(6211,NULL,NULL,0,30406424,15427992,2),(6212,NULL,NULL,0,30406847,15427947,2),(6213,NULL,NULL,0,30407039,15428030,2),(6214,NULL,NULL,0,30407252,15428526,2),(6215,NULL,NULL,0,30407630,15429698,2),(6216,NULL,NULL,0,30408299,15431165,2),(6217,NULL,NULL,0,30408544,15432041,2),(6218,NULL,NULL,0,30407936,15474347,28),(6219,NULL,NULL,0,30407936,15474347,28),(6220,NULL,NULL,0,30408291,15474740,28),(6221,NULL,NULL,0,30408671,15475184,28),(6222,NULL,NULL,0,30408944,15475487,28),(6223,NULL,NULL,0,30409535,15476181,28),(6224,NULL,NULL,0,30409674,15476342,28),(6225,NULL,NULL,0,30410123,15476858,28),(6226,NULL,NULL,0,30411155,15478088,28),(6227,NULL,NULL,0,30411893,15478943,28),(6228,NULL,NULL,0,30412355,15479439,28),(6229,NULL,NULL,0,30412412,15479529,28),(6230,NULL,NULL,0,30412823,15478730,28),(6231,NULL,NULL,0,30413732,15476703,28),(6232,NULL,NULL,0,30413233,15476162,28),(6233,NULL,NULL,0,30413928,15474489,28),(6234,NULL,NULL,0,30413646,15474180,28),(6235,NULL,NULL,0,30413944,15473536,28),(6236,NULL,NULL,0,30413515,15472989,28),(6237,NULL,NULL,0,30413936,15472210,28),(6238,NULL,NULL,0,30413527,15471322,28),(6239,NULL,NULL,0,30412951,15472564,28),(6240,NULL,NULL,0,30412374,15471830,28),(6241,NULL,NULL,0,30412198,15471618,28),(6242,NULL,NULL,0,30412914,15470131,28),(6243,NULL,NULL,0,30411164,15467408,28),(6244,NULL,NULL,0,30410339,15469178,28),(6245,NULL,NULL,0,30409943,15469995,28),(6246,NULL,NULL,0,30409822,15470240,28),(6247,NULL,NULL,0,30409613,15470697,28),(6248,NULL,NULL,0,30409499,15470948,28),(6249,NULL,NULL,0,30408887,15472287,28),(6250,NULL,NULL,0,30408308,15473582,28),(6251,NULL,NULL,0,30408308,15473588,28),(6296,NULL,NULL,0,30400989,15498551,75),(6297,NULL,NULL,0,30402474,15504319,75),(6298,NULL,NULL,0,30403323,15503572,75),(6299,NULL,NULL,0,30402621,15500817,75),(6300,NULL,NULL,0,30403143,15500431,75),(6301,NULL,NULL,0,30403779,15503237,75),(6302,NULL,NULL,0,30405982,15501461,75),(6303,NULL,NULL,0,30405705,15500044,75),(6304,NULL,NULL,0,30406619,15499272,75),(6305,NULL,NULL,0,30407043,15499143,75),(6306,NULL,NULL,0,30407590,15499208,75),(6307,NULL,NULL,0,30408079,15502027,75),(6308,NULL,NULL,0,30408193,15502594,75),(6309,NULL,NULL,0,30406366,15504293,75),(6310,NULL,NULL,0,30402270,15508168,75),(6311,NULL,NULL,0,30401829,15508567,75),(6312,NULL,NULL,0,30401487,15509018,75),(6313,NULL,NULL,0,30401291,15509456,75),(6314,NULL,NULL,0,30401177,15509752,75),(6315,NULL,NULL,0,30401070,15509881,75),(6316,NULL,NULL,0,30396917,15504705,75),(6317,NULL,NULL,0,30396296,15503907,75),(6318,NULL,NULL,0,30395660,15503237,75),(6319,NULL,NULL,0,30395374,15502928,75),(6320,NULL,NULL,0,30396713,15501924,75),(6321,NULL,NULL,0,30396713,15501873,75),(6322,NULL,NULL,0,30397610,15501164,75),(6323,NULL,NULL,0,30400173,15499220,75),(6324,NULL,NULL,0,30400434,15499014,75),(6398,NULL,NULL,0,30400630,15496401,11),(6399,NULL,NULL,0,30400925,15496169,11),(6400,NULL,NULL,0,30401519,15497921,11),(6401,NULL,NULL,0,30398264,15500405,11),(6402,NULL,NULL,0,30397460,15501113,11),(6403,NULL,NULL,0,30396599,15501795,11),(6404,NULL,NULL,0,30395268,15502871,11),(6405,NULL,NULL,0,30392946,15500051,11),(6406,NULL,NULL,0,30395615,15497907,11),(6407,NULL,NULL,0,30399496,15494689,11),(6408,NULL,NULL,0,30399716,15495101,11),(6409,NULL,NULL,0,30400140,15494843,11),(6410,NULL,NULL,0,30436577,15433934,6),(6411,NULL,NULL,0,30436410,15433862,6),(6412,NULL,NULL,0,30436240,15433793,6),(6413,NULL,NULL,0,30436178,15433914,6),(6414,NULL,NULL,0,30436076,15434198,6),(6415,NULL,NULL,0,30435974,15434262,6),(6416,NULL,NULL,0,30435599,15434120,6),(6417,NULL,NULL,0,30435449,15434102,6),(6418,NULL,NULL,0,30435152,15434223,6),(6419,NULL,NULL,0,30435081,15434274,6),(6420,NULL,NULL,0,30434877,15434147,6),(6421,NULL,NULL,0,30434625,15434049,6),(6422,NULL,NULL,0,30433749,15433689,6),(6423,NULL,NULL,0,30433178,15433386,6),(6424,NULL,NULL,0,30431801,15432762,6),(6425,NULL,NULL,0,30431651,15433142,6),(6426,NULL,NULL,0,30431264,15433844,6),(6427,NULL,NULL,0,30430871,15434822,6),(6428,NULL,NULL,0,30430802,15435729,6),(6429,NULL,NULL,0,30430916,15436181,6),(6430,NULL,NULL,0,30431084,15436611,6),(6431,NULL,NULL,0,30431291,15437198,6),(6432,NULL,NULL,0,30431336,15437687,6),(6433,NULL,NULL,0,30431348,15438659,6),(6434,NULL,NULL,0,30431246,15439895,6),(6435,NULL,NULL,0,30431157,15440699,6),(6436,NULL,NULL,0,30431186,15441195,6),(6437,NULL,NULL,0,30430871,15442109,6),(6438,NULL,NULL,0,30436964,15439128,6),(6439,NULL,NULL,0,30436813,15437706,6),(6440,NULL,NULL,0,30435281,15438542,6),(6441,NULL,NULL,0,30435085,15436264,6),(6442,NULL,NULL,0,30436642,15435568,6),(6443,NULL,NULL,0,30436618,15434873,6),(6449,NULL,NULL,0,30407308,15482799,79),(6450,NULL,NULL,0,30407855,15481872,79),(6451,NULL,NULL,0,30408328,15481080,79),(6452,NULL,NULL,0,30408491,15481293,79),(6453,NULL,NULL,0,30408683,15481486,79),(6454,NULL,NULL,0,30408997,15481711,79),(6455,NULL,NULL,0,30409233,15482033,79),(6456,NULL,NULL,0,30409376,15481807,79),(6457,NULL,NULL,0,30409731,15481293,79),(6458,NULL,NULL,0,30409857,15481293,79),(6459,NULL,NULL,0,30409939,15481170,79),(6460,NULL,NULL,0,30410555,15479773,79),(6461,NULL,NULL,0,30411040,15480147,79),(6462,NULL,NULL,0,30411126,15480185,79),(6463,NULL,NULL,0,30411195,15480140,79),(6464,NULL,NULL,0,30411411,15479632,79),(6465,NULL,NULL,0,30411717,15478891,79),(6466,NULL,NULL,0,30410645,15477630,79),(6467,NULL,NULL,0,30410555,15477630,79),(6468,NULL,NULL,0,30410065,15478627,79),(6469,NULL,NULL,0,30409629,15478994,79),(6470,NULL,NULL,0,30409588,15478994,79),(6471,NULL,NULL,0,30409719,15478679,79),(6472,NULL,NULL,0,30410351,15477263,79),(6473,NULL,NULL,0,30408821,15475467,79),(6474,NULL,NULL,0,30408422,15475048,79),(6475,NULL,NULL,0,30407900,15474456,79),(6476,NULL,NULL,0,30407194,15475866,79),(6477,NULL,NULL,0,30407035,15476201,79),(6478,NULL,NULL,0,30406745,15476748,79),(6479,NULL,NULL,0,30406105,15478016,79),(6480,NULL,NULL,0,30405864,15478557,79),(6481,NULL,NULL,0,30405831,15478730,79),(6482,NULL,NULL,0,30405970,15479001,79),(6483,NULL,NULL,0,30406117,15479245,79),(6484,NULL,NULL,0,30406260,15479638,79),(6485,NULL,NULL,0,30406382,15480192,79),(6486,NULL,NULL,0,30406578,15480835,79),(6487,NULL,NULL,0,30406598,15480881,79),(6488,NULL,NULL,0,30407585,15478718,79),(6489,NULL,NULL,0,30407761,15478930,79),(6490,NULL,NULL,0,30406688,15481241,79),(6491,NULL,NULL,0,30406688,15481241,79),(6492,NULL,NULL,0,30405289,15477816,80),(6493,NULL,NULL,0,30405509,15478273,80),(6494,NULL,NULL,0,30405746,15478685,80),(6495,NULL,NULL,0,30405905,15478273,80),(6496,NULL,NULL,0,30406125,15477797,80),(6497,NULL,NULL,0,30406313,15477430,80),(6498,NULL,NULL,0,30406158,15477198,80),(6499,NULL,NULL,0,30405803,15476709,80),(6500,NULL,NULL,0,30405799,15476690,80),(6501,NULL,NULL,0,30405513,15477295,80),(6502,NULL,NULL,0,30405285,15477713,80),(6503,NULL,NULL,0,30405285,15477713,80),(6504,NULL,NULL,0,30408560,15472777,29),(6505,NULL,NULL,0,30407648,15471386,29),(6506,NULL,NULL,0,30407468,15471773,29),(6507,NULL,NULL,0,30408397,15473175,29),(6508,NULL,NULL,0,30408071,15473807,29),(6509,NULL,NULL,0,30407843,15474245,29),(6510,NULL,NULL,0,30407630,15474630,29),(6511,NULL,NULL,0,30407451,15475016,29),(6512,NULL,NULL,0,30407337,15475261,29),(6513,NULL,NULL,0,30407271,15475428,29),(6514,NULL,NULL,0,30407133,15475737,29),(6515,NULL,NULL,0,30407043,15475879,29),(6516,NULL,NULL,0,30406937,15476136,29),(6517,NULL,NULL,0,30406823,15476407,29),(6518,NULL,NULL,0,30405926,15475068,29),(6519,NULL,NULL,0,30405722,15475454,29),(6520,NULL,NULL,0,30405971,15475853,29),(6521,NULL,NULL,0,30406586,15476741,29),(6522,NULL,NULL,0,30406472,15477077,29),(6523,NULL,NULL,0,30405542,15475745,29),(6524,NULL,NULL,0,30405338,15476144,29),(6525,NULL,NULL,0,30404661,15474863,29),(6526,NULL,NULL,0,30404237,15475661,29),(6527,NULL,NULL,0,30403226,15473858,29),(6528,NULL,NULL,0,30405150,15469739,29),(6529,NULL,NULL,0,30406049,15467961,29),(6530,NULL,NULL,0,30406215,15468245,29),(6531,NULL,NULL,0,30406929,15469385,29),(6532,NULL,NULL,0,30407663,15470568,29),(6533,NULL,NULL,0,30408707,15472160,29),(6534,NULL,NULL,0,30408740,15472338,29),(6535,NULL,NULL,0,30409972,15469802,73),(6536,NULL,NULL,0,30411195,15467279,73),(6537,NULL,NULL,0,30410820,15466770,73),(6538,NULL,NULL,0,30409629,15469274,73),(6539,NULL,NULL,0,30409883,15469661,73),(6540,NULL,NULL,0,30409890,15469647,73),(6562,NULL,NULL,0,30407093,15469635,76),(6563,NULL,NULL,0,30408260,15467201,76),(6564,NULL,NULL,0,30408422,15467394,76),(6565,NULL,NULL,0,30408479,15467497,76),(6566,NULL,NULL,0,30407312,15470048,76),(6567,NULL,NULL,0,30407501,15470265,76),(6568,NULL,NULL,0,30408617,15467832,76),(6569,NULL,NULL,0,30408870,15468155,76),(6570,NULL,NULL,0,30407687,15470588,76),(6571,NULL,NULL,0,30407852,15470819,76),(6572,NULL,NULL,0,30408993,15468374,76),(6573,NULL,NULL,0,30409214,15468617,76),(6574,NULL,NULL,0,30410396,15466094,76),(6575,NULL,NULL,0,30408365,15463070,76),(6576,NULL,NULL,0,30407165,15465579,76),(6577,NULL,NULL,0,30407387,15465863,76),(6578,NULL,NULL,0,30406203,15468347,76),(6579,NULL,NULL,0,30406815,15469197,76),(6580,NULL,NULL,0,30406815,15469197,76),(6629,NULL,NULL,0,30416159,15484448,61),(6630,NULL,NULL,0,30417019,15482767,61),(6631,NULL,NULL,0,30418451,15484704,61),(6632,NULL,NULL,0,30417713,15486179,61),(6633,NULL,NULL,0,30417713,15486179,61),(6634,NULL,NULL,0,30418601,15481975,54),(6635,NULL,NULL,0,30419070,15483037,54),(6636,NULL,NULL,0,30419115,15483172,54),(6637,NULL,NULL,0,30419327,15483616,54),(6638,NULL,NULL,0,30418699,15484994,54),(6639,NULL,NULL,0,30417940,15483906,54),(6640,NULL,NULL,0,30417741,15483668,54),(6641,NULL,NULL,0,30416835,15482445,53),(6642,NULL,NULL,0,30417080,15482799,53),(6643,NULL,NULL,0,30418116,15480803,53),(6644,NULL,NULL,0,30417928,15480404,53),(6645,NULL,NULL,0,30417859,15480417,53),(6646,NULL,NULL,0,30417749,15480584,53),(6647,NULL,NULL,0,30416917,15482194,52),(6648,NULL,NULL,0,30416244,15481119,52),(6649,NULL,NULL,0,30416432,15480745,52),(6650,NULL,NULL,0,30417019,15479561,52),(6651,NULL,NULL,0,30417304,15479014,52),(6652,NULL,NULL,0,30417879,15480288,52),(6653,NULL,NULL,0,30417847,15480346,52),(6654,NULL,NULL,0,30415004,15479060,83),(6655,NULL,NULL,0,30415273,15479522,83),(6656,NULL,NULL,0,30416452,15477037,83),(6657,NULL,NULL,0,30416211,15476600,83),(6658,NULL,NULL,0,30416150,15476671,83),(6659,NULL,NULL,0,30415204,15479426,84),(6660,NULL,NULL,0,30413981,15481957,84),(6661,NULL,NULL,0,30415486,15483661,84),(6662,NULL,NULL,0,30415829,15482928,84),(6663,NULL,NULL,0,30416472,15481518,84),(6664,NULL,NULL,0,30416407,15481415,84),(6670,NULL,NULL,0,30415298,15486320,46),(6671,NULL,NULL,0,30416211,15487350,46),(6672,NULL,NULL,0,30415371,15489152,46),(6673,NULL,NULL,0,30416644,15490620,46),(6674,NULL,NULL,0,30416945,15490163,46),(6675,NULL,NULL,0,30416852,15490015,46),(6676,NULL,NULL,0,30416880,15489899,46),(6677,NULL,NULL,0,30417051,15490034,46),(6678,NULL,NULL,0,30417586,15488927,46),(6679,NULL,NULL,0,30418548,15487112,46),(6680,NULL,NULL,0,30416130,15484447,46),(6681,NULL,NULL,0,30415559,15485676,46),(6682,NULL,NULL,0,30415559,15485676,46),(6683,NULL,NULL,0,30401968,15495352,67),(6684,NULL,NULL,0,30401381,15495815,67),(6685,NULL,NULL,0,30401981,15497651,67),(6686,NULL,NULL,0,30402503,15497231,67),(6687,NULL,NULL,0,30402588,15497167,67),(6688,NULL,NULL,0,30421512,15432646,86),(6689,NULL,NULL,0,30421920,15432968,86),(6690,NULL,NULL,0,30421716,15433508,86),(6691,NULL,NULL,0,30422385,15434126,86),(6692,NULL,NULL,0,30421903,15435285,86),(6693,NULL,NULL,0,30422572,15435955,86),(6694,NULL,NULL,0,30422760,15435491,86),(6695,NULL,NULL,0,30423281,15436006,86),(6696,NULL,NULL,0,30423298,15435774,86),(6697,NULL,NULL,0,30423118,15434706,86),(6698,NULL,NULL,0,30422988,15434294,86),(6699,NULL,NULL,0,30422980,15433676,86),(6700,NULL,NULL,0,30422857,15433251,86),(6701,NULL,NULL,0,30422727,15432787,86),(6702,NULL,NULL,0,30422637,15432491,86),(6703,NULL,NULL,0,30422450,15432195,86),(6704,NULL,NULL,0,30422303,15432118,86),(6705,NULL,NULL,0,30421830,15432350,86),(6706,NULL,NULL,0,30421830,15432350,86),(6707,NULL,NULL,0,30423021,15437603,87),(6708,NULL,NULL,0,30422898,15437950,87),(6709,NULL,NULL,0,30421422,15436457,87),(6710,NULL,NULL,0,30421553,15436122,87),(6711,NULL,NULL,0,30421553,15436135,87),(6712,NULL,NULL,0,30421243,15436907,88),(6713,NULL,NULL,0,30422743,15438336,88),(6714,NULL,NULL,0,30422605,15438851,88),(6715,NULL,NULL,0,30421112,15437229,88),(6716,NULL,NULL,0,30421112,15437229,88),(6717,NULL,NULL,0,30421814,15441104,89),(6718,NULL,NULL,0,30422238,15441516,89),(6719,NULL,NULL,0,30421724,15443267,89),(6720,NULL,NULL,0,30422099,15443563,89),(6721,NULL,NULL,0,30422287,15443499,89),(6722,NULL,NULL,0,30423053,15444478,89),(6723,NULL,NULL,0,30423184,15443988,89),(6724,NULL,NULL,0,30423314,15443242,89),(6725,NULL,NULL,0,30423477,15442443,89),(6726,NULL,NULL,0,30423608,15441903,89),(6727,NULL,NULL,0,30423502,15441645,89),(6728,NULL,NULL,0,30423404,15441439,89),(6729,NULL,NULL,0,30423624,15441478,89),(6730,NULL,NULL,0,30423714,15441452,89),(6731,NULL,NULL,0,30423820,15441246,89),(6732,NULL,NULL,0,30423991,15440757,89),(6733,NULL,NULL,0,30424080,15440255,89),(6734,NULL,NULL,0,30424072,15439521,89),(6735,NULL,NULL,0,30424064,15438877,89),(6736,NULL,NULL,0,30423893,15438401,89),(6737,NULL,NULL,0,30423681,15437899,89),(6738,NULL,NULL,0,30423559,15437229,89),(6739,NULL,NULL,0,30423420,15436882,89),(6740,NULL,NULL,0,30422393,15439624,89),(6741,NULL,NULL,0,30422393,15439624,89),(6742,NULL,NULL,0,30418006,15440074,90),(6743,NULL,NULL,0,30418846,15437989,90),(6744,NULL,NULL,0,30419955,15435105,90),(6745,NULL,NULL,0,30418903,15433998,90),(6746,NULL,NULL,0,30419310,15432968,90),(6747,NULL,NULL,0,30420436,15434049,90),(6748,NULL,NULL,0,30421161,15432169,90),(6749,NULL,NULL,0,30422173,15429646,90),(6750,NULL,NULL,0,30422001,15429286,90),(6751,NULL,NULL,0,30421781,15428796,90),(6752,NULL,NULL,0,30421651,15428526,90),(6753,NULL,NULL,0,30421479,15428526,90),(6754,NULL,NULL,0,30421096,15428590,90),(6755,NULL,NULL,0,30420933,15428590,90),(6756,NULL,NULL,0,30420852,15428474,90),(6757,NULL,NULL,0,30420941,15428320,90),(6758,NULL,NULL,0,30421414,15427882,90),(6759,NULL,NULL,0,30420811,15427290,90),(6760,NULL,NULL,0,30420281,15426685,90),(6761,NULL,NULL,0,30418438,15431371,90),(6762,NULL,NULL,0,30417353,15434075,90),(6763,NULL,NULL,0,30417198,15434397,90),(6764,NULL,NULL,0,30418405,15435710,90),(6765,NULL,NULL,0,30417826,15437075,90),(6766,NULL,NULL,0,30416627,15435774,90),(6767,NULL,NULL,0,30416032,15437178,90),(6768,NULL,NULL,0,30416799,15438555,90),(6769,NULL,NULL,0,30417223,15438208,90),(6770,NULL,NULL,0,30417223,15438208,90),(6771,NULL,NULL,0,30427839,15461343,91),(6772,NULL,NULL,0,30427660,15462554,91),(6773,NULL,NULL,0,30427676,15462837,91),(6774,NULL,NULL,0,30428181,15463738,91),(6775,NULL,NULL,0,30428801,15463146,91),(6776,NULL,NULL,0,30428768,15462837,91),(6777,NULL,NULL,0,30427888,15461318,91),(6778,NULL,NULL,0,30427872,15461318,91),(6779,NULL,NULL,0,30419881,15427367,92),(6780,NULL,NULL,0,30417900,15432388,92),(6781,NULL,NULL,0,30416978,15434616,92),(6782,NULL,NULL,0,30415828,15437512,92),(6783,NULL,NULL,0,30415681,15435440,92),(6784,NULL,NULL,0,30415534,15433972,92),(6785,NULL,NULL,0,30415233,15430702,92),(6786,NULL,NULL,0,30415119,15429530,92),(6787,NULL,NULL,0,30415053,15429092,92),(6788,NULL,NULL,0,30414556,15428243,92),(6789,NULL,NULL,0,30414580,15428050,92),(6790,NULL,NULL,0,30415061,15428565,92),(6791,NULL,NULL,0,30415225,15428912,92),(6792,NULL,NULL,0,30415306,15429144,92),(6793,NULL,NULL,0,30415388,15429247,92),(6794,NULL,NULL,0,30415534,15429028,92),(6795,NULL,NULL,0,30415779,15428822,92),(6796,NULL,NULL,0,30416089,15428693,92),(6797,NULL,NULL,0,30416342,15428642,92),(6798,NULL,NULL,0,30416807,15428874,92),(6799,NULL,NULL,0,30416945,15428655,92),(6800,NULL,NULL,0,30416978,15428436,92),(6801,NULL,NULL,0,30416945,15428217,92),(6802,NULL,NULL,0,30416856,15428101,92),(6803,NULL,NULL,0,30416693,15428140,92),(6804,NULL,NULL,0,30416472,15428256,92),(6805,NULL,NULL,0,30416277,15428526,92),(6806,NULL,NULL,0,30415844,15428655,92),(6807,NULL,NULL,0,30415534,15428758,92),(6808,NULL,NULL,0,30415339,15428693,92),(6809,NULL,NULL,0,30415143,15428603,92),(6810,NULL,NULL,0,30414572,15427998,92),(6811,NULL,NULL,0,30414368,15427547,92),(6812,NULL,NULL,0,30414376,15427329,92),(6813,NULL,NULL,0,30414352,15426981,92),(6814,NULL,NULL,0,30414490,15426273,92),(6815,NULL,NULL,0,30414735,15425822,92),(6816,NULL,NULL,0,30415029,15425423,92),(6817,NULL,NULL,0,30415184,15425179,92),(6818,NULL,NULL,0,30415233,15425063,92),(6819,NULL,NULL,0,30415665,15424818,92),(6820,NULL,NULL,0,30415820,15424895,92),(6821,NULL,NULL,0,30415934,15425011,92),(6822,NULL,NULL,0,30415983,15424998,92),(6823,NULL,NULL,0,30415861,15424573,92),(6824,NULL,NULL,0,30415844,15424432,92),(6825,NULL,NULL,0,30415926,15424149,92),(6826,NULL,NULL,0,30416407,15423685,92),(6827,NULL,NULL,0,30416554,15423531,92),(6828,NULL,NULL,0,30416831,15423505,92),(6829,NULL,NULL,0,30417174,15423595,92),(6830,NULL,NULL,0,30417451,15423775,92),(6831,NULL,NULL,0,30418006,15423376,92),(6832,NULL,NULL,0,30418136,15423363,92),(6833,NULL,NULL,0,30418291,15423814,92),(6834,NULL,NULL,0,30418332,15424342,92),(6835,NULL,NULL,0,30418373,15424754,92),(6836,NULL,NULL,0,30418674,15424921,92),(6837,NULL,NULL,0,30418756,15424908,92),(6838,NULL,NULL,0,30419906,15426183,92),(6839,NULL,NULL,0,30420216,15426543,92),(6840,NULL,NULL,0,30420216,15426543,92),(6841,NULL,NULL,0,30436650,15469828,93),(6842,NULL,NULL,0,30437587,15469042,93),(6843,NULL,NULL,0,30437506,15468669,93),(6844,NULL,NULL,0,30438378,15467909,93),(6845,NULL,NULL,0,30437995,15466416,93),(6846,NULL,NULL,0,30437090,15467163,93),(6847,NULL,NULL,0,30437343,15468154,93),(6848,NULL,NULL,0,30436389,15468952,93),(6849,NULL,NULL,0,30436389,15468952,93),(6850,NULL,NULL,0,30434531,15462811,94),(6851,NULL,NULL,0,30434604,15463043,94),(6852,NULL,NULL,0,30433431,15463944,94),(6853,NULL,NULL,0,30433390,15463777,94),(6854,NULL,NULL,0,30433390,15463777,94),(6855,NULL,NULL,0,30434547,15458923,95),(6856,NULL,NULL,0,30433569,15459708,95),(6857,NULL,NULL,0,30433447,15459309,95),(6858,NULL,NULL,0,30433708,15459000,95),(6859,NULL,NULL,0,30433961,15458730,95),(6860,NULL,NULL,0,30434401,15458408,95),(6861,NULL,NULL,0,30434393,15458434,95),(6862,NULL,NULL,0,30435591,15458640,96),(6863,NULL,NULL,0,30435672,15458897,96),(6864,NULL,NULL,0,30434776,15459644,96),(6865,NULL,NULL,0,30434702,15459322,96),(6866,NULL,NULL,0,30434694,15459335,96),(6867,NULL,NULL,0,30439828,15457146,97),(6868,NULL,NULL,0,30441271,15457970,97),(6869,NULL,NULL,0,30441181,15458601,97),(6870,NULL,NULL,0,30439885,15457816,97),(6871,NULL,NULL,0,30439796,15457558,97),(6872,NULL,NULL,0,30439796,15457558,97),(6873,NULL,NULL,0,30444008,15471501,98),(6874,NULL,NULL,0,30442876,15472312,98),(6875,NULL,NULL,0,30443055,15472930,98),(6876,NULL,NULL,0,30444171,15471991,98),(6877,NULL,NULL,0,30444171,15471991,98),(6878,NULL,NULL,0,30442705,15472068,99),(6879,NULL,NULL,0,30443886,15471128,99),(6880,NULL,NULL,0,30443821,15470793,99),(6881,NULL,NULL,0,30442631,15471733,99),(6882,NULL,NULL,0,30442631,15471733,99),(6883,NULL,NULL,0,30445589,15468090,100),(6884,NULL,NULL,0,30445695,15468450,100),(6885,NULL,NULL,0,30443682,15470021,100),(6886,NULL,NULL,0,30443552,15469660,100),(6887,NULL,NULL,0,30443552,15469660,100),(6893,NULL,NULL,0,30441808,15469248,102),(6894,NULL,NULL,0,30441931,15469647,102),(6895,NULL,NULL,0,30440472,15470845,102),(6896,NULL,NULL,0,30440334,15470381,102),(6897,NULL,NULL,0,30440334,15470381,102),(7357,NULL,NULL,0,30447837,15468812,24),(7358,NULL,NULL,0,30447915,15470318,24),(7359,NULL,NULL,0,30448098,15469964,24),(7360,NULL,NULL,0,30448172,15469784,24),(7361,NULL,NULL,0,30448290,15469551,24),(7362,NULL,NULL,0,30448416,15469326,24),(7363,NULL,NULL,0,30448562,15468978,24),(7364,NULL,NULL,0,30448718,15468540,24),(7365,NULL,NULL,0,30448958,15467897,24),(7366,NULL,NULL,0,30449081,15467478,24),(7367,NULL,NULL,0,30449138,15467234,24),(7368,NULL,NULL,0,30449235,15467048,24),(7369,NULL,NULL,0,30449345,15466700,24),(7370,NULL,NULL,0,30449525,15466100,24),(7371,NULL,NULL,0,30448754,15463829,24),(7372,NULL,NULL,0,30448355,15464150,24),(7373,NULL,NULL,0,30448172,15464312,24),(7374,NULL,NULL,0,30448143,15464249,24),(7375,NULL,NULL,0,30447960,15463751,24),(7376,NULL,NULL,0,30449304,15462593,24),(7377,NULL,NULL,0,30449711,15462284,24),(7378,NULL,NULL,0,30448811,15459245,24),(7379,NULL,NULL,0,30448791,15459213,24),(7380,NULL,NULL,0,30446885,15460739,24),(7381,NULL,NULL,0,30446778,15460172,24),(7382,NULL,NULL,0,30448538,15458691,24),(7383,NULL,NULL,0,30447692,15455550,24),(7384,NULL,NULL,0,30447560,15455897,24),(7385,NULL,NULL,0,30447416,15456374,24),(7386,NULL,NULL,0,30447332,15456671,24),(7387,NULL,NULL,0,30447129,15456773,24),(7388,NULL,NULL,0,30446844,15456773,24),(7389,NULL,NULL,0,30446558,15456761,24),(7390,NULL,NULL,0,30446379,15456702,24),(7391,NULL,NULL,0,30446291,15456663,24),(7392,NULL,NULL,0,30446114,15456792,24),(7393,NULL,NULL,0,30445947,15456972,24),(7394,NULL,NULL,0,30445838,15457082,24),(7395,NULL,NULL,0,30445784,15457005,24),(7396,NULL,NULL,0,30445826,15456902,24),(7397,NULL,NULL,0,30446013,15456683,24),(7398,NULL,NULL,0,30446102,15456515,24),(7399,NULL,NULL,0,30446094,15456258,24),(7400,NULL,NULL,0,30446061,15456143,24),(7401,NULL,NULL,0,30446054,15456001,24),(7402,NULL,NULL,0,30446021,15455897,24),(7403,NULL,NULL,0,30446025,15455807,24),(7404,NULL,NULL,0,30445947,15455480,24),(7405,NULL,NULL,0,30445886,15455345,24),(7406,NULL,NULL,0,30445793,15455273,24),(7407,NULL,NULL,0,30445610,15455202,24),(7408,NULL,NULL,0,30445259,15454919,24),(7409,NULL,NULL,0,30444921,15454649,24),(7410,NULL,NULL,0,30444632,15454424,24),(7411,NULL,NULL,0,30444287,15454238,24),(7412,NULL,NULL,0,30443862,15453974,24),(7413,NULL,NULL,0,30443715,15453915,24),(7414,NULL,NULL,0,30443625,15453929,24),(7415,NULL,NULL,0,30443525,15454088,24),(7416,NULL,NULL,0,30443373,15454172,24),(7417,NULL,NULL,0,30443157,15454160,24),(7418,NULL,NULL,0,30443027,15454115,24),(7419,NULL,NULL,0,30442889,15453974,24),(7420,NULL,NULL,0,30442799,15453825,24),(7421,NULL,NULL,0,30442770,15453567,24),(7422,NULL,NULL,0,30442745,15453368,24),(7423,NULL,NULL,0,30442611,15453219,24),(7424,NULL,NULL,0,30442433,15453078,24),(7425,NULL,NULL,0,30442293,15452924,24),(7426,NULL,NULL,0,30442184,15453599,24),(7427,NULL,NULL,0,30442163,15453806,24),(7428,NULL,NULL,0,30442172,15453966,24),(7429,NULL,NULL,0,30442124,15454088,24),(7430,NULL,NULL,0,30442070,15454217,24),(7431,NULL,NULL,0,30441906,15455318,24),(7432,NULL,NULL,0,30441875,15455511,24),(7433,NULL,NULL,0,30441899,15455705,24),(7434,NULL,NULL,0,30441996,15455691,24),(7435,NULL,NULL,0,30442094,15455627,24),(7436,NULL,NULL,0,30442232,15455511,24),(7437,NULL,NULL,0,30442371,15455396,24),(7438,NULL,NULL,0,30442502,15455331,24),(7439,NULL,NULL,0,30443006,15454946,24),(7440,NULL,NULL,0,30443316,15454739,24),(7441,NULL,NULL,0,30443430,15455846,24),(7442,NULL,NULL,0,30441629,15457238,24),(7443,NULL,NULL,0,30441540,15457688,24),(7444,NULL,NULL,0,30441500,15457919,24),(7445,NULL,NULL,0,30441443,15458202,24),(7446,NULL,NULL,0,30441410,15458459,24),(7447,NULL,NULL,0,30441311,15458963,24),(7448,NULL,NULL,0,30441223,15459452,24),(7449,NULL,NULL,0,30441197,15459593,24),(7450,NULL,NULL,0,30441165,15459773,24),(7451,NULL,NULL,0,30441165,15459876,24),(7452,NULL,NULL,0,30441158,15459966,24),(7453,NULL,NULL,0,30441059,15460532,24),(7454,NULL,NULL,0,30440985,15461073,24),(7455,NULL,NULL,0,30440945,15461318,24),(7456,NULL,NULL,0,30441059,15461447,24),(7457,NULL,NULL,0,30441215,15462014,24),(7458,NULL,NULL,0,30441467,15462671,24),(7459,NULL,NULL,0,30441491,15462902,24),(7460,NULL,NULL,0,30441996,15462812,24),(7461,NULL,NULL,0,30442412,15462798,24),(7462,NULL,NULL,0,30442616,15462773,24),(7463,NULL,NULL,0,30442868,15462902,24),(7464,NULL,NULL,0,30443088,15463056,24),(7465,NULL,NULL,0,30443300,15463262,24),(7466,NULL,NULL,0,30443585,15462978,24),(7467,NULL,NULL,0,30443259,15462014,24),(7468,NULL,NULL,0,30443834,15461549,24),(7469,NULL,NULL,0,30444233,15461267,24),(7470,NULL,NULL,0,30444755,15460854,24),(7471,NULL,NULL,0,30445092,15460526,24),(7472,NULL,NULL,0,30445092,15460907,24),(7473,NULL,NULL,0,30445076,15461267,24),(7474,NULL,NULL,0,30445035,15461633,24),(7475,NULL,NULL,0,30445010,15461912,24),(7476,NULL,NULL,0,30444542,15462221,24),(7477,NULL,NULL,0,30443687,15462927,24),(7478,NULL,NULL,0,30443321,15463262,24),(7479,NULL,NULL,0,30443544,15463352,24),(7480,NULL,NULL,0,30443765,15463430,24),(7481,NULL,NULL,0,30443964,15463514,24),(7482,NULL,NULL,0,30444155,15463649,24),(7483,NULL,NULL,0,30444380,15463913,24),(7484,NULL,NULL,0,30444546,15464228,24),(7485,NULL,NULL,0,30444746,15464576,24),(7486,NULL,NULL,0,30444812,15464903,24),(7487,NULL,NULL,0,30444884,15465257,24),(7488,NULL,NULL,0,30444959,15465638,24),(7489,NULL,NULL,0,30445031,15466010,24),(7490,NULL,NULL,0,30445059,15466133,24),(7491,NULL,NULL,0,30445235,15466184,24),(7492,NULL,NULL,0,30445524,15466158,24),(7493,NULL,NULL,0,30445886,15466223,24),(7494,NULL,NULL,0,30446220,15466313,24),(7495,NULL,NULL,0,30446709,15466526,24),(7496,NULL,NULL,0,30446759,15466559,24),(7497,NULL,NULL,0,30446892,15466648,24),(7498,NULL,NULL,0,30446990,15466725,24),(7499,NULL,NULL,0,30447055,15466776,24),(7500,NULL,NULL,0,30447072,15466874,24),(7501,NULL,NULL,0,30447188,15466970,24),(7502,NULL,NULL,0,30447317,15467118,24),(7503,NULL,NULL,0,30447459,15467208,24),(7504,NULL,NULL,0,30447614,15467414,24),(7505,NULL,NULL,0,30447699,15467562,24),(7506,NULL,NULL,0,30447768,15467807,24),(7507,NULL,NULL,0,30447842,15468464,24),(7508,NULL,NULL,0,30447833,15468683,24),(7509,NULL,NULL,0,30447833,15468683,24),(7510,NULL,NULL,0,30440961,15466377,101),(7511,NULL,NULL,0,30441132,15466958,101),(7512,NULL,NULL,0,30442314,15465965,101),(7513,NULL,NULL,0,30442110,15465335,101),(7514,NULL,NULL,0,30442110,15465335,101),(7538,NULL,NULL,0,30409606,15440063,69),(7539,NULL,NULL,0,30409817,15439482,69),(7540,NULL,NULL,0,30409719,15439353,69),(7541,NULL,NULL,0,30410836,15436727,69),(7542,NULL,NULL,0,30410575,15436070,69),(7543,NULL,NULL,0,30409760,15437989,69),(7544,NULL,NULL,0,30409311,15437551,69),(7545,NULL,NULL,0,30410151,15435543,69),(7546,NULL,NULL,0,30409361,15434462,69),(7547,NULL,NULL,0,30409214,15434255,69),(7548,NULL,NULL,0,30408968,15434165,69),(7549,NULL,NULL,0,30408733,15434192,69),(7550,NULL,NULL,0,30408422,15434345,69),(7551,NULL,NULL,0,30408227,15434538,69),(7552,NULL,NULL,0,30407966,15434810,69),(7553,NULL,NULL,0,30407819,15434963,69),(7554,NULL,NULL,0,30407769,15435209,69),(7555,NULL,NULL,0,30407745,15435659,69),(7556,NULL,NULL,0,30407679,15436083,69),(7557,NULL,NULL,0,30407561,15436482,69),(7558,NULL,NULL,0,30407418,15436779,69),(7559,NULL,NULL,0,30407117,15437409,69),(7560,NULL,NULL,0,30407198,15437538,69),(7561,NULL,NULL,0,30426412,15434538,103),(7562,NULL,NULL,0,30427211,15432723,103),(7563,NULL,NULL,0,30427472,15432942,103),(7564,NULL,NULL,0,30427562,15433251,103),(7565,NULL,NULL,0,30427545,15433302,103),(7566,NULL,NULL,0,30426836,15434963,103),(7567,NULL,NULL,0,30426820,15434950,103),(7568,NULL,NULL,0,30426820,15434950,103),(7569,NULL,NULL,0,30444579,15500637,104),(7570,NULL,NULL,0,30444351,15498886,104),(7571,NULL,NULL,0,30445377,15498474,104),(7572,NULL,NULL,0,30445768,15501486,104),(7573,NULL,NULL,0,30445768,15501486,104),(7574,NULL,NULL,0,30449597,15508490,105),(7575,NULL,NULL,0,30449532,15507615,105),(7576,NULL,NULL,0,30451291,15509160,105),(7577,NULL,NULL,0,30451519,15509366,105),(7578,NULL,NULL,0,30452138,15513434,105),(7579,NULL,NULL,0,30450509,15514000,105),(7580,NULL,NULL,0,30449760,15509057,105),(7581,NULL,NULL,0,30449760,15509108,105),(7582,NULL,NULL,0,30408083,15501770,106),(7583,NULL,NULL,0,30409405,15501377,106),(7584,NULL,NULL,0,30409433,15501029,106),(7585,NULL,NULL,0,30408104,15501416,106),(7586,NULL,NULL,0,30408083,15501538,106),(7587,NULL,NULL,0,30408079,15501628,106),(7593,NULL,NULL,0,30414348,15477836,107),(7594,NULL,NULL,0,30414637,15478415,107),(7595,NULL,NULL,0,30415873,15475827,107),(7596,NULL,NULL,0,30415596,15475254,107),(7597,NULL,NULL,0,30415559,15475299,107),(7598,NULL,NULL,0,30412859,15480476,82),(7599,NULL,NULL,0,30413786,15481685,82),(7600,NULL,NULL,0,30415000,15479072,82),(7601,NULL,NULL,0,30414629,15478460,82),(7602,NULL,NULL,0,30414148,15477540,82),(7603,NULL,NULL,0,30402988,15496787,68),(7604,NULL,NULL,0,30402515,15495500,68),(7605,NULL,NULL,0,30402352,15495010,68),(7606,NULL,NULL,0,30401846,15493427,68),(7607,NULL,NULL,0,30403355,15492218,68),(7608,NULL,NULL,0,30403584,15492101,68),(7609,NULL,NULL,0,30403894,15493028,68),(7610,NULL,NULL,0,30404183,15492802,68),(7611,NULL,NULL,0,30403881,15491927,68),(7612,NULL,NULL,0,30404138,15491753,68),(7613,NULL,NULL,0,30404681,15493337,68),(7614,NULL,NULL,0,30405191,15494895,68),(7615,NULL,NULL,0,30404522,15495525,68),(7616,NULL,NULL,0,30404130,15494367,68),(7617,NULL,NULL,0,30403943,15493852,68),(7618,NULL,NULL,0,30403677,15494078,68),(7619,NULL,NULL,0,30404196,15495525,68),(7620,NULL,NULL,0,30404277,15495796,68),(7621,NULL,NULL,0,30401580,15493594,78),(7622,NULL,NULL,0,30402123,15495204,78),(7623,NULL,NULL,0,30401895,15495371,78),(7624,NULL,NULL,0,30401360,15493762,78),(7625,NULL,NULL,0,30401450,15493704,78),(7626,NULL,NULL,0,30411783,15494508,108),(7627,NULL,NULL,0,30411807,15496491,108),(7628,NULL,NULL,0,30411897,15496710,108),(7629,NULL,NULL,0,30412378,15497431,108),(7630,NULL,NULL,0,30412859,15497740,108),(7631,NULL,NULL,0,30413471,15497096,108),(7632,NULL,NULL,0,30414099,15496530,108),(7633,NULL,NULL,0,30414490,15496233,108),(7634,NULL,NULL,0,30414678,15495036,108),(7635,NULL,NULL,0,30413993,15494186,108),(7636,NULL,NULL,0,30413659,15493684,108),(7637,NULL,NULL,0,30413357,15493234,108),(7638,NULL,NULL,0,30412615,15492719,108),(7639,NULL,NULL,0,30412419,15492835,108),(7640,NULL,NULL,0,30412141,15493247,108),(7641,NULL,NULL,0,30411897,15493800,108),(7642,NULL,NULL,0,30411856,15493955,108);

--
-- Table structure for table `relationalgorithms`
--

CREATE TABLE `relationalgorithms` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `AlgorithmID` int(11) NOT NULL DEFAULT '0',
  `SensorID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  UNIQUE KEY `ID` (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `relationalgorithms`
--

INSERT INTO `relationalgorithms` VALUES (2,4,2),(3,5,3),(6,4,6),(7,5,7),(10,4,10),(11,5,11),(14,4,14),(15,5,15),(17,7,17),(18,5,18),(19,27,19),(20,4,20),(22,2,22),(23,7,23),(24,5,24),(25,27,25),(26,4,26),(27,2,27),(31,4,31),(32,2,32),(36,4,36),(37,2,37),(41,4,41),(42,2,42),(43,7,43),(44,7,44),(45,7,45),(48,4,48),(49,2,49),(50,4,50),(51,5,51),(52,7,52),(53,6,53),(54,7,54),(55,5,55),(56,27,56),(57,4,57),(58,2,58),(59,4,59),(60,5,60),(61,7,61),(62,6,62),(63,4,63),(64,5,64),(65,7,65),(66,6,66),(67,7,67),(68,5,68),(69,27,69),(70,4,70),(71,2,71),(72,7,72),(73,5,73),(74,27,74),(75,4,75),(76,2,76),(77,7,77),(78,5,78),(79,27,79),(80,4,80),(81,2,81),(86,4,86),(87,5,87),(88,7,88),(89,4,89),(90,5,90),(91,7,91);

--
-- Table structure for table `report_pass_zones`
--

CREATE TABLE `report_pass_zones` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `ZoneID` int(11) NOT NULL COMMENT 'Идентификатор КЗ',
  PRIMARY KEY (`ID`),
  KEY `IDX_ZoneID` (`ZoneID`) USING BTREE,
  CONSTRAINT `FK_RPZ_Zones` FOREIGN KEY (`ZoneID`) REFERENCES `zones` (`Zone_ID`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=cp1251 COMMENT='Список зон, используемый в отчетах по пассажиропотоку.';

--
-- Dumping data for table `report_pass_zones`
--

INSERT INTO `report_pass_zones` VALUES (1,2),(7,23),(8,24),(2,32),(3,33),(4,34),(5,35),(6,36),(10,46),(9,82);

--
-- Table structure for table `route_items`
--

CREATE TABLE `route_items` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Seq` int(11) DEFAULT NULL,
  `Route_ID` int(11) DEFAULT NULL,
  `Zone_ID` int(11) DEFAULT NULL,
  `Zone_IO` int(11) DEFAULT NULL,
  `GoNext_Min` int(11) DEFAULT NULL,
  `GoNext_Max` int(11) DEFAULT NULL,
  `Link_Item` int(11) DEFAULT NULL,
  `Link_Info` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_items`
--


--
-- Table structure for table `route_list`
--

CREATE TABLE `route_list` (
  `Route_ID` int(11) NOT NULL AUTO_INCREMENT,
  `GIS` blob,
  `Name` varchar(50) DEFAULT NULL,
  `Descr` varchar(200) DEFAULT NULL,
  `Modified` int(11) DEFAULT NULL,
  PRIMARY KEY (`Route_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_list`
--


--
-- Table structure for table `route_lists`
--

CREATE TABLE `route_lists` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Parent` int(11) DEFAULT NULL,
  `Title` varchar(70) DEFAULT NULL,
  `Data` text,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_lists`
--


--
-- Table structure for table `route_mobitel_links`
--

CREATE TABLE `route_mobitel_links` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `List_ID` int(11) DEFAULT NULL,
  `Route_ID` int(11) DEFAULT NULL,
  `Mobitel_ID` int(11) DEFAULT NULL,
  `Time1` int(11) DEFAULT NULL,
  `Time2` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_mobitel_links`
--


--
-- Table structure for table `route_mobitel_plans`
--

CREATE TABLE `route_mobitel_plans` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Title` varchar(70) DEFAULT NULL,
  `Time1` int(11) DEFAULT NULL,
  `Time2` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_mobitel_plans`
--


--
-- Table structure for table `route_points`
--

CREATE TABLE `route_points` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Route_ID` int(11) DEFAULT NULL,
  `Zone_ID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `route_points`
--


--
-- Table structure for table `rt_events`
--

CREATE TABLE `rt_events` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(50) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_events`
--

INSERT INTO `rt_events` VALUES (1,'В\'їзд'),(2,'Виїзд');

--
-- Table structure for table `rt_route`
--

CREATE TABLE `rt_route` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_sample` int(11) NOT NULL COMMENT 'Ссылка на шаблон маршрута ',
  `Id_mobitel` int(11) NOT NULL DEFAULT '0' COMMENT 'Транспортное средство ',
  `Id_driver` int(11) NOT NULL DEFAULT '0' COMMENT 'Водитель',
  `TimeStartPlan` datetime DEFAULT NULL COMMENT 'План время начала маршрута',
  `Distance` double NOT NULL DEFAULT '0' COMMENT 'Общий путь, км',
  `TimePlanTotal` varchar(20) DEFAULT NULL COMMENT 'Общее время на маршруте (план)',
  `TimeFactTotal` varchar(20) DEFAULT NULL COMMENT 'Общее время на маршруте (факт)',
  `Deviation` varchar(20) DEFAULT NULL COMMENT 'Отклонение от графика',
  `DeviationAr` varchar(20) DEFAULT NULL COMMENT 'Отклонение по времени прибытия',
  `Remark` text COMMENT 'Примечание',
  `FuelStart` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Топливо в начале',
  `FuelAdd` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Заправлено',
  `FuelSub` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Слито',
  `FuelEnd` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Топливо в конце',
  `FuelExpens` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Общий расход топлива',
  `FuelExpensAvg` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДУТ Средний расход,  л/100 км',
  `Fuel_ExpensMove` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДРТ/CAN Расход топлива в движении, л',
  `Fuel_ExpensStop` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДРТ/CAN Расход топлива на стоянках, л',
  `Fuel_ExpensTotal` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДРТ/CAN Общий расход, л',
  `Fuel_ExpensAvg` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'ДРТ/CAN Средний расход, л/100 км',
  `TimeMove` varchar(20) DEFAULT NULL COMMENT 'Время движения',
  `TimeStop` varchar(20) DEFAULT NULL COMMENT 'Время остановок',
  `SpeedAvg` double(10,2) DEFAULT '0.00' COMMENT 'Средняя скорость',
  `FuelAddQty` int(11) DEFAULT '0' COMMENT 'ДУТ Заправлено - кол-во',
  `FuelSubQty` int(11) DEFAULT '0' COMMENT 'ДУТ Слито - кол-во',
  `PointsValidity` int(11) DEFAULT '0' COMMENT 'Валидность данных',
  `PointsCalc` int(11) DEFAULT '0' COMMENT 'Количество точек (по Log_ID) расчетное',
  `PointsFact` int(11) DEFAULT '0' COMMENT 'Количество точек (по Log_ID) фактическое',
  `PointsIntervalMax` varchar(20) DEFAULT NULL COMMENT 'Максимальный интервал между точками',
  `Type` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Тип маршрутного листа - КЗ или населенные пункты',
  `TimeEndFact` datetime DEFAULT NULL COMMENT 'Фактическое время окончания маршрута',
  `DistLogicSensor` double(10,2) DEFAULT '0.00' COMMENT 'Путь с включенным логическим датчиком, км',
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_route`
--

INSERT INTO `rt_route` VALUES (1,0,909324599,12,'2023-11-09 00:00:00',0,NULL,NULL,NULL,NULL,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,NULL,0.00,0,0,0,0,0,NULL,2,'2023-11-09 23:59:00',0.00,'');

--
-- Table structure for table `rt_route_fuel`
--

CREATE TABLE `rt_route_fuel` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL,
  `Location` varchar(255) NOT NULL,
  `time_` datetime NOT NULL,
  `dValueCalc` double NOT NULL DEFAULT '0' COMMENT 'Расчетная величина',
  `dValueHandle` double DEFAULT '0' COMMENT 'Ручная правка',
  PRIMARY KEY (`Id`),
  UNIQUE KEY `Id` (`Id`) USING BTREE,
  KEY `rt_route_fuel_FK1` (`Id_main`),
  CONSTRAINT `rt_route_fuel_FK1` FOREIGN KEY (`Id_main`) REFERENCES `rt_route` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_route_fuel`
--


--
-- Table structure for table `rt_route_sensors`
--

CREATE TABLE `rt_route_sensors` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL,
  `SensorName` varchar(127) NOT NULL,
  `Location` varchar(255) NOT NULL,
  `EventTime` datetime NOT NULL,
  `Duration` time NOT NULL,
  `Description` varchar(255) DEFAULT NULL,
  `Speed` double DEFAULT '0',
  `Distance` double(10,2) DEFAULT '0.00' COMMENT 'Путь, км',
  PRIMARY KEY (`Id`),
  KEY `rt_route_sensors_FK1` (`Id_main`) USING BTREE,
  CONSTRAINT `rt_route_sensors_FK1` FOREIGN KEY (`Id_main`) REFERENCES `rt_route` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_route_sensors`
--


--
-- Table structure for table `rt_route_stops`
--

CREATE TABLE `rt_route_stops` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL,
  `Location` varchar(255) DEFAULT NULL,
  `InitialTime` datetime DEFAULT NULL,
  `FinalTime` datetime DEFAULT NULL,
  `Interval` time DEFAULT NULL,
  `CheckZone` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Остановка в контрольной зоне',
  PRIMARY KEY (`Id`),
  KEY `rt_route_stops_FK1` (`Id_main`) USING BTREE,
  CONSTRAINT `rt_route_stops_FK1` FOREIGN KEY (`Id_main`) REFERENCES `rt_route` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_route_stops`
--


--
-- Table structure for table `rt_route_type`
--

CREATE TABLE `rt_route_type` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(50) NOT NULL COMMENT 'Тип маршрута',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_route_type`
--

INSERT INTO `rt_route_type` VALUES (1,'Контрольні зони'),(2,'Населенні пункти');

--
-- Table structure for table `rt_routet`
--

CREATE TABLE `rt_routet` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL,
  `Id_zone` int(11) NOT NULL DEFAULT '0' COMMENT 'Контрольная зона',
  `Id_event` int(11) NOT NULL DEFAULT '1' COMMENT 'Событие - въезд / выезд ',
  `DatePlan` datetime DEFAULT NULL COMMENT 'План время события ',
  `DateFact` datetime DEFAULT NULL COMMENT 'Факт время события ',
  `Deviation` varchar(10) DEFAULT NULL COMMENT 'Отклонение от графика',
  `Remark` text COMMENT 'Примечание',
  `Distance` double DEFAULT '0' COMMENT 'Путь между точками маршрута',
  `Location` varchar(255) DEFAULT NULL COMMENT 'Населенный пункт',
  PRIMARY KEY (`Id`),
  KEY `rt_routet_FK1` (`Id_main`) USING BTREE,
  CONSTRAINT `rt_routet_FK1` FOREIGN KEY (`Id_main`) REFERENCES `rt_route` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_routet`
--


--
-- Table structure for table `rt_sample`
--

CREATE TABLE `rt_sample` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(100) NOT NULL,
  `Id_mobitel` int(11) DEFAULT '0' COMMENT 'Транспортное средство (опц)',
  `TimeStart` time DEFAULT NULL COMMENT 'Время начала маршрута (опц)',
  `Distance` double DEFAULT '0' COMMENT 'Общий путь, км',
  `Remark` text COMMENT 'Примечание',
  `Id_main` int(11) NOT NULL DEFAULT '0' COMMENT 'Ссылка на элемент верхнего уровня в иерархии',
  `IsGroupe` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Запись - группа',
  `AutoCreate` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Маршрут может автосоздаваться ',
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_sample`
--

INSERT INTO `rt_sample` VALUES (1,'Рівне Млин',0,NULL,0,'',0,0,0,'0');

--
-- Table structure for table `rt_samplet`
--

CREATE TABLE `rt_samplet` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL,
  `Position` tinyint(4) NOT NULL COMMENT 'Порядковый номер записи шаблона маршрута',
  `Id_event` int(11) NOT NULL COMMENT 'Событие - въезд / выезд ',
  `Id_zone` int(11) DEFAULT NULL COMMENT 'Контрольная зона',
  `TimeRel` char(5) DEFAULT '00:00' COMMENT 'Относительное время от начала маршрута',
  `TimeRelP` char(5) DEFAULT '00:00' COMMENT 'Допустимое отклонение (+)',
  `TimeRelM` char(5) DEFAULT '00:00' COMMENT 'Допустимое отклонение (-)',
  `TimeAbs` char(8) DEFAULT '00:00:00' COMMENT 'Абсолютное время маршрута',
  PRIMARY KEY (`Id`),
  KEY `rt_samplet_FK1` (`Id_main`) USING BTREE,
  CONSTRAINT `rt_samplet_FK1` FOREIGN KEY (`Id_main`) REFERENCES `rt_sample` (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rt_samplet`
--


--
-- Table structure for table `rt_shedule`
--

CREATE TABLE `rt_shedule` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_shedule_dc` int(11) DEFAULT NULL COMMENT 'Ссылка на справочник графиков',
  `Id_zone_main` int(11) DEFAULT NULL COMMENT 'Зона старта транспортных средств',
  `DateShedule` datetime NOT NULL COMMENT 'Дата графика',
  `Remark` varchar(127) DEFAULT NULL COMMENT 'Примечание',
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Ссылка на внешний документ учетной системы',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251 COMMENT='Шапка документа ГРАФИК ДВИЖЕНИЯ';

--
-- Dumping data for table `rt_shedule`
--

INSERT INTO `rt_shedule` VALUES (1,0,0,'2023-11-09 00:00:00','','');

--
-- Table structure for table `rt_shedule_dc`
--

CREATE TABLE `rt_shedule_dc` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(127) NOT NULL COMMENT 'Название шаблона графика движения',
  `Id_zone_main` int(11) DEFAULT NULL COMMENT 'Зона старта транспортных средств',
  `Remark` varchar(127) DEFAULT NULL COMMENT 'Примечание',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Шаблон шапки документа ГРАФИК ДВИЖЕНИЯ';

--
-- Dumping data for table `rt_shedule_dc`
--


--
-- Table structure for table `rt_shedulet`
--

CREATE TABLE `rt_shedulet` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL COMMENT 'Ссылка на шапку документа',
  `Id_zone_to` int(11) DEFAULT NULL COMMENT 'Зона прибытия транспортного средства',
  `Id_vehicle` int(11) DEFAULT NULL COMMENT 'Транспортное средство',
  `TimePlanStart` datetime NOT NULL COMMENT 'Плановая дата начала движения',
  `TimePlanEnd` datetime DEFAULT NULL COMMENT 'Плановая дата окончания движения',
  `TimeFactStart` datetime DEFAULT NULL COMMENT 'Фактическая дата начала движения',
  `TimeFactEnd` datetime DEFAULT NULL COMMENT 'Фактическая дата окончания движения',
  `Distance` float NOT NULL DEFAULT '0' COMMENT 'Плановое расстояние',
  `State` varchar(127) DEFAULT NULL COMMENT 'Статус слежения за транспортным средством',
  `IsClose` bit(1) NOT NULL DEFAULT b'0' COMMENT 'Слежение за транспортным средством прекращено',
  PRIMARY KEY (`Id`),
  KEY `FK_rt_shedulet_rt_shedule` (`Id_main`) USING BTREE,
  CONSTRAINT `FK_rt_shedulet_rt_shedule` FOREIGN KEY (`Id_main`) REFERENCES `rt_shedule` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Содержимое документа ГРАФИК ДВИЖЕНИЯ';

--
-- Dumping data for table `rt_shedulet`
--


--
-- Table structure for table `rt_shedulet_dc`
--

CREATE TABLE `rt_shedulet_dc` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_main` int(11) NOT NULL COMMENT 'Ссылка на шапку документа',
  `Id_zone_to` int(11) DEFAULT NULL COMMENT 'Зона прибытия транспортного средства',
  `TimePlanStart` char(5) NOT NULL COMMENT 'Плановая дата начала движения',
  `TimePlanEnd` char(5) DEFAULT NULL COMMENT 'Плановая дата окончания движения',
  `Distance` float NOT NULL DEFAULT '0' COMMENT 'Плановое расстояние',
  PRIMARY KEY (`Id`),
  KEY `FK_rt_shedulet_rt_shedule` (`Id_main`) USING BTREE,
  CONSTRAINT `FK_rt_shedulet_dc_rt_shedule_dc` FOREIGN KEY (`Id_main`) REFERENCES `rt_shedule_dc` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Шаблон содержимого документа ГРАФИК ДВИЖЕНИЯ';

--
-- Dumping data for table `rt_shedulet_dc`
--


--
-- Table structure for table `rules`
--

CREATE TABLE `rules` (
  `Rule_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Password` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `ID` int(11) NOT NULL DEFAULT '0',
  `Rule1` tinyint(4) NOT NULL DEFAULT '0',
  `Rule2` tinyint(4) NOT NULL DEFAULT '0',
  `Rule3` tinyint(4) NOT NULL DEFAULT '0',
  `Rule4` tinyint(4) NOT NULL DEFAULT '0',
  `Rule5` tinyint(4) NOT NULL DEFAULT '0',
  `Rule6` tinyint(4) NOT NULL DEFAULT '0',
  `Rule7` tinyint(4) NOT NULL DEFAULT '0',
  `Rule8` tinyint(4) NOT NULL DEFAULT '0',
  `Rule9` tinyint(4) NOT NULL DEFAULT '0',
  `Rule10` tinyint(4) NOT NULL DEFAULT '0',
  `Rule11` tinyint(4) NOT NULL DEFAULT '0',
  `Rule12` tinyint(4) NOT NULL DEFAULT '0',
  `Rule13` tinyint(4) NOT NULL DEFAULT '0',
  `Rule14` tinyint(4) NOT NULL DEFAULT '0',
  `Rule15` tinyint(4) NOT NULL DEFAULT '0',
  `Rule16` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`Rule_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `rules`
--

INSERT INTO `rules` VALUES (1,'guest','guest','guest account',0,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0),(8,'power','power','Description for Power User Profile',0,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0),(9,'root','root','Description for root  Profile',0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0);

--
-- Table structure for table `sensor_hookups`
--

CREATE TABLE `sensor_hookups` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Mobitel_ID` int(11) DEFAULT NULL,
  `Sensor_ID` int(11) DEFAULT NULL,
  `FirstBit` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensor_hookups`
--


--
-- Table structure for table `sensor_list`
--

CREATE TABLE `sensor_list` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Title` varchar(70) DEFAULT NULL,
  `Kind` varchar(20) DEFAULT NULL,
  `BitsCount` int(11) DEFAULT NULL,
  `FirstBit` int(11) DEFAULT NULL,
  `Data` text,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensor_list`
--


--
-- Table structure for table `sensoralgorithms`
--

CREATE TABLE `sensoralgorithms` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(45) NOT NULL,
  `Description` char(45) DEFAULT NULL,
  `AlgorithmID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  UNIQUE KEY `ID` (`ID`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensoralgorithms`
--

INSERT INTO `sensoralgorithms` VALUES (1,'Логический датчик','Для анализа используется критерий вкл. выкл.',1),(2,'Работа основного двигателя','Обычно используется при подключении к заж.',2),(3,'Обороты оборудования','Для анализа используются к-во оборотов',3),(4,'Напряжение','Контролируется борт сеть',4),(5,'Обороты основного двигателя','Для анализа используются к-во оборотов',5),(6,'Температура','Датчик температуры',6),(7,'Уровень топлива','Уровень топлива в баке1',7),(8,'Расход топлива','Уровень топлива в баке2',8),(9,'Пассажиры1','Для подсчета количества пассажиров1',9),(10,'Пассажиры2','Для подсчета количества пассажиров2',10),(11,'Дверь1','Для пассажиров1',11),(12,'Дверь2','Для пассажиров2',12),(13,'Идентификация водителя','Для идентификации водителей',13),(14,'Идентификация прицепного устройства','Для идентификации прицепных устройств',14),(15,'Топливозаправщик','Для контроля запровок с бензовоза',15),(16,'Слежение - логический датчик','Для отображения в режиме слежения',16),(17,'Прицепное оборудование - логический датчик','Для контроля состояний работа/переезд',17),(18,'Инклинометр - продольная ось X,','Для контроля угла наклона по оси Х',18),(19,'Инклинометр - продольная ось Y,','Для контроля угла наклона по оси Y',19),(20,'Идентификация оператора','Для идентификации водителя принявшего топливо',20),(21,'Идентификация транспортного средства','Для идентификации топливозаправщика',21),(22,'Угломерный датчик рабочего положения','Для идентификации агрегата в агро',22),(23,'Датчик разгрузки транспортного средства','Выгрузка бункера комбайна в агро',23),(24,'Расход топлива прямой','Расход топлива в баке прямой',24),(25,'Расход топлива обратный','Расход топлива в баке обратный',25),(26,'Дальномер','Дальномер',26),(27,'Расходомер топлива накопительный','Расходомер типа ДРТ, только накопительный',27),(28,'Определение уровня зерна в бункере','Алгоритм определения уровня зерна в бункере',28),(29,'Расход топлива дифференциальный','Дифференциальный проточник',29),(30,'Топливозаправщик (дифференциальный)','Топливозаправщик на дифф ДРТ',30),(31,'Уровень топлива в агрегате','Уровень топлива в баке агрегата',31);

--
-- Table structure for table `sensorcoefficient`
--

CREATE TABLE `sensorcoefficient` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `Sensor_id` int(10) unsigned NOT NULL,
  `UserValue` double(10,5) NOT NULL,
  `SensorValue` double(10,5) NOT NULL,
  `K` double(10,5) NOT NULL DEFAULT '1.00000',
  `b` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `Index_2` (`Sensor_id`,`UserValue`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensorcoefficient`
--


--
-- Table structure for table `sensordata`
--

CREATE TABLE `sensordata` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `datagps_id` int(10) unsigned NOT NULL,
  `sensor_id` int(10) unsigned NOT NULL,
  `Value` double(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `Index_2` (`datagps_id`,`sensor_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensordata`
--


--
-- Table structure for table `sensors`
--

CREATE TABLE `sensors` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mobitel_id` int(11) NOT NULL,
  `Name` varchar(45) NOT NULL,
  `Description` varchar(200) NOT NULL,
  `StartBit` int(10) unsigned NOT NULL,
  `Length` int(10) unsigned NOT NULL,
  `NameUnit` varchar(45) NOT NULL,
  `K` double(10,5) NOT NULL DEFAULT '0.00000',
  `B` double DEFAULT '0' COMMENT 'Shift coefficient',
  `S` tinyint(1) DEFAULT '0' COMMENT 'Sign arifmetic',
  PRIMARY KEY (`id`),
  KEY `Index_2` (`mobitel_id`)
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sensors`
--

INSERT INTO `sensors` VALUES (2,100,'бортмережа','',36,8,' В',0.11810,0,0),(3,100,'запалювання','',60,1,' ',1.00000,0,0),(6,98,'бортмережа','',36,8,' В',0.11810,0,0),(7,98,'запалювання','',60,1,' ',1.00000,0,0),(10,99,'бортмережа','',36,8,' В',0.11810,0,0),(11,99,'запалювання','',60,1,' ',1.00000,0,0),(14,97,'бортмережа','',36,8,' В',0.11810,0,0),(15,97,'запалювання','',60,1,' ',1.00000,0,0),(17,101,'штатний ДРП','',128,8,' %',0.40000,0,0),(18,101,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(19,101,'витрата','',16,64,' л',0.50000,0,0),(20,101,'бортмережа','',112,16,' В',0.00100,0,0),(22,101,'запалювання','',196,1,' ',1.00000,0,0),(23,102,'штатний ДРП','',128,8,' %',0.40000,0,0),(24,102,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(25,102,'витрата','',16,64,' л',0.50000,0,0),(26,102,'бортмережа','',112,16,' В',0.00100,0,0),(27,102,'запалювання','',196,1,' ',1.00000,0,0),(31,103,'бортмережа','',112,16,' В',0.00100,0,0),(32,103,'запалювання','',196,1,' ',1.00000,0,0),(36,808464436,'бортмережа','',112,16,' В',0.00100,0,0),(37,808464436,'запалювання','',196,1,' ',1.00000,0,0),(41,859124537,'бортмережа','',112,16,' В',0.00100,0,0),(42,859124537,'запалювання','',196,1,' ',1.00000,0,0),(43,859124537,'вірт. бак','Новая',80,16,'',1.00000,0,0),(44,808464436,'вірт. бак','Новая',80,16,'',1.00000,0,0),(45,842281778,'вірт. бак','',80,16,'',1.00000,0,0),(48,842281778,'бортмережа','',112,16,' В',0.00100,0,0),(49,842281778,'запалювання','',196,1,' ',1.00000,0,0),(50,808990515,'бортмережа','',0,16,'В',1.00000,0,0),(51,808990515,'запалювання','',48,1,'#',1.00000,0,0),(52,808990515,'вірт. бак','',49,8,'л',1.00000,0,0),(53,808990515,'напруга акумулятора трекера','',16,32,'В',1.00000,0,0),(54,825242674,'штатний ДРП','',128,8,' %',0.40000,0,0),(55,825242674,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(56,825242674,'витрата','',16,64,' л',0.50000,0,0),(57,825242674,'бортмережа','',112,16,' В',0.00100,0,0),(58,825242674,'запалювання','',196,1,' ',1.00000,0,0),(59,925907255,'бортмережа','',0,16,'В',1.00000,0,0),(60,925907255,'запалювання','',48,1,'#',1.00000,0,0),(61,925907255,'вірт. бак','',49,8,'л',1.00000,0,0),(62,925907255,'напруга акумулятора трекера','',16,32,'В',1.00000,0,0),(63,892483379,'бортмережа','',0,16,'В',1.00000,0,0),(64,892483379,'запалювання','',48,1,'#',1.00000,0,0),(65,892483379,'вірт. бак','',49,8,'л',1.00000,0,0),(66,892483379,'напруга акумулятора трекера','',16,32,'В',1.00000,0,0),(67,876164145,'штатний ДРП','',128,8,' %',0.40000,0,0),(68,876164145,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(69,876164145,'витрата','',16,64,' л',0.50000,0,0),(70,876164145,'бортмережа','',112,16,' В',1.00000,0,0),(71,876164145,'запалювання','',196,1,' ',1.00000,0,0),(72,808857912,'штатний ДРП','',128,8,' %',0.40000,0,0),(73,808857912,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(74,808857912,'витрата','',16,64,' л',0.50000,0,0),(75,808857912,'бортмережа','',112,16,' В',1.00000,0,0),(76,808857912,'запалювання','',196,1,' ',1.00000,0,0),(77,909324599,'штатний ДРП','',128,8,' %',0.40000,0,0),(78,909324599,'оберти двигуна','',0,16,' rpm',0.12500,0,0),(79,909324599,'витрата','',16,64,' л',0.50000,0,0),(80,909324599,'бортмережа','',112,16,' В',1.00000,0,0),(81,909324599,'запалювання','',196,1,' ',1.00000,0,0),(86,842478133,'бортмережа','',32,8,'В',0.11810,0,0),(87,842478133,'запалювання','',61,1,'#',1.00000,0,0),(88,842478133,'вірт. бак','',0,8,'л',1.00000,0,0),(89,926037045,'бортмережа','',36,8,'В',0.11810,0,0),(90,926037045,'запалювання','',60,1,'#',1.00000,0,0),(91,926037045,'вірт. бак','',20,16,'л',1.00000,0,0);

--
-- Table structure for table `serviceinit`
--

CREATE TABLE `serviceinit` (
  `ServiceInit_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `ID` int(11) DEFAULT '0',
  `Flags` int(11) DEFAULT '0',
  `ServiceType_ID` int(11) DEFAULT '0',
  `A1` char(50) DEFAULT NULL,
  `A2` char(50) DEFAULT NULL,
  `A3` char(50) DEFAULT NULL,
  `A4` char(50) DEFAULT NULL,
  `A5` char(50) DEFAULT NULL,
  `A6` char(50) DEFAULT NULL,
  `A7` char(50) DEFAULT NULL,
  `A8` char(50) DEFAULT NULL,
  `A9` char(50) DEFAULT NULL,
  `A10` char(200) DEFAULT NULL,
  `CAtoSAint` int(11) DEFAULT '0',
  `CAtoSAtime` int(11) DEFAULT '0',
  `SAtoCAint` int(11) DEFAULT '0',
  `SAtoCAtime` int(11) DEFAULT '0',
  `SAtoCAtext` char(50) DEFAULT 'STOPPED',
  `CAtoSAtext` char(50) DEFAULT 'STOPPED',
  `MobitelActive_ID` int(11) NOT NULL DEFAULT '0',
  `Active` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`ServiceInit_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `serviceinit`
--

INSERT INTO `serviceinit` VALUES (1,'Direct Cable','Сервис для прямого кабельного соединения',0,0,5,'COM1','115200','','','','','','','','',0,0,1,1222352358,'Running',NULL,83,0),(7,'GSM модем','Отправка SMS по  GSM каналу',0,0,2,'COM2','115200','','','','','','','','XXX',0,0,1,1127307060,'Running',NULL,75,0),(29,'EMail','Сервис отправки данных через E-mail',29,1125886839,6,'','','','smtp.p314.net','pop.p314.net','25','110','60','','XXX',0,0,1,1128962351,'Running',NULL,68,0),(30,'Online','Онлайн через телематический сервер',30,0,3,'','9010','','','','','','','','',0,0,0,0,'STOPPED','STOPPED',0,0);

--
-- Table structure for table `servicesend`
--

CREATE TABLE `servicesend` (
  `ServiceSend_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(50) DEFAULT NULL,
  `Descr` varchar(200) DEFAULT NULL,
  `ID` int(11) DEFAULT '0',
  `Flags` int(11) DEFAULT '0',
  `telMobitel` varchar(64) DEFAULT NULL,
  `smsMobitel` varchar(64) DEFAULT NULL,
  `emailMobitel` varchar(64) DEFAULT NULL,
  `IPMobitel` varchar(64) DEFAULT NULL,
  `URLMobitel` varchar(64) DEFAULT NULL,
  `PortMobitel` int(11) DEFAULT '0',
  `RfMobitel` varchar(50) DEFAULT NULL,
  `Message_ID` int(11) DEFAULT '0',
  PRIMARY KEY (`ServiceSend_ID`),
  KEY `Index_2` (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=281 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `servicesend`
--

INSERT INTO `servicesend` VALUES (250,'Record 22.09.2005 12:14:57','Description for record created at 22.09.2005 12:14:57',250,0,'108',NULL,NULL,NULL,NULL,0,NULL,0),(252,'Record 22.09.2005 12:14:57','Description for record created at 22.09.2005 12:14:57',250,0,'98','106','3051@p314.net','',NULL,0,'',200892),(255,'Record 22.09.2005 12:14:57','Description for record created at 22.09.2005 12:14:57',250,0,'96','80','','',NULL,0,'',218879),(256,'set','phone',250,0,'102',NULL,NULL,NULL,NULL,0,NULL,0),(257,'0641','Desctiption for Teletrack registered at 25.07.2017 9:23:17',257,0,'106',NULL,NULL,NULL,NULL,0,NULL,0),(258,'set','phone',257,0,'103',NULL,NULL,NULL,NULL,0,NULL,0),(259,'0781','Desctiption for Teletrack registered at 25.07.2017 9:23:47',259,0,'109',NULL,NULL,NULL,NULL,0,NULL,0),(260,'set','phone',259,0,'104',NULL,NULL,NULL,NULL,0,NULL,0),(261,'0906','Desctiption for Teletrack registered at 25.07.2017 9:24:17',261,0,'107',NULL,NULL,NULL,NULL,0,NULL,0),(262,'set','phone',261,0,'105',NULL,NULL,NULL,NULL,0,NULL,0),(263,'5180','Desctiption for Teletrack registered at 22.04.2020 10:10:00',263,0,'112',NULL,NULL,NULL,NULL,0,NULL,0),(264,'6269','Desctiption for Teletrack registered at 22.04.2020 10:10:11',264,0,'113',NULL,NULL,NULL,NULL,0,NULL,0),(265,'set','phone',263,0,'110',NULL,NULL,NULL,NULL,0,NULL,0),(266,'set','phone',264,0,'111',NULL,NULL,NULL,NULL,0,NULL,0),(267,'7049','Desctiption for Teletrack registered at 23.07.2020 18:06:09',267,0,'115',NULL,NULL,NULL,NULL,0,NULL,0),(268,'set','phone',267,0,'114',NULL,NULL,NULL,NULL,0,NULL,0),(269,'','',269,0,'117',NULL,NULL,NULL,NULL,0,NULL,0),(270,'','',270,0,'116',NULL,NULL,NULL,NULL,0,NULL,0),(271,'','',271,0,'118',NULL,NULL,NULL,NULL,0,NULL,0),(272,'','',272,0,'120',NULL,NULL,NULL,NULL,0,NULL,0),(273,'','',273,0,'119',NULL,NULL,NULL,NULL,0,NULL,0),(274,'','',274,0,'121',NULL,NULL,NULL,NULL,0,NULL,0),(275,'','',275,0,'122',NULL,NULL,NULL,NULL,0,NULL,0),(276,'','',276,0,'125',NULL,NULL,NULL,NULL,0,NULL,0),(277,'','',277,0,'123',NULL,NULL,NULL,NULL,0,NULL,0),(278,'','',278,0,'124',NULL,NULL,NULL,NULL,0,NULL,0),(279,'','',279,0,'126',NULL,NULL,NULL,NULL,0,NULL,0),(280,'','',280,0,'127',NULL,NULL,NULL,NULL,0,NULL,0);

--
-- Table structure for table `servicetypes`
--

CREATE TABLE `servicetypes` (
  `ServiceType_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `Flags` int(11) DEFAULT '0',
  `D1` char(200) DEFAULT NULL,
  `D2` char(200) DEFAULT NULL,
  `D3` char(200) DEFAULT NULL,
  `D4` char(200) DEFAULT NULL,
  `D5` char(200) DEFAULT NULL,
  `D6` char(200) DEFAULT NULL,
  `D7` char(200) DEFAULT NULL,
  `D8` char(200) DEFAULT NULL,
  `D9` char(200) DEFAULT NULL,
  `D10` char(200) DEFAULT NULL,
  PRIMARY KEY (`ServiceType_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `servicetypes`
--

INSERT INTO `servicetypes` VALUES (1,'reserved','Зарезервировано',0,'Parameter 1','Parameter 2','Parameter 3','','','','','','',''),(2,'GSM','Тип сервиса для отправки SMS через GSM соединение',0,'Номер порта','Скорость порта','','','','','','','',''),(3,'Online','Online',0,'IP','Port','Login','Password','','','','','',''),(4,'RF modem','Радиомодем (не реализовано)',0,'Номер порта','Скорость порта','','','','','','','',''),(5,'DC','Тип сервиса \"прямое кабельное соединения\"',0,'Номер порта','Скорость порта',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,'E-Mail','Тип сервиса \" E-Mail \" для отправки SMS через электронную почту',0,'EMAIL','Login','Password','Smtp Server','Pop3 Server','Smtp Port','Pop3 Port','Check Out time',NULL,NULL);

--
-- Table structure for table `setting`
--

CREATE TABLE `setting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `TimeBreak` time DEFAULT '00:01:00' COMMENT 'Минимальное время остановки',
  `RotationMain` int(11) DEFAULT '100' COMMENT 'Обороты основного двигателя',
  `RotationAdd` int(11) DEFAULT '100' COMMENT 'Обороты доп. двигателя',
  `FuelingEdge` int(11) DEFAULT '0' COMMENT 'Минимальная заправка',
  `band` int(11) DEFAULT '25' COMMENT 'Полоса осреднения',
  `FuelingDischarge` int(11) DEFAULT '0' COMMENT 'Минимальный слив топлива',
  `accelMax` double DEFAULT '1' COMMENT 'Максимальное ускорение',
  `breakMax` double DEFAULT '1' COMMENT 'Максимальное торможение',
  `speedMax` double DEFAULT '70' COMMENT 'Максимальная скорость',
  `idleRunningMain` int(11) DEFAULT '0' COMMENT 'Холостой ход основного двигателя',
  `idleRunningAdd` int(11) DEFAULT '0' COMMENT 'Холосой ход доп. двигателя',
  `Name` char(20) DEFAULT 'Установки' COMMENT 'Название',
  `Desc` char(80) DEFAULT 'Описание установки' COMMENT 'Описание ',
  `AvgFuelRatePerHour` double(10,5) NOT NULL DEFAULT '15.00000' COMMENT 'Средний расход топлива в час',
  `FuelApproximationTime` time NOT NULL DEFAULT '00:02:00' COMMENT 'Временной интервал перед стоянкой, по точка которого уточняется уровень топлива в начале стоянки',
  `TimeGetFuelAfterStop` time NOT NULL DEFAULT '00:00:00' COMMENT 'Временной интервал между началом стоянки и замером уровня топлива',
  `TimeGetFuelBeforeMotion` time NOT NULL DEFAULT '00:00:00' COMMENT 'Временной интервал между замером уровня топлива и началом движения',
  `CzMinCrossingPairTime` time NOT NULL DEFAULT '00:01:00' COMMENT 'Min временной интервал между двумя пересечениями КЗ',
  `FuelerRadiusFinds` int(11) NOT NULL DEFAULT '10' COMMENT 'Радиус поиска заправляемых ТС вокруг топливозаправщика',
  `FuelerMaxTimeStop` time NOT NULL DEFAULT '00:02:00' COMMENT 'Минимальное время до заправки следующего ТС',
  `FuelerMinFuelrate` int(11) NOT NULL DEFAULT '1' COMMENT 'Минимальная величина заправки, что будет попадать в отчет',
  `FuelerCountInMotion` int(11) NOT NULL DEFAULT '0' COMMENT 'Считать ли заправки, при не нулевой скорости',
  `FuelrateWithDischarge` int(11) NOT NULL DEFAULT '0' COMMENT 'Считать ли в расходе сливы',
  `FuelingMinMaxAlgorithm` int(11) NOT NULL DEFAULT '0' COMMENT 'Считать заправки по MAX-MIN',
  `TimeBreakMaxPermitted` time NOT NULL DEFAULT '03:00:00' COMMENT 'Макс. время разрешенной стоянки',
  `InclinometerMaxAngleAxisX` double NOT NULL DEFAULT '5' COMMENT 'Предельный угол наклона относительно продольной оси Х ',
  `InclinometerMaxAngleAxisY` double NOT NULL DEFAULT '5' COMMENT 'Предельный угол наклона относительно продольной оси Y ',
  `MinTimeSwitch` int(11) NOT NULL DEFAULT '0' COMMENT 'Минимальное время между двумя событиями датчика',
  `TimeMinimMovingSize` time NOT NULL DEFAULT '00:00:00' COMMENT 'Минимальное время движения в начале смены',
  `speedMin` float NOT NULL DEFAULT '0' COMMENT 'Минимальная скорость в км/ч',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `setting`
--

INSERT INTO `setting` VALUES (1,'00:01:00',100,100,20,4,10,1,1,20,0,0,'Настройка 1','Настройка по умолчанию',25.00000,'00:02:00','00:00:00','00:00:00','00:01:00',10,'00:02:00',1,0,1,0,'03:00:00',5,5,0,'00:00:00',0);

--
-- Table structure for table `smsnumbers`
--

CREATE TABLE `smsnumbers` (
  `SmsNumber_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `ID` int(11) DEFAULT '0',
  `Flags` int(11) DEFAULT '0',
  `smsNumber` char(14) DEFAULT NULL,
  PRIMARY KEY (`SmsNumber_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `smsnumbers`
--

INSERT INTO `smsnumbers` VALUES (9,'UMC SMS Center','UMC SMS Center descr',0,0,'+380500005010'),(42,'Golden SMS Center','Golden SMS Center descr',0,0,'+380390001008'),(53,'GOLDEN SMS Шлюз','Номер телефона, на который отправляются данные с ТТ через E_MAIL',0,0,'025'),(80,'SMS',' (SMS)',0,0,'+38067'),(81,'RCSB (SMS)','Телефон (SMS)',0,0,'+380672452724'),(82,'RCSB2 (SMS)',' (SMS)',0,0,'+380672452734'),(83,'RCS1 (SMS)',' (SMS)',0,0,'+380637562677'),(84,'RCS2 (SMS)',' (SMS)',0,0,'+380933222277'),(85,'RCS3 (SMS)',' (SMS)',0,0,'+380637562678');

--
-- Table structure for table `sources`
--

CREATE TABLE `sources` (
  `Source_ID` int(11) NOT NULL AUTO_INCREMENT,
  `SourceText` char(200) DEFAULT NULL,
  `SourceError` char(200) DEFAULT NULL,
  PRIMARY KEY (`Source_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `sources`
--


--
-- Table structure for table `specialmessages`
--

CREATE TABLE `specialmessages` (
  `SpecMessage_ID` int(11) NOT NULL AUTO_INCREMENT,
  `DataString` char(50) DEFAULT NULL,
  `DataInteger` int(11) DEFAULT '0',
  `unixtime` char(50) DEFAULT NULL,
  `isNew` int(11) DEFAULT '0',
  PRIMARY KEY (`SpecMessage_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `specialmessages`
--


--
-- Table structure for table `state`
--

CREATE TABLE `state` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `MinValue` double NOT NULL,
  `MaxValue` double NOT NULL,
  `Title` varchar(50) NOT NULL,
  `SensorId` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`),
  KEY `State_FK` (`SensorId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=cp1251 COMMENT='Состояния автомобиля';

--
-- Dumping data for table `state`
--

INSERT INTO `state` VALUES (1,0,0.1,'0',3),(2,1,1.1,'1',3),(3,0,0.1,'0',7),(4,1,1.1,'1',7),(5,0,0.1,'0',11),(6,1,1.1,'1',11),(7,0,0.1,'0',15),(8,1,1.1,'1',15),(9,0,0.1,'0',22),(10,1,1.1,'1',22),(11,0,0.1,'0',27),(12,1,1.1,'1',27),(13,0,0.1,'0',32),(14,1,1.1,'1',32),(15,0,0.1,'0',37),(16,1,1.1,'1',37),(17,0,0.1,'0',42),(18,1,1.1,'1',42),(19,0,0.1,'0',49),(20,1,1.1,'1',49),(21,0,0.1,'0',51),(22,1,1.1,'1',51),(23,0,0.1,'0',58),(24,1,1.1,'1',58),(25,0,0.1,'0',60),(26,1,1.1,'1',60),(27,0,0.1,'0',64),(28,1,1.1,'1',64),(29,0,0.1,'0',71),(30,1,1.1,'1',71),(31,0,0.1,'0',76),(32,1,1.1,'1',76),(33,0,0.1,'0',81),(34,1,1.1,'1',81),(37,0,0.1,'0',87),(38,1,1.1,'1',87),(39,0,0.1,'0',90),(40,1,1.1,'1',90);

--
-- Table structure for table `swupdate`
--

CREATE TABLE `swupdate` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `ShortID` char(4) NOT NULL COMMENT 'Идентификатор телетрека(логин)',
  `Soft` mediumtext NOT NULL COMMENT 'Прошивка',
  `InsertTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Дата и время вставки в таблицу',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Обновление прошивки телетрека';

--
-- Dumping data for table `swupdate`
--


--
-- Table structure for table `team`
--

CREATE TABLE `team` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(50) DEFAULT NULL,
  `Descr` text COMMENT 'Описание',
  `Setting_id` int(11) DEFAULT NULL,
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  `FuelWayKmGrp` double DEFAULT '0' COMMENT 'Норма расхода топлива л/100 км',
  `FuelMotoHrGrp` double DEFAULT '0' COMMENT 'Норма расхода топлива на холостом ходу л/моточас',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`) USING BTREE,
  KEY `Setting_id` (`Setting_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `team`
--

INSERT INTO `team` VALUES (1,'Автомобиль','null',1,NULL,0,0),(2,'Трактор','null',1,NULL,0,0),(3,'Комбайн','null',1,NULL,0,0),(4,'Заправщик','null',1,NULL,0,0),(5,'Кран','null',1,NULL,0,0),(6,'Трактор','',1,'',0,0),(7,'Автомобілі','',1,'',0,0),(8,'Автомобілі','',1,'',0,0),(11,'Навантажувачі/будівельна техніка','',1,'',0,0);

--
-- Table structure for table `telnumbers`
--

CREATE TABLE `telnumbers` (
  `TelNumber_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` char(200) DEFAULT NULL,
  `ID` int(11) DEFAULT '0',
  `Flags` int(11) DEFAULT '0',
  `TelNumber` char(50) DEFAULT NULL,
  PRIMARY KEY (`TelNumber_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=128 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `telnumbers`
--

INSERT INTO `telnumbers` VALUES (56,'RCSB','Телефон',0,0,'80672452724'),(57,'Телефон','Телефон',0,0,'22222222222'),(58,'Телефон','Телефон',0,0,'33333333333'),(59,'Телефон','Телефон',0,0,'44444444444'),(68,'Телефон','Телефон',0,0,'55555555555'),(71,'Телефон','',0,0,'66666666666'),(73,'Телефон','Телефон',0,0,'77777777777'),(74,'Телефон','Телефон',0,0,'88888888888'),(75,'Телефон','',0,0,'99999999999'),(81,'RCS3','',0,0,'80637562678'),(89,'RCS2','',0,0,'80933222277'),(90,'RCS1','',0,0,'80637562677'),(97,'RCSB2','',0,0,'80672452734'),(101,'Телефон','',0,0,'1'),(102,'8720',NULL,0,0,'0981645911'),(103,'0641',NULL,0,0,'0981645912'),(104,'0781',NULL,0,0,'0981645913'),(105,'0906',NULL,0,0,'0981645910'),(106,'rcs','mtel',0,0,'0981645912'),(107,'rcs','mtel',0,0,'0981645910'),(108,'rcs','mtel',0,0,'0981645911'),(109,'rcs','mtel',0,0,'0981645913'),(110,'5180',NULL,0,0,'+380674032843'),(111,'6269',NULL,0,0,'+380674033791'),(112,'rcs','mtel',0,0,'+380674032843'),(113,'rcs','mtel',0,0,'+380674033791'),(114,'7049',NULL,0,0,'+380676128732'),(115,'rcs','mtel',0,0,'+380676128732'),(116,'rcs','mtel',0,0,'+380676966898'),(117,'rcs','mtel',0,0,'+380676967015'),(118,'rcs','mtel',0,0,'+380676966897'),(119,'rcs','mtel',0,0,'No Data'),(120,'rcs','mtel',0,0,'No Data'),(121,'rcs','mtel',0,0,'No Data'),(122,'rcs','mtel',0,0,'No Data'),(123,'rcs','mtel',0,0,'No Data'),(124,'rcs','mtel',0,0,'No Data'),(125,'rcs','mtel',0,0,'No Data'),(126,'rcs','mtel',0,0,'No Data'),(127,'rcs','mtel',0,0,'+380675546947');

--
-- Table structure for table `temp`
--

CREATE TABLE `temp` (
  `datagps_id` int(10) unsigned NOT NULL DEFAULT '0',
  `sensor_id` int(10) unsigned NOT NULL DEFAULT '0',
  `Value` double(10,2) NOT NULL DEFAULT '0.00'
) ENGINE=MEMORY DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `temp`
--


--
-- Table structure for table `tmpdatagps`
--

CREATE TABLE `tmpdatagps` (
  `DataGps_ID` int(11) NOT NULL DEFAULT '0',
  `Mobitel_ID` int(11) DEFAULT '0',
  `Message_ID` int(11) DEFAULT '0',
  `Latitude` int(11) DEFAULT '0',
  `Longitude` int(11) DEFAULT '0',
  `Altitude` int(11) DEFAULT NULL,
  `UnixTime` int(11) DEFAULT '0',
  `Speed` smallint(6) DEFAULT '0',
  `Direction` int(11) NOT NULL DEFAULT '0',
  `Valid` tinyint(4) DEFAULT '1',
  `InMobitelID` int(11) DEFAULT NULL,
  `Events` int(10) unsigned DEFAULT '0',
  `Sensor1` tinyint(4) unsigned DEFAULT '0',
  `Sensor2` tinyint(4) unsigned DEFAULT '0',
  `Sensor3` tinyint(4) unsigned DEFAULT '0',
  `Sensor4` tinyint(4) unsigned DEFAULT '0',
  `Sensor5` tinyint(4) unsigned DEFAULT '0',
  `Sensor6` tinyint(4) unsigned DEFAULT '0',
  `Sensor7` tinyint(4) unsigned DEFAULT '0',
  `Sensor8` tinyint(4) unsigned DEFAULT '0',
  `LogID` int(11) DEFAULT '0',
  `isShow` tinyint(4) DEFAULT '0',
  `whatIs` smallint(6) unsigned DEFAULT '0',
  `Counter1` int(11) NOT NULL DEFAULT '-1',
  `Counter2` int(11) NOT NULL DEFAULT '-1',
  `Counter3` int(11) NOT NULL DEFAULT '-1',
  `Counter4` int(11) NOT NULL DEFAULT '-1'
) ENGINE=MEMORY DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `tmpdatagps`
--


--
-- Table structure for table `transition`
--

CREATE TABLE `transition` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `InitialStateId` int(11) DEFAULT NULL,
  `FinalStateId` int(11) DEFAULT NULL,
  `Title` varchar(50) NOT NULL,
  `SensorId` int(11) DEFAULT NULL,
  `IconName` varchar(50) NOT NULL,
  `SoundName` varchar(50) NOT NULL,
  `Enabled` tinyint(1) NOT NULL,
  `ViewInReport` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`Id`),
  KEY `Sensors_FK` (`SensorId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=cp1251 COMMENT='Переходы между состояниями';

--
-- Dumping data for table `transition`
--

INSERT INTO `transition` VALUES (1,1,2,'увімк.',3,'Default','Default',0,1),(2,2,1,'вимк.',3,'Default','Default',0,1),(3,3,4,'вмк.',7,'Default','Default',0,1),(4,4,3,'вимк.',7,'Default','Default',0,1),(5,5,6,'вмк.',11,'Default','Default',0,1),(6,6,5,'вимк.',11,'Default','Default',0,1),(7,7,8,'вмк.',15,'Default','Default',0,1),(8,8,7,'вимк.',15,'Default','Default',0,1),(9,11,12,'увімк.',27,'Default','Default',0,1),(10,12,11,'вимк.',27,'Default','Default',0,1),(11,9,10,'увімк.',22,'Default','Default',0,1),(12,10,9,'вимк.',22,'Default','Default',0,1),(13,13,14,'увімк.',32,'Default','Default',0,1),(14,14,13,'вимк.',32,'Default','Default',0,1),(15,15,16,'1',37,'Default','Default',0,1),(16,16,15,'0',37,'Default','Default',0,1),(17,17,18,'1',42,'Default','Default',0,1),(18,18,17,'0',42,'Default','Default',0,1),(19,19,20,'1',49,'Default','Default',0,1),(20,20,19,'0',49,'Default','Default',0,1),(21,21,22,'1',51,'Default','Default',0,1),(22,22,21,'0',51,'Default','Default',0,1),(23,23,24,'1',58,'Default','Default',0,1),(24,24,23,'0',58,'Default','Default',0,1),(25,25,26,'1',60,'Default','Default',0,1),(26,26,25,'0',60,'Default','Default',0,1),(27,27,28,'1',64,'Default','Default',0,1),(28,28,27,'0',64,'Default','Default',0,1),(29,29,30,'1',71,'Default','Default',0,1),(30,30,29,'0',71,'Default','Default',0,1),(31,31,32,'1',76,'Default','Default',0,1),(32,32,31,'0',76,'Default','Default',0,1),(33,33,34,'1',81,'Default','Default',0,1),(34,34,33,'0',81,'Default','Default',0,1),(35,37,38,'1',87,'Default','Default',0,1),(36,38,37,'0',87,'Default','Default',0,1),(37,39,40,'1',90,'Default','Default',0,1),(38,40,39,'0',90,'Default','Default',0,1);

--
-- Table structure for table `users_acs_objects`
--

CREATE TABLE `users_acs_objects` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Id_role` int(11) NOT NULL,
  `Id_type` int(11) NOT NULL,
  `Id_object` int(11) NOT NULL,
  PRIMARY KEY (`Id`),
  KEY `FK_users_acs_objects_users_acs_roles_Id` (`Id_role`),
  CONSTRAINT `FK_users_acs_objects_users_acs_roles_Id` FOREIGN KEY (`Id_role`) REFERENCES `users_acs_roles` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `users_acs_objects`
--


--
-- Table structure for table `users_acs_roles`
--

CREATE TABLE `users_acs_roles` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `users_acs_roles`
--

INSERT INTO `users_acs_roles` VALUES (1,'Администратор');

--
-- Table structure for table `users_actions_log`
--

CREATE TABLE `users_actions_log` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `TypeLog` int(11) NOT NULL DEFAULT '0',
  `DateAction` datetime NOT NULL,
  `Id_document` int(11) NOT NULL DEFAULT '0',
  `TextLog` varchar(255) NOT NULL,
  `User` varchar(127) NOT NULL,
  `Computer` varchar(63) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=835 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `users_actions_log`
--

INSERT INTO `users_actions_log` VALUES (1,8,'2017-07-25 11:30:43',0,'15->25 Средний расход топлива, л/ч','admin','MNK'),(2,8,'2017-07-25 11:30:43',0,'25->4 Полоса сглаживания','admin','MNK'),(3,8,'2017-07-25 11:30:43',0,'50->20 Порог заправки','admin','MNK'),(4,8,'2017-07-25 11:30:43',0,'70->20 Максимальная скорость движения, км/ч','admin','MNK'),(5,8,'2017-07-25 11:30:43',0,'0->1 Не учитывать сливы в расходе','admin','MNK'),(6,5,'2020-04-22 13:40:46',1,'Створення','admin','DESKTOP-ECO06N9'),(7,5,'2020-04-22 14:35:46',1,'Видалення документу','admin','DESKTOP-ECO06N9'),(8,5,'2020-04-22 14:36:55',2,'Створення','admin','DESKTOP-ECO06N9'),(9,1,'2020-04-22 14:46:30',1,'Створення наряду','admin','DESKTOP-ECO06N9'),(10,1,'2020-04-22 14:46:31',1,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(11,1,'2020-04-22 14:50:09',1,'Відкриття','admin','DESKTOP-ECO06N9'),(12,1,'2020-04-22 14:55:42',1,'Відкриття','admin','DESKTOP-ECO06N9'),(13,1,'2020-04-22 14:57:42',1,'Відкриття','admin','DESKTOP-ECO06N9'),(14,1,'2020-04-22 17:35:00',1,'Видалення документу','admin','DESKTOP-ECO06N9'),(15,1,'2020-04-22 17:35:21',2,'Створення наряду','admin','DESKTOP-ECO06N9'),(16,1,'2020-04-22 17:35:23',2,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(17,1,'2020-04-22 17:35:53',2,'Відкриття','admin','DESKTOP-ECO06N9'),(18,1,'2020-04-22 17:36:31',2,'Видалення документу','admin','DESKTOP-ECO06N9'),(19,5,'2020-04-22 17:36:42',2,'Видалення документу','admin','DESKTOP-ECO06N9'),(20,5,'2020-04-22 17:37:14',3,'Створення','admin','DESKTOP-ECO06N9'),(21,5,'2020-04-22 17:45:33',3,'Видалення документу','admin','DESKTOP-ECO06N9'),(22,1,'2020-04-22 17:47:25',3,'Створення наряду','admin','DESKTOP-ECO06N9'),(23,1,'2020-04-22 17:47:27',3,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(24,1,'2020-04-22 17:47:32',3,'Відкриття','admin','DESKTOP-ECO06N9'),(25,1,'2020-04-22 17:50:36',3,'Відкриття','admin','DESKTOP-ECO06N9'),(26,1,'2020-04-22 17:51:20',3,'Відкриття','admin','DESKTOP-ECO06N9'),(27,1,'2020-04-22 20:50:48',3,'Відкриття','admin','DESKTOP-ECO06N9'),(28,6,'2020-04-22 22:25:18',2,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(29,6,'2020-04-22 22:25:18',2,'Зміна площі з 0 на 65,44','admin','DESKTOP-ECO06N9'),(30,5,'2020-04-22 22:27:53',4,'Створення','admin','DESKTOP-ECO06N9'),(31,1,'2020-04-22 22:28:39',3,'Відкриття','admin','DESKTOP-ECO06N9'),(32,1,'2020-04-22 22:28:53',3,'Видалення документу','admin','DESKTOP-ECO06N9'),(33,1,'2020-04-22 22:29:00',3,'Відкриття','admin','DESKTOP-ECO06N9'),(34,5,'2020-04-22 22:31:59',5,'Створення','admin','DESKTOP-ECO06N9'),(35,1,'2020-04-22 22:33:19',4,'Створення наряду','admin','DESKTOP-ECO06N9'),(36,1,'2020-04-22 22:33:22',4,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(37,5,'2020-04-22 22:39:19',5,'Видалення документу','admin','DESKTOP-ECO06N9'),(38,5,'2020-04-22 22:40:17',4,'Видалення документу','admin','DESKTOP-ECO06N9'),(39,5,'2020-04-22 22:41:11',6,'Створення','admin','DESKTOP-ECO06N9'),(40,1,'2020-04-22 22:43:17',4,'Відкриття','admin','DESKTOP-ECO06N9'),(41,1,'2020-04-22 22:43:24',4,'Видалення документу','admin','DESKTOP-ECO06N9'),(42,1,'2020-04-22 22:43:31',4,'Видалення документу','admin','DESKTOP-ECO06N9'),(43,5,'2020-04-22 22:53:52',7,'Створення','admin','DESKTOP-ECO06N9'),(44,1,'2020-04-22 22:56:13',5,'Створення наряду','admin','DESKTOP-ECO06N9'),(45,1,'2020-04-22 22:56:15',5,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(46,1,'2020-04-22 22:56:28',5,'Відкриття','admin','DESKTOP-ECO06N9'),(47,1,'2020-04-22 22:56:46',5,'Відкриття','admin','DESKTOP-ECO06N9'),(48,6,'2020-04-23 07:00:35',2,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(49,6,'2020-04-23 07:00:35',2,'Зміна площі з 0 на 65,44','admin','DESKTOP-ECO06N9'),(50,1,'2020-04-23 07:03:04',6,'Створення наряду','admin','DESKTOP-ECO06N9'),(51,1,'2020-04-23 07:03:05',6,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(52,1,'2020-04-23 07:03:16',6,'Відкриття','admin','DESKTOP-ECO06N9'),(53,1,'2020-04-23 08:25:33',6,'Відкриття','admin','DESKTOP-ECO06N9'),(54,1,'2020-04-23 08:25:57',6,'Установлення підтвердження тех. операції в False 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(55,1,'2020-04-23 08:25:58',6,'Установлення підтвердження тех. операції в True 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(56,1,'2020-04-23 08:26:07',6,'Установлення блокування даних всього наряду в  True  ','admin','DESKTOP-ECO06N9'),(57,1,'2020-04-23 08:26:10',6,'Установлення блокування даних всього наряду в  False  ','admin','DESKTOP-ECO06N9'),(58,1,'2020-04-23 08:27:15',6,'Відкриття','admin','DESKTOP-ECO06N9'),(59,1,'2020-04-23 08:28:27',5,'Відкриття','admin','DESKTOP-ECO06N9'),(60,1,'2020-04-23 08:29:30',5,'Видалення документу','admin','DESKTOP-ECO06N9'),(61,6,'2020-04-23 08:41:30',5,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(62,6,'2020-04-23 08:41:30',5,'Зміна площі з 0 на 73','admin','DESKTOP-ECO06N9'),(63,6,'2020-04-23 08:45:18',5,'Зміна назви з Носовичі 5 на Жорнище 5','admin','DESKTOP-ECO06N9'),(64,6,'2020-04-23 08:45:18',5,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(65,6,'2020-04-23 08:45:18',5,'Зміна площі з 0 на 73','admin','DESKTOP-ECO06N9'),(66,5,'2020-04-23 08:58:02',8,'Створення','admin','DESKTOP-ECO06N9'),(67,5,'2020-04-23 09:05:27',8,'Видалення документу','admin','DESKTOP-ECO06N9'),(68,1,'2020-04-23 09:06:22',7,'Створення наряду','admin','DESKTOP-ECO06N9'),(69,1,'2020-04-23 09:06:23',7,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(70,1,'2020-04-23 09:06:25',7,'Відкриття','admin','DESKTOP-ECO06N9'),(71,1,'2020-04-23 09:06:33',7,'Відкриття','admin','DESKTOP-ECO06N9'),(72,5,'2020-04-23 09:08:36',9,'Створення','admin','DESKTOP-ECO06N9'),(73,1,'2020-04-23 09:25:13',6,'Відкриття','admin','DESKTOP-ECO06N9'),(74,1,'2020-04-23 09:26:23',7,'Відкриття','admin','DESKTOP-ECO06N9'),(75,1,'2020-04-23 09:40:09',6,'Відкриття','admin','DESKTOP-ECO06N9'),(76,1,'2020-04-23 09:41:11',6,'Відкриття','admin','DESKTOP-ECO06N9'),(77,1,'2020-04-23 09:41:22',6,'Установлення підтвердження тех. операції в False 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(78,1,'2020-04-23 09:41:23',6,'Установлення підтвердження тех. операції в True 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(79,1,'2020-04-23 09:42:45',6,'Відкриття','admin','DESKTOP-ECO06N9'),(80,1,'2020-04-23 09:43:24',6,'Відкриття','admin','DESKTOP-ECO06N9'),(81,1,'2020-04-23 09:45:31',6,'Відкриття','admin','DESKTOP-ECO06N9'),(82,1,'2020-04-23 09:47:37',7,'Відкриття','admin','DESKTOP-ECO06N9'),(83,1,'2020-04-23 10:05:07',6,'Відкриття','admin','DESKTOP-ECO06N9'),(84,1,'2020-04-23 10:05:48',6,'Відкриття','admin','DESKTOP-ECO06N9'),(85,1,'2020-04-23 10:06:29',7,'Відкриття','admin','DESKTOP-ECO06N9'),(86,1,'2020-04-23 10:06:55',7,'Відкриття','admin','DESKTOP-ECO06N9'),(87,1,'2020-04-23 10:07:21',6,'Відкриття','admin','DESKTOP-ECO06N9'),(88,1,'2020-04-23 10:55:50',6,'Відкриття','admin','DESKTOP-ECO06N9'),(89,1,'2020-04-23 10:56:00',6,'Установлення підтвердження тех. операції в False 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(90,1,'2020-04-23 10:56:00',6,'Установлення підтвердження тех. операції в True 23.04.2020 0:00:42 - 23.04.2020 6:44:41 ','admin','DESKTOP-ECO06N9'),(91,1,'2020-04-23 10:56:37',7,'Відкриття','admin','DESKTOP-ECO06N9'),(92,1,'2020-04-23 10:57:24',7,'Установлення блокування даних всього наряду в  True  ','admin','DESKTOP-ECO06N9'),(93,1,'2020-04-23 10:58:18',6,'Відкриття','admin','DESKTOP-ECO06N9'),(94,1,'2020-04-23 10:59:02',6,'Видалення документу','admin','DESKTOP-ECO06N9'),(95,1,'2020-04-23 11:08:28',8,'Створення наряду','admin','DESKTOP-ECO06N9'),(96,1,'2020-04-23 11:08:34',8,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(97,1,'2020-04-23 11:08:34',9,'Створення наряду','admin','DESKTOP-ECO06N9'),(98,1,'2020-04-23 11:08:37',9,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(99,1,'2020-04-23 11:09:49',8,'Видалення документу','admin','DESKTOP-ECO06N9'),(100,1,'2020-04-23 11:09:53',9,'Видалення документу','admin','DESKTOP-ECO06N9'),(101,1,'2020-04-23 11:10:03',10,'Створення наряду','admin','DESKTOP-ECO06N9'),(102,1,'2020-04-23 11:10:05',10,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(103,1,'2020-04-23 11:10:42',10,'Відкриття','admin','DESKTOP-ECO06N9'),(104,1,'2020-04-23 11:12:45',10,'Видалення документу','admin','DESKTOP-ECO06N9'),(105,1,'2020-04-23 11:12:53',7,'Видалення документу','admin','DESKTOP-ECO06N9'),(106,1,'2020-04-23 11:13:06',11,'Створення наряду','admin','DESKTOP-ECO06N9'),(107,1,'2020-04-23 11:13:08',11,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(108,1,'2020-04-23 11:13:24',11,'Відкриття','admin','DESKTOP-ECO06N9'),(109,1,'2020-04-23 11:16:51',11,'Видалення документу','admin','DESKTOP-ECO06N9'),(110,1,'2020-04-23 11:17:06',12,'Створення наряду','admin','DESKTOP-ECO06N9'),(111,1,'2020-04-23 11:17:07',12,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(112,1,'2020-04-23 11:17:11',12,'Відкриття','admin','DESKTOP-ECO06N9'),(113,1,'2020-04-23 14:11:56',12,'Відкриття','admin','DESKTOP-ECO06N9'),(114,1,'2020-04-23 14:12:23',13,'Створення наряду','admin','DESKTOP-ECO06N9'),(115,1,'2020-04-23 14:12:25',13,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(116,1,'2020-04-23 16:45:10',13,'Видалення документу','admin','DESKTOP-ECO06N9'),(117,1,'2020-04-23 16:45:19',14,'Створення наряду','admin','DESKTOP-ECO06N9'),(118,1,'2020-04-23 16:45:23',14,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(119,1,'2020-04-23 16:47:33',12,'Відкриття','admin','DESKTOP-ECO06N9'),(120,1,'2020-04-23 16:48:31',12,'Відкриття','admin','DESKTOP-ECO06N9'),(121,1,'2020-04-23 16:49:20',12,'Відкриття','admin','DESKTOP-ECO06N9'),(122,1,'2020-04-23 16:49:48',14,'Відкриття','admin','DESKTOP-ECO06N9'),(123,1,'2020-04-23 17:07:59',12,'Відкриття','admin','DESKTOP-ECO06N9'),(124,1,'2020-04-23 17:08:37',12,'Відкриття','admin','DESKTOP-ECO06N9'),(125,1,'2020-04-23 17:09:13',12,'Відкриття','admin','DESKTOP-ECO06N9'),(126,1,'2020-04-23 17:09:52',12,'Видалення документу','admin','DESKTOP-ECO06N9'),(127,1,'2020-04-23 17:09:56',15,'Створення наряду','admin','DESKTOP-ECO06N9'),(128,1,'2020-04-23 17:09:59',15,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(129,1,'2020-04-23 17:10:15',15,'Відкриття','admin','DESKTOP-ECO06N9'),(130,1,'2020-04-23 17:10:50',15,'Установлення блокування даних всього наряду в  True  ','admin','DESKTOP-ECO06N9'),(131,1,'2020-04-23 17:16:38',15,'Відкриття','admin','DESKTOP-ECO06N9'),(132,1,'2020-04-23 18:02:42',15,'Видалення документу','admin','DESKTOP-ECO06N9'),(133,1,'2020-04-23 18:02:48',16,'Створення наряду','admin','DESKTOP-ECO06N9'),(134,1,'2020-04-23 18:02:50',16,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(135,1,'2020-04-23 18:02:52',16,'Відкриття','admin','DESKTOP-ECO06N9'),(136,6,'2020-04-23 18:16:21',11,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(137,6,'2020-04-23 18:16:21',11,'Зміна площі з 0 на 62,59','admin','DESKTOP-ECO06N9'),(138,6,'2020-04-23 18:17:06',10,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(139,6,'2020-04-23 18:17:06',10,'Зміна площі з 0 на 92,79','admin','DESKTOP-ECO06N9'),(140,6,'2020-04-23 18:17:41',10,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(141,6,'2020-04-23 18:17:41',10,'Зміна площі з 0 на 91,97','admin','DESKTOP-ECO06N9'),(142,1,'2020-04-23 20:16:32',14,'Видалення документу','admin','DESKTOP-ECO06N9'),(143,1,'2020-04-23 20:16:41',17,'Створення наряду','admin','DESKTOP-ECO06N9'),(144,1,'2020-04-23 20:16:45',17,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(145,1,'2020-04-23 20:16:54',17,'Відкриття','admin','DESKTOP-ECO06N9'),(146,1,'2020-04-23 20:17:45',18,'Створення наряду','admin','DESKTOP-ECO06N9'),(147,1,'2020-04-23 20:17:49',18,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(148,1,'2020-04-23 20:18:15',18,'Відкриття','admin','DESKTOP-ECO06N9'),(149,1,'2020-04-23 20:19:17',18,'Установлення підтвердження тех. операції в False 23.04.2020 13:49:52 - 23.04.2020 13:51:12 ','admin','DESKTOP-ECO06N9'),(150,1,'2020-04-23 22:03:37',17,'Відкриття','admin','DESKTOP-ECO06N9'),(151,1,'2020-04-23 22:03:43',17,'Установлення підтвердження тех. операції в False 23.04.2020 9:27:04 - 23.04.2020 9:35:59 ','admin','DESKTOP-ECO06N9'),(152,1,'2020-04-23 22:04:51',17,'Установлення підтвердження тех. операції в False 23.04.2020 8:55:39 - 23.04.2020 8:56:50 ','admin','DESKTOP-ECO06N9'),(153,1,'2020-04-23 22:10:30',18,'Відкриття','admin','DESKTOP-ECO06N9'),(154,1,'2020-04-23 22:13:30',18,'Видалення документу','admin','DESKTOP-ECO06N9'),(155,1,'2020-04-23 22:13:34',17,'Видалення документу','admin','DESKTOP-ECO06N9'),(156,1,'2020-04-23 22:13:49',19,'Створення наряду','admin','DESKTOP-ECO06N9'),(157,1,'2020-04-23 22:13:54',19,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(158,1,'2020-04-23 22:14:06',19,'Відкриття','admin','DESKTOP-ECO06N9'),(159,5,'2020-04-23 22:20:45',10,'Створення','admin','DESKTOP-ECO06N9'),(160,5,'2020-04-23 22:22:10',9,'Видалення документу','admin','DESKTOP-ECO06N9'),(161,5,'2020-04-23 22:22:17',9,'Видалення документу','admin','DESKTOP-ECO06N9'),(162,1,'2020-04-23 22:23:17',19,'Видалення документу','admin','DESKTOP-ECO06N9'),(163,5,'2020-04-23 22:25:17',11,'Створення','admin','DESKTOP-ECO06N9'),(164,6,'2020-04-23 22:30:46',7,'Зміна назви з Жорнище 10 на Жорнище 11','admin','DESKTOP-ECO06N9'),(165,6,'2020-04-23 22:30:46',7,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(166,6,'2020-04-23 22:30:46',7,'Зміна площі з 0 на 47,19','admin','DESKTOP-ECO06N9'),(167,1,'2020-04-23 22:32:47',20,'Створення наряду','admin','DESKTOP-ECO06N9'),(168,1,'2020-04-23 22:32:51',20,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(169,1,'2020-04-23 22:32:54',20,'Відкриття','admin','DESKTOP-ECO06N9'),(170,1,'2020-04-23 22:34:50',21,'Створення наряду','admin','DESKTOP-ECO06N9'),(171,1,'2020-04-23 22:34:54',21,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(172,1,'2020-04-23 22:35:09',21,'Відкриття','admin','DESKTOP-ECO06N9'),(173,1,'2020-04-25 10:59:10',22,'Створення наряду','admin','DESKTOP-ECO06N9'),(174,1,'2020-04-25 10:59:14',22,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(175,1,'2020-04-25 10:59:24',22,'Відкриття','admin','DESKTOP-ECO06N9'),(176,1,'2020-04-25 11:00:40',23,'Створення наряду','admin','DESKTOP-ECO06N9'),(177,1,'2020-04-25 11:00:44',23,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(178,1,'2020-04-25 11:00:54',23,'Відкриття','admin','DESKTOP-ECO06N9'),(179,1,'2020-04-27 12:45:11',24,'Створення наряду','admin','DESKTOP-ECO06N9'),(180,1,'2020-04-27 12:45:12',24,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(181,1,'2020-04-27 12:45:14',24,'Відкриття','admin','DESKTOP-ECO06N9'),(182,1,'2020-04-27 12:45:30',24,'Установлення блокування даних всього наряду в  True  ','admin','DESKTOP-ECO06N9'),(183,1,'2020-04-27 12:46:05',24,'Відкриття','admin','DESKTOP-ECO06N9'),(184,1,'2020-04-27 12:53:10',24,'Відкриття','admin','DESKTOP-ECO06N9'),(185,5,'2020-04-27 12:54:23',12,'Створення','admin','DESKTOP-ECO06N9'),(186,1,'2020-04-27 13:50:43',24,'Відкриття','admin','DESKTOP-ECO06N9'),(187,1,'2020-04-27 13:52:12',24,'Видалення документу','admin','DESKTOP-ECO06N9'),(188,1,'2020-04-27 13:52:22',25,'Створення наряду','admin','DESKTOP-ECO06N9'),(189,1,'2020-04-27 13:52:23',25,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(190,1,'2020-04-27 13:52:29',25,'Відкриття','admin','DESKTOP-ECO06N9'),(191,1,'2020-04-27 14:03:44',25,'Відкриття','admin','DESKTOP-ECO06N9'),(192,1,'2020-04-27 14:05:17',25,'Відкриття','admin','DESKTOP-ECO06N9'),(193,1,'2020-04-27 14:05:34',25,'Видалення документу','admin','DESKTOP-ECO06N9'),(194,1,'2020-04-27 14:05:43',26,'Створення наряду','admin','DESKTOP-ECO06N9'),(195,1,'2020-04-27 14:05:44',26,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(196,1,'2020-04-27 14:05:45',26,'Відкриття','admin','DESKTOP-ECO06N9'),(197,1,'2020-04-27 14:06:36',26,'Видалення документу','admin','DESKTOP-ECO06N9'),(198,1,'2020-04-27 14:06:40',27,'Створення наряду','admin','DESKTOP-ECO06N9'),(199,1,'2020-04-27 14:06:40',27,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(200,1,'2020-04-27 14:06:40',28,'Створення наряду','admin','DESKTOP-ECO06N9'),(201,1,'2020-04-27 14:06:41',28,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(202,1,'2020-04-27 14:06:41',29,'Створення наряду','admin','DESKTOP-ECO06N9'),(203,1,'2020-04-27 14:06:42',29,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(204,1,'2020-04-27 14:06:42',30,'Створення наряду','admin','DESKTOP-ECO06N9'),(205,1,'2020-04-27 14:06:43',30,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(206,1,'2020-04-27 14:06:44',31,'Створення наряду','admin','DESKTOP-ECO06N9'),(207,1,'2020-04-27 14:06:48',31,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(208,1,'2020-04-27 14:06:48',32,'Створення наряду','admin','DESKTOP-ECO06N9'),(209,1,'2020-04-27 14:06:49',32,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(210,5,'2020-04-27 23:45:28',13,'Створення','admin','DESKTOP-ECO06N9'),(211,5,'2020-04-27 23:48:38',13,'Видалення документу','admin','DESKTOP-ECO06N9'),(212,5,'2020-04-27 23:50:03',14,'Створення','admin','DESKTOP-ECO06N9'),(213,5,'2020-04-29 11:29:41',15,'Створення','admin','DESKTOP-ECO06N9'),(214,1,'2020-04-29 11:53:32',33,'Створення наряду','admin','DESKTOP-ECO06N9'),(215,1,'2020-04-29 11:53:35',33,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(216,1,'2020-04-29 11:53:46',33,'Видалення документу','admin','DESKTOP-ECO06N9'),(217,1,'2020-04-29 11:55:27',34,'Створення наряду','admin','DESKTOP-ECO06N9'),(218,1,'2020-04-29 11:55:29',34,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(219,1,'2020-04-29 11:55:45',34,'Видалення документу','admin','DESKTOP-ECO06N9'),(220,1,'2020-04-29 13:05:48',35,'Створення наряду','admin','DESKTOP-ECO06N9'),(221,1,'2020-04-29 13:05:51',35,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(222,1,'2020-04-29 16:14:36',35,'Відкриття','admin','DESKTOP-ECO06N9'),(223,1,'2020-04-29 16:14:43',35,'Установлення підтвердження тех. операції в False 29.04.2020 0:19:07 - 29.04.2020 0:20:11 ','admin','DESKTOP-ECO06N9'),(224,1,'2020-04-29 16:14:43',35,'Установлення підтвердження тех. операції в False 29.04.2020 0:20:11 - 29.04.2020 0:22:05 ','admin','DESKTOP-ECO06N9'),(225,1,'2020-04-29 16:15:20',35,'Відкриття','admin','DESKTOP-ECO06N9'),(226,1,'2020-04-29 16:15:46',35,'Відкриття','admin','DESKTOP-ECO06N9'),(227,1,'2020-04-29 16:16:00',35,'Видалення документу','admin','DESKTOP-ECO06N9'),(228,1,'2020-04-29 16:16:14',36,'Створення наряду','admin','DESKTOP-ECO06N9'),(229,1,'2020-04-29 16:16:18',36,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(230,1,'2020-04-29 16:16:20',36,'Відкриття','admin','DESKTOP-ECO06N9'),(231,1,'2020-04-29 16:16:28',36,'Видалення документу','admin','DESKTOP-ECO06N9'),(232,1,'2020-04-29 16:18:39',37,'Створення наряду','admin','DESKTOP-ECO06N9'),(233,1,'2020-04-29 16:18:43',37,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(234,1,'2020-04-29 16:21:05',37,'Видалення документу','admin','DESKTOP-ECO06N9'),(235,1,'2020-04-29 16:21:36',38,'Створення наряду','admin','DESKTOP-ECO06N9'),(236,1,'2020-04-29 16:21:40',38,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(237,5,'2020-05-01 19:38:09',16,'Створення','admin','DESKTOP-ECO06N9'),(238,1,'2020-05-01 19:43:28',39,'Створення наряду','admin','DESKTOP-ECO06N9'),(239,1,'2020-05-01 19:43:30',39,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(240,1,'2020-05-01 20:43:31',39,'Відкриття','admin','DESKTOP-ECO06N9'),(241,1,'2020-05-01 20:43:48',39,'Видалення документу','admin','DESKTOP-ECO06N9'),(242,1,'2020-05-01 20:44:13',40,'Створення наряду','admin','DESKTOP-ECO06N9'),(243,1,'2020-05-01 20:44:15',40,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(244,1,'2020-05-01 20:44:20',40,'Відкриття','admin','DESKTOP-ECO06N9'),(245,5,'2020-05-02 13:16:41',17,'Створення','admin','DESKTOP-ECO06N9'),(246,5,'2020-05-02 13:18:08',18,'Створення','admin','DESKTOP-ECO06N9'),(247,5,'2020-05-04 16:47:56',19,'Створення','admin','DESKTOP-ECO06N9'),(248,1,'2020-05-04 16:49:02',41,'Створення наряду','admin','DESKTOP-ECO06N9'),(249,1,'2020-05-04 16:49:05',41,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(250,5,'2020-05-12 21:27:37',20,'Создание','admin','DESKTOP-ECO06N9'),(251,1,'2020-05-12 21:27:53',42,'Создание наряда','admin','DESKTOP-ECO06N9'),(252,1,'2020-05-12 21:27:57',42,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(253,1,'2020-05-12 21:36:21',42,'Открытие','admin','DESKTOP-ECO06N9'),(254,1,'2020-05-12 21:46:20',42,'Удаление документа','admin','DESKTOP-ECO06N9'),(255,1,'2020-05-12 21:46:32',43,'Создание наряда','admin','DESKTOP-ECO06N9'),(256,1,'2020-05-12 21:46:34',43,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(257,1,'2020-05-12 23:37:59',43,'Удаление документа','admin','DESKTOP-ECO06N9'),(258,5,'2020-05-13 00:29:54',21,'Создание','admin','DESKTOP-ECO06N9'),(259,5,'2020-05-13 00:30:01',21,'Добавление содержимого (Id:50)','admin','DESKTOP-ECO06N9'),(260,5,'2020-05-13 00:30:17',21,'Редактирование содержимого (Id:50)','admin','DESKTOP-ECO06N9'),(261,5,'2020-05-13 00:30:19',21,'Редактирование содержимого (Id:50)','admin','DESKTOP-ECO06N9'),(262,5,'2020-05-13 00:30:23',21,'Редактирование содержимого (Id:50)','admin','DESKTOP-ECO06N9'),(263,5,'2020-05-13 00:30:29',21,'Добавление содержимого (Id:51)','admin','DESKTOP-ECO06N9'),(264,5,'2020-05-13 00:30:31',21,'Редактирование содержимого (Id:51)','admin','DESKTOP-ECO06N9'),(265,5,'2020-05-13 00:30:34',21,'Редактирование содержимого (Id:51)','admin','DESKTOP-ECO06N9'),(266,5,'2020-05-13 00:30:35',21,'Редактирование содержимого (Id:51)','admin','DESKTOP-ECO06N9'),(267,5,'2020-05-13 00:30:42',21,'Редактирование содержимого (Id:50)','admin','DESKTOP-ECO06N9'),(268,1,'2020-05-13 00:31:12',44,'Создание наряда','admin','DESKTOP-ECO06N9'),(269,1,'2020-05-13 00:31:14',44,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(270,1,'2020-05-13 00:31:14',45,'Создание наряда','admin','DESKTOP-ECO06N9'),(271,1,'2020-05-13 00:31:15',45,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(272,5,'2020-07-19 10:16:37',22,'Создание','admin','DESKTOP-ECO06N9'),(273,5,'2020-07-19 10:30:12',22,'Добавление содержимого (Id:58)','admin','DESKTOP-ECO06N9'),(274,5,'2020-07-19 10:30:25',22,'Редактирование содержимого (Id:58)','admin','DESKTOP-ECO06N9'),(275,5,'2020-07-19 10:30:29',22,'Редактирование содержимого (Id:58)','admin','DESKTOP-ECO06N9'),(276,5,'2020-07-19 10:30:36',22,'Редактирование содержимого (Id:58)','admin','DESKTOP-ECO06N9'),(277,5,'2020-07-19 10:33:39',22,'Добавление содержимого (Id:73)','admin','DESKTOP-ECO06N9'),(278,5,'2020-07-19 10:33:47',22,'Редактирование содержимого (Id:73)','admin','DESKTOP-ECO06N9'),(279,5,'2020-07-19 10:33:51',22,'Редактирование содержимого (Id:73)','admin','DESKTOP-ECO06N9'),(280,5,'2020-07-19 10:33:54',22,'Редактирование содержимого (Id:73)','admin','DESKTOP-ECO06N9'),(281,5,'2020-07-20 16:43:54',23,'Создание','admin','DESKTOP-ECO06N9'),(282,5,'2020-07-20 16:44:17',24,'Создание','admin','DESKTOP-ECO06N9'),(283,5,'2020-07-20 16:44:27',24,'Добавление содержимого (Id:78)','admin','DESKTOP-ECO06N9'),(284,5,'2020-07-20 16:44:35',24,'Редактирование содержимого (Id:78)','admin','DESKTOP-ECO06N9'),(285,5,'2020-07-20 16:44:38',24,'Редактирование содержимого (Id:78)','admin','DESKTOP-ECO06N9'),(286,5,'2020-07-20 16:44:47',24,'Редактирование содержимого (Id:78)','admin','DESKTOP-ECO06N9'),(287,5,'2020-07-20 16:45:57',24,'Добавление содержимого (Id:79)','admin','DESKTOP-ECO06N9'),(288,5,'2020-07-20 16:46:04',24,'Редактирование содержимого (Id:79)','admin','DESKTOP-ECO06N9'),(289,5,'2020-07-20 16:46:06',24,'Редактирование содержимого (Id:79)','admin','DESKTOP-ECO06N9'),(290,5,'2020-07-20 16:46:10',24,'Редактирование содержимого (Id:79)','admin','DESKTOP-ECO06N9'),(291,5,'2020-07-20 16:46:30',23,'Добавление содержимого (Id:80)','admin','DESKTOP-ECO06N9'),(292,5,'2020-07-20 16:46:35',23,'Редактирование содержимого (Id:80)','admin','DESKTOP-ECO06N9'),(293,5,'2020-07-20 16:46:38',23,'Редактирование содержимого (Id:80)','admin','DESKTOP-ECO06N9'),(294,5,'2020-07-20 16:46:44',23,'Редактирование содержимого (Id:80)','admin','DESKTOP-ECO06N9'),(295,5,'2020-07-20 16:46:49',23,'Добавление содержимого (Id:81)','admin','DESKTOP-ECO06N9'),(296,5,'2020-07-20 16:46:52',23,'Редактирование содержимого (Id:81)','admin','DESKTOP-ECO06N9'),(297,5,'2020-07-20 16:46:55',23,'Редактирование содержимого (Id:81)','admin','DESKTOP-ECO06N9'),(298,5,'2020-07-20 16:46:57',23,'Редактирование содержимого (Id:81)','admin','DESKTOP-ECO06N9'),(299,5,'2020-07-23 10:26:30',25,'Создание','admin','DESKTOP-ECO06N9'),(300,5,'2020-07-23 10:26:40',25,'Добавление содержимого (Id:82)','admin','DESKTOP-ECO06N9'),(301,5,'2020-07-23 10:28:48',25,'Редактирование содержимого (Id:82)','admin','DESKTOP-ECO06N9'),(302,5,'2020-07-23 10:28:51',25,'Редактирование содержимого (Id:82)','admin','DESKTOP-ECO06N9'),(303,5,'2020-07-23 10:28:57',25,'Редактирование содержимого (Id:82)','admin','DESKTOP-ECO06N9'),(304,5,'2020-07-23 10:29:25',26,'Создание','admin','DESKTOP-ECO06N9'),(305,5,'2020-07-23 10:29:32',26,'Добавление содержимого (Id:83)','admin','DESKTOP-ECO06N9'),(306,5,'2020-07-23 10:29:37',26,'Редактирование содержимого (Id:83)','admin','DESKTOP-ECO06N9'),(307,5,'2020-07-23 10:29:40',26,'Редактирование содержимого (Id:83)','admin','DESKTOP-ECO06N9'),(308,5,'2020-07-23 10:29:43',26,'Редактирование содержимого (Id:83)','admin','DESKTOP-ECO06N9'),(309,5,'2020-07-23 10:30:05',27,'Создание','admin','DESKTOP-ECO06N9'),(310,5,'2020-07-23 10:30:10',27,'Добавление содержимого (Id:84)','admin','DESKTOP-ECO06N9'),(311,5,'2020-07-23 10:30:12',27,'Редактирование содержимого (Id:84)','admin','DESKTOP-ECO06N9'),(312,5,'2020-07-23 10:30:14',27,'Редактирование содержимого (Id:84)','admin','DESKTOP-ECO06N9'),(313,5,'2020-07-23 10:30:19',27,'Редактирование содержимого (Id:84)','admin','DESKTOP-ECO06N9'),(314,5,'2020-07-23 10:32:32',28,'Создание','admin','DESKTOP-ECO06N9'),(315,5,'2020-07-23 10:32:38',28,'Добавление содержимого (Id:85)','admin','DESKTOP-ECO06N9'),(316,5,'2020-07-23 10:32:42',28,'Редактирование содержимого (Id:85)','admin','DESKTOP-ECO06N9'),(317,5,'2020-07-23 10:38:39',28,'Редактирование содержимого (Id:85)','admin','DESKTOP-ECO06N9'),(318,5,'2020-07-23 10:38:52',28,'Редактирование содержимого (Id:85)','admin','DESKTOP-ECO06N9'),(319,1,'2020-07-23 10:56:26',46,'Создание наряда','admin','DESKTOP-ECO06N9'),(320,1,'2020-07-23 10:56:28',46,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(321,5,'2020-07-23 11:01:17',25,'Редактирование заголовка','admin','DESKTOP-ECO06N9'),(322,5,'2020-07-23 11:03:18',27,'Редактирование заголовка','admin','DESKTOP-ECO06N9'),(323,5,'2020-07-23 11:03:28',28,'Редактирование заголовка','admin','DESKTOP-ECO06N9'),(324,1,'2020-07-23 11:04:32',46,'Открытие','admin','DESKTOP-ECO06N9'),(325,1,'2020-07-23 11:04:43',46,'Установка подтверждения работы в False 23.07.2020 10:26:39 - 23.07.2020 10:55:53 ','admin','DESKTOP-ECO06N9'),(326,1,'2020-07-23 11:04:45',46,'Установка подтверждения работы в True 23.07.2020 10:26:39 - 23.07.2020 10:55:53 ','admin','DESKTOP-ECO06N9'),(327,1,'2020-07-23 11:05:00',46,'Удаление документа','admin','DESKTOP-ECO06N9'),(328,5,'2020-07-23 11:06:40',28,'Редактирование заголовка','admin','DESKTOP-ECO06N9'),(329,1,'2020-07-23 11:06:58',47,'Создание наряда','admin','DESKTOP-ECO06N9'),(330,1,'2020-07-23 11:06:59',47,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(331,1,'2020-07-23 13:43:48',47,'Удаление документа','admin','DESKTOP-ECO06N9'),(332,5,'2020-07-25 14:47:39',33,'Создание','admin','DESKTOP-ECO06N9'),(333,5,'2020-07-25 14:47:54',33,'Добавление содержимого (Id:98)','admin','DESKTOP-ECO06N9'),(334,5,'2020-07-25 14:48:07',33,'Редактирование содержимого (Id:98)','admin','DESKTOP-ECO06N9'),(335,5,'2020-07-25 14:48:10',33,'Редактирование содержимого (Id:98)','admin','DESKTOP-ECO06N9'),(336,5,'2020-07-25 14:48:15',33,'Редактирование содержимого (Id:98)','admin','DESKTOP-ECO06N9'),(337,5,'2020-07-25 14:48:24',33,'Добавление содержимого (Id:99)','admin','DESKTOP-ECO06N9'),(338,5,'2020-07-25 14:48:31',33,'Редактирование содержимого (Id:99)','admin','DESKTOP-ECO06N9'),(339,5,'2020-07-25 14:48:33',33,'Редактирование содержимого (Id:99)','admin','DESKTOP-ECO06N9'),(340,5,'2020-07-25 14:48:38',33,'Редактирование содержимого (Id:99)','admin','DESKTOP-ECO06N9'),(341,5,'2020-07-25 14:48:40',33,'Редактирование заголовка','admin','DESKTOP-ECO06N9'),(342,5,'2020-07-25 14:49:16',34,'Создание','admin','DESKTOP-ECO06N9'),(343,5,'2020-07-25 14:49:29',34,'Добавление содержимого (Id:100)','admin','DESKTOP-ECO06N9'),(344,5,'2020-07-25 14:49:35',34,'Редактирование содержимого (Id:100)','admin','DESKTOP-ECO06N9'),(345,5,'2020-07-25 14:49:38',34,'Редактирование содержимого (Id:100)','admin','DESKTOP-ECO06N9'),(346,5,'2020-07-25 14:49:42',34,'Редактирование содержимого (Id:100)','admin','DESKTOP-ECO06N9'),(347,5,'2020-07-25 14:49:46',34,'Добавление содержимого (Id:101)','admin','DESKTOP-ECO06N9'),(348,5,'2020-07-25 14:49:56',34,'Редактирование содержимого (Id:101)','admin','DESKTOP-ECO06N9'),(349,5,'2020-07-25 14:50:18',34,'Редактирование содержимого (Id:101)','admin','DESKTOP-ECO06N9'),(350,5,'2020-07-25 14:50:25',34,'Редактирование содержимого (Id:101)','admin','DESKTOP-ECO06N9'),(351,5,'2020-07-25 14:51:21',35,'Создание','admin','DESKTOP-ECO06N9'),(352,5,'2020-07-25 14:52:12',35,'Добавление содержимого (Id:102)','admin','DESKTOP-ECO06N9'),(353,5,'2020-07-25 14:52:17',35,'Редактирование содержимого (Id:102)','admin','DESKTOP-ECO06N9'),(354,5,'2020-07-25 14:52:21',35,'Редактирование содержимого (Id:102)','admin','DESKTOP-ECO06N9'),(355,5,'2020-07-25 14:52:42',35,'Редактирование содержимого (Id:102)','admin','DESKTOP-ECO06N9'),(356,5,'2020-07-25 14:52:46',35,'Добавление содержимого (Id:103)','admin','DESKTOP-ECO06N9'),(357,5,'2020-07-25 14:52:49',35,'Редактирование содержимого (Id:103)','admin','DESKTOP-ECO06N9'),(358,5,'2020-07-25 14:52:51',35,'Редактирование содержимого (Id:103)','admin','DESKTOP-ECO06N9'),(359,5,'2020-07-25 14:52:55',35,'Редактирование содержимого (Id:103)','admin','DESKTOP-ECO06N9'),(360,5,'2020-07-25 14:53:50',36,'Создание','admin','DESKTOP-ECO06N9'),(361,5,'2020-07-25 14:54:00',36,'Добавление содержимого (Id:104)','admin','DESKTOP-ECO06N9'),(362,5,'2020-07-25 14:54:10',36,'Редактирование содержимого (Id:104)','admin','DESKTOP-ECO06N9'),(363,5,'2020-07-25 14:57:00',36,'Редактирование содержимого (Id:104)','admin','DESKTOP-ECO06N9'),(364,5,'2020-07-25 14:57:06',36,'Редактирование содержимого (Id:104)','admin','DESKTOP-ECO06N9'),(365,5,'2020-07-25 14:57:35',36,'Добавление содержимого (Id:105)','admin','DESKTOP-ECO06N9'),(366,5,'2020-07-25 14:57:43',36,'Редактирование содержимого (Id:105)','admin','DESKTOP-ECO06N9'),(367,5,'2020-07-25 14:57:45',36,'Редактирование содержимого (Id:105)','admin','DESKTOP-ECO06N9'),(368,5,'2020-07-25 14:57:50',36,'Редактирование содержимого (Id:105)','admin','DESKTOP-ECO06N9'),(369,5,'2020-08-09 13:49:02',37,'Создание','admin','DESKTOP-ECO06N9'),(370,5,'2020-08-09 13:49:08',37,'Добавление содержимого (Id:106)','admin','DESKTOP-ECO06N9'),(371,5,'2020-08-09 13:49:16',37,'Редактирование содержимого (Id:106)','admin','DESKTOP-ECO06N9'),(372,5,'2020-08-09 13:49:21',37,'Редактирование содержимого (Id:106)','admin','DESKTOP-ECO06N9'),(373,5,'2020-08-09 13:49:26',37,'Редактирование содержимого (Id:106)','admin','DESKTOP-ECO06N9'),(374,5,'2020-08-09 13:50:12',38,'Создание','admin','DESKTOP-ECO06N9'),(375,5,'2020-08-09 13:50:21',38,'Добавление содержимого (Id:107)','admin','DESKTOP-ECO06N9'),(376,6,'2020-11-12 12:34:59',24,'Смена площади с 0 на 142,56','admin','DESKTOP-ECO06N9'),(377,6,'2021-04-10 16:26:27',29,'Смена площади с 0 на 48,86','admin','DESKTOP-ECO06N9'),(378,6,'2021-04-10 21:38:59',29,'Смена площади с 0 на 49,99','admin','DESKTOP-ECO06N9'),(379,6,'2021-07-25 09:16:13',29,'Смена площади с 0 на 50,69','admin','DESKTOP-ECO06N9'),(380,5,'2023-08-12 10:00:14',39,'Створення','admin','DESKTOP-ECO06N9'),(381,5,'2023-08-12 10:04:55',40,'Створення','admin','DESKTOP-ECO06N9'),(382,5,'2023-08-12 10:38:05',41,'Створення','admin','DESKTOP-ECO06N9'),(383,5,'2023-08-12 10:38:49',41,'Видалення документу','admin','DESKTOP-ECO06N9'),(384,1,'2023-08-12 10:39:52',46,'Створення наряду','admin','DESKTOP-ECO06N9'),(385,1,'2023-08-12 10:39:55',46,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(386,1,'2023-08-12 10:40:13',46,'Відкриття','admin','DESKTOP-ECO06N9'),(387,1,'2023-08-12 10:40:44',46,'Пересчет наряда с учетом управляющих данных','admin','DESKTOP-ECO06N9'),(388,1,'2023-08-12 10:47:08',46,'Відкриття','admin','DESKTOP-ECO06N9'),(389,1,'2023-08-12 10:47:18',46,'Відкриття','admin','DESKTOP-ECO06N9'),(390,6,'2023-10-18 10:52:09',7,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(391,6,'2023-10-18 10:52:10',7,'Зміна площі з 0 на 50,66','admin','DESKTOP-ECO06N9'),(392,1,'2023-11-07 18:01:07',47,'Створення наряду','admin','DESKTOP-ECO06N9'),(393,1,'2023-11-07 18:01:11',47,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(394,1,'2023-11-07 18:09:56',47,'Відкриття','admin','DESKTOP-ECO06N9'),(395,5,'2023-11-07 18:11:13',41,'Створення','admin','DESKTOP-ECO06N9'),(396,1,'2023-11-07 18:16:05',47,'Відкриття','admin','DESKTOP-ECO06N9'),(397,1,'2023-11-07 18:16:40',47,'Пересчет наряда с учетом управляющих данных','admin','DESKTOP-ECO06N9'),(398,1,'2023-11-07 18:16:54',47,'Відкриття','admin','DESKTOP-ECO06N9'),(399,1,'2023-11-07 18:16:59',47,'Відкриття','admin','DESKTOP-ECO06N9'),(400,5,'2023-11-07 18:20:25',41,'Видалення документу','admin','DESKTOP-ECO06N9'),(401,5,'2023-11-07 18:21:08',42,'Створення','admin','DESKTOP-ECO06N9'),(402,5,'2023-11-07 18:31:38',43,'Створення','admin','DESKTOP-ECO06N9'),(403,1,'2023-11-07 18:39:10',47,'Відкриття','admin','DESKTOP-ECO06N9'),(404,1,'2023-11-07 18:40:35',47,'Відкриття','admin','DESKTOP-ECO06N9'),(405,1,'2023-11-07 19:10:59',47,'Відкриття','admin','DESKTOP-ECO06N9'),(406,5,'2023-11-07 19:15:46',43,'Видалення документу','admin','DESKTOP-ECO06N9'),(407,5,'2023-11-07 19:15:49',42,'Видалення документу','admin','DESKTOP-ECO06N9'),(408,5,'2023-11-07 19:16:01',42,'Видалення документу','admin','DESKTOP-ECO06N9'),(409,5,'2023-11-07 19:16:24',44,'Створення','admin','DESKTOP-ECO06N9'),(410,5,'2023-11-07 19:18:53',44,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(411,1,'2023-11-07 19:21:12',47,'Видалення документу','admin','DESKTOP-ECO06N9'),(412,5,'2023-11-07 19:21:29',45,'Створення','admin','DESKTOP-ECO06N9'),(413,5,'2023-11-07 19:26:25',45,'Видалення документу','admin','DESKTOP-ECO06N9'),(414,1,'2023-11-07 19:26:52',48,'Створення наряду','admin','DESKTOP-ECO06N9'),(415,1,'2023-11-07 19:26:59',48,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(416,1,'2023-11-07 19:28:43',48,'Відкриття','admin','DESKTOP-ECO06N9'),(417,1,'2023-11-07 19:28:57',48,'Відкриття','admin','DESKTOP-ECO06N9'),(418,1,'2023-11-07 19:29:18',48,'Відкриття','admin','DESKTOP-ECO06N9'),(419,1,'2023-11-07 19:30:06',48,'Відкриття','admin','DESKTOP-ECO06N9'),(420,1,'2023-11-07 19:30:16',48,'Відкриття','admin','DESKTOP-ECO06N9'),(421,1,'2023-11-07 19:30:30',48,'Відкриття','admin','DESKTOP-ECO06N9'),(422,1,'2023-11-07 19:31:45',48,'Відкриття','admin','DESKTOP-ECO06N9'),(423,1,'2023-11-07 19:33:00',48,'Відкриття','admin','DESKTOP-ECO06N9'),(424,1,'2023-11-07 19:41:25',48,'Відкриття','admin','DESKTOP-ECO06N9'),(425,1,'2023-11-07 19:42:05',48,'Відкриття','admin','DESKTOP-ECO06N9'),(426,1,'2023-11-09 08:49:29',49,'Створення наряду','admin','DESKTOP-ECO06N9'),(427,1,'2023-11-09 08:49:53',49,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(428,1,'2023-11-09 08:49:54',50,'Створення наряду','admin','DESKTOP-ECO06N9'),(429,1,'2023-11-09 08:50:21',50,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(430,5,'2023-11-09 08:52:03',44,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(431,5,'2023-11-09 08:55:53',46,'Створення','admin','DESKTOP-ECO06N9'),(432,5,'2023-11-09 09:02:42',47,'Створення','admin','DESKTOP-ECO06N9'),(433,5,'2023-11-09 09:03:47',47,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(434,1,'2023-11-09 09:25:24',51,'Створення наряду','admin','DESKTOP-ECO06N9'),(435,1,'2023-11-09 09:25:25',51,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(436,1,'2023-11-09 09:25:43',51,'Видалення документу','admin','DESKTOP-ECO06N9'),(437,1,'2023-11-09 09:25:50',52,'Створення наряду','admin','DESKTOP-ECO06N9'),(438,1,'2023-11-09 09:25:51',52,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(439,1,'2023-11-09 09:26:04',52,'Видалення документу','admin','DESKTOP-ECO06N9'),(440,1,'2023-11-09 09:34:13',50,'Відкриття','admin','DESKTOP-ECO06N9'),(441,5,'2023-11-09 10:11:02',48,'Створення','admin','DESKTOP-ECO06N9'),(442,5,'2023-11-09 10:17:18',49,'Створення','admin','DESKTOP-ECO06N9'),(443,5,'2023-11-09 10:22:07',49,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(444,1,'2023-11-09 10:47:41',53,'Створення наряду','admin','DESKTOP-ECO06N9'),(445,1,'2023-11-09 10:47:43',53,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(446,1,'2023-11-09 10:47:44',54,'Створення наряду','admin','DESKTOP-ECO06N9'),(447,1,'2023-11-09 10:47:46',54,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(448,1,'2023-11-09 10:47:46',55,'Створення наряду','admin','DESKTOP-ECO06N9'),(449,1,'2023-11-09 10:47:48',55,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(450,1,'2023-11-09 10:47:49',56,'Створення наряду','admin','DESKTOP-ECO06N9'),(451,1,'2023-11-09 10:47:50',56,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(452,1,'2023-11-09 10:47:50',57,'Створення наряду','admin','DESKTOP-ECO06N9'),(453,1,'2023-11-09 10:47:52',57,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(454,1,'2023-11-09 10:58:00',56,'Відкриття','Администратор','DESKTOP-ECO06N9'),(455,1,'2023-11-09 10:58:48',53,'Відкриття','Администратор','DESKTOP-ECO06N9'),(456,1,'2023-11-09 18:12:01',54,'Відкриття','admin','DESKTOP-ECO06N9'),(457,1,'2023-11-09 18:13:32',53,'Відкриття','admin','DESKTOP-ECO06N9'),(458,1,'2023-11-09 18:13:43',53,'Відкриття','admin','DESKTOP-ECO06N9'),(459,1,'2023-11-09 18:16:05',53,'Відкриття','admin','DESKTOP-ECO06N9'),(460,1,'2023-11-09 18:16:17',54,'Відкриття','admin','DESKTOP-ECO06N9'),(461,1,'2023-11-09 18:17:21',54,'Відкриття','admin','DESKTOP-ECO06N9'),(462,1,'2023-11-09 18:17:32',54,'Відкриття','admin','DESKTOP-ECO06N9'),(463,1,'2023-11-09 18:17:48',53,'Відкриття','admin','DESKTOP-ECO06N9'),(464,1,'2023-11-09 18:17:52',54,'Відкриття','admin','DESKTOP-ECO06N9'),(465,1,'2023-11-09 18:17:56',55,'Відкриття','admin','DESKTOP-ECO06N9'),(466,1,'2023-11-09 18:18:00',56,'Відкриття','admin','DESKTOP-ECO06N9'),(467,1,'2023-11-09 18:20:10',54,'Відкриття','admin','DESKTOP-ECO06N9'),(468,5,'2023-11-09 18:20:47',47,'Видалення документу','admin','DESKTOP-ECO06N9'),(469,5,'2023-11-09 18:21:13',49,'Зв\'язок з нарядом № 56','admin','DESKTOP-ECO06N9'),(470,5,'2023-11-09 18:21:15',49,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(471,5,'2023-11-09 18:22:19',48,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(472,1,'2023-11-09 18:23:31',54,'Видалення документу','admin','DESKTOP-ECO06N9'),(473,1,'2023-11-09 18:23:34',55,'Відкриття','admin','DESKTOP-ECO06N9'),(474,1,'2023-11-09 18:24:02',57,'Відкриття','admin','DESKTOP-ECO06N9'),(475,1,'2023-11-09 18:29:07',53,'Відкриття','admin','DESKTOP-ECO06N9'),(476,1,'2023-11-09 18:29:09',53,'Установлення блокування даних всього наряду в  True  ','admin','DESKTOP-ECO06N9'),(477,1,'2023-11-09 18:29:22',53,'Установлення підтвердження тех. операції в False 09.11.2023 0:00:10 - 09.11.2023 10:46:16 ','admin','DESKTOP-ECO06N9'),(478,1,'2023-11-09 18:29:23',53,'Установлення підтвердження тех. операції в True 09.11.2023 0:00:10 - 09.11.2023 10:46:16 ','admin','DESKTOP-ECO06N9'),(479,1,'2023-11-09 18:29:25',53,'Установлення підтвердження тех. операції в False 09.11.2023 0:00:10 - 09.11.2023 10:46:16 ','admin','DESKTOP-ECO06N9'),(480,1,'2023-11-09 18:29:52',57,'Відкриття','admin','DESKTOP-ECO06N9'),(481,1,'2023-11-09 18:30:03',57,'Відкриття','admin','DESKTOP-ECO06N9'),(482,1,'2023-11-09 18:30:16',57,'Відкриття','admin','DESKTOP-ECO06N9'),(483,6,'2023-11-24 12:08:59',52,'Зміна назви з Талах на Метельне 1-2(Талах)','admin','DESKTOP-ECO06N9'),(484,6,'2023-11-24 12:08:59',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(485,6,'2023-11-24 12:08:59',52,'Зміна площі з 0 на 5,25','admin','DESKTOP-ECO06N9'),(486,5,'2024-02-23 15:35:03',50,'Створення','admin','DESKTOP-ECO06N9'),(487,1,'2024-02-23 15:38:55',58,'Створення наряду','admin','DESKTOP-ECO06N9'),(488,1,'2024-02-23 15:38:57',58,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(489,1,'2024-02-23 15:39:03',58,'Відкриття','admin','DESKTOP-ECO06N9'),(490,5,'2024-02-23 15:40:41',50,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(491,5,'2024-02-23 15:41:19',50,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(492,5,'2024-02-23 15:42:35',51,'Створення','admin','DESKTOP-ECO06N9'),(493,1,'2024-02-23 15:44:36',59,'Створення наряду','admin','DESKTOP-ECO06N9'),(494,1,'2024-02-23 15:44:39',59,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(495,1,'2024-02-23 15:44:44',59,'Відкриття','admin','DESKTOP-ECO06N9'),(496,1,'2024-02-23 15:55:54',59,'Відкриття','admin','DESKTOP-ECO06N9'),(497,5,'2024-02-23 15:56:17',51,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(498,1,'2024-02-23 15:57:31',59,'Відкриття','admin','DESKTOP-ECO06N9'),(499,1,'2024-02-23 15:57:40',59,'Видалення документу','admin','DESKTOP-ECO06N9'),(500,1,'2024-02-23 15:57:55',60,'Створення наряду','admin','DESKTOP-ECO06N9'),(501,1,'2024-02-23 15:57:58',60,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(502,1,'2024-02-23 15:59:09',58,'Видалення документу','admin','DESKTOP-ECO06N9'),(503,1,'2024-02-23 15:59:18',60,'Видалення документу','admin','DESKTOP-ECO06N9'),(504,1,'2024-02-23 16:00:06',61,'Створення наряду','admin','DESKTOP-ECO06N9'),(505,1,'2024-02-23 16:00:08',61,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(506,1,'2024-02-23 16:00:14',61,'Видалення документу','admin','DESKTOP-ECO06N9'),(507,5,'2024-02-23 16:00:51',50,'Видалення документу','admin','DESKTOP-ECO06N9'),(508,6,'2024-03-28 14:24:48',49,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(509,6,'2024-03-28 14:24:48',49,'Зміна площі з 0 на 105,66','admin','DESKTOP-ECO06N9'),(510,6,'2024-04-12 16:20:08',58,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(511,6,'2024-07-10 10:38:58',32,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(512,6,'2024-07-10 10:38:58',32,'Зміна площі з 0 на 13,85','admin','DESKTOP-ECO06N9'),(513,6,'2024-07-10 10:39:04',33,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(514,6,'2024-07-10 10:39:04',33,'Зміна площі з 0 на 5,24','admin','DESKTOP-ECO06N9'),(515,6,'2024-07-10 10:39:10',34,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(516,6,'2024-07-10 10:39:10',34,'Зміна площі з 0 на 2,17','admin','DESKTOP-ECO06N9'),(517,6,'2024-07-10 10:39:14',35,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(518,6,'2024-07-10 10:39:14',35,'Зміна площі з 0 на 3,95','admin','DESKTOP-ECO06N9'),(519,6,'2024-07-10 10:39:22',36,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(520,6,'2024-07-10 10:39:22',36,'Зміна площі з 0 на 1,97','admin','DESKTOP-ECO06N9'),(521,6,'2024-07-10 10:39:42',23,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(522,6,'2024-07-10 10:39:42',23,'Зміна площі з 0 на 43,12','admin','DESKTOP-ECO06N9'),(523,6,'2024-07-10 10:39:47',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(524,6,'2024-07-10 10:39:48',24,'Зміна площі з 0 на 142,56','admin','DESKTOP-ECO06N9'),(525,6,'2024-07-22 10:22:30',31,'Видалення ','admin','DESKTOP-ECO06N9'),(526,6,'2024-07-22 10:22:50',60,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(527,6,'2024-07-22 10:22:50',60,'Зміна площі з 0 на 27,9','admin','DESKTOP-ECO06N9'),(528,6,'2024-07-22 12:05:46',60,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(529,6,'2024-07-22 12:05:46',60,'Зміна площі з 0 на 25,66','admin','DESKTOP-ECO06N9'),(530,6,'2024-07-22 14:14:13',60,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(531,6,'2024-07-22 14:14:13',60,'Зміна площі з 0 на 27,59','admin','DESKTOP-ECO06N9'),(532,6,'2024-08-05 11:43:30',11,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(533,6,'2024-08-05 11:43:30',11,'Зміна площі з 0 на 65,56','admin','DESKTOP-ECO06N9'),(534,6,'2024-08-05 11:52:03',2,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(535,6,'2024-08-05 11:52:03',2,'Зміна площі з 0 на 77,37','admin','DESKTOP-ECO06N9'),(536,6,'2024-08-19 08:45:21',55,'Видалення ','admin','DESKTOP-ECO06N9'),(537,6,'2024-09-24 17:57:46',19,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(538,6,'2024-09-24 17:57:46',19,'Зміна площі з 0 на 68,22','admin','DESKTOP-ECO06N9'),(539,6,'2024-09-24 17:59:45',2,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(540,6,'2024-09-24 17:59:45',2,'Зміна площі з 0 на 76,59','admin','DESKTOP-ECO06N9'),(541,6,'2024-10-01 09:40:05',63,'Зміна назви з Жорнище 7А на Метельне 7А','admin','DESKTOP-ECO06N9'),(542,6,'2024-10-01 09:40:05',63,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(543,6,'2024-10-01 09:40:05',63,'Зміна площі з 0 на 106,92','admin','DESKTOP-ECO06N9'),(544,6,'2024-10-15 08:13:31',28,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(545,6,'2024-10-15 08:13:31',28,'Зміна площі з 0 на 84','admin','DESKTOP-ECO06N9'),(546,6,'2024-10-15 18:56:59',29,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(547,6,'2024-10-15 18:56:59',29,'Зміна площі з 0 на 53,7','admin','DESKTOP-ECO06N9'),(548,6,'2024-10-16 19:44:37',64,'Видалення ','admin','DESKTOP-ECO06N9'),(549,6,'2024-10-16 19:44:44',63,'Видалення ','admin','DESKTOP-ECO06N9'),(550,6,'2024-10-28 13:59:13',76,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(551,6,'2024-10-28 13:59:13',76,'Зміна площі з 0 на 30,02','admin','DESKTOP-ECO06N9'),(552,6,'2024-11-05 13:52:12',11,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(553,6,'2024-11-05 13:52:13',11,'Зміна площі з 0 на 67,69','admin','DESKTOP-ECO06N9'),(554,6,'2024-11-06 15:19:32',6,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(555,6,'2024-11-06 15:19:32',6,'Зміна площі з 0 на 77,1','admin','DESKTOP-ECO06N9'),(556,6,'2024-11-08 10:32:46',78,'Зміна назви з р771а на  Личани р771а','admin','DESKTOP-ECO06N9'),(557,6,'2024-11-08 10:32:46',78,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(558,6,'2024-11-08 10:32:46',78,'Зміна площі з 0 на 1,03','admin','DESKTOP-ECO06N9'),(559,6,'2025-01-08 12:38:29',29,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(560,6,'2025-01-08 12:38:30',29,'Зміна площі з 0 на 53,99','admin','DESKTOP-ECO06N9'),(561,6,'2025-01-08 12:40:02',74,'Видалення ','admin','DESKTOP-ECO06N9'),(562,6,'2025-01-08 12:41:35',73,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(563,6,'2025-01-08 12:41:35',73,'Зміна площі з 0 на 3,33','admin','DESKTOP-ECO06N9'),(564,6,'2025-01-08 12:44:24',76,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(565,6,'2025-01-08 12:44:24',76,'Зміна площі з 0 на 30,1','admin','DESKTOP-ECO06N9'),(566,6,'2025-01-08 12:46:17',73,'Зміна назви з Метельне 13 на Метельне 2Б','admin','DESKTOP-ECO06N9'),(567,6,'2025-01-08 12:46:17',73,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(568,6,'2025-01-08 12:46:17',73,'Зміна площі з 0 на 3,33','admin','DESKTOP-ECO06N9'),(569,6,'2025-01-08 12:46:37',80,'Зміна назви з Метельне (424-425б) на Метельне 2В (424-425б)','admin','DESKTOP-ECO06N9'),(570,6,'2025-01-08 12:46:37',80,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(571,6,'2025-01-08 12:46:37',80,'Зміна площі з 0 на 2,22','admin','DESKTOP-ECO06N9'),(572,6,'2025-01-08 12:47:44',81,'Зміна назви з Нова зона на Метельне 2А','admin','DESKTOP-ECO06N9'),(573,6,'2025-01-08 12:47:44',81,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(574,6,'2025-01-08 12:47:44',81,'Зміна площі з 0 на 31,02','admin','DESKTOP-ECO06N9'),(575,6,'2025-01-08 12:48:05',81,'Видалення ','admin','DESKTOP-ECO06N9'),(576,6,'2025-01-08 12:51:49',77,'Видалення ','admin','DESKTOP-ECO06N9'),(577,6,'2025-01-08 13:03:23',58,'Видалення ','admin','DESKTOP-ECO06N9'),(578,6,'2025-01-08 13:39:35',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(579,6,'2025-01-08 13:39:36',61,'Зміна площі з 0 на 6','admin','DESKTOP-ECO06N9'),(580,6,'2025-01-08 13:40:56',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(581,6,'2025-01-08 13:40:57',61,'Зміна площі з 0 на 7,14','admin','DESKTOP-ECO06N9'),(582,6,'2025-01-08 13:41:17',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(583,6,'2025-01-08 13:41:18',61,'Зміна площі з 0 на 8,1','admin','DESKTOP-ECO06N9'),(584,6,'2025-01-08 13:47:43',84,'Зміна назви з Метельне 1-2. на Метельне 1-3.','admin','DESKTOP-ECO06N9'),(585,6,'2025-01-08 13:47:43',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(586,6,'2025-01-08 13:47:49',84,'Зміна площі з 0 на 11,36','admin','DESKTOP-ECO06N9'),(587,6,'2025-01-08 13:48:26',53,'Зміна назви з Метельне 1-3 на Метельне 1-5.','admin','DESKTOP-ECO06N9'),(588,6,'2025-01-08 13:48:26',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(589,6,'2025-01-08 13:48:26',53,'Зміна площі з 0 на 2,12','admin','DESKTOP-ECO06N9'),(590,6,'2025-01-08 13:48:45',61,'Зміна назви з Метельне 1-5 на Метельне 1-6.','admin','DESKTOP-ECO06N9'),(591,6,'2025-01-08 13:48:46',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(592,6,'2025-01-08 13:48:46',61,'Зміна площі з 0 на 8,1','admin','DESKTOP-ECO06N9'),(593,6,'2025-01-08 13:49:04',54,'Зміна назви з Метельне 1-4 на Метельне 1-7.','admin','DESKTOP-ECO06N9'),(594,6,'2025-01-08 13:49:05',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(595,6,'2025-01-08 13:49:06',54,'Зміна площі з 0 на 5','admin','DESKTOP-ECO06N9'),(596,6,'2025-01-08 13:52:09',46,'Зміна назви з Метельне атовці на Метельне 1-8(атовці)','admin','DESKTOP-ECO06N9'),(597,6,'2025-01-08 13:52:12',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(598,6,'2025-01-08 13:52:13',46,'Зміна площі з 0 на 22,2','admin','DESKTOP-ECO06N9'),(599,6,'2025-01-08 13:53:58',52,'Зміна назви з Метельне 1-2(Талах) на Метельне 1-4(Талах)','admin','DESKTOP-ECO06N9'),(600,6,'2025-01-08 13:53:59',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(601,6,'2025-01-08 13:54:00',52,'Зміна площі з 0 на 5,57','admin','DESKTOP-ECO06N9'),(602,6,'2025-01-08 13:56:32',62,'Зміна назви з Метельне 1-7 на Метельне 1-9','admin','DESKTOP-ECO06N9'),(603,6,'2025-01-08 13:56:32',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(604,6,'2025-01-08 13:56:33',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(605,6,'2025-01-08 14:13:34',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(606,6,'2025-01-08 14:13:34',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(607,6,'2025-01-08 14:14:40',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(608,6,'2025-01-08 14:14:40',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(609,6,'2025-01-08 14:15:27',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(610,6,'2025-01-08 14:15:27',53,'Зміна площі з 0 на 2,03','admin','DESKTOP-ECO06N9'),(611,6,'2025-01-08 14:16:26',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(612,6,'2025-01-08 14:16:26',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(613,6,'2025-01-08 14:17:24',83,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(614,6,'2025-01-08 14:17:24',83,'Зміна площі з 0 на 2,62','admin','DESKTOP-ECO06N9'),(615,6,'2025-01-08 14:18:01',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(616,6,'2025-01-08 14:18:01',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(617,6,'2025-01-08 14:18:44',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(618,6,'2025-01-08 14:18:44',82,'Зміна площі з 0 на 9,03','admin','DESKTOP-ECO06N9'),(619,6,'2025-01-08 14:20:58',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(620,6,'2025-01-08 14:20:59',46,'Зміна площі з 0 на 22,75','admin','DESKTOP-ECO06N9'),(621,6,'2025-01-08 14:21:43',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(622,6,'2025-01-08 14:21:44',46,'Зміна площі з 0 на 22,75','admin','DESKTOP-ECO06N9'),(623,6,'2025-01-08 14:22:15',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(624,6,'2025-01-08 14:22:17',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(625,6,'2025-01-08 14:22:24',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(626,6,'2025-01-08 14:22:24',53,'Зміна площі з 0 на 2,03','admin','DESKTOP-ECO06N9'),(627,6,'2025-01-08 14:22:34',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(628,6,'2025-01-08 14:22:34',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(629,6,'2025-01-08 14:23:25',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(630,6,'2025-01-08 14:23:25',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(631,6,'2025-01-08 14:23:42',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(632,6,'2025-01-08 14:23:42',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(633,6,'2025-01-08 14:23:58',83,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(634,6,'2025-01-08 14:23:59',83,'Зміна площі з 0 на 2,62','admin','DESKTOP-ECO06N9'),(635,6,'2025-01-08 14:24:08',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(636,6,'2025-01-08 14:24:08',82,'Зміна площі з 0 на 9,03','admin','DESKTOP-ECO06N9'),(637,6,'2025-01-08 14:24:42',84,'Зміна назви з Метельне 1-3. на Метельне 1-3','admin','DESKTOP-ECO06N9'),(638,6,'2025-01-08 14:24:42',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(639,6,'2025-01-08 14:24:43',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(640,6,'2025-01-08 14:25:03',53,'Зміна назви з Метельне 1-5. на Метельне 1-5','admin','DESKTOP-ECO06N9'),(641,6,'2025-01-08 14:25:03',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(642,6,'2025-01-08 14:25:03',53,'Зміна площі з 0 на 2,03','admin','DESKTOP-ECO06N9'),(643,6,'2025-01-08 14:25:17',61,'Зміна назви з Метельне 1-6. на Метельне 1-6','admin','DESKTOP-ECO06N9'),(644,6,'2025-01-08 14:25:17',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(645,6,'2025-01-08 14:25:17',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(646,6,'2025-01-08 14:25:28',54,'Зміна назви з Метельне 1-7. на Метельне 1-7','admin','DESKTOP-ECO06N9'),(647,6,'2025-01-08 14:25:28',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(648,6,'2025-01-08 14:25:28',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(649,6,'2025-01-08 14:37:04',67,'Зміна назви з Личани 4а на Личани 4-1','admin','DESKTOP-ECO06N9'),(650,6,'2025-01-08 14:37:04',67,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(651,6,'2025-01-08 14:37:04',67,'Зміна площі з 0 на 3,01','admin','DESKTOP-ECO06N9'),(652,6,'2025-01-08 14:40:02',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(653,6,'2025-01-08 14:40:02',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(654,6,'2025-01-08 14:40:08',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(655,6,'2025-01-08 14:40:08',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(656,6,'2025-01-08 14:40:14',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(657,6,'2025-01-08 14:40:14',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(658,6,'2025-01-08 15:03:27',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(659,6,'2025-01-08 15:03:28',46,'Зміна площі з 0 на 22,75','admin','DESKTOP-ECO06N9'),(660,6,'2025-01-08 15:03:40',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(661,6,'2025-01-08 15:03:43',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(662,6,'2025-01-08 15:03:51',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(663,6,'2025-01-08 15:03:51',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(664,6,'2025-01-08 15:03:58',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(665,6,'2025-01-08 15:03:58',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(666,6,'2025-01-08 15:04:04',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(667,6,'2025-01-08 15:04:06',53,'Зміна площі з 0 на 2,03','admin','DESKTOP-ECO06N9'),(668,6,'2025-01-08 15:05:13',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(669,6,'2025-01-08 15:05:14',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(670,6,'2025-01-08 15:05:20',83,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(671,6,'2025-01-08 15:05:20',83,'Зміна площі з 0 на 2,62','admin','DESKTOP-ECO06N9'),(672,6,'2025-01-08 15:05:26',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(673,6,'2025-01-08 15:05:26',82,'Зміна площі з 0 на 9,03','admin','DESKTOP-ECO06N9'),(674,6,'2025-01-08 15:16:41',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(675,6,'2025-01-08 15:16:41',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(676,6,'2025-01-09 17:30:32',30,'Видалення ','admin','DESKTOP-ECO06N9'),(677,6,'2025-01-09 17:34:38',72,'Зміна назви з Жорнище 14(берег) на Жорнище 18(берег)','admin','DESKTOP-ECO06N9'),(678,6,'2025-01-09 17:34:38',72,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(679,6,'2025-01-09 17:34:38',72,'Зміна площі з 0 на 16,83','admin','DESKTOP-ECO06N9'),(680,6,'2025-01-09 17:35:27',91,'Зміна назви з Жорнище 19(берег) на Жорнище 17(берег)','admin','DESKTOP-ECO06N9'),(681,6,'2025-01-09 17:35:27',91,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(682,6,'2025-01-09 17:35:27',91,'Зміна площі з 0 на 3,27','admin','DESKTOP-ECO06N9'),(683,6,'2025-01-09 17:35:42',56,'Зміна назви з Жорнище берег 2 на Жорнище 19(берег)','admin','DESKTOP-ECO06N9'),(684,6,'2025-01-09 17:35:42',56,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(685,6,'2025-01-09 17:35:42',56,'Зміна площі з 0 на 12,68','admin','DESKTOP-ECO06N9'),(686,6,'2025-01-09 17:36:08',57,'Зміна назви з Жорнище берег 3 на Жорнище 20(берег)','admin','DESKTOP-ECO06N9'),(687,6,'2025-01-09 17:36:08',57,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(688,6,'2025-01-09 17:36:08',57,'Зміна площі з 0 на 31,14','admin','DESKTOP-ECO06N9'),(689,6,'2025-01-09 17:36:17',57,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(690,6,'2025-01-09 17:36:17',57,'Зміна площі з 0 на 31,14','admin','DESKTOP-ECO06N9'),(691,6,'2025-01-09 17:36:23',56,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(692,6,'2025-01-09 17:36:23',56,'Зміна площі з 0 на 12,68','admin','DESKTOP-ECO06N9'),(693,6,'2025-01-09 17:36:27',72,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(694,6,'2025-01-09 17:36:27',72,'Зміна площі з 0 на 16,83','admin','DESKTOP-ECO06N9'),(695,6,'2025-01-09 17:36:33',91,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(696,6,'2025-01-09 17:36:33',91,'Зміна площі з 0 на 3,27','admin','DESKTOP-ECO06N9'),(697,6,'2025-01-09 17:36:53',88,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(698,6,'2025-01-09 17:36:53',88,'Зміна площі з 0 на 1,82','admin','DESKTOP-ECO06N9'),(699,6,'2025-01-09 17:37:51',14,'Видалення ','admin','DESKTOP-ECO06N9'),(700,6,'2025-01-09 17:47:25',94,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(701,6,'2025-01-09 17:47:25',94,'Зміна площі з 0 на 0,62','admin','DESKTOP-ECO06N9'),(702,6,'2025-01-09 17:58:11',98,'Зміна назви з Бубало 1 на Дідичі Бубало 1','admin','DESKTOP-ECO06N9'),(703,6,'2025-01-09 17:58:11',98,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(704,6,'2025-01-09 17:58:11',98,'Зміна площі з 0 на 1,68','admin','DESKTOP-ECO06N9'),(705,6,'2025-01-09 18:00:00',100,'Зміна назви з Дідичі Бубало 3 на Дідичі Бубало 5.','admin','DESKTOP-ECO06N9'),(706,6,'2025-01-09 18:00:00',100,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(707,6,'2025-01-09 18:00:00',100,'Зміна площі з 0 на 2','admin','DESKTOP-ECO06N9'),(708,6,'2025-01-09 18:00:09',101,'Зміна назви з Дідичі Бубало 5 на Дідичі Бубало 4','admin','DESKTOP-ECO06N9'),(709,6,'2025-01-09 18:00:09',101,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(710,6,'2025-01-09 18:00:09',101,'Зміна площі з 0 на 1,94','admin','DESKTOP-ECO06N9'),(711,6,'2025-01-09 18:00:17',100,'Зміна назви з Дідичі Бубало 5. на Дідичі Бубало 5','admin','DESKTOP-ECO06N9'),(712,6,'2025-01-09 18:00:17',100,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(713,6,'2025-01-09 18:00:17',100,'Зміна площі з 0 на 2','admin','DESKTOP-ECO06N9'),(714,6,'2025-01-09 18:07:09',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(715,6,'2025-01-09 18:07:09',24,'Зміна площі з 0 на 143,08','admin','DESKTOP-ECO06N9'),(716,6,'2025-01-09 18:08:21',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(717,6,'2025-01-09 18:08:21',24,'Зміна площі з 0 на 145,15','admin','DESKTOP-ECO06N9'),(718,6,'2025-01-09 18:11:29',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(719,6,'2025-01-09 18:11:29',24,'Зміна площі з 0 на 145,15','admin','DESKTOP-ECO06N9'),(720,6,'2025-01-09 18:12:48',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(721,6,'2025-01-09 18:12:48',24,'Зміна площі з 0 на 154,13','admin','DESKTOP-ECO06N9'),(722,6,'2025-02-08 20:12:55',23,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(723,6,'2025-02-08 20:12:55',23,'Зміна площі з 0 на 43,12','admin','DESKTOP-ECO06N9'),(724,6,'2025-02-08 20:13:07',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(725,6,'2025-02-08 20:13:07',24,'Зміна площі з 0 на 154,13','admin','DESKTOP-ECO06N9'),(726,6,'2025-02-08 20:15:20',24,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(727,6,'2025-02-08 20:15:20',24,'Зміна площі з 0 на 156,16','admin','DESKTOP-ECO06N9'),(728,6,'2025-02-27 17:18:34',101,'Зміна назви з Дідичі Бубало 4 на Дідичі Бубало 3','admin','DESKTOP-ECO06N9'),(729,6,'2025-02-27 17:18:34',101,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(730,6,'2025-02-27 17:18:34',101,'Зміна площі з 0 на 1,96','admin','DESKTOP-ECO06N9'),(731,6,'2025-02-27 17:51:04',69,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(732,6,'2025-02-27 17:51:04',69,'Зміна площі з 0 на 25,06','admin','DESKTOP-ECO06N9'),(733,6,'2025-02-27 17:51:32',69,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(734,6,'2025-02-27 17:51:33',69,'Зміна площі з 0 на 24,44','admin','DESKTOP-ECO06N9'),(735,6,'2025-03-19 16:15:27',66,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(736,6,'2025-03-19 16:15:27',66,'Зміна площі з 0 на 89,41','admin','DESKTOP-ECO06N9'),(737,6,'2025-03-24 09:38:45',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(738,6,'2025-03-24 09:38:45',82,'Зміна площі з 0 на 9,03','admin','DESKTOP-ECO06N9'),(739,6,'2025-03-24 09:38:52',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(740,6,'2025-03-24 09:38:52',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(741,6,'2025-03-24 09:38:58',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(742,6,'2025-03-24 09:38:58',46,'Зміна площі з 0 на 22,76','admin','DESKTOP-ECO06N9'),(743,6,'2025-03-24 09:39:05',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(744,6,'2025-03-24 09:39:06',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(745,6,'2025-03-24 09:39:15',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(746,6,'2025-03-24 09:39:16',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(747,6,'2025-03-24 09:39:29',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(748,6,'2025-03-24 09:39:29',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(749,6,'2025-03-24 09:39:43',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(750,6,'2025-03-24 09:39:43',53,'Зміна площі з 0 на 2,02','admin','DESKTOP-ECO06N9'),(751,6,'2025-03-24 09:39:48',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(752,6,'2025-03-24 09:39:49',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(753,6,'2025-03-24 09:39:54',83,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(754,6,'2025-03-24 09:39:54',83,'Зміна площі з 0 на 2,62','admin','DESKTOP-ECO06N9'),(755,6,'2025-03-24 09:40:11',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(756,6,'2025-03-24 09:40:11',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(757,6,'2025-03-24 09:41:04',85,'Видалення ','admin','DESKTOP-ECO06N9'),(758,6,'2025-03-24 09:45:35',84,'Зміна назви з Метельне 1-3 на Метельне 1-2.','admin','DESKTOP-ECO06N9'),(759,6,'2025-03-24 09:45:35',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(760,6,'2025-03-24 09:45:35',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(761,6,'2025-03-24 09:45:43',61,'Зміна назви з Метельне 1-6 на Метельне 1-3.','admin','DESKTOP-ECO06N9'),(762,6,'2025-03-24 09:45:43',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(763,6,'2025-03-24 09:45:43',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(764,6,'2025-03-24 09:46:46',46,'Зміна назви з Метельне 1-8(атовці) на Метельне 1-9(атовці)','admin','DESKTOP-ECO06N9'),(765,6,'2025-03-24 09:46:46',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(766,6,'2025-03-24 09:46:46',46,'Зміна площі з 0 на 22,76','admin','DESKTOP-ECO06N9'),(767,6,'2025-03-24 09:46:58',46,'Зміна назви з Метельне 1-9(атовці) на Метельне 1-10.(атовці)','admin','DESKTOP-ECO06N9'),(768,6,'2025-03-24 09:46:58',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(769,6,'2025-03-24 09:46:58',46,'Зміна площі з 0 на 22,76','admin','DESKTOP-ECO06N9'),(770,6,'2025-03-24 12:21:30',107,'Зміна назви з Метельне 1-2. на Метельне 1-4.','admin','DESKTOP-ECO06N9'),(771,6,'2025-03-24 12:21:30',107,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(772,6,'2025-03-24 12:21:30',107,'Зміна площі з 0 на 3,2','admin','DESKTOP-ECO06N9'),(773,6,'2025-03-24 12:21:37',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(774,6,'2025-03-24 12:21:37',82,'Зміна площі з 0 на 9,08','admin','DESKTOP-ECO06N9'),(775,6,'2025-03-24 12:21:44',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(776,6,'2025-03-24 12:21:44',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(777,6,'2025-03-24 12:21:57',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(778,6,'2025-03-24 12:21:57',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(779,6,'2025-03-24 12:22:06',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(780,6,'2025-03-24 12:22:06',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(781,6,'2025-03-24 12:22:11',84,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(782,6,'2025-03-24 12:22:11',84,'Зміна площі з 0 на 11,66','admin','DESKTOP-ECO06N9'),(783,6,'2025-03-24 12:22:18',82,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(784,6,'2025-03-24 12:22:18',82,'Зміна площі з 0 на 9,08','admin','DESKTOP-ECO06N9'),(785,6,'2025-03-24 12:22:38',107,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(786,6,'2025-03-24 12:22:38',107,'Зміна площі з 0 на 3,2','admin','DESKTOP-ECO06N9'),(787,6,'2025-03-24 12:22:46',83,'Зміна назви з Метельне 1-2 на Метельне 1-5.','admin','DESKTOP-ECO06N9'),(788,6,'2025-03-24 12:22:46',83,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(789,6,'2025-03-24 12:22:46',83,'Зміна площі з 0 на 2,62','admin','DESKTOP-ECO06N9'),(790,6,'2025-03-24 12:22:52',52,'Зміна назви з Метельне 1-4(Талах) на Метельне 1-6(Талах)','admin','DESKTOP-ECO06N9'),(791,6,'2025-03-24 12:22:52',52,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(792,6,'2025-03-24 12:22:52',52,'Зміна площі з 0 на 5,34','admin','DESKTOP-ECO06N9'),(793,6,'2025-03-24 12:23:08',61,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(794,6,'2025-03-24 12:23:08',61,'Зміна площі з 0 на 8,34','admin','DESKTOP-ECO06N9'),(795,6,'2025-03-24 12:23:13',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(796,6,'2025-03-24 12:23:13',46,'Зміна площі з 0 на 22,76','admin','DESKTOP-ECO06N9'),(797,6,'2025-03-24 12:23:18',54,'Зміна назви з Метельне 1-7 на Метельне 1-8.','admin','DESKTOP-ECO06N9'),(798,6,'2025-03-24 12:23:18',54,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(799,6,'2025-03-24 12:23:18',54,'Зміна площі з 0 на 5,18','admin','DESKTOP-ECO06N9'),(800,6,'2025-03-24 12:23:23',53,'Зміна назви з Метельне 1-5 на Метельне 1-7.','admin','DESKTOP-ECO06N9'),(801,6,'2025-03-24 12:23:23',53,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(802,6,'2025-03-24 12:23:23',53,'Зміна площі з 0 на 2,02','admin','DESKTOP-ECO06N9'),(803,6,'2025-03-24 12:23:28',62,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(804,6,'2025-03-24 12:23:28',62,'Зміна площі з 0 на 7,07','admin','DESKTOP-ECO06N9'),(805,6,'2025-03-24 16:00:04',46,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(806,6,'2025-03-24 16:00:04',46,'Зміна площі з 0 на 22,76','admin','DESKTOP-ECO06N9'),(807,5,'2025-07-08 12:22:11',52,'Створення','admin','DESKTOP-ECO06N9'),(808,5,'2025-07-08 12:23:57',52,'Редагування заголовку','admin','DESKTOP-ECO06N9'),(809,6,'2025-07-19 11:48:00',68,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(810,6,'2025-07-19 11:48:00',68,'Зміна площі з 0 на 18,95','admin','DESKTOP-ECO06N9'),(811,6,'2025-07-19 11:50:27',68,'Зміна назви з Личани 1Б на Личани 4Б','admin','DESKTOP-ECO06N9'),(812,6,'2025-07-19 11:50:27',68,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(813,6,'2025-07-19 11:50:27',68,'Зміна площі з 0 на 18,95','admin','DESKTOP-ECO06N9'),(814,6,'2025-07-19 11:50:51',67,'Зміна назви з Личани 4-1 на Личани 4-а','admin','DESKTOP-ECO06N9'),(815,6,'2025-07-19 11:50:51',67,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(816,6,'2025-07-19 11:50:51',67,'Зміна площі з 0 на 3,01','admin','DESKTOP-ECO06N9'),(817,6,'2025-07-19 11:53:28',78,'Зміна назви з  Личани р771а на  Личани 4в','admin','DESKTOP-ECO06N9'),(818,6,'2025-07-19 11:53:28',78,'Зміна групи з Все зоны на Усі зони','admin','DESKTOP-ECO06N9'),(819,6,'2025-07-19 11:53:28',78,'Зміна площі з 0 на 0,98','admin','DESKTOP-ECO06N9'),(820,1,'2025-07-25 08:40:37',58,'Створення наряду','admin','DESKTOP-ECO06N9'),(821,1,'2025-07-25 08:40:41',58,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(822,1,'2025-07-25 08:47:22',59,'Створення наряду','admin','DESKTOP-ECO06N9'),(823,1,'2025-07-25 08:47:26',59,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(824,1,'2025-07-25 08:51:40',60,'Створення наряду','admin','DESKTOP-ECO06N9'),(825,1,'2025-07-25 08:51:41',60,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(826,1,'2025-07-25 08:51:57',61,'Створення наряду','admin','DESKTOP-ECO06N9'),(827,1,'2025-07-25 08:51:59',61,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(828,1,'2025-07-25 08:53:38',62,'Створення наряду','admin','DESKTOP-ECO06N9'),(829,1,'2025-07-25 08:53:40',62,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(830,1,'2025-07-25 09:00:13',63,'Створення наряду','admin','DESKTOP-ECO06N9'),(831,1,'2025-07-25 09:00:18',63,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(832,1,'2025-07-25 19:54:09',64,'Створення наряду','admin','DESKTOP-ECO06N9'),(833,1,'2025-07-25 19:54:13',64,'Пересчет наряда без учета управляющих данных','admin','DESKTOP-ECO06N9'),(834,5,'2025-08-02 21:06:23',53,'Створення','admin','DESKTOP-ECO06N9');

--
-- Table structure for table `users_list`
--

CREATE TABLE `users_list` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL,
  `WinLogin` varchar(50) DEFAULT NULL,
  `Password` blob NOT NULL,
  `Admin` tinyint(1) NOT NULL DEFAULT '0',
  `Id_role` int(11) DEFAULT '0' COMMENT 'Код роли пользователя',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `users_list`
--

INSERT INTO `users_list` VALUES (1,'Администратор','',_binary '�e�Y B/�A~Hg\�\�O��J?��~������z\�',1,1);

--
-- Table structure for table `users_reports_list`
--

CREATE TABLE `users_reports_list` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `ReportType` varchar(127) NOT NULL,
  `ReportCaption` varchar(127) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `users_reports_list`
--

INSERT INTO `users_reports_list` VALUES (1,'KilometrageControl','Пробег'),(2,'KilometrageDayControl','Пробег суточный'),(3,'KilometrageTotal','Пробег общий'),(4,'FuelControl','Заправки'),(5,'GrainLevel','Уровень зерна'),(6,'KilometrageControlDut','Пробег+ДУТ'),(7,'FuelExpensesControlDutDay','Топливо суточный ДУТ'),(8,'FuelExpensesControlDut','Общий расход ДУТ'),(9,'FlowmeterControl','Расход'),(10,'FuelExpensesControlDrt','Общий расход ДРТ'),(11,'RoadSafetyControl','Безопасность'),(12,'ParamOfMovingControl','Параметры движения'),(13,'CzDetailed','КЗ Детальный'),(14,'CZ_Detailed_General','КЗ Групповой'),(15,'FuelCZ_Inkom_DRT','ДРТ - КЗ'),(16,'FuelCZ_Inkom_DUT','ДУТ - КЗ'),(17,'SensorEventsControl','События датчиков'),(18,'RotationControl','Обороты'),(19,'PassTrafficDaily','Пассажиры суточный'),(20,'FuelerControlDrt','Заправщик'),(21,'ReportDrivers','Водители (RFID)'),(22,'ReportVehicles','Идентификация ТС');

--
-- Table structure for table `vehicle`
--

CREATE TABLE `vehicle` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `MakeCar` text COMMENT 'Марка автомобиля',
  `NumberPlate` text COMMENT 'Номерной знак',
  `Team_id` int(11) DEFAULT NULL,
  `Mobitel_id` int(11) DEFAULT NULL,
  `Odometr` int(11) DEFAULT '0' COMMENT 'Показания одометра',
  `CarModel` text COMMENT 'Модель',
  `setting_id` int(11) DEFAULT '1',
  `odoTime` datetime DEFAULT NULL COMMENT 'Дата и время сверки одометра',
  `driver_id` int(11) DEFAULT '-1',
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  `Category_id` int(11) DEFAULT NULL COMMENT 'Категория транспортая',
  `Category_id2` int(11) DEFAULT NULL COMMENT 'Категория2 транспорта',
  `PcbVersionId` int(11) DEFAULT '-1' COMMENT 'Версия плат датчика назначенная на машину',
  `Category_id3` int(11) DEFAULT NULL COMMENT 'Категория3 транспорта',
  `Category_id4` int(11) DEFAULT NULL COMMENT 'Категория4 транспорта',
  `FuelWayLiter` double DEFAULT '0' COMMENT 'Расход топлива л/100 км',
  `FuelMotorLiter` double DEFAULT '0' COMMENT 'Расход топлива л/моточас',
  `Identifier` int(11) DEFAULT '0' COMMENT 'Идентификатор машины',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`) USING BTREE,
  KEY `Mobitel_id` (`Mobitel_id`) USING BTREE,
  KEY `Team_id` (`Team_id`) USING BTREE,
  KEY `setting_id` (`setting_id`) USING BTREE,
  KEY `FK_vehicle_vehicle_category_Id` (`Category_id`),
  KEY `FK_vehicle_vehicle_category_Id2` (`Category_id2`),
  KEY `FK_vehicle_vehicle_category_Id3` (`Category_id3`),
  KEY `FK_vehicle_vehicle_category_Id4` (`Category_id4`),
  CONSTRAINT `FK_vehicle_vehicle_category_Id` FOREIGN KEY (`Category_id`) REFERENCES `vehicle_category` (`Id`),
  CONSTRAINT `FK_vehicle_vehicle_category_Id2` FOREIGN KEY (`Category_id2`) REFERENCES `vehicle_category2` (`Id`),
  CONSTRAINT `FK_vehicle_vehicle_category_Id3` FOREIGN KEY (`Category_id3`) REFERENCES `vehicle_category3` (`Id`),
  CONSTRAINT `FK_vehicle_vehicle_category_Id4` FOREIGN KEY (`Category_id4`) REFERENCES `vehicle_category4` (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `vehicle`
--

INSERT INTO `vehicle` VALUES (1,'Toyota Hilux Чорна','АС1057СК',8,97,0,'Чорна',1,NULL,1,'',NULL,NULL,6,NULL,NULL,0,0,0),(2,'JCB 426','3',11,99,0,'',1,NULL,1,'',NULL,NULL,6,NULL,NULL,0,0,0),(3,'New Holland CR 9.80','35580 АС',3,98,0,'CR 9.80',1,NULL,9,'',NULL,NULL,6,NULL,NULL,0,0,0),(4,'New Holland','1',3,100,0,'',1,NULL,1,'',NULL,NULL,6,NULL,NULL,0,0,0),(5,'John Deere 8370R','28586AC',6,101,0,'8370R',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(6,'John Deere 7230R','37789AC',6,102,0,'7230R',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(7,'New Holland 9080','31670 AC',3,103,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(8,'New Holland CR10.90','0004',3,808464436,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(9,'John Deere-6250R','3539',6,859124537,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(10,'John Deere-6195М','43915 AC',6,842281778,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(11,'MAN','АС1341HI',8,909324599,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(12,'New Holland','2725',3,842478133,0,'CR 960',1,NULL,1,'',NULL,NULL,7,NULL,NULL,0,0,0),(13,'Volkswagen','AC1819',8,926037045,0,'Amarok',1,NULL,1,'',NULL,NULL,7,NULL,NULL,0,0,0),(14,'John Deere 8410R','57055AC',6,808857912,0,'',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(15,'John Deere 8320R','4941',6,876164145,0,'8320 R',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(16,'Dieci 42.7','5273',11,892483379,0,'',1,NULL,1,'',NULL,NULL,10,NULL,NULL,0,0,0),(17,'CAT 308 E','7097',11,925907255,0,'308',1,NULL,1,'',NULL,NULL,10,NULL,NULL,0,0,0),(18,'Dammann ','1042',6,825242674,0,'DT 3500 H',1,NULL,1,'',NULL,NULL,8,NULL,NULL,0,0,0),(19,'Toyota HILLIX','AC7272CA',8,808990515,0,'',1,NULL,1,'',NULL,NULL,10,NULL,NULL,0,0,0);

--
-- Table structure for table `vehicle_category`
--

CREATE TABLE `vehicle_category` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(50) NOT NULL COMMENT 'Категория транспортного средства',
  `Tonnage` decimal(10,3) NOT NULL DEFAULT '0.000' COMMENT 'Грузоподъемность,  тонн',
  `FuelNormMoving` double NOT NULL DEFAULT '0' COMMENT 'норма расхода топлива в движении л/100 км',
  `FuelNormParking` double NOT NULL DEFAULT '0' COMMENT 'норма расхода топлива на холостых оборотах л/час',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `vehicle_category`
--

INSERT INTO `vehicle_category` VALUES (1,'Автомобілі',0.000,0,0);

--
-- Table structure for table `vehicle_category2`
--

CREATE TABLE `vehicle_category2` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL COMMENT 'Категория2 транспортного средства',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `vehicle_category2`
--


--
-- Table structure for table `vehicle_category3`
--

CREATE TABLE `vehicle_category3` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL COMMENT 'Категория3 транспортного средства',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `vehicle_category3`
--


--
-- Table structure for table `vehicle_category4`
--

CREATE TABLE `vehicle_category4` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL COMMENT 'Категория4 транспортного средства',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `vehicle_category4`
--

INSERT INTO `vehicle_category4` VALUES (1,'Навантажувач');

--
-- Table structure for table `vehicle_commentary`
--

CREATE TABLE `vehicle_commentary` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Comment` varchar(255) DEFAULT NULL,
  `Mobitel_id` int(11) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Комментарий для машины';

--
-- Dumping data for table `vehicle_commentary`
--


--
-- Table structure for table `ver`
--

CREATE TABLE `ver` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Номер текущей сборки БД',
  `Desc` text NOT NULL COMMENT 'Описание текущей сборки БД',
  `time` datetime DEFAULT NULL COMMENT 'Время обновления',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `ver`
--

INSERT INTO `ver` VALUES (1,1,'Сборка от 9.12.2008','2008-12-09 00:00:00'),(2,2,'Сборка от 10.02.2009','2009-02-10 00:00:00');

--
-- Table structure for table `zone_category`
--

CREATE TABLE `zone_category` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL COMMENT 'Категория зоны',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Категории для зон';

--
-- Dumping data for table `zone_category`
--


--
-- Table structure for table `zone_category2`
--

CREATE TABLE `zone_category2` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL COMMENT 'Категория2 зоны',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='Категории2 для зон';

--
-- Dumping data for table `zone_category2`
--


--
-- Table structure for table `zonerelations`
--

CREATE TABLE `zonerelations` (
  `ZoneRelation_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Zone_ID` int(11) DEFAULT '0',
  `ConfigZoneSet_ID` int(11) DEFAULT '0',
  `In_flag` tinyint(4) NOT NULL DEFAULT '0',
  `Out_flag` tinyint(4) NOT NULL DEFAULT '0',
  `In_flag2` tinyint(4) NOT NULL DEFAULT '0',
  `Out_flag2` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ZoneRelation_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `zonerelations`
--

INSERT INTO `zonerelations` VALUES (220,78,248,1,0,0,0),(221,78,249,1,0,0,0);

--
-- Table structure for table `zones`
--

CREATE TABLE `zones` (
  `Zone_ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` char(50) DEFAULT NULL,
  `Descr` text,
  `ID` int(11) DEFAULT '0',
  `Status` tinyint(4) DEFAULT '0',
  `Square` double(14,5) DEFAULT '0.00000' COMMENT 'Площадь контрольной зоны',
  `ZoneColor` int(11) DEFAULT '0' COMMENT 'Цвет контрольной зоны',
  `TextColor` int(11) DEFAULT '0' COMMENT 'Цвет подписи контрольной зоны',
  `TextFontName` char(50) DEFAULT 'Microsoft Sans Serif' COMMENT 'Шрирфт подписи контрольной зоны',
  `TextFontSize` double(5,2) DEFAULT '25.00' COMMENT 'Размер шрирфта подписи контрольной зоны',
  `TextFontParams` char(8) DEFAULT '0;0;0;0;' COMMENT 'Параметры шрирфта подписи контрольной зоны',
  `Icon` blob COMMENT 'Иконка контрольной зоны',
  `HatchStyle` int(11) DEFAULT '0' COMMENT 'Текстура контрольной зоны',
  `DateCreate` datetime DEFAULT NULL COMMENT 'Дата создания',
  `Id_main` int(11) DEFAULT '0' COMMENT 'Ссылка на элемент верхнего уровня в иерархии',
  `Level` tinyint(4) DEFAULT '1' COMMENT 'Уровень в иерархии',
  `StyleId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID стиля зоны',
  `ZonesGroupId` int(10) unsigned NOT NULL DEFAULT '1' COMMENT 'ID Группы зон',
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  `Category_id` int(11) DEFAULT NULL COMMENT 'Категория для зоны',
  `Category_id2` int(11) DEFAULT NULL COMMENT 'Категория2 для зоны',
  PRIMARY KEY (`Zone_ID`),
  KEY `FK_zones_zonesgroup` (`ZonesGroupId`),
  CONSTRAINT `FK_zones_zonesgroup` FOREIGN KEY (`ZonesGroupId`) REFERENCES `zonesgroup` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `zones`
--

INSERT INTO `zones` VALUES (1,'Носовичі 4','',0,0,0.78648,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-22 13:22:54',0,1,0,1,'',-1,-1),(2,'Носовичі 5','',0,0,0.76585,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-09-24 17:59:45',0,1,0,1,'',-1,-1),(3,'Жорнище 7','',0,0,0.68379,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 08:34:28',0,1,0,1,'',-1,-1),(4,'Жорнище 6','',0,0,0.21892,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 08:37:14',0,1,0,1,'',-1,-1),(5,'Жорнище 5','',0,0,0.73004,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 08:41:29',0,1,0,1,'',-1,-1),(6,'Жорнище 8','',0,0,0.77095,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-11-06 15:19:32',0,1,0,1,'',-1,-1),(7,'Жорнище 11','',0,0,0.50664,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:52:09',0,1,0,1,'',-1,-1),(8,'Жорнище 2а','',0,0,0.28715,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 08:50:06',0,1,0,1,'',-1,-1),(9,'Жорнище 3','',0,0,0.58250,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 08:54:21',0,1,0,1,'',-1,-1),(10,'Личани 2','',0,0,0.91973,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-23 18:17:41',0,1,0,1,'',-1,-1),(11,'Личани 4','',0,0,0.67685,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-11-05 13:52:12',0,1,0,1,'',-1,-1),(12,'Жорнище 4','',0,0,2.35427,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 11:46:47',0,1,0,1,'',-1,-1),(13,'Жорнище 9','',0,0,0.35114,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 11:50:54',0,1,0,1,'',-1,-1),(15,'Жорнище 1','',0,0,0.73093,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:22:21',0,1,0,1,'',-1,-1),(16,'Носовичі 1','',0,0,0.21249,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:24:36',0,1,0,1,'',-1,-1),(17,'Метельне 4','',0,0,0.09863,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:26:05',0,1,0,1,'',-1,-1),(18,'Метельне 3','',0,0,0.53976,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:28:08',0,1,0,1,'',-1,-1),(19,'Олика 1','',0,0,0.68216,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-09-24 17:57:46',0,1,0,1,'',-1,-1),(20,'Олика 2','',0,0,0.62274,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:34:24',0,1,0,1,'',-1,-1),(21,'Олика 3','',0,0,0.34663,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:37:19',0,1,0,1,'',-1,-1),(22,'Олика 4','',0,0,0.90342,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-27 12:43:49',0,1,0,1,'',-1,-1),(23,'дідичі 1','',0,0,0.43118,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-04-29 11:36:50',0,1,0,1,'',-1,-1),(24,'Дідичі 2','',0,0,1.56162,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-02-08 20:15:20',0,1,0,1,'',-1,-1),(25,'Метельне 5','',0,0,0.84147,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-05-01 10:44:37',0,1,0,1,'',-1,-1),(26,'метельне 6','',0,0,0.81013,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-05-01 10:50:42',0,1,0,1,'',-1,-1),(27,'Носовичі 2','',0,0,0.93237,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2020-05-01 19:41:37',0,1,0,1,'',-1,-1),(28,'Метельне 1','',0,0,0.84004,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-10-15 08:13:30',0,1,0,1,'',-1,-1),(29,'Метельне 2','',0,0,0.53986,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 12:38:29',0,1,0,1,'',-1,-1),(32,'Дідичі 1а','',0,0,0.13853,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 09:59:13',0,1,0,1,'',-1,-1),(33,'Дідичі 1б','',0,0,0.05245,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:00:40',0,1,0,1,'',-1,-1),(34,'Дідичі 1в','',0,0,0.02174,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:02:08',0,1,0,1,'',-1,-1),(35,'Дідичі 1 г','',0,0,0.03947,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:02:46',0,1,0,1,'',-1,-1),(36,'Дідичі Хата','',0,0,0.01967,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:04:35',0,1,0,1,'',-1,-1),(37,'Жорнище 10','',0,0,0.72042,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:15:26',0,1,0,1,'',-1,-1),(38,'Жорнище 10 а','',0,0,0.04067,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:31:26',0,1,0,1,'',-1,-1),(39,'Жорнище 10в','',0,0,0.04871,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:32:51',0,1,0,1,'',-1,-1),(40,'Жорнище 10 б','',0,0,0.04790,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:34:47',0,1,0,1,'',-1,-1),(41,'Жорнище 10 г','',0,0,0.01716,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:38:42',0,1,0,1,'',-1,-1),(42,'Жорнище 10 д','',0,0,0.03483,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:40:12',0,1,0,1,'',-1,-1),(43,'Жорнище 10 Ж','',0,0,0.03528,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:41:04',0,1,0,1,'',-1,-1),(44,'Жорнище 10 з','',0,0,0.01593,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:41:47',0,1,0,1,'',-1,-1),(45,'Жорнище 10 е','',0,0,0.01584,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-18 10:42:33',0,1,0,1,'',-1,-1),(46,'Метельне 1-10.(атовці)','',0,0,0.22755,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:20:57',0,1,0,1,'',-1,-1),(47,'Дідичі дубки','',0,0,0.01981,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-10-22 19:27:17',0,1,0,1,'',-1,-1),(48,'личани 3','',0,0,1.38727,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-11-07 19:09:02',0,1,0,1,'',-1,-1),(49,'Метельне 8','',0,0,1.05662,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-03-28 14:24:48',0,1,0,1,'',-1,-1),(50,'личани 5','',0,0,1.07065,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-11-09 09:19:03',0,1,0,1,'',-1,-1),(51,'Олика 1А','',0,0,0.11963,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2023-11-09 09:22:37',0,1,0,1,'',-1,-1),(52,'Метельне 1-6(Талах)','',0,0,0.05337,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:16:26',0,1,0,1,'',-1,-1),(53,'Метельне 1-7.','',0,0,0.02025,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:15:27',0,1,0,1,'',-1,-1),(54,'Метельне 1-8.','',0,0,0.05180,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:14:40',0,1,0,1,'',-1,-1),(56,'Жорнище 19(берег)','',0,0,0.12676,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-02-23 17:00:41',0,1,0,1,'',-1,-1),(57,'Жорнище 20(берег)','',0,0,0.31143,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-02-23 17:02:11',0,1,0,1,'',-1,-1),(59,'Хромяків 1','',0,0,0.06297,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-07-10 10:33:43',0,1,0,1,'',-1,-1),(60,'Личани 1Г','',0,0,0.27595,-47872,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-07-22 14:14:13',0,1,0,1,'',-1,-1),(61,'Метельне 1-3.','',0,0,0.08344,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:13:34',0,1,0,1,'',-1,-1),(62,'Метельне 1-9','',0,0,0.07070,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-07-24 08:15:11',0,1,0,1,'',-1,-1),(65,'Дерно 1','',0,0,0.05064,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-08-05 11:04:48',0,1,0,1,'',-1,-1),(66,'Личани 1','',0,0,0.89406,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-08-05 11:41:21',0,1,0,1,'',-1,-1),(67,'Личани 4-а','',0,0,0.03011,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:37:04',0,1,0,1,'',-1,-1),(68,'Личани 4Б','',0,0,0.18947,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-07-19 11:48:00',0,1,0,1,'',-1,-1),(69,'Носовичі 3','',0,0,0.24439,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-02-27 17:51:32',0,1,0,1,'',-1,-1),(70,'Носовичі 6','',0,0,0.06778,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-08-05 11:52:47',0,1,0,1,'',-1,-1),(71,'Носовичі 7','',0,0,0.03975,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-08-05 11:53:25',0,1,0,1,'',-1,-1),(72,'Жорнище 18(берег)','',0,0,0.16827,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-08-19 08:40:47',0,1,0,1,'',-1,-1),(73,'Метельне 2Б','',0,0,0.03334,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 12:41:34',0,1,0,1,'',-1,-1),(75,'Метельне 7','',0,0,1.40935,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2024-10-16 19:43:41',0,1,0,1,'',-1,-1),(76,'Метельне 2А','',0,0,0.30100,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 12:44:24',0,1,0,1,'',-1,-1),(78,' Личани 4в','',0,0,0.00983,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-07-19 11:53:28',0,1,0,1,'',-1,-1),(79,'Метельне 1А (комплекс)','',0,0,0.53568,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 12:34:52',0,1,0,1,'',-1,-1),(80,'Метельне 2В (424-425б)','',0,0,0.02223,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 12:37:22',0,1,0,1,'',-1,-1),(82,'Метельне 1-1','',0,0,0.09083,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-03-24 12:21:36',0,1,0,1,'',-1,-1),(83,'Метельне 1-5.','',0,0,0.02619,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:17:24',0,1,0,1,'',-1,-1),(84,'Метельне 1-2.','',0,0,0.11661,-256,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-08 14:18:00',0,1,0,1,'',-1,-1),(86,'жорнище 14','',0,0,0.07594,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:22:19',0,1,0,1,'',-1,-1),(87,'Жорнище 15','',0,0,0.01486,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:23:56',0,1,0,1,'',-1,-1),(88,'Жорнище 16','',0,0,0.01815,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:24:19',0,1,0,1,'',-1,-1),(89,'Жорнище 12','',0,0,0.20725,-657931,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:26:50',0,1,0,1,'',-1,-1),(90,'Жорнище 13','',0,0,0.61147,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:29:13',0,1,0,1,'',-1,-1),(91,'Жорнище 17(берег)','',0,0,0.03268,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:35:18',0,1,0,1,'',-1,-1),(92,'Жорнище 2','',0,0,0.88283,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:40:21',0,1,0,1,'',-1,-1),(93,'Бажатарня 1','',0,0,0.05873,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:46:46',0,1,0,1,'',-1,-1),(94,'Бажатарня 2','',0,0,0.00620,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:47:21',0,1,0,1,'',-1,-1),(95,'Бажатарня 3','',0,0,0.01308,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:48:11',0,1,0,1,'',-1,-1),(96,'Бажатарня 4','',0,0,0.00678,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:48:45',0,1,0,1,'',-1,-1),(97,'Одеради 1','',0,0,0.02020,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:54:49',0,1,0,1,'',-1,-1),(98,'Дідичі Бубало 1','',0,0,0.01685,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:57:16',0,1,0,1,'',-1,-1),(99,'Дідичі Бубало 2','',0,0,0.01008,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:57:56',0,1,0,1,'',-1,-1),(100,'Дідичі Бубало 5','',0,0,0.01997,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 17:58:50',0,1,0,1,'',-1,-1),(101,'Дідичі Бубало 3','',0,0,0.01957,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-02-27 17:18:33',0,1,0,1,'',-1,-1),(102,'Дідичі Бубало 4','',0,0,0.01711,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-01-09 18:00:46',0,1,0,1,'',-1,-1),(103,'Жорнище 17','',0,0,0.02362,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-02-27 18:11:06',0,1,0,1,'',-1,-1),(104,'Дідичі перехрестя 2','',0,0,0.05609,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-03-05 16:58:23',0,1,0,1,'',-1,-1),(105,'Дідичі перехрестя 1','',0,0,0.19666,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-03-05 17:00:35',0,1,0,1,'',-1,-1),(106,'Метельне 9','',0,0,0.01001,-1,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-03-09 18:56:45',0,1,0,1,'',-1,-1),(107,'Метельне 1-4.','',0,0,0.03204,-10496,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-03-24 12:21:30',0,1,0,1,'',-1,-1),(108,'Метельне 9 (берег)','',0,0,0.21194,-65536,0,'Microsoft Sans Serif',25.00,'0;0;0;0;',NULL,0,'2025-07-19 12:11:57',0,1,0,1,'',-1,-1);

--
-- Table structure for table `zonesgroup`
--

CREATE TABLE `zonesgroup` (
  `Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `Title` varchar(50) NOT NULL,
  `Description` varchar(200) NOT NULL,
  `OutLinkId` varchar(20) DEFAULT NULL COMMENT 'Код внешней базы',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;

--
-- Dumping data for table `zonesgroup`
--

INSERT INTO `zonesgroup` VALUES (1,'Все зоны','НЕ УДАЛЯТЬ! Корневой элемент дерева контрольных зон',NULL);

--
-- Dumping events for database 'felix-agro'
--

--
-- Dumping routines for database 'felix-agro'
--
/*!50003 DROP FUNCTION IF EXISTS `CheckVersion` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `CheckVersion`(maskVersion TINYTEXT) RETURNS tinyint(4)
    SQL SECURITY INVOKER
    COMMENT 'Проверка версии СУБД. Должна быть maskVersion или выше. Результа'
BEGIN

  DECLARE currentVersion TINYTEXT;

  SELECT Left(VERSION(), Length(maskVersion)) INTO currentVersion;

  RETURN currentVersion >= maskVersion;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `HaveSuperPrivileges` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `HaveSuperPrivileges`() RETURNS tinyint(4)
    SQL SECURITY INVOKER
    COMMENT 'Проверка, имеет ли пользователь привилегию SUPER. Результат: 1 -'
BEGIN

  DECLARE usrstr TINYTEXT DEFAULT '';



  DECLARE usr TINYTEXT DEFAULT '';

  DECLARE hst TINYTEXT DEFAULT '';

  DECLARE pos TINYINT;



  SELECT USER() INTO usrstr;



  SELECT INSTR(usrstr, '@') INTO pos;





  SELECT Left(usrstr, pos - 1), Right(usrstr, Length(usrstr) - pos) INTO usr, hst;



  RETURN (

    SELECT COUNT(*) > 0

    FROM mysql.`user` u

    WHERE u.`User` = usr AND u.Host = hst AND Super_priv = 'Y'

  );

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `BMCTransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `BMCTransferBuffer`(IN DatagpsIsUpdated INT, IN Datagps64IsUpdated INT)
    COMMENT 'Обновление online* для BMC'
BEGIN
	DECLARE MobitelID INT;
	DECLARE done INT DEFAULT FALSE;
	DECLARE CursorMobitels CURSOR FOR SELECT Mobitel_ID FROM datagpsbuffer_bmc WHERE `Online`=1;
	DECLARE CursorMobitels64 CURSOR FOR SELECT Mobitel_ID FROM datagpsbuffer_bmc64 WHERE `Online`=1;
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
    
	/* datagps */
	IF DatagpsIsUpdated THEN
		OPEN CursorMobitels;
		read_loop: LOOP
			FETCH CursorMobitels INTO MobitelID;
			IF done THEN
				LEAVE read_loop;
			END IF;
			DELETE FROM `online` WHERE Mobitel_ID=MobitelID AND UnixTime <= (SELECT COALESCE(UnixTime, 0) FROM (SELECT UnixTime FROM `online` WHERE Mobitel_ID=MobitelID ORDER BY UnixTime DESC LIMIT 100, 1) o);
		END LOOP;
		CLOSE CursorMobitels;
		UPDATE mobitels m,datagpsbuffer_bmc b SET m.LastInsertTime=b.UnixTime WHERE m.Mobitel_ID=b.Mobitel_ID AND m.LastInsertTime<b.UnixTime;
	END IF;
	/* datagps64 */
	IF Datagps64IsUpdated THEN
		OPEN CursorMobitels64;
		read_loop: LOOP
			FETCH CursorMobitels64 INTO MobitelID;
			IF done THEN
				LEAVE read_loop;
			END IF;
			DELETE FROM `online64` WHERE Mobitel_ID=MobitelID AND UnixTime <= (SELECT COALESCE(UnixTime, 0) FROM (SELECT UnixTime FROM `online64` WHERE Mobitel_ID=MobitelID ORDER BY UnixTime DESC LIMIT 100, 1) o);
		END LOOP;
		CLOSE CursorMobitels64;
		UPDATE mobitels m,datagpsbuffer_bmc64 b SET m.LastInsertTime=b.UnixTime WHERE m.Mobitel_ID=b.Mobitel_ID AND m.LastInsertTime<b.UnixTime;
	END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckDB` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckDB`()
    SQL SECURITY INVOKER
    COMMENT 'Проверка БД при подключении.'
BEGIN



  SELECT 'OK';


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckOdo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckOdo`(IN m_id INTEGER(11), IN end_time DATETIME)
    SQL SECURITY INVOKER
BEGIN

  SELECT 

   FROM_UNIXTIME(datagps.UnixTime) AS `time` ,

   (datagps.Latitude / 600000.00000) AS Lat,

   (datagps.Longitude / 600000.00000) AS Lon

  FROM

    datagps

  WHERE

    datagps.Mobitel_ID = m_id AND 

    datagps.UnixTime BETWEEN (SELECT UNIX_TIMESTAMP(odoTime)  FROM vehicle WHERE Mobitel_id = m_id) AND 

    UNIX_TIMESTAMP(end_time) AND 

    Valid = 1;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CleaningDataGpsLostOn` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CleaningDataGpsLostOn`()
    SQL SECURITY INVOKER
    COMMENT 'Сия процедура удаляет не корректно оформленные диапазоны пропусков из таблицы datagpslost_on'
BEGIN

  /* удаляем записи у которых BeginSrvPacketId >= EndSrvPacketId */

  DELETE d FROM datagpslost_on d WHERE d.Begin_SrvPacketID >= d.End_SrvPacketID;

  /* удаляем записи у которых EndLogId - BeginLogId <= 1 */

  DELETE d FROM datagpslost_on d WHERE d.End_LogID - d.Begin_LogID <= 1;

  /* удаляем записи которые с заданным LogId и SrvPackId отсутвут в таблице datagps или datagps64 (фантомные записи) */



  CREATE TEMPORARY TABLE MobiTemp (Id bigint(20) UNSIGNED DEFAULT 0)ENGINE = INNODB

    CHARACTER SET cp1251

    COLLATE cp1251_general_ci

    COMMENT = 'Промежуточная временная таблица';



  INSERT INTO MobiTemp SELECT d.Id FROM datagpslost_on d WHERE 

  NOT EXISTS(SELECT NULL FROM datagps d1 WHERE (d.Mobitel_ID = d1.Mobitel_ID) AND ((d.Begin_LogID = d1.LogID) AND (d.Begin_SrvPacketID = d1.SrvPacketID))) AND 

  NOT EXISTS(SELECT NULL FROM datagps64 d2 WHERE (d.Mobitel_ID = d2.Mobitel_ID) AND ((d.Begin_LogID = d2.LogID) AND (d.Begin_SrvPacketID = d2.SrvPacketID))); 

  DELETE d FROM datagpslost_on d, MobiTemp m WHERE m.Id = d.Id;



  TRUNCATE MobiTemp;



  INSERT INTO MobiTemp SELECT d.Id FROM datagpslost_on d WHERE 

  NOT EXISTS(SELECT NULL FROM datagps d1 WHERE (d.Mobitel_ID = d1.Mobitel_ID) AND ((d.End_LogID = d1.LogID) AND (d.End_SrvPacketID = d1.SrvPacketID))) AND 

  NOT EXISTS(SELECT NULL FROM datagps64 d2 WHERE (d.Mobitel_ID = d2.Mobitel_ID) AND ((d.End_LogID = d2.LogID) AND (d.End_SrvPacketID = d2.SrvPacketID))); 

  DELETE d FROM datagpslost_on d, MobiTemp m WHERE m.Id = d.Id;



  DROP TEMPORARY TABLE MobiTemp;



  SELECT 1;

  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `dataview` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `dataview`(

  IN m_id INTEGER(11), 

  IN val BOOL, 

  IN begin_time DATETIME, 

  IN end_time DATETIME)
    SQL SECURITY INVOKER
BEGIN

  SELECT DataGps_ID AS DataGps_ID,

    Mobitel_ID AS Mobitel_ID,

    ((Latitude * 1.0000) / 600000) AS Lat,

    ((Longitude * 1.0000) / 600000) AS Lon,

    Altitude AS Altitude,

    FROM_UNIXTIME(UnixTime) AS `time`,

    (Speed * 1.852) AS speed,

    ((Direction * 360) / 255) AS direction,

    Valid AS Valid,

    (Sensor8 + (Sensor7 << 8) + (Sensor6 << 16) + 

      (Sensor5 << 24) + (Sensor4 << 32) + (Sensor3 << 40) + 

      (Sensor2 << 48) + (Sensor1 << 56)) AS sensor,

    Events AS Events,

    LogID AS LogID 

  FROM datagps 

  WHERE Mobitel_ID = m_id AND  

    (UnixTime BETWEEN UNIX_TIMESTAMP(begin_time) AND UNIX_TIMESTAMP(end_time)) AND                                                                                                                                

    (Valid = val) AND NOT (Latitude = 0 AND Longitude =0)

  ORDER BY UnixTime;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `delDupSrvPacket` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `delDupSrvPacket`()
    SQL SECURITY INVOKER
    COMMENT 'Удаляет дубликаты SrvPacketID из таблицы datagpsbuffer_on64'
BEGIN

DROP TEMPORARY TABLE IF EXISTS tmp64;




CREATE TEMPORARY TABLE tmp64 SELECT Mobitel_ID,

  Latitude,

  Longitude,

  Direction,

  Acceleration,

  UnixTime,

  Speed,

  Valid,

  Satellites,

  RssiGsm,

  `Events`,

  SensorsSet,

  Sensors,

  Voltage,

  DGPS,

  LogID,

  SrvPacketID

FROM datagpsbuffer_on64 d

GROUP BY d.SrvPacketID;



  TRUNCATE TABLE datagpsbuffer_on64;



  INSERT INTO datagpsbuffer_on64 SELECT Mobitel_ID,

  Latitude,

  Longitude,

  Direction,

  Acceleration,

  UnixTime,

  Speed,

  Valid,

  Satellites,

  RssiGsm,

  `Events`,

  SensorsSet,

  Sensors,

  Voltage,

  DGPS,

  LogID,

  SrvPacketID

FROM tmp64 d;



DROP TEMPORARY TABLE IF EXISTS tmp64;


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DrListMobitelConfig` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DrListMobitelConfig`()
    SQL SECURITY INVOKER
    COMMENT 'Выборка настроек телетреков в режиме DirectOnline'
BEGIN

  SELECT m.Mobitel_id AS MobitelID, 

    imc.DevIdShort AS DevIdShort,

    cge.Pop3un AS Login, 

    cge.Pop3pw AS Password

  FROM Mobitels m JOIN ConfigMain cm ON m.Mobitel_id = cm.Mobitel_ID

    JOIN ConfigGprsEmail cge ON cm.ConfigGprsEmail_ID = cge.ID

    JOIN internalmobitelconfig imc ON m.InternalMobitelConfig_ID = imc.ID 

  WHERE (cge.ConfigGprsEmail_ID = (

      SELECT MAX(intCge.ConfigGprsEmail_ID)

      FROM ConfigGprsEmail intCge

      WHERE intCge.ID = cge.ID)) AND

    (imc.InternalMobitelConfig_ID = (

      SELECT MAX(intConf.InternalMobitelConfig_ID)

      FROM internalmobitelconfig intConf

      WHERE intConf.ID = imc.ID)) AND 

    (imc.devIdShort IS NOT NULL) AND (imc.devIdShort <> _cp1251 '')	AND 

    (cge.Pop3un IS NOT NULL) AND (cge.Pop3un <> _cp1251 '') 

  ORDER BY m.Mobitel_ID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DrTransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DrTransferBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные DirectOnline из буферной таблицы в datagps'
BEGIN

  DECLARE MobitelIDInCursor INT; 

  DECLARE DataExists TINYINT DEFAULT 1; 

  

  DECLARE TmpMaxUnixTime INT; 



  DECLARE CursorMobitels CURSOR FOR

    SELECT DISTINCT(Mobitel_ID) FROM datagpsbuffer_dr;



  

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;





    

  

  

  DELETE o

  FROM online o, datagpsbuffer_dr dgb

  WHERE (o.Mobitel_ID = dgb.Mobitel_ID) AND (o.LogID = dgb.LogID);

  

  SET DataExists = 1;

  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    

    SELECT COALESCE(MAX(UnixTime), 0) INTO TmpMaxUnixTime

    FROM online FORCE INDEX (IDX_Mobitelid)

    WHERE Mobitel_ID = MobitelIDInCursor;



    

    INSERT INTO online (

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs)

    SELECT

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs

    FROM (

      SELECT *

      FROM datagpsbuffer_dr

      WHERE (Mobitel_ID = MobitelIDInCursor)  AND 

        (UnixTime > TmpMaxUnixTime) AND (Valid = 1)

      GROUP BY Mobitel_ID, LogID

      ORDER BY UnixTime DESC

      LIMIT 100) AS T

    ORDER BY UnixTime ASC;



    

    DELETE FROM online

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (UnixTime < 

      (SELECT COALESCE(MIN(UnixTime), 0) 

       FROM (

         SELECT UnixTime

         FROM online

         WHERE Mobitel_ID = MobitelIDInCursor 

         ORDER BY UnixTime DESC

         LIMIT 100) T1)); 

  

    FETCH CursorMobitels INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitels;

   





  

  UPDATE datagps d, datagpsbuffer_dr b SET

    d.Latitude = b.Latitude,

    d.Longitude = b.Longitude,

    d.Altitude = b.Altitude,

    d.UnixTime = b.UnixTime,

    d.Speed = b.Speed,

    d.Direction = b.Direction,

    d.Valid = b.Valid,

    d.InMobitelID = b.LogID,

    d.`Events` = b.`Events`,

    d.Sensor1 = b.Sensor1,

    d.Sensor2 = b.Sensor2,

    d.Sensor3 = b.Sensor3,

    d.Sensor4 = b.Sensor4,

    d.Sensor5 = b.Sensor5,

    d.Sensor6 = b.Sensor6,

    d.Sensor7 = b.Sensor7,

    d.Sensor8 = b.Sensor8,

    d.whatIs = b.whatIs,

    d.Counter1 = b.Counter1,

    d.Counter2 = b.Counter2,

    d.Counter3 = b.Counter3,

    d.Counter4 = b.Counter4

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  DELETE b

  FROM datagps d, datagpsbuffer_dr b

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  INSERT INTO datagps (

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, InMobitelID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs)

  SELECT

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, LogID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs

  FROM datagpsbuffer_dr

  GROUP BY Mobitel_ID, LogID;



  

  TRUNCATE TABLE datagpsbuffer_dr;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ExecuteQuery` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ExecuteQuery`(IN sqlQuery TINYTEXT)
    SQL SECURITY INVOKER
BEGIN

  SET @s = sqlQuery;

  PREPARE stmt FROM @s;

  EXECUTE stmt;

  DEALLOCATE PREPARE stmt;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `getDiapasone` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getDiapasone`(

  IN mobile INTEGER(11),  

  IN prevLogId int, 

  IN currLogId int)
    SQL SECURITY INVOKER
BEGIN

  SELECT DataGps_ID AS DataGps_ID,

    Mobitel_ID AS Mobitel_ID,

    ((Latitude * 1.0000) / 600000) AS Lat,

    ((Longitude * 1.0000) / 600000) AS Lon,

    Altitude AS Altitude,

    FROM_UNIXTIME(UnixTime) AS `time`,

    (Speed * 1.852) AS speed,

    ((Direction * 360) / 255) AS direction,

    Valid AS Valid,

    (Sensor8 + (Sensor7 << 8) + (Sensor6 << 16) + 

      (Sensor5 << 24) + (Sensor4 << 32) + (Sensor3 << 40) + 

      (Sensor2 << 48) + (Sensor1 << 56)) AS sensor,

    Events AS Events,

    LogID AS LogID, 

    SrvPacketID AS srvPack

  FROM datagps 

  WHERE Mobitel_ID = mobile AND  Valid = 1 AND  

    (LogID BETWEEN prevLogId AND currLogId) ORDER BY UnixTime;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `getDiapasone64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getDiapasone64`(

  IN mobile INTEGER(11),  

  IN prevLogId int, 

  IN currLogId int)
    SQL SECURITY INVOKER
BEGIN

  SELECT  DataGps_ID, Mobitel_ID,

    ((Latitude * 1.000) / 10000000) AS Lat,

    ((Longitude * 1.000) / 10000000) AS Lng,

    Acceleration , 

    FROM_UNIXTIME(UnixTime) AS `time` , 

    Speed /10 AS Speed, 

    Valid,

    Sensors AS sensor, 

  `Events`, 

  LogID ,

  Voltage,

  DGPS,

  Direction,

  Satellites,

  SensorsSet,

  RssiGsm,

  SrvPacketID AS srvPack FROM datagps64 d WHERE Mobitel_ID = mobile AND d.Valid = 1 AND  

    (LogID BETWEEN prevLogId AND currLogId) ORDER BY UnixTime;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `hystoryOnline` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `hystoryOnline`(IN id INTEGER(11))
    SQL SECURITY INVOKER
BEGIN

  SELECT LogID, Mobitel_Id, 

    FROM_UNIXTIME(unixtime)  AS `time`,

    ROUND((Latitude / 600000.00000), 6) AS Lat,

    ROUND((Longitude / 600000.00000), 6)  AS Lon,

    Altitude  AS Altitude,

    (Speed * 1.852) AS speed,

    ((Direction * 360) / 255) AS direction,

    Valid AS Valid,

    (Sensor8 + (Sensor7 << 8) + (Sensor6 << 16) + 

      (Sensor5 << 24) + (Sensor4 << 32) + (Sensor3 << 40) + 

      (Sensor2 << 48) + (Sensor1 << 56)) AS sensor,

    Events AS Events,

    DataGPS_ID  AS 'DataGPS_ID'

  FROM online

  WHERE  datagps_id > id

  ORDER BY datagps_id DESC;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IsTeletrackDatabase` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `IsTeletrackDatabase`()
    SQL SECURITY INVOKER
    COMMENT 'Проверка базы данных на соответствие структуре системы Teletrack'
BEGIN

  DECLARE i TINYINT;



END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `new_proc` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `new_proc`(IN sensor INTEGER(11), IN m_id INTEGER(11), IN s_id INTEGER(11), IN begin_time DATETIME, IN end_time DATETIME)
    READS SQL DATA
    SQL SECURITY INVOKER
BEGIN                                                                                                                                      
select                                                                                                                                     
    round((`datagps`.`Longitude` / 600000),6) AS `lon`,                                                                                    
    round((`datagps`.`Latitude` / 600000),6) AS `lat`,                                                                                     
    `datagps`.`Mobitel_ID` AS `Mobitel_ID`,                                                                                                
    `sensordata`.`Value` AS `Value`,                                                                                                       
    (`datagps`.`Speed` * 1.852) AS `speed`,                                                                                                
    from_unixtime(`datagps`.`UnixTime`) AS `time`,                                                                                         
    `sensordata`.`sensor_id` AS `sensor_id`,                                                                                               
    `datagps`.`DataGps_ID` AS `datagps_id`,                                                                                                
    `datagps`.`Sensor1`&`sensor` AS `sensor`                                                                                              
  from                                                                                                                                     
    (`sensordata` join `datagps` on((`sensordata`.`datagps_id` = `datagps`.`DataGps_ID`)))                                                 
  where                                                                                                                                    
    (`datagps`.`Valid` = 1) and                                                                                                            
    ( datagps.UnixTime BETWEEN UNIX_TIMESTAMP(begin_time) and UNIX_TIMESTAMP(end_time))                                                    
    and datagps.Mobitel_ID = m_id AND sensordata.sensor_id = s_id                                                                          
  order by                                                                                                                                 
    `datagps`.`UnixTime`,`datagps`.`Mobitel_ID`,`sensordata`.`sensor_id`;                                                                  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnCorrectInfotrackLogId` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnCorrectInfotrackLogId`()
    SQL SECURITY INVOKER
    COMMENT 'Корректировка значений LogId и InMobitelID в данных инфотреков'
BEGIN

  DECLARE MobitelIDInCursor INT; /* Текущее значение MobitelID */

  DECLARE DataExists TINYINT DEFAULT 1; /* Флаг наличия данных после фетча */

  DECLARE MaxLogId INT DEFAULT 0; /* Максимальный LogId для данного дивайса */

  DECLARE SrvPacketIDInCursor BIGINT DEFAULT 0; /* Текущее значение серверного пакета */

    

  /* Курсор по инфотрекам в множестве новых данных. 

     Все инфотреки начинаются с буквы I */

  DECLARE CursorInfoTrack CURSOR FOR

    SELECT DISTINCT buf.Mobitel_ID

    FROM datagpsbuffer_on buf 

      JOIN mobitels m ON (buf.mobitel_id = m.mobitel_id)

      JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)

    WHERE (c.InternalMobitelConfig_ID = (

      SELECT intConf.InternalMobitelConfig_ID

      FROM internalmobitelconfig intConf

      WHERE (intConf.ID = c.ID) 

      ORDER BY intConf.InternalMobitelConfig_ID DESC

      LIMIT 1)) AND 

      (c.devIdShort LIKE "I%") AND (buf.LogId = 0)

    ORDER BY 1;

    

  /* Курсор по данным телетрека */

  DECLARE CursorInfoTrackUpdateSet CURSOR FOR

    SELECT SrvPacketID 

    FROM datagpsbuffer_on

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (LogId = 0)

    ORDER BY UnixTime;  



  /* Обработчик отсутствующей записи при FETCH следующей записи */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  

  OPEN CursorInfoTrack;

  FETCH CursorInfoTrack INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* Находим максимальный LogId для данного инфотрека */

    SELECT COALESCE(MAX(LogID), 0) INTO	MaxLogId

    FROM DataGps

    WHERE Mobitel_ID = MobitelIDInCursor;



    /* Обновляем LogId и InMobitelID в наборе новых данных текущего инфотрека */

    OPEN CursorInfoTrackUpdateSet;

    FETCH CursorInfoTrackUpdateSet INTO SrvPacketIDInCursor;

    WHILE DataExists = 1 DO

      SET MaxLogId = MaxLogId + 1;



      UPDATE datagpsbuffer_on

      SET LogId = MaxLogId, InMobitelID = MaxLogId

      WHERE SrvPacketID = SrvPacketIDInCursor;



      FETCH CursorInfoTrackUpdateSet INTO SrvPacketIDInCursor;

    END WHILE;

    CLOSE CursorInfoTrackUpdateSet;

 

    SET DataExists = 1;

    FETCH CursorInfoTrack INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorInfoTrack;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnCorrectInfotrackLogId64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnCorrectInfotrackLogId64`()
    SQL SECURITY INVOKER
    COMMENT 'РљРѕСЂСЂРµРєС‚РёСЂРѕРІРєР° Р·РЅР°С‡РµРЅРёР№ LogId Рё InMobitelID РІ РґР°РЅРЅС‹С… РёРЅС„РѕС‚СЂРµРєРѕРІ'
BEGIN

  DECLARE MobitelIDInCursor int; /* РўРµРєСѓС‰РµРµ Р·РЅР°С‡РµРЅРёРµ MobitelID */

  DECLARE DataExists tinyint DEFAULT 1; /* Р¤Р»Р°Рі РЅР°Р»РёС‡РёСЏ РґР°РЅРЅС‹С… РїРѕСЃР»Рµ С„РµС‚С‡Р° */

  DECLARE MaxLogId int DEFAULT 0; /* РњР°РєСЃРёРјР°Р»СЊРЅС‹Р№ LogId РґР»СЏ РґР°РЅРЅРѕРіРѕ РґРёРІР°Р№СЃР° */

  DECLARE SrvPacketIDInCursor bigint DEFAULT 0; /* РўРµРєСѓС‰РµРµ Р·РЅР°С‡РµРЅРёРµ СЃРµСЂРІРµСЂРЅРѕРіРѕ РїР°РєРµС‚Р° */



  /* РљСѓСЂСЃРѕСЂ РїРѕ РёРЅС„РѕС‚СЂРµРєР°Рј РІ РјРЅРѕР¶РµСЃС‚РІРµ РЅРѕРІС‹С… РґР°РЅРЅС‹С…. 

     Р’СЃРµ РёРЅС„РѕС‚СЂРµРєРё РЅР°С‡РёРЅР°СЋС‚СЃСЏ СЃ Р±СѓРєРІС‹ I */

  DECLARE CursorInfoTrack CURSOR FOR

  SELECT DISTINCT

    buf.Mobitel_ID

  FROM datagpsbuffer_on64 buf

    JOIN mobitels m

      ON (buf.mobitel_id = m.mobitel_id)

    JOIN internalmobitelconfig c

      ON (c.ID = m.InternalMobitelConfig_ID)

  WHERE (c.InternalMobitelConfig_ID = (SELECT

      intConf.InternalMobitelConfig_ID

    FROM internalmobitelconfig intConf

    WHERE (intConf.ID = c.ID)

    ORDER BY intConf.InternalMobitelConfig_ID DESC

    LIMIT 1)) AND

  (c.devIdShort LIKE "I%") AND (buf.LogId = 0)

  ORDER BY 1;



  /* РљСѓСЂСЃРѕСЂ РїРѕ РґР°РЅРЅС‹Рј С‚РµР»РµС‚СЂРµРєР° */

  DECLARE CursorInfoTrackUpdateSet CURSOR FOR

  SELECT

    SrvPacketID

  FROM datagpsbuffer_on64

  WHERE (Mobitel_ID = MobitelIDInCursor) AND (LogId = 0)

  ORDER BY UnixTime;



  /* РћР±СЂР°Р±РѕС‚С‡РёРє РѕС‚СЃСѓС‚СЃС‚РІСѓСЋС‰РµР№ Р·Р°РїРёСЃРё РїСЂРё FETCH СЃР»РµРґСѓСЋС‰РµР№ Р·Р°РїРёСЃРё */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  OPEN CursorInfoTrack;

  FETCH CursorInfoTrack INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* РќР°С…РѕРґРёРј РјР°РєСЃРёРјР°Р»СЊРЅС‹Р№ LogId РґР»СЏ РґР°РЅРЅРѕРіРѕ РёРЅС„РѕС‚СЂРµРєР° */

    SELECT

      COALESCE(MAX(LogID), 0) INTO MaxLogId

    FROM DataGps

    WHERE Mobitel_ID = MobitelIDInCursor;



    /* РћР±РЅРѕРІР»СЏРµРј LogId Рё InMobitelID РІ РЅР°Р±РѕСЂРµ РЅРѕРІС‹С… РґР°РЅРЅС‹С… С‚РµРєСѓС‰РµРіРѕ РёРЅС„РѕС‚СЂРµРєР° */

    OPEN CursorInfoTrackUpdateSet;

    FETCH CursorInfoTrackUpdateSet INTO SrvPacketIDInCursor;

    WHILE DataExists = 1 DO

      SET MaxLogId = MaxLogId + 1;



      UPDATE datagpsbuffer_on64

      SET LogId = MaxLogId,

          InMobitelID = MaxLogId

      WHERE SrvPacketID = SrvPacketIDInCursor;



      FETCH CursorInfoTrackUpdateSet INTO SrvPacketIDInCursor;

    END WHILE;

    CLOSE CursorInfoTrackUpdateSet;



    SET DataExists = 1;

    FETCH CursorInfoTrack INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorInfoTrack;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnDeleteDuplicates` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnDeleteDuplicates`()
    SQL SECURITY INVOKER
    COMMENT 'Удаление повторяющихся строк из datagpsbuffer_on'
BEGIN

  /* Удаляет дубликаты строк из таблицы datagpsbuffer_on. Критерием поиска

   являются одинаковые значения в полях Mobitel_Id + LogID. Из множества

   повторяющихся записей в таблице datagpsbuffer_on останется только одна - 

   последняя принятая телематическим сервером, т.е. с максимальным SrvPacketID. */

   

  /* Текущий MobitelId в курсоре CursorDuplicateGroups */

  DECLARE MobitelIdInCursor INT DEFAULT 0; 

  /* Текущий LogID в курсоре CursorDuplicateGroups */

  DECLARE LogIdInCursor INT DEFAULT 0; 

  /* Max SrvPacketId в множестве строк текущей группы дубликатов */

  DECLARE MaxSrvPacketId BIGINT DEFAULT 0; 

  DECLARE DataExists TINYINT DEFAULT 1;



  /* Курсор для прохода по всем группам дубликатов */  

  DECLARE CursorDuplicateGroups CURSOR FOR

    SELECT Mobitel_Id, LogId 

    FROM datagpsbuffer_on

    GROUP BY Mobitel_Id, LogId 

    HAVING COUNT(LogId) > 1;

    

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  SET DataExists = 1;

  OPEN CursorDuplicateGroups;

  FETCH CursorDuplicateGroups INTO MobitelIdInCursor, LogIdInCursor;

  WHILE DataExists = 1 DO

    SELECT MAX(SrvPacketID) INTO MaxSrvPacketId

    FROM datagpsbuffer_on 

    WHERE (Mobitel_ID = MobitelIdInCursor) AND (LogId = LogIdInCursor);

         

    DELETE FROM datagpsbuffer_on  

    WHERE (Mobitel_ID = MobitelIdInCursor) AND (LogId = LogIdInCursor) 

      AND (SrvPacketID < MaxSrvPacketId);

        

    FETCH CursorDuplicateGroups INTO MobitelIdInCursor, LogIdInCursor;

  END WHILE;

  CLOSE CursorDuplicateGroups; 

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnDeleteDuplicates64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnDeleteDuplicates64`()
    SQL SECURITY INVOKER
    COMMENT 'РЈРґР°Р»РµРЅРёРµ РїРѕРІС‚РѕСЂСЏСЋС‰РёС…СЃСЏ СЃС‚СЂРѕРє РёР· datagpsbuffer_on64'
BEGIN

  /* РЈРґР°Р»СЏРµС‚ РґСѓР±Р»РёРєР°С‚С‹ СЃС‚СЂРѕРє РёР· С‚Р°Р±Р»РёС†С‹ datagpsbuffer_on64. РљСЂРёС‚РµСЂРёРµРј РїРѕРёСЃРєР°

   СЏРІР»СЏСЋС‚СЃСЏ РѕРґРёРЅР°РєРѕРІС‹Рµ Р·РЅР°С‡РµРЅРёСЏ РІ РїРѕР»СЏС… Mobitel_Id + LogID. РР· РјРЅРѕР¶РµСЃС‚РІР°

   РїРѕРІС‚РѕСЂСЏСЋС‰РёС…СЃСЏ Р·Р°РїРёСЃРµР№ РІ С‚Р°Р±Р»РёС†Рµ datagpsbuffer_on64 РѕСЃС‚Р°РЅРµС‚СЃСЏ С‚РѕР»СЊРєРѕ РѕРґРЅР° - 

   РїРѕСЃР»РµРґРЅСЏСЏ РїСЂРёРЅСЏС‚Р°СЏ С‚РµР»РµРјР°С‚РёС‡РµСЃРєРёРј СЃРµСЂРІРµСЂРѕРј, С‚.Рµ. СЃ РјР°РєСЃРёРјР°Р»СЊРЅС‹Рј SrvPacketID. */



  /* РўРµРєСѓС‰РёР№ MobitelId РІ РєСѓСЂСЃРѕСЂРµ CursorDuplicateGroups */

  DECLARE MobitelIdInCursor int DEFAULT 0;

  /* РўРµРєСѓС‰РёР№ LogID РІ РєСѓСЂСЃРѕСЂРµ CursorDuplicateGroups */

  DECLARE LogIdInCursor int DEFAULT 0;

  /* Max SrvPacketId РІ РјРЅРѕР¶РµСЃС‚РІРµ СЃС‚СЂРѕРє С‚РµРєСѓС‰РµР№ РіСЂСѓРїРїС‹ РґСѓР±Р»РёРєР°С‚РѕРІ */

  DECLARE MaxSrvPacketId bigint DEFAULT 0;

  DECLARE DataExists tinyint DEFAULT 1;



  /* РљСѓСЂСЃРѕСЂ РґР»СЏ РїСЂРѕС…РѕРґР° РїРѕ РІСЃРµРј РіСЂСѓРїРїР°Рј РґСѓР±Р»РёРєР°С‚РѕРІ */

  DECLARE CursorDuplicateGroups CURSOR FOR

  SELECT

    Mobitel_Id,

    LogId

  FROM datagpsbuffer_on64

  GROUP BY Mobitel_Id,

           LogId

  HAVING COUNT(LogId) > 1;



  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  SET DataExists = 1;

  OPEN CursorDuplicateGroups;

  FETCH CursorDuplicateGroups INTO MobitelIdInCursor, LogIdInCursor;

  WHILE DataExists = 1 DO

    SELECT

      MAX(SrvPacketID) INTO MaxSrvPacketId

    FROM datagpsbuffer_on64

    WHERE (Mobitel_ID = MobitelIdInCursor) AND (LogId = LogIdInCursor);



    DELETE

      FROM datagpsbuffer_on64

    WHERE (Mobitel_ID = MobitelIdInCursor) AND (LogId = LogIdInCursor)

      AND (SrvPacketID < MaxSrvPacketId);



    FETCH CursorDuplicateGroups INTO MobitelIdInCursor, LogIdInCursor;

  END WHILE;

  CLOSE CursorDuplicateGroups;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnDeleteLostRange` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnDeleteLostRange`(IN MobitelID INTEGER(11), IN BeginSrvPacketID BIGINT)
    SQL SECURITY INVOKER
    COMMENT 'Удаление указанного диапазона пропусков из datagpslost_on.'
BEGIN

  /* Определяем является ли запись, предназначенная для удаления,

     первой в списке заданного телетрека. Если является - тогда

     внесем поправку в значение ConfirmedID */  

     

  DECLARE MinBeginSrvPacketID BIGINT; -- Минимальное значение Begin_SrvPacketID для данного телетрека

  DECLARE NewConfirmedID INT; -- Новое значение ConfirmedID  



  /* Нахождение минимального значения Begin_SrvPacketID */  

  SELECT MIN(Begin_SrvPacketID) INTO MinBeginSrvPacketID

  FROM datagpslost_on

  WHERE Mobitel_ID = MobitelID;

  

  /* Если есть данные о пропусках у телетрека - продолжим */

  IF MinBeginSrvPacketID IS NOT NULL THEN

    /* Если удаляем первую запись - запомним новое значение ConfirmedID */

    IF MinBeginSrvPacketID = BeginSrvPacketID  THEN

      SELECT End_LogID INTO NewConfirmedID

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_SrvPacketID = BeginSrvPacketID);

    END IF;

  

    /* Удаление записи */

    DELETE FROM  datagpslost_on

    WHERE (Mobitel_ID = MobitelID) AND (Begin_SrvPacketID = BeginSrvPacketID);

    

    /* Если удалили первую запись - обновим ConfirmedID */  

    IF MinBeginSrvPacketID = BeginSrvPacketID  THEN

      UPDATE mobitels

      SET ConfirmedID = NewConfirmedID

      WHERE (Mobitel_ID = MobitelID) AND (NewConfirmedID > ConfirmedID);

    END IF;

  END IF;  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnInsertDatagpsLost` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnInsertDatagpsLost`(

  IN MobitelID INT, 

  IN BeginLogID INT, 

  IN EndLogID INT,

  IN BeginSrvPacketID BIGINT, 

  IN EndSrvPacketID BIGINT)
    SQL SECURITY INVOKER
    COMMENT 'Вставка данных в таблицу datagpslost_on.'
BEGIN

  /* Флаг существования записи с заданными Mobitel_ID и Begin_LogID

     в таблице datagpslost_on */

  DECLARE MobitelId_BeginLogID_Exists TINYINT DEFAULT 0; 

  /* Флаг существования записи с заданными Mobitel_ID и Begin_SrvPacketID

     в таблице datagpslost_on  */

  DECLARE MobitelId_BeginSrvPacketID_Exists TINYINT DEFAULT 0;

  

  DECLARE RowBeginSrvPacketID BIGINT; 

  

  IF EXISTS(

    SELECT NULL

    FROM datagpslost_on

    WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID))

  THEN

    SET MobitelId_BeginLogID_Exists = 1;

  END IF;



  IF EXISTS(

    SELECT NULL

    FROM datagpslost_on

    WHERE (Mobitel_ID = MobitelID) AND (Begin_SrvPacketID = BeginSrvPacketID))

  THEN

    SET MobitelId_BeginSrvPacketID_Exists = 1;

  END IF;



  IF (MobitelId_BeginLogID_Exists = 0) AND (MobitelId_BeginSrvPacketID_Exists = 0)

  THEN

    /* Вставка новой записи */

    INSERT INTO datagpslost_on(Mobitel_ID, Begin_LogID, End_LogID, Begin_SrvPacketID, End_SrvPacketID)

    VALUES (MobitelID, BeginLogID, EndLogID, BeginSrvPacketID, EndSrvPacketID);

  ELSE

    IF ((MobitelId_BeginLogID_Exists = 1) AND (MobitelId_BeginSrvPacketID_Exists = 1))

    THEN

      /* Обновление существующей записи */

      UPDATE datagpslost_on

      SET End_LogID = EndLogID, End_SrvPacketID = EndSrvPacketID

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID);

    ELSE

      /* Комбинацию MobitelId_BeginLogID_Exists = 0, MobitelId_BeginSrvPacketID_Exists = 1

         игнорируем - это исключительная ситуация, которая не должна возникать. */

      SELECT Begin_SrvPacketID

      INTO RowBeginSrvPacketID

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID)

      LIMIT 1;

      

      IF ((MobitelId_BeginLogID_Exists = 1) AND (MobitelId_BeginSrvPacketID_Exists = 0) AND

        (BeginSrvPacketID < RowBeginSrvPacketID))

      THEN

        /* В эту ветвь попадаем, если телетрек отдаст одну и ту же запись несколько раз 

           (LogID у записей один и тотже, а SrvPacketID различны) */

        UPDATE datagpslost_on

        SET End_LogID = EndLogID, Begin_SrvPacketID = BeginSrvPacketID, End_SrvPacketID = EndSrvPacketID

        WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID);

      END IF;

    END IF;

  END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `online` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `online`()
    SQL SECURITY INVOKER
BEGIN

  SELECT Log_ID, MobitelId, 

    (SELECT DataGPS_ID

    FROM `online` 

    WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS 'DataGPS_ID',

      (SELECT from_unixtime(unixtime) 

      FROM `online` 

      WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS 'time',

        (SELECT ROUND((`Latitude` / 600000.00000),6)

        FROM `online` 

        WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `Lat`,

          (SELECT ROUND((`Longitude` / 600000.00000),6) 

          FROM `online` 

          WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `Lon`,

            (SELECT `Altitude` 

            FROM `online` 

            WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `Altitude`,

              (SELECT (`Speed` * 1.852)

              FROM `online` 

              WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `speed`,

                (SELECT ((`Direction` * 360) / 255)

                FROM `online` 

                WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `direction`,

                  (SELECT `Valid`

                  FROM `online` 

                  WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `Valid`,

                    (SELECT (((((((`Sensor8` + 

                    (`Sensor7` << 8)) + 

                    (`Sensor6` << 16)) + 

                    (`Sensor5` << 24)) + 

                    (`Sensor4` << 32)) + 

                    (`Sensor3` << 40)) + 

                    (`Sensor2` << 48)) + 

                    (`Sensor1` << 56)) 

                    FROM `online` 

                    WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `sensor`,

                      (SELECT `Events`

                      FROM `online` 

                      WHERE mobitel_id = MobitelId AND LogId = Log_ID Limit 1) AS `Events`

   

  FROM (SELECT MAX(`LogID`) AS `Log_ID`, mobitel_id AS MobitelId

        FROM `online` 

        GROUP BY `Mobitel_ID`) T1;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnListMobitelConfig` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnListMobitelConfig`()
    SQL SECURITY INVOKER
    COMMENT 'Выборка настроек телетреков которые могут работать в online режиме'
BEGIN

  DECLARE MobitelIDInCursor INT;

  DECLARE DevIdShortInCursor CHAR(4);

  DECLARE DataExists TINYINT DEFAULT 1;



  /* Курсор в множестве настроенных телетреков */

  DECLARE CursorMobitels CURSOR FOR

    SELECT m.Mobitel_ID AS MobitelID, c.devIdShort AS DevIdShort

    FROM mobitels m

      JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)

    WHERE (c.InternalMobitelConfig_ID = (

      SELECT intConf.InternalMobitelConfig_ID

      FROM internalmobitelconfig intConf

      WHERE (intConf.ID = c.ID)

      ORDER BY intConf.InternalMobitelConfig_ID DESC

      LIMIT 1)) AND

      (c.devIdShort IS NOT NULL) AND (c.devIdShort <> _cp1251'')

    ORDER BY m.Mobitel_ID;



  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  /* Временная таблица настроек телетрека */

  CREATE TEMPORARY TABLE tmpMobitelsConfig (

    MobitelID INT NOT NULL,

    DevIdShort CHAR(4) NOT NULL,

    LastPacketID BIGINT NOT NULL) ENGINE = MEMORY;



  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor, DevIdShortInCursor;

  WHILE DataExists = 1 DO



    INSERT INTO tmpMobitelsConfig SELECT MobitelIDInCursor, DevIdShortInCursor,

      (SELECT COALESCE(MAX(SrvPacketID), 0)

       FROM datagps

       WHERE Mobitel_ID = MobitelIDInCursor) AS LastPacketID;



    FETCH CursorMobitels INTO MobitelIDInCursor, DevIdShortInCursor;

  END WHILE;

  CLOSE CursorMobitels;



  SELECT MobitelID, DevIdShort, LastPacketID

  FROM tmpMobitelsConfig;



  DROP TEMPORARY TABLE tmpMobitelsConfig;  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnListMobitelConfig64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnListMobitelConfig64`()
    SQL SECURITY INVOKER
    COMMENT 'Выборка настроек телетреков которые могут работать в online режиме для datagps и datagps64'
BEGIN

  DECLARE MobitelIDInCursor INT;

  DECLARE Is64Cursor tinyint;

  DECLARE DevIdShortInCursor CHAR(4);

  DECLARE DataExists TINYINT DEFAULT 1;



  /* Курсор в множестве настроенных телетреков */

  DECLARE CursorMobitels CURSOR FOR

    SELECT m.Mobitel_ID AS MobitelID, m.Is64bitPackets AS Is64, c.devIdShort AS DevIdShort

    FROM mobitels m

      JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)

    WHERE (c.InternalMobitelConfig_ID = (

      SELECT intConf.InternalMobitelConfig_ID

      FROM internalmobitelconfig intConf

      WHERE (intConf.ID = c.ID)

      ORDER BY intConf.InternalMobitelConfig_ID DESC

      LIMIT 1)) AND

      (c.devIdShort IS NOT NULL) AND (c.devIdShort <> _cp1251'')

    ORDER BY m.Mobitel_ID;



  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  /* Временная таблица настроек телетрека */

  CREATE TEMPORARY TABLE tmpMobitelsConfig (

    MobitelID INT NOT NULL,

    Is64 tinyint NOT NULL,

    DevIdShort CHAR(4) NOT NULL,

    LastPacketID BIGINT NOT NULL,

    LastPacketID64 BIGINT NOT NULL) ENGINE = MEMORY;



  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor, Is64Cursor, DevIdShortInCursor;

  WHILE DataExists = 1 DO



    INSERT INTO tmpMobitelsConfig SELECT MobitelIDInCursor, Is64Cursor, DevIdShortInCursor,

      (SELECT COALESCE(MAX(d.SrvPacketID), 0)

       FROM datagps d

       WHERE d.Mobitel_ID = MobitelIDInCursor) AS LastPacketID,

      (SELECT COALESCE(MAX(t.SrvPacketID), 0)

       FROM datagps64 t

       WHERE t.Mobitel_ID = MobitelIDInCursor) AS LastPacketID64;



    FETCH CursorMobitels INTO MobitelIDInCursor, Is64Cursor, DevIdShortInCursor;

  END WHILE;

  CLOSE CursorMobitels;



  SELECT MobitelID, Is64, DevIdShort, LastPacketID, LastPacketID64

  FROM tmpMobitelsConfig;



  DROP TEMPORARY TABLE tmpMobitelsConfig;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnLostDataGPS` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnLostDataGPS`(IN MobitelID INTEGER(11), OUT NeedOptimize TINYINT)
    SQL SECURITY INVOKER
    COMMENT 'Поиск пропусков в online данных заданного телетрека и заполнение таблиц.'
BEGIN



  /********** DECLARE **********/

  

  DECLARE CurrentConfirmedID INT DEFAULT 0; /* Текущее значение ConfirmedID */

  DECLARE NewConfirmedID INT DEFAULT 0; /* Новое значение ConfirmedID */

  DECLARE StartLogIDSelect INT DEFAULT 0; /* min LogID для выборки */

  DECLARE FinishLogIDSelect INT DEFAULT 0; /* max LogID для выборки */

  DECLARE MaxEndLogID INT DEFAULT 0; /* max End_LogID в пропущенных диапазонах данного телетрека */

  

  DECLARE MinLogID_n INT DEFAULT 0; /* Минимальный LogID после ConfirmedID в множестве новых данных */

  DECLARE MaxLogID_n INT DEFAULT 0; /* Максимальный LogID в множестве новых данных */

  

  DECLARE DataExists TINYINT DEFAULT 1; /* Флаг наличия данных после фетча */

    

  DECLARE NewLogID INT; /* Значение LogID в курсоре CursorNewLogID */

  DECLARE NewSrvPacketID BIGINT; /* Значение SrvPacketID в курсоре CursorNewLogID */

  DECLARE FirstLogID INT DEFAULT -9999999; /* Первое значение LogID для анализа */

  DECLARE SecondLogID INT; /* Второе значение LogID для анализа */

  DECLARE FirstSrvPacketID BIGINT; /* Первое значение SrvPacketID */

  DECLARE SecondSrvPacketID BIGINT; /* Второе значение SrvPacketID */

  

  DECLARE tmpSrvPacketID BIGINT DEFAULT 0; /* Значение SrvPacketID для первой искусственной записи в анализе новых данных, не пересекающихся с существующими */  

  

  /* Курсор для прохода по новым LogID */

  DECLARE CursorNewLogID CURSOR FOR

    SELECT LogID, SrvPacketID 

    FROM datagpslost_ontmp;

    

  /* Обработчик отсутствующей записи при FETCH следующей записи */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  

  /********** END DECLARE **********/



  SET NeedOptimize = 0;

 

  SELECT COALESCE(ConfirmedID, 0) INTO CurrentConfirmedID

  FROM mobitels

  WHERE Mobitel_ID = MobitelID;



  /* Минимальный LogID в новом наборе данных c которым будем работать */

  SELECT MIN(LogID) INTO MinLogID_n

  FROM datagpsbuffer_on

  WHERE (Mobitel_ID = MobitelID) AND (LogID > CurrentConfirmedID);

  

  /* Максимальный LogID в новом наборе данных c которым будем работать */

  SELECT MAX(LogID) INTO MaxLogID_n

  FROM datagpsbuffer_on 

  WHERE Mobitel_ID = MobitelID;  

  

  /* Максимальный End_LogID в пропущенных диапазонах данного телетрека */

  SELECT COALESCE(MAX(End_LogID), 0) INTO MaxEndLogID

  FROM datagpslost_on 

  WHERE Mobitel_ID = MobitelID;  

  

  /* Проверим есть ли данные для анализа */

  IF MinLogID_n IS NOT NULL THEN

  

    /********** PREPARE **********/

    

    TRUNCATE TABLE datagpslost_ontmp;

  

    IF MinLogID_n < MaxEndLogID THEN

      /* Если  MinLogID_n < MaxEndLogID значит пришли данные, 

       которые возможно закроют часть пропусков. */

       

      /* Находим стартовый LogID для пересчета. */

      SELECT COALESCE(Begin_LogID, MinLogID_n) INTO StartLogIDSelect

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (MinLogID_n > Begin_LogID) 

        AND (MinLogID_n < End_LogID);

      

      /* Находим последний LogID для пересчета. */  

      SELECT COALESCE(End_LogID, MaxLogID_n) INTO FinishLogIDSelect

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (MaxLogID_n > Begin_LogID) 

        AND (MaxLogID_n < End_LogID);

       

      /* Удалим старые записи из реестра пропущенных записей 

         (стали неактуальными, надо пересчитать) */

      DELETE FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID >= StartLogIDSelect)

        AND (Begin_LogID <= FinishLogIDSelect);

      

      /* Если первая запись LogID = 0 и этой записи нет в DataGps, тогда

         надо добавить первую фиктивную запись для анализа. */

      IF (StartLogIDSelect = 0) AND (NOT EXISTS

        (Select 1 

         FROM datagps 

         WHERE (Mobitel_ID = MobitelID) AND (LogID = StartLogIDSelect))) THEN

      

        INSERT INTO datagpslost_ontmp(LogID, SrvPacketID) VALUES (0, 0);  

      END IF;       

    ELSE

      /* Пришли новые данные. Надо добавить для анализа искусственную запись - 

         нижнюю границу */

      

      /* Находим стартовый LogID для пересчета. */

      SELECT COALESCE(MAX(End_LogID), CurrentConfirmedID) INTO StartLogIDSelect

      FROM datagpslost_on

      WHERE Mobitel_ID = MobitelID;   

         

      /* Находим последний LogID для пересчета. */  

      SELECT MAX(LogID)  INTO FinishLogIDSelect

      FROM datagpsbuffer_on

      WHERE Mobitel_ID = MobitelID;

      

      /* Выбираем из datagps соответствующее значение SrvPacketID  для первой

         искусственной записи */

      SELECT COALESCE(SrvPacketID, 0) INTO tmpSrvPacketID

      FROM datagps

      WHERE (Mobitel_ID = MobitelID) AND (LogID = StartLogIDSelect);

      

      /* Помещаем в таблицу datagpslost_ontmp для анализа пропусков 

         дополнительную первую запись */

      INSERT INTO datagpslost_ontmp(LogID, SrvPacketID)

      VALUES (StartLogIDSelect, tmpSrvPacketID);

    END IF; -- IF MinLogID_n < MaxEndLogID   

    

    /********** END PREPARE **********/

    

    /**********  INSERT ROWS **********/

    

    /* Заполнение временной таблицы последними данными телетрека

       для анализа разрывов */

    INSERT INTO datagpslost_ontmp  (LogID, SrvPacketID)

      SELECT LogID, SrvPacketID

      FROM datagps

      WHERE (Mobitel_ID = MobitelID) AND (LogID >= StartLogIDSelect)

        AND (LogID <= FinishLogIDSelect)

      ORDER BY LogID;

            

    /* Формирование команды-вставки в таблицу пропущенных диапазонов */

    SET DataExists = 1;

    OPEN CursorNewLogID;

    FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

    WHILE DataExists = 1 DO

      IF FirstLogID = -9999999 THEN

        /* Первое значение в списке */

        SET FirstLogID = NewLogID;

        SET FirstSrvPacketID = NewSrvPacketID;

      ELSE

        /* Основная ветка расчета*/

        SET SecondLogID = NewLogID;

        SET SecondSrvPacketID = NewSrvPacketID;

        

        IF (SecondLogID - FirstLogID) > 1 THEN

          /* Найден разрыв */

          /* Из-за всяких комбинаций состояний LogId и SrvPacketId из-за особенностей работы телематического сервера

          и ТДМ вводим дополнительный анализ вставляемых записей, если запись не соответсвует указаным правилам, она 

          отбрасывается */

          IF (SecondSrvPacketID > FirstSrvPacketID) THEN

            IF EXISTS(SELECT NULL FROM datagps d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = FirstLogID) AND (d.SrvPacketID = FirstSrvPacketID))) THEN 

              IF EXISTS(SELECT NULL FROM datagps d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = SecondLogID) AND (d.SrvPacketID = SecondSrvPacketID))) THEN 



                CALL OnInsertDatagpsLost(MobitelID, FirstLogID, SecondLogID, FirstSrvPacketID, SecondSrvPacketID);

                IF NeedOptimize = 0 THEN SET NeedOptimize = 1; END IF;

                

              END IF;

            END IF;

          END IF;

        END IF;

        /* Переместим текущее второе значение на первую позицию

           для участия в следующей итерации в качестве начального значения */

        SET  FirstLogID = SecondLogID;

        SET FirstSrvPacketID = SecondSrvPacketID;

      END IF;  

      FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

    END WHILE;

    CLOSE CursorNewLogID;

 

    /********** END INSERT ROWS **********/

               

    /********** UPDATE MOBITELS **********/

    

    /* Если пропущенных записей у данного телетрека нет - 

       тогда ConfirmedID будет равен максимальному LogID 

       данного телетрека. Иначе - минимальный Begin_LogID

       из таблицы пропусков */

    SELECT MIN(Begin_LogID) INTO NewConfirmedID

    FROM datagpslost_on

    WHERE Mobitel_ID = MobitelID;

       

    IF NewConfirmedID IS NULL THEN

      SELECT MAX(LogID) INTO NewConfirmedID

      FROM datagps

      WHERE Mobitel_ID = MobitelID;

    END IF;  

    

    /* Обновим ConfirmedID если надо */

    UPDATE mobitels

    SET ConfirmedID = NewConfirmedID

    WHERE (Mobitel_ID = MobitelID) AND (ConfirmedID < NewConfirmedID);

    

    /********** END UPDATE MOBITELS **********/

        

    TRUNCATE TABLE datagpslost_ontmp;

  END IF; -- IF MaxEndLogID IS NOT NULL  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnLostDataGPS2` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnLostDataGPS2`(IN MobitelID INTEGER(11), OUT NeedOptimize TINYINT)
    SQL SECURITY INVOKER
    COMMENT 'Модификация диапазонов пропусков. Анализ дублирующих данных заданного телетрека.'
BEGIN

    /********** DECLARE **********/

    

  DECLARE NewConfirmedID INT DEFAULT 0; /* Новое значение ConfirmedID */

  DECLARE BeginLogID INT; /* Begin_LogID в курсоре CursorLostRanges */

  DECLARE EndLogID INT; /* End_LogID в курсоре CursorLostRanges */

  DECLARE BeginSrvPacketID BIGINT; /* Begin_SrvPacketID в курсоре CursorLostRanges */

  DECLARE EndSrvPacketID BIGINT; /* End_SrvPacketID в курсоре CursorLostRanges */

  DECLARE RowCountForAnalyze INT DEFAULT 0; /* Количество записей для анализа */

  DECLARE DataExists TINYINT DEFAULT 1; /* Флаг наличия данных после фетча */

    

  /* Курсор для прохода по диапазонам пропусков телетрека */

  DECLARE CursorLostRanges CURSOR FOR

    SELECT Begin_LogID, End_LogID, Begin_SrvPacketID, End_SrvPacketID 

    FROM datagpslost_on

    WHERE Mobitel_ID = MobitelID;    



  /* Курсор для прохода по новым LogID */

  DECLARE CursorNewLogID CURSOR FOR

    SELECT LogID, SrvPacketID 

    FROM datagpslost_ontmp

    ORDER BY SrvPacketID;    

    

  /* Обработчик отсутствующей записи при FETCH следующей записи */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  

  /********** END DECLARE **********/



  SET NeedOptimize = 0;

  

  TRUNCATE TABLE datagpslost_ontmp;

  

  /* Перебираем диапазоны и сокращаем разрывы если это возможно */

  SET DataExists = 1;

  OPEN CursorLostRanges;

  FETCH CursorLostRanges INTO BeginLogID, EndLogID, BeginSrvPacketID, EndSrvPacketID;

  WHILE DataExists = 1 DO

    /* Заполнение временной таблицы дублирующими данными телетрека

       для анализа разрывов */

    INSERT INTO datagpslost_ontmp  (LogID, SrvPacketID)

      SELECT DISTINCT LogID, SrvPacketID

      FROM datagpsbuffer_ontmp

      WHERE (Mobitel_ID = MobitelID) AND (SrvPacketID > BeginSrvPacketID)

        AND (SrvPacketID < EndSrvPacketID)

      ORDER BY SrvPacketID;

      

    /* Если есть данные модифицируем диапазон */  

    SELECT COUNT(1) INTO RowCountForAnalyze

    FROM datagpslost_ontmp;  

    

    IF RowCountForAnalyze > 0 THEN  

      /* Добавляем первую и последнюю записи для анализа */  

      INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

      VALUES (BeginLogID, BeginSrvPacketID), (EndLogID, EndSrvPacketID);

      

      /* Удаляем старый диапазон */

      DELETE FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID);

       

      /**********  INSERT ROWS **********/             

      BEGIN

        DECLARE NewLogID INT; /* Значение LogID в курсоре CursorNewLogID */

        DECLARE NewSrvPacketID BIGINT; /* Значение SrvPacketID в курсоре CursorNewLogID */

        DECLARE FirstLogID INT DEFAULT -9999999; /* Первое значение LogID для анализа */

        DECLARE SecondLogID INT; /* Второе значение LogID для анализа */

        DECLARE FirstSrvPacketID BIGINT; /* Первое значение SrvPacketID */

        DECLARE SecondSrvPacketID BIGINT; /* Второе значение SrvPacketID */

        

        /* Обработчик отсутствующей записи при FETCH следующей записи */

        DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

        

        /* Формирование команды-вставки в таблицу пропущенных диапазонов */

        SET DataExists = 1;

        OPEN CursorNewLogID;

        FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

        WHILE DataExists = 1 DO

          IF FirstLogID = -9999999 THEN

            /* Первое значение в списке */

            SET FirstLogID = NewLogID;

            SET FirstSrvPacketID = NewSrvPacketID;

          ELSE

            /* Основная ветка расчета*/

            SET SecondLogID = NewLogID;

            SET SecondSrvPacketID = NewSrvPacketID;

            

            IF (SecondLogID - FirstLogID) > 1 THEN

          /* Найден разрыв */

          /* Из-за всяких комбинаций состояний LogId и SrvPacketId из-за особенностей работы телематического сервера

          и ТДМ вводим дополнительный анализ вставляемых записей, если запись не соответсвует указаным правилам, она 

          отбрасывается */

          IF (SecondSrvPacketID > FirstSrvPacketID) THEN

            IF EXISTS(SELECT NULL FROM datagps d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = FirstLogID) AND (d.SrvPacketID = FirstSrvPacketID))) THEN 

              IF EXISTS(SELECT NULL FROM datagps d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = SecondLogID) AND (d.SrvPacketID = SecondSrvPacketID))) THEN 



                CALL OnInsertDatagpsLost(MobitelID, FirstLogID, SecondLogID, FirstSrvPacketID, SecondSrvPacketID);

                IF NeedOptimize = 0 THEN SET NeedOptimize = 1; END IF;

                

              END IF;

            END IF;

          END IF;

        END IF;

            /* Переместим текущее второе значение на первую позицию

               для участия в следующей итерации в качестве начального значения */

            SET FirstLogID = SecondLogID;

            SET FirstSrvPacketID = SecondSrvPacketID;

          END IF;  

          FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

        END WHILE;

        CLOSE CursorNewLogID;

      END;

      /********** END INSERT ROWS **********/  



      TRUNCATE TABLE datagpslost_ontmp;

    END IF;

      

    FETCH CursorLostRanges INTO BeginLogID, EndLogID, BeginSrvPacketID, EndSrvPacketID;

  END WHILE;

  CLOSE CursorLostRanges;

  

  /********** UPDATE MOBITELS **********/

    

  /* Если пропущенных записей у данного телетрека нет - 

     тогда ConfirmedID будет равен максимальному LogID 

     данного телетрека. Иначе - минимальный Begin_LogID

     из таблицы пропусков */

  SELECT MIN(Begin_LogID) INTO NewConfirmedID

  FROM datagpslost_on

  WHERE Mobitel_ID = MobitelID;

       

  IF NewConfirmedID IS NULL THEN

    SELECT MAX(LogID) INTO NewConfirmedID

    FROM datagps

    WHERE Mobitel_ID = MobitelID;

  END IF;  

    

  /* Обновим ConfirmedID если надо */

  UPDATE mobitels

  SET ConfirmedID = NewConfirmedID

  WHERE (Mobitel_ID = MobitelID) AND (ConfirmedID < NewConfirmedID);

    

  /********** END UPDATE MOBITELS **********/

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnLostDataGPS264` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnLostDataGPS264`(IN MobitelID integer(11), OUT NeedOptimize tinyint)
    SQL SECURITY INVOKER
    COMMENT 'РњРѕРґРёС„РёРєР°С†РёСЏ РґРёР°РїР°Р·РѕРЅРѕРІ РїСЂРѕРїСѓСЃРєРѕРІ. РђРЅР°Р»РёР· РґСѓР±Р»РёСЂСѓСЋС‰РёС… РґР°РЅРЅС‹С… Р·Р°РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР°.'
BEGIN

  /********** DECLARE **********/



  DECLARE NewConfirmedID int DEFAULT 0; /* РќРѕРІРѕРµ Р·РЅР°С‡РµРЅРёРµ ConfirmedID */

  DECLARE BeginLogID int; /* Begin_LogID РІ РєСѓСЂСЃРѕСЂРµ CursorLostRanges */

  DECLARE EndLogID int; /* End_LogID РІ РєСѓСЂСЃРѕСЂРµ CursorLostRanges */

  DECLARE BeginSrvPacketID bigint; /* Begin_SrvPacketID РІ РєСѓСЂСЃРѕСЂРµ CursorLostRanges */

  DECLARE EndSrvPacketID bigint; /* End_SrvPacketID РІ РєСѓСЂСЃРѕСЂРµ CursorLostRanges */

  DECLARE RowCountForAnalyze int DEFAULT 0; /* РљРѕР»РёС‡РµСЃС‚РІРѕ Р·Р°РїРёСЃРµР№ РґР»СЏ Р°РЅР°Р»РёР·Р° */

  DECLARE DataExists tinyint DEFAULT 1; /* Р¤Р»Р°Рі РЅР°Р»РёС‡РёСЏ РґР°РЅРЅС‹С… РїРѕСЃР»Рµ С„РµС‚С‡Р° */



  /* РљСѓСЂСЃРѕСЂ РґР»СЏ РїСЂРѕС…РѕРґР° РїРѕ РґРёР°РїР°Р·РѕРЅР°Рј РїСЂРѕРїСѓСЃРєРѕРІ С‚РµР»РµС‚СЂРµРєР° */

  DECLARE CursorLostRanges CURSOR FOR

  SELECT

    Begin_LogID,

    End_LogID,

    Begin_SrvPacketID,

    End_SrvPacketID

  FROM datagpslost_on

  WHERE Mobitel_ID = MobitelID;



  /* РљСѓСЂСЃРѕСЂ РґР»СЏ РїСЂРѕС…РѕРґР° РїРѕ РЅРѕРІС‹Рј LogID */

  DECLARE CursorNewLogID CURSOR FOR

  SELECT

    LogID,

    SrvPacketID

  FROM datagpslost_ontmp

  ORDER BY SrvPacketID;



  /* РћР±СЂР°Р±РѕС‚С‡РёРє РѕС‚СЃСѓС‚СЃС‚РІСѓСЋС‰РµР№ Р·Р°РїРёСЃРё РїСЂРё FETCH СЃР»РµРґСѓСЋС‰РµР№ Р·Р°РїРёСЃРё */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  /********** END DECLARE **********/



  SET NeedOptimize = 0;



  TRUNCATE TABLE datagpslost_ontmp;



  /* РџРµСЂРµР±РёСЂР°РµРј РґРёР°РїР°Р·РѕРЅС‹ Рё СЃРѕРєСЂР°С‰Р°РµРј СЂР°Р·СЂС‹РІС‹ РµСЃР»Рё СЌС‚Рѕ РІРѕР·РјРѕР¶РЅРѕ */

  SET DataExists = 1;

  OPEN CursorLostRanges;

  FETCH CursorLostRanges INTO BeginLogID, EndLogID, BeginSrvPacketID, EndSrvPacketID;

  WHILE DataExists = 1 DO

    /* Р—Р°РїРѕР»РЅРµРЅРёРµ РІСЂРµРјРµРЅРЅРѕР№ С‚Р°Р±Р»РёС†С‹ РґСѓР±Р»РёСЂСѓСЋС‰РёРјРё РґР°РЅРЅС‹РјРё С‚РµР»РµС‚СЂРµРєР°

       РґР»СЏ Р°РЅР°Р»РёР·Р° СЂР°Р·СЂС‹РІРѕРІ */

    INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

      SELECT DISTINCT

        LogID,

        SrvPacketID

      FROM datagpsbuffer_ontmp64

      WHERE (Mobitel_ID = MobitelID) AND (SrvPacketID > BeginSrvPacketID)

      AND (SrvPacketID < EndSrvPacketID)

      ORDER BY SrvPacketID;



    /* Р•СЃР»Рё РµСЃС‚СЊ РґР°РЅРЅС‹Рµ РјРѕРґРёС„РёС†РёСЂСѓРµРј РґРёР°РїР°Р·РѕРЅ */

    SELECT

      COUNT(1) INTO RowCountForAnalyze

    FROM datagpslost_ontmp;



    IF RowCountForAnalyze > 0 THEN

      /* Р”РѕР±Р°РІР»СЏРµРј РїРµСЂРІСѓСЋ Рё РїРѕСЃР»РµРґРЅСЋСЋ Р·Р°РїРёСЃРё РґР»СЏ Р°РЅР°Р»РёР·Р° */

      INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

        VALUES (BeginLogID, BeginSrvPacketID), (EndLogID, EndSrvPacketID);



      /* РЈРґР°Р»СЏРµРј СЃС‚Р°СЂС‹Р№ РґРёР°РїР°Р·РѕРЅ */

      DELETE

        FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID = BeginLogID);



      /**********  INSERT ROWS **********/

      BEGIN

        DECLARE NewLogID int; /* Р—РЅР°С‡РµРЅРёРµ LogID РІ РєСѓСЂСЃРѕСЂРµ CursorNewLogID */

        DECLARE NewSrvPacketID bigint; /* Р—РЅР°С‡РµРЅРёРµ SrvPacketID РІ РєСѓСЂСЃРѕСЂРµ CursorNewLogID */

        DECLARE FirstLogID int DEFAULT -9999999; /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ LogID РґР»СЏ Р°РЅР°Р»РёР·Р° */

        DECLARE SecondLogID int; /* Р’С‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ LogID РґР»СЏ Р°РЅР°Р»РёР·Р° */

        DECLARE FirstSrvPacketID bigint; /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ SrvPacketID */

        DECLARE SecondSrvPacketID bigint; /* Р’С‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ SrvPacketID */



        /* РћР±СЂР°Р±РѕС‚С‡РёРє РѕС‚СЃСѓС‚СЃС‚РІСѓСЋС‰РµР№ Р·Р°РїРёСЃРё РїСЂРё FETCH СЃР»РµРґСѓСЋС‰РµР№ Р·Р°РїРёСЃРё */

        DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



        /* Р¤РѕСЂРјРёСЂРѕРІР°РЅРёРµ РєРѕРјР°РЅРґС‹-РІСЃС‚Р°РІРєРё РІ С‚Р°Р±Р»РёС†Сѓ РїСЂРѕРїСѓС‰РµРЅРЅС‹С… РґРёР°РїР°Р·РѕРЅРѕРІ */

        SET DataExists = 1;

        OPEN CursorNewLogID;

        FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

        WHILE DataExists = 1 DO

          IF FirstLogID = -9999999 THEN

            /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ РІ СЃРїРёСЃРєРµ */

            SET FirstLogID = NewLogID;

            SET FirstSrvPacketID = NewSrvPacketID;

          ELSE

            /* РћСЃРЅРѕРІРЅР°СЏ РІРµС‚РєР° СЂР°СЃС‡РµС‚Р°*/

            SET SecondLogID = NewLogID;

            SET SecondSrvPacketID = NewSrvPacketID;



            IF (SecondLogID - FirstLogID) > 1 THEN

          /* РќР°Р№РґРµРЅ СЂР°Р·СЂС‹РІ */

          /* РР·-Р·Р° РІСЃСЏРєРёС… РєРѕРјР±РёРЅР°С†РёР№ СЃРѕСЃС‚РѕСЏРЅРёР№ LogId Рё SrvPacketId РёР·-Р·Р° РѕСЃРѕР±РµРЅРЅРѕСЃС‚РµР№ СЂР°Р±РѕС‚С‹ С‚РµР»РµРјР°С‚РёС‡РµСЃРєРѕРіРѕ СЃРµСЂРІРµСЂР°

          Рё РўР”Рњ РІРІРѕРґРёРј РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Р№ Р°РЅР°Р»РёР· РІСЃС‚Р°РІР»СЏРµРјС‹С… Р·Р°РїРёСЃРµР№, РµСЃР»Рё Р·Р°РїРёСЃСЊ РЅРµ СЃРѕРѕС‚РІРµС‚СЃРІСѓРµС‚ СѓРєР°Р·Р°РЅС‹Рј РїСЂР°РІРёР»Р°Рј, РѕРЅР° 

          РѕС‚Р±СЂР°СЃС‹РІР°РµС‚СЃСЏ */

          IF (SecondSrvPacketID > FirstSrvPacketID) THEN

            IF EXISTS(SELECT NULL FROM datagps64 d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = FirstLogID) AND (d.SrvPacketID = FirstSrvPacketID))) THEN 

              IF EXISTS(SELECT NULL FROM datagps64 d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = SecondLogID) AND (d.SrvPacketID = SecondSrvPacketID))) THEN 



                CALL OnInsertDatagpsLost(MobitelID, FirstLogID, SecondLogID, FirstSrvPacketID, SecondSrvPacketID);

                IF NeedOptimize = 0 THEN SET NeedOptimize = 1; END IF;

                

              END IF;

            END IF;

          END IF;

        END IF;

            /* РџРµСЂРµРјРµСЃС‚РёРј С‚РµРєСѓС‰РµРµ РІС‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ РЅР° РїРµСЂРІСѓСЋ РїРѕР·РёС†РёСЋ

               РґР»СЏ СѓС‡Р°СЃС‚РёСЏ РІ СЃР»РµРґСѓСЋС‰РµР№ РёС‚РµСЂР°С†РёРё РІ РєР°С‡РµСЃС‚РІРµ РЅР°С‡Р°Р»СЊРЅРѕРіРѕ Р·РЅР°С‡РµРЅРёСЏ */

            SET FirstLogID = SecondLogID;

            SET FirstSrvPacketID = SecondSrvPacketID;

          END IF;

          FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

        END WHILE;

        CLOSE CursorNewLogID;

      END;

      /********** END INSERT ROWS **********/



      TRUNCATE TABLE datagpslost_ontmp;

    END IF;



    FETCH CursorLostRanges INTO BeginLogID, EndLogID, BeginSrvPacketID, EndSrvPacketID;

  END WHILE;

  CLOSE CursorLostRanges;



  /********** UPDATE MOBITELS **********/



  /* Р•СЃР»Рё РїСЂРѕРїСѓС‰РµРЅРЅС‹С… Р·Р°РїРёСЃРµР№ Сѓ РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР° РЅРµС‚ - 

     С‚РѕРіРґР° ConfirmedID Р±СѓРґРµС‚ СЂР°РІРµРЅ РјР°РєСЃРёРјР°Р»СЊРЅРѕРјСѓ LogID 

     РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР°. РРЅР°С‡Рµ - РјРёРЅРёРјР°Р»СЊРЅС‹Р№ Begin_LogID

     РёР· С‚Р°Р±Р»РёС†С‹ РїСЂРѕРїСѓСЃРєРѕРІ */

  SELECT

    MIN(Begin_LogID) INTO NewConfirmedID

  FROM datagpslost_on

  WHERE Mobitel_ID = MobitelID;



  IF NewConfirmedID IS NULL THEN

    SELECT

      MAX(LogID) INTO NewConfirmedID

    FROM datagps64

    WHERE Mobitel_ID = MobitelID;

  END IF;



  /* РћР±РЅРѕРІРёРј ConfirmedID РµСЃР»Рё РЅР°РґРѕ */

  UPDATE mobitels

  SET ConfirmedID = NewConfirmedID

  WHERE (Mobitel_ID = MobitelID) AND (ConfirmedID < NewConfirmedID);



/********** END UPDATE MOBITELS **********/

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnLostDataGPS64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnLostDataGPS64`(IN MobitelID integer(11), OUT NeedOptimize tinyint)
    SQL SECURITY INVOKER
    COMMENT 'РџРѕРёСЃРє РїСЂРѕРїСѓСЃРєРѕРІ РІ online РґР°РЅРЅС‹С… Р·Р°РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР° Рё Р·Р°РїРѕР»РЅРµРЅРёРµ С‚Р°Р±Р»РёС†.'
BEGIN



  /********** DECLARE **********/



  DECLARE CurrentConfirmedID int DEFAULT 0; /* РўРµРєСѓС‰РµРµ Р·РЅР°С‡РµРЅРёРµ ConfirmedID */

  DECLARE NewConfirmedID int DEFAULT 0; /* РќРѕРІРѕРµ Р·РЅР°С‡РµРЅРёРµ ConfirmedID */

  DECLARE StartLogIDSelect int DEFAULT 0; /* min LogID РґР»СЏ РІС‹Р±РѕСЂРєРё */

  DECLARE FinishLogIDSelect int DEFAULT 0; /* max LogID РґР»СЏ РІС‹Р±РѕСЂРєРё */

  DECLARE MaxEndLogID int DEFAULT 0; /* max End_LogID РІ РїСЂРѕРїСѓС‰РµРЅРЅС‹С… РґРёР°РїР°Р·РѕРЅР°С… РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР° */



  DECLARE MinLogID_n int DEFAULT 0; /* РњРёРЅРёРјР°Р»СЊРЅС‹Р№ LogID РїРѕСЃР»Рµ ConfirmedID РІ РјРЅРѕР¶РµСЃС‚РІРµ РЅРѕРІС‹С… РґР°РЅРЅС‹С… */

  DECLARE MaxLogID_n int DEFAULT 0; /* РњР°РєСЃРёРјР°Р»СЊРЅС‹Р№ LogID РІ РјРЅРѕР¶РµСЃС‚РІРµ РЅРѕРІС‹С… РґР°РЅРЅС‹С… */



  DECLARE DataExists tinyint DEFAULT 1; /* Р¤Р»Р°Рі РЅР°Р»РёС‡РёСЏ РґР°РЅРЅС‹С… РїРѕСЃР»Рµ С„РµС‚С‡Р° */



  DECLARE NewLogID int; /* Р—РЅР°С‡РµРЅРёРµ LogID РІ РєСѓСЂСЃРѕСЂРµ CursorNewLogID */

  DECLARE NewSrvPacketID bigint; /* Р—РЅР°С‡РµРЅРёРµ SrvPacketID РІ РєСѓСЂСЃРѕСЂРµ CursorNewLogID */

  DECLARE FirstLogID int DEFAULT -9999999; /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ LogID РґР»СЏ Р°РЅР°Р»РёР·Р° */

  DECLARE SecondLogID int; /* Р’С‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ LogID РґР»СЏ Р°РЅР°Р»РёР·Р° */

  DECLARE FirstSrvPacketID bigint; /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ SrvPacketID */

  DECLARE SecondSrvPacketID bigint; /* Р’С‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ SrvPacketID */



  DECLARE tmpSrvPacketID bigint DEFAULT 0; /* Р—РЅР°С‡РµРЅРёРµ SrvPacketID РґР»СЏ РїРµСЂРІРѕР№ РёСЃРєСѓСЃСЃС‚РІРµРЅРЅРѕР№ Р·Р°РїРёСЃРё РІ Р°РЅР°Р»РёР·Рµ РЅРѕРІС‹С… РґР°РЅРЅС‹С…, РЅРµ РїРµСЂРµСЃРµРєР°СЋС‰РёС…СЃСЏ СЃ СЃСѓС‰РµСЃС‚РІСѓСЋС‰РёРјРё */



  /* РљСѓСЂСЃРѕСЂ РґР»СЏ РїСЂРѕС…РѕРґР° РїРѕ РЅРѕРІС‹Рј LogID */

  DECLARE CursorNewLogID CURSOR FOR

  SELECT

    LogID,

    SrvPacketID

  FROM datagpslost_ontmp;



  /* РћР±СЂР°Р±РѕС‚С‡РёРє РѕС‚СЃСѓС‚СЃС‚РІСѓСЋС‰РµР№ Р·Р°РїРёСЃРё РїСЂРё FETCH СЃР»РµРґСѓСЋС‰РµР№ Р·Р°РїРёСЃРё */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  /********** END DECLARE **********/



  SET NeedOptimize = 0;



  SELECT

    COALESCE(ConfirmedID, 0) INTO CurrentConfirmedID

  FROM mobitels

  WHERE Mobitel_ID = MobitelID;



  /* РњРёРЅРёРјР°Р»СЊРЅС‹Р№ LogID РІ РЅРѕРІРѕРј РЅР°Р±РѕСЂРµ РґР°РЅРЅС‹С… c РєРѕС‚РѕСЂС‹Рј Р±СѓРґРµРј СЂР°Р±РѕС‚Р°С‚СЊ */

  SELECT

    MIN(LogID) INTO MinLogID_n

  FROM datagpsbuffer_on64

  WHERE (Mobitel_ID = MobitelID) AND (LogID > CurrentConfirmedID);



  /* РњР°РєСЃРёРјР°Р»СЊРЅС‹Р№ LogID РІ РЅРѕРІРѕРј РЅР°Р±РѕСЂРµ РґР°РЅРЅС‹С… c РєРѕС‚РѕСЂС‹Рј Р±СѓРґРµРј СЂР°Р±РѕС‚Р°С‚СЊ */

  SELECT

    MAX(LogID) INTO MaxLogID_n

  FROM datagpsbuffer_on64

  WHERE Mobitel_ID = MobitelID;



  /* РњР°РєСЃРёРјР°Р»СЊРЅС‹Р№ End_LogID РІ РїСЂРѕРїСѓС‰РµРЅРЅС‹С… РґРёР°РїР°Р·РѕРЅР°С… РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР° */

  SELECT

    COALESCE(MAX(End_LogID), 0) INTO MaxEndLogID

  FROM datagpslost_on

  WHERE Mobitel_ID = MobitelID;



  /* РџСЂРѕРІРµСЂРёРј РµСЃС‚СЊ Р»Рё РґР°РЅРЅС‹Рµ РґР»СЏ Р°РЅР°Р»РёР·Р° */

  IF MinLogID_n IS NOT NULL THEN



    /********** PREPARE **********/



    TRUNCATE TABLE datagpslost_ontmp;



    IF MinLogID_n < MaxEndLogID THEN

      /* Р•СЃР»Рё  MinLogID_n < MaxEndLogID Р·РЅР°С‡РёС‚ РїСЂРёС€Р»Рё РґР°РЅРЅС‹Рµ, 

       РєРѕС‚РѕСЂС‹Рµ РІРѕР·РјРѕР¶РЅРѕ Р·Р°РєСЂРѕСЋС‚ С‡Р°СЃС‚СЊ РїСЂРѕРїСѓСЃРєРѕРІ. */



      /* РќР°С…РѕРґРёРј СЃС‚Р°СЂС‚РѕРІС‹Р№ LogID РґР»СЏ РїРµСЂРµСЃС‡РµС‚Р°. */

      SELECT

        COALESCE(Begin_LogID, MinLogID_n) INTO StartLogIDSelect

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (MinLogID_n > Begin_LogID)

      AND (MinLogID_n < End_LogID);



      /* РќР°С…РѕРґРёРј РїРѕСЃР»РµРґРЅРёР№ LogID РґР»СЏ РїРµСЂРµСЃС‡РµС‚Р°. */

      SELECT

        COALESCE(End_LogID, MaxLogID_n) INTO FinishLogIDSelect

      FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (MaxLogID_n > Begin_LogID)

      AND (MaxLogID_n < End_LogID);



      /* РЈРґР°Р»РёРј СЃС‚Р°СЂС‹Рµ Р·Р°РїРёСЃРё РёР· СЂРµРµСЃС‚СЂР° РїСЂРѕРїСѓС‰РµРЅРЅС‹С… Р·Р°РїРёСЃРµР№ 

         (СЃС‚Р°Р»Рё РЅРµР°РєС‚СѓР°Р»СЊРЅС‹РјРё, РЅР°РґРѕ РїРµСЂРµСЃС‡РёС‚Р°С‚СЊ) */

      DELETE

        FROM datagpslost_on

      WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID >= StartLogIDSelect)

        AND (Begin_LogID <= FinishLogIDSelect);



      /* Р•СЃР»Рё РїРµСЂРІР°СЏ Р·Р°РїРёСЃСЊ LogID = 0 Рё СЌС‚РѕР№ Р·Р°РїРёСЃРё РЅРµС‚ РІ DataGps, С‚РѕРіРґР°

         РЅР°РґРѕ РґРѕР±Р°РІРёС‚СЊ РїРµСЂРІСѓСЋ С„РёРєС‚РёРІРЅСѓСЋ Р·Р°РїРёСЃСЊ РґР»СЏ Р°РЅР°Р»РёР·Р°. */

      IF (StartLogIDSelect = 0) AND (NOT EXISTS (SELECT

            1

          FROM datagps64

          WHERE (Mobitel_ID = MobitelID) AND (LogID = StartLogIDSelect))) THEN



        INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

          VALUES (0, 0);

      END IF;

    ELSE

      /* РџСЂРёС€Р»Рё РЅРѕРІС‹Рµ РґР°РЅРЅС‹Рµ. РќР°РґРѕ РґРѕР±Р°РІРёС‚СЊ РґР»СЏ Р°РЅР°Р»РёР·Р° РёСЃРєСѓСЃСЃС‚РІРµРЅРЅСѓСЋ Р·Р°РїРёСЃСЊ - 

         РЅРёР¶РЅСЋСЋ РіСЂР°РЅРёС†Сѓ */



      /* РќР°С…РѕРґРёРј СЃС‚Р°СЂС‚РѕРІС‹Р№ LogID РґР»СЏ РїРµСЂРµСЃС‡РµС‚Р°. */

      SELECT

        COALESCE(MAX(End_LogID), CurrentConfirmedID) INTO StartLogIDSelect

      FROM datagpslost_on

      WHERE Mobitel_ID = MobitelID;



      /* РќР°С…РѕРґРёРј РїРѕСЃР»РµРґРЅРёР№ LogID РґР»СЏ РїРµСЂРµСЃС‡РµС‚Р°. */

      SELECT

        MAX(LogID) INTO FinishLogIDSelect

      FROM datagpsbuffer_on64

      WHERE Mobitel_ID = MobitelID;



      /* Р’С‹Р±РёСЂР°РµРј РёР· datagps СЃРѕРѕС‚РІРµС‚СЃС‚РІСѓСЋС‰РµРµ Р·РЅР°С‡РµРЅРёРµ SrvPacketID  РґР»СЏ РїРµСЂРІРѕР№

         РёСЃРєСѓСЃСЃС‚РІРµРЅРЅРѕР№ Р·Р°РїРёСЃРё */

      SELECT

        COALESCE(SrvPacketID, 0) INTO tmpSrvPacketID

      FROM datagps64

      WHERE (Mobitel_ID = MobitelID) AND (LogID = StartLogIDSelect);



      /* РџРѕРјРµС‰Р°РµРј РІ С‚Р°Р±Р»РёС†Сѓ datagpslost_ontmp64 РґР»СЏ Р°РЅР°Р»РёР·Р° РїСЂРѕРїСѓСЃРєРѕРІ 

         РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅСѓСЋ РїРµСЂРІСѓСЋ Р·Р°РїРёСЃСЊ */

      INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

        VALUES (StartLogIDSelect, tmpSrvPacketID);

    END IF; -- IF MinLogID_n < MaxEndLogID   



    /********** END PREPARE **********/



    /**********  INSERT ROWS **********/



    /* Р—Р°РїРѕР»РЅРµРЅРёРµ РІСЂРµРјРµРЅРЅРѕР№ С‚Р°Р±Р»РёС†С‹ РїРѕСЃР»РµРґРЅРёРјРё РґР°РЅРЅС‹РјРё С‚РµР»РµС‚СЂРµРєР°

       РґР»СЏ Р°РЅР°Р»РёР·Р° СЂР°Р·СЂС‹РІРѕРІ */

    INSERT INTO datagpslost_ontmp (LogID, SrvPacketID)

      SELECT

        LogID,

        SrvPacketID

      FROM datagps64

      WHERE (Mobitel_ID = MobitelID) AND (LogID >= StartLogIDSelect)

      AND (LogID <= FinishLogIDSelect)

      ORDER BY LogID;



    /* Р¤РѕСЂРјРёСЂРѕРІР°РЅРёРµ РєРѕРјР°РЅРґС‹-РІСЃС‚Р°РІРєРё РІ С‚Р°Р±Р»РёС†Сѓ РїСЂРѕРїСѓС‰РµРЅРЅС‹С… РґРёР°РїР°Р·РѕРЅРѕРІ */

    SET DataExists = 1;

    OPEN CursorNewLogID;

    FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

    WHILE DataExists = 1 DO

      IF FirstLogID = -9999999 THEN

        /* РџРµСЂРІРѕРµ Р·РЅР°С‡РµРЅРёРµ РІ СЃРїРёСЃРєРµ */

        SET FirstLogID = NewLogID;

        SET FirstSrvPacketID = NewSrvPacketID;

      ELSE

        /* РћСЃРЅРѕРІРЅР°СЏ РІРµС‚РєР° СЂР°СЃС‡РµС‚Р°*/

        SET SecondLogID = NewLogID;

        SET SecondSrvPacketID = NewSrvPacketID;



        IF (SecondLogID - FirstLogID) > 1 THEN

          /* РќР°Р№РґРµРЅ СЂР°Р·СЂС‹РІ */

          /* РР·-Р·Р° РІСЃСЏРєРёС… РєРѕРјР±РёРЅР°С†РёР№ СЃРѕСЃС‚РѕСЏРЅРёР№ LogId Рё SrvPacketId РёР·-Р·Р° РѕСЃРѕР±РµРЅРЅРѕСЃС‚РµР№ СЂР°Р±РѕС‚С‹ С‚РµР»РµРјР°С‚РёС‡РµСЃРєРѕРіРѕ СЃРµСЂРІРµСЂР°

          Рё РўР”Рњ РІРІРѕРґРёРј РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Р№ Р°РЅР°Р»РёР· РІСЃС‚Р°РІР»СЏРµРјС‹С… Р·Р°РїРёСЃРµР№, РµСЃР»Рё Р·Р°РїРёСЃСЊ РЅРµ СЃРѕРѕС‚РІРµС‚СЃРІСѓРµС‚ СѓРєР°Р·Р°РЅС‹Рј РїСЂР°РІРёР»Р°Рј, РѕРЅР° 

          РѕС‚Р±СЂР°СЃС‹РІР°РµС‚СЃСЏ */

          IF (SecondSrvPacketID > FirstSrvPacketID) THEN

            IF EXISTS(SELECT NULL FROM datagps64 d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = FirstLogID) AND (d.SrvPacketID = FirstSrvPacketID))) THEN 

              IF EXISTS(SELECT NULL FROM datagps64 d WHERE (d.Mobitel_ID = MobitelID) AND ((d.LogID = SecondLogID) AND (d.SrvPacketID = SecondSrvPacketID))) THEN 



                CALL OnInsertDatagpsLost(MobitelID, FirstLogID, SecondLogID, FirstSrvPacketID, SecondSrvPacketID);

                IF NeedOptimize = 0 THEN SET NeedOptimize = 1; END IF;

                

              END IF;

            END IF;

          END IF;

        END IF;

        /* РџРµСЂРµРјРµСЃС‚РёРј С‚РµРєСѓС‰РµРµ РІС‚РѕСЂРѕРµ Р·РЅР°С‡РµРЅРёРµ РЅР° РїРµСЂРІСѓСЋ РїРѕР·РёС†РёСЋ

           РґР»СЏ СѓС‡Р°СЃС‚РёСЏ РІ СЃР»РµРґСѓСЋС‰РµР№ РёС‚РµСЂР°С†РёРё РІ РєР°С‡РµСЃС‚РІРµ РЅР°С‡Р°Р»СЊРЅРѕРіРѕ Р·РЅР°С‡РµРЅРёСЏ */

        SET FirstLogID = SecondLogID;

        SET FirstSrvPacketID = SecondSrvPacketID;

      END IF;

      FETCH CursorNewLogID INTO NewLogID, NewSrvPacketID;

    END WHILE;

    CLOSE CursorNewLogID;



    /********** END INSERT ROWS **********/



    /********** UPDATE MOBITELS **********/



    /* Р•СЃР»Рё РїСЂРѕРїСѓС‰РµРЅРЅС‹С… Р·Р°РїРёСЃРµР№ Сѓ РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР° РЅРµС‚ - 

       С‚РѕРіРґР° ConfirmedID Р±СѓРґРµС‚ СЂР°РІРµРЅ РјР°РєСЃРёРјР°Р»СЊРЅРѕРјСѓ LogID 

       РґР°РЅРЅРѕРіРѕ С‚РµР»РµС‚СЂРµРєР°. РРЅР°С‡Рµ - РјРёРЅРёРјР°Р»СЊРЅС‹Р№ Begin_LogID

       РёР· С‚Р°Р±Р»РёС†С‹ РїСЂРѕРїСѓСЃРєРѕРІ */

    SELECT

      MIN(Begin_LogID) INTO NewConfirmedID

    FROM datagpslost_on

    WHERE Mobitel_ID = MobitelID;



    IF NewConfirmedID IS NULL THEN

      SELECT

        MAX(LogID) INTO NewConfirmedID

      FROM datagps64

      WHERE Mobitel_ID = MobitelID;

    END IF;



    /* РћР±РЅРѕРІРёРј ConfirmedID РµСЃР»Рё РЅР°РґРѕ */

    UPDATE mobitels

    SET ConfirmedID = NewConfirmedID

    WHERE (Mobitel_ID = MobitelID) AND (ConfirmedID < NewConfirmedID);



    /********** END UPDATE MOBITELS **********/



    TRUNCATE TABLE datagpslost_ontmp;

  END IF; -- IF MaxEndLogID IS NOT NULL  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnTransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnTransferBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные из буферной таблицы в datagps'
BEGIN

  DECLARE MobitelIDInCursor INT; /* Текущее значение MobitelID */

  DECLARE DataExists TINYINT DEFAULT 1; /* Флаг наличия данных после фетча */

  DECLARE NeedOptimize TINYINT DEFAULT 0; /* Нужна оптимизация или нет */

  DECLARE NeedOptimizeParam TINYINT;

  

  DECLARE TmpMaxUnixTime INT; /* Временная переменная для хранения Max UnixTime из таблицы online */



  /* Курсор по телетрекам в множестве новых данных */

  DECLARE CursorMobitelsInsertSet CURSOR FOR

    SELECT DISTINCT(Mobitel_ID) FROM datagpsbuffer_on;

  /* Курсор по телетрекам в множестве повторных данных */

  DECLARE CursorMobitelsUpdateSet CURSOR FOR

    SELECT DISTINCT(Mobitel_ID) FROM datagpsbuffer_ontmp;  



  /* Обработчик отсутствующей записи при FETCH следующей записи */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  CALL OnDeleteDuplicates();

  CALL OnCorrectInfotrackLogId();

  

  /* Сохраняем записи, которые уже есть в БД, для второго этапа анализа пропусков 

     Используется процедурой OnLostDataGPS2. */

  INSERT INTO datagpsbuffer_ontmp (Mobitel_ID, LogID, SrvPacketID)

    SELECT b.Mobitel_ID, b.LogID, b.SrvPacketID

    FROM datagpsbuffer_on b LEFT JOIN datagps d ON

      (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID)

    WHERE d.LogID IS NOT NULL;

       

  /* -------------------- Заполнение таблицы Online ---------------------- */  

  /* Удаление из таблицы online дублирующих строк таблицы datagpsbuffer_on */

  /* по полям Mobitel_ID и LogID */

  DELETE o

  FROM `online` o, datagpsbuffer_on dgb

  WHERE (o.Mobitel_ID = dgb.Mobitel_ID) AND (o.LogID = dgb.LogID);

  

  SET DataExists = 1;

  OPEN CursorMobitelsInsertSet;

  FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* Нахождение Max значения UnixTime в таблице online для заданного

       телетрека. p.s. UnixTime в таблице online только валидный */

    SELECT COALESCE(MAX(UnixTime), 0) INTO TmpMaxUnixTime

    FROM online FORCE INDEX (IDX_Mobitelid)

    WHERE Mobitel_ID = MobitelIDInCursor;



    /* Вставка новых записей (максимум 100)каждого телетрека в online */

    INSERT INTO `online` (

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs)

    SELECT

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs

    FROM (

      SELECT *

      FROM datagpsbuffer_on

      WHERE (Mobitel_ID = MobitelIDInCursor)  AND 

        (UnixTime > TmpMaxUnixTime) AND (Valid = 1)

      GROUP BY Mobitel_ID, LogID

      ORDER BY UnixTime DESC

      LIMIT 100) AS T

    ORDER BY UnixTime ASC;



    /* Удаление строк из таблицы оперативных данных не удовлетворяющие

       условиям хранения - не являются последними 100 строками */

    DELETE FROM `online`

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (UnixTime < 

      (SELECT COALESCE(MIN(UnixTime), 0) 

       FROM (

         SELECT UnixTime

         FROM `online`

         WHERE Mobitel_ID = MobitelIDInCursor 

         ORDER BY UnixTime DESC

         LIMIT 100) T1)); 

  

    FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsInsertSet;

  /* ---------------- Online ---------------- */ 

  

  /* Зачем-то нужен апдейт ... */

  UPDATE datagps d, datagpsbuffer_on b SET

    d.Latitude = b.Latitude,

    d.Longitude = b.Longitude,

    d.Altitude = b.Altitude,

    d.UnixTime = b.UnixTime,

    d.Speed = b.Speed,

    d.Direction = b.Direction,

    d.Valid = b.Valid,

    d.InMobitelID = b.LogID,

    d.Events = b.Events,

    d.Sensor1 = b.Sensor1,

    d.Sensor2 = b.Sensor2,

    d.Sensor3 = b.Sensor3,

    d.Sensor4 = b.Sensor4,

    d.Sensor5 = b.Sensor5,

    d.Sensor6 = b.Sensor6,

    d.Sensor7 = b.Sensor7,

    d.Sensor8 = b.Sensor8,

    d.whatIs = b.whatIs,

    d.Counter1 = b.Counter1,

    d.Counter2 = b.Counter2,

    d.Counter3 = b.Counter3,

    d.Counter4 = b.Counter4,

    d.SrvPacketID = b.SrvPacketID

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID)

    AND (d.SrvPacketID < b.SrvPacketID);



  /* Удалим записи которые участвовали в апдейте */

  DELETE b

  FROM datagps d, datagpsbuffer_on b

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  /* Вставка новых записей*/

  INSERT INTO datagps (

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, InMobitelID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs, SrvPacketID)

  SELECT

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, LogID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs, SrvPacketID

  FROM datagpsbuffer_on

  GROUP BY Mobitel_ID, LogID;



  /* ------------------- FETCH Mobitels (INSERT SET) ----------------------- */

  SET DataExists = 1;

  OPEN CursorMobitelsInsertSet;

  FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* ------ Обновление времени последней вставки записей ------- */

    UPDATE mobitels SET LastInsertTime = UNIX_TIMESTAMP(NOW())

    WHERE Mobitel_ID = MobitelIDInCursor;

       

    /* ------ Обновление списка пропущенных записей -------------- */

    CALL OnLostDataGPS(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsInsertSet;



  /* Очистка буфера */

  TRUNCATE TABLE datagpsbuffer_on;

    

  /* ------------------- FETCH Mobitels (UPDATE SET) ---------------------- */

  SET DataExists = 1;

  OPEN CursorMobitelsUpdateSet;

  FETCH CursorMobitelsUpdateSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* ---- Обновление списка пропущенных записей по второму алгоритму --- */

    CALL OnLostDataGPS2(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    FETCH CursorMobitelsUpdateSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsUpdateSet;

  

  /* Очистка вспомогательного буфера */

  TRUNCATE TABLE datagpsbuffer_ontmp;



  /* Были изменения - сделаем оптимизацию */

  /*IF NeedOptimize = 1 THEN

    OPTIMIZE TABLE datagpslost_on;

  END IF; */           

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `OnTransferBuffer64` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `OnTransferBuffer64`()
    SQL SECURITY INVOKER
BEGIN

  DECLARE MobitelIDInCursor int; /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ MobitelID */

  DECLARE DataExists tinyint DEFAULT 1; /* пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ */

  DECLARE NeedOptimize tinyint DEFAULT 0; /* пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅ */

  DECLARE NeedOptimizeParam tinyint;



  DECLARE TmpMaxUnixTime int; /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ Max UnixTime пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ online */



  /* пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */

  DECLARE CursorMobitelsInsertSet CURSOR FOR

  SELECT DISTINCT

    (Mobitel_ID)

  FROM datagpsbuffer_on64;

  /* пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */

  DECLARE CursorMobitelsUpdateSet CURSOR FOR

  SELECT DISTINCT

    (Mobitel_ID)

  FROM datagpsbuffer_ontmp64;



  /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ FETCH пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  /*DECLARE EXIT HANDLER FOR SQLEXCEPTION 

  BEGIN

    ROLLBACK;

    SELECT 'An error has occurred, operation rollbacked and the stored procedure was terminated';

  end;*/



  CALL delDupSrvPacket();

  CALL OnDeleteDuplicates64();

  /*CALL OnCorrectInfotrackLogId64();*/



  /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅ пїЅ пїЅпїЅ, пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ 

     пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ OnLostDataGPS264. */

  /*INSERT INTO datagpsbuffer_ontmp64 (Mobitel_ID, LogID, SrvPacketID)

    SELECT

      b.Mobitel_ID,

      b.LogID,

      b.SrvPacketID

    FROM datagpsbuffer_on64 b

      LEFT JOIN datagps64 d

        ON (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID)

    WHERE d.LogID IS NOT NULL GROUP BY d.SrvPacketID;*/

 DROP TEMPORARY TABLE IF EXISTS temp1;

  DROP TABLE IF EXISTS temp1;

  CREATE TEMPORARY TABLE temp1  SELECT

      b.Mobitel_ID,

      b.LogID,

      b.SrvPacketID

    FROM datagpsbuffer_on64 b

      LEFT JOIN datagps64 d

        ON (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID)

    WHERE d.LogID IS NOT NULL GROUP BY d.SrvPacketID;



INSERT INTO datagpsbuffer_ontmp64 (Mobitel_ID, LogID, SrvPacketID) SELECT * FROM temp1 GROUP BY SrvPacketID;



DROP TEMPORARY TABLE IF EXISTS temp1;


  /* -------------------- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ Online ---------------------- */

  /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ online пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ datagpsbuffer_on64 */

  /* пїЅпїЅ пїЅпїЅпїЅпїЅпїЅ Mobitel_ID пїЅ LogID */

  DELETE o

    FROM online64 o, datagpsbuffer_on64 dgb

  WHERE (o.Mobitel_ID = dgb.Mobitel_ID) AND (o.LogID = dgb.LogID);



  SET DataExists = 1;

  OPEN CursorMobitelsInsertSet;

  FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ Max пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ UnixTime пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ online пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ

       пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ. p.s. UnixTime пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ online пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ */

    SELECT

      COALESCE(MAX(UnixTime), 0) INTO TmpMaxUnixTime

    FROM online64 FORCE INDEX (IDX_Mobitelid64)

    WHERE Mobitel_ID = MobitelIDInCursor;



    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ (пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ 100)пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ online */

    INSERT INTO online64 (Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Acceleration,

    Direction, Speed, Valid, `Events`,

    Satellites, RssiGsm, SensorsSet, Sensors, Voltage, DGPS)

      SELECT

        Mobitel_ID,

        LogID,

        UnixTime,

        Latitude,

        Longitude,

        Acceleration,

        Direction,

        Speed,

        Valid,

        `Events`,

        Satellites,

        RssiGsm,

        SensorsSet,

        Sensors,

        Voltage,

        DGPS

      FROM (SELECT

          *

        FROM datagpsbuffer_on64

        WHERE (Mobitel_ID = MobitelIDInCursor) AND

        (UnixTime > TmpMaxUnixTime) AND (Valid = 1)

        GROUP BY Mobitel_ID,

                 LogID

        ORDER BY UnixTime DESC

        LIMIT 100) AS T

      ORDER BY UnixTime ASC;



    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ

       пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ - пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ 100 пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ */

    DELETE

      FROM online64

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (UnixTime < (SELECT

          COALESCE(MIN(UnixTime), 0)

        FROM (SELECT

            UnixTime

          FROM online64

          WHERE Mobitel_ID = MobitelIDInCursor

          ORDER BY UnixTime DESC

          LIMIT 100) T1));



    FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsInsertSet;

  /* ---------------- Online ---------------- */

  /* пїЅпїЅпїЅпїЅпїЅ-пїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ ... */

  UPDATE datagps64 d, datagpsbuffer_on64 b

  SET d.Latitude = b.Latitude,

      d.Longitude = b.Longitude,

      d.Acceleration = b.Acceleration,

      d.UnixTime = b.UnixTime,

      d.Speed = b.Speed,

      d.Direction = b.Direction,

      d.Valid = b.Valid,

      d.LogID = b.LogID,

      d.`Events` = b.`Events`,

      d.Satellites = b.Satellites,

      d.RssiGsm = b.RssiGsm,

      d.SensorsSet = b.SensorsSet,

      d.Sensors = b.Sensors,

      d.Voltage = b.Voltage,

      d.DGPS = b.DGPS,

      d.SrvPacketID = b.SrvPacketID

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID)

  AND (d.SrvPacketID < b.SrvPacketID);



  /* пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ */

  DELETE b

    FROM datagps64 d, datagpsbuffer_on64 b

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ */ 

  INSERT INTO datagps64 (Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Acceleration,

  Direction, Speed, Valid, `Events`,

  Satellites, RssiGsm, SensorsSet, Sensors, Voltage, DGPS, SrvPacketID)

    SELECT

      Mobitel_ID,

      LogID,

      UnixTime,

      Latitude,

      Longitude,

      Acceleration,

      Direction,

      Speed,

      Valid,

      `Events`,

      Satellites,

      RssiGsm,

      SensorsSet,

      Sensors,

      Voltage,

      DGPS,

      SrvPacketID

    FROM datagpsbuffer_on64

    GROUP BY Mobitel_ID,

             LogID;



  /* ------------------- FETCH Mobitels (INSERT SET) ----------------------- */

  SET DataExists = 1;

  OPEN CursorMobitelsInsertSet;

  FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* ------ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ ------- */

    UPDATE mobitels

    SET LastInsertTime = UNIX_TIMESTAMP(NOW())

    WHERE Mobitel_ID = MobitelIDInCursor;



    /* ------ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ -------------- */

    CALL OnLostDataGPS64(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    FETCH CursorMobitelsInsertSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsInsertSet;



  /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */

  TRUNCATE TABLE datagpsbuffer_on64;



  /* ------------------- FETCH Mobitels (UPDATE SET) ---------------------- */

  SET DataExists = 1;

  OPEN CursorMobitelsUpdateSet;

  FETCH CursorMobitelsUpdateSet INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    /* ---- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ --- */

    CALL OnLostDataGPS264(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    FETCH CursorMobitelsUpdateSet INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitelsUpdateSet;



  /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */

  TRUNCATE TABLE datagpsbuffer_ontmp64;



  /* пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ - пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ */

  /*IF NeedOptimize = 1 THEN

    OPTIMIZE TABLE datagpslost_on;

  END IF;*/

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `PopListMobitelConfig` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `PopListMobitelConfig`()
    SQL SECURITY INVOKER
    COMMENT 'Выборка настроек телетреков для работы в режиме POP3'
BEGIN

  SELECT m.Mobitel_ID AS MobitelID, c.devIdShort AS DevIdShort,

    COALESCE(

      (SELECT s.EmailMobitel 

       FROM Mobitels m2 JOIN ServiceSend s ON s.ID = m2.ServiceSend_ID 

       WHERE m2.Mobitel_ID = m.Mobitel_ID

       ORDER BY s.ServiceSend_ID DESC

       LIMIT 1), "") AS Email

  FROM mobitels m JOIN internalmobitelconfig c ON c.ID = m.InternalMobitelConfig_ID

  WHERE (c.InternalMobitelConfig_ID = (

    SELECT intConf.InternalMobitelConfig_ID

    FROM internalmobitelconfig intConf

    WHERE (intConf.ID = c.ID)

    ORDER BY intConf.InternalMobitelConfig_ID DESC

    LIMIT 1)) AND (c.devIdShort IS NOT NULL) AND (c.devIdShort <> _cp1251 '')

  ORDER BY m.Mobitel_ID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `PopTransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `PopTransferBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные из буферной таблицы в datagps'
BEGIN

  DECLARE MobitelIDInCursor INT; 

  DECLARE DataExists TINYINT DEFAULT 1; 

  

  DECLARE TmpMaxUnixTime INT; 



  DECLARE CursorMobitels CURSOR FOR

    SELECT DISTINCT(Mobitel_ID) FROM datagpsbuffer_pop;



  

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



    

  

  

  DELETE o

  FROM online o, datagpsbuffer_pop dgb

  WHERE (o.Mobitel_ID = dgb.Mobitel_ID) AND (o.LogID = dgb.LogID);

  

  SET DataExists = 1;

  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    

    SELECT COALESCE(MAX(UnixTime), 0) INTO TmpMaxUnixTime

    FROM online FORCE INDEX (IDX_Mobitelid)

    WHERE Mobitel_ID = MobitelIDInCursor;



    

    INSERT INTO online (

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs)

    SELECT

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs

    FROM (

      SELECT *

      FROM datagpsbuffer_pop

      WHERE (Mobitel_ID = MobitelIDInCursor)  AND 

        (UnixTime > TmpMaxUnixTime) AND (Valid = 1)

      GROUP BY Mobitel_ID, LogID

      ORDER BY UnixTime DESC

      LIMIT 100) AS T

    ORDER BY UnixTime ASC;



    

    DELETE FROM online

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (UnixTime < 

      (SELECT COALESCE(MIN(UnixTime), 0) 

       FROM (

         SELECT UnixTime

         FROM online

         WHERE Mobitel_ID = MobitelIDInCursor 

         ORDER BY UnixTime DESC

         LIMIT 100) T1)); 

  

    FETCH CursorMobitels INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitels;

    



  

  UPDATE datagps d, datagpsbuffer_pop b SET

    d.Latitude = b.Latitude,

    d.Longitude = b.Longitude,

    d.Altitude = b.Altitude,

    d.UnixTime = b.UnixTime,

    d.Speed = b.Speed,

    d.Direction = b.Direction,

    d.Valid = b.Valid,

    d.InMobitelID = b.LogID,

    d.`Events` = b.`Events`,

    d.Sensor1 = b.Sensor1,

    d.Sensor2 = b.Sensor2,

    d.Sensor3 = b.Sensor3,

    d.Sensor4 = b.Sensor4,

    d.Sensor5 = b.Sensor5,

    d.Sensor6 = b.Sensor6,

    d.Sensor7 = b.Sensor7,

    d.Sensor8 = b.Sensor8,

    d.whatIs = b.whatIs,

    d.Counter1 = b.Counter1,

    d.Counter2 = b.Counter2,

    d.Counter3 = b.Counter3,

    d.Counter4 = b.Counter4

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  DELETE b

  FROM datagps d, datagpsbuffer_pop b

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  INSERT INTO datagps (

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, InMobitelID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs)

  SELECT

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, LogID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs

  FROM datagpsbuffer_pop

  GROUP BY Mobitel_ID, LogID;



  

  TRUNCATE TABLE datagpsbuffer_pop;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `RfFillLostDataGPS` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `RfFillLostDataGPS`()
    COMMENT 'Поиск пропусков в RF данных и заполнение таблицы datagpslost'
BEGIN

  DECLARE MobitelIDInCursor INT; 

  DECLARE DataExists TINYINT DEFAULT 1; 

  DECLARE NeedOptimize TINYINT DEFAULT 0; 

  DECLARE NeedOptimizeParam TINYINT;



  

  DECLARE CursorMobitels CURSOR FOR

    SELECT m.Mobitel_ID AS Mobitel_ID
    FROM mobitels m
      JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)
    WHERE (c.InternalMobitelConfig_ID = (
      SELECT intConf.InternalMobitelConfig_ID
      FROM internalmobitelconfig intConf
      WHERE intConf.ID = c.ID 
      ORDER BY intConf.InternalMobitelConfig_ID DESC
      LIMIT 1)) AND
      (c.moduleIdRf IS NOT NULL) AND (c.moduleIdRf <> _cp1251'')
    ORDER BY m.Mobitel_ID;

  

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  

  SET DataExists = 1;

  

  

  DELETE d

  FROM datagpslost d

  WHERE NOT EXISTS(

    SELECT 1

    FROM mobitels m

    WHERE m.Mobitel_ID = d.Mobitel_ID);

  

  

  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    CALL RfLostDataGPS(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    FETCH CursorMobitels INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitels;



  

  IF NeedOptimize = 1 THEN

    OPTIMIZE TABLE datagpslost;

  END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `RfListMobitelConfig` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `RfListMobitelConfig`()
    COMMENT 'Выборка RF настроек телетреков'
BEGIN

  DECLARE MobitelIDInCursor INT;

  DECLARE NameInCursor CHAR(50);

  DECLARE DescrInCursor CHAR(200);

  DECLARE ConfirmedIDInCursor INT;

  DECLARE moduleIdRfInCursor CHAR(50);

  DECLARE LastInsertTimeInCursor DateTime;

  DECLARE DataExists TINYINT DEFAULT 1;



  

  DECLARE CursorMobitels CURSOR FOR

    SELECT m.Mobitel_ID AS Mobitel_ID,
      m.Name AS Name,
      m.Descr AS Descr,
      m.ConfirmedID AS ConfirmedID,
      c.moduleIdRf AS moduleIdRf,
      FROM_UNIXTIME(m.LastInsertTime) AS LastInsertTime
    FROM mobitels m
      JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)
    WHERE (c.InternalMobitelConfig_ID = (
      SELECT intConf.InternalMobitelConfig_ID
      FROM internalmobitelconfig intConf
      WHERE intConf.ID = c.ID 
      ORDER BY intConf.InternalMobitelConfig_ID DESC
      LIMIT 1)) AND
      (c.moduleIdRf IS NOT NULL) AND (c.moduleIdRf <> _cp1251'')
    ORDER BY m.Mobitel_ID;



  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  

  CREATE TEMPORARY TABLE tmpMobitelsConfig (

    Mobitel_ID INT NOT NULL,

    Name CHAR(50),

    Descr CHAR(200),

    ConfirmedID INT NOT NULL,

    moduleIdRf CHAR(50) NOT NULL,

    LastInsertTime DateTime NOT NULL,

    LastLogID INT NOT NULL) ENGINE = MEMORY;



  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor, NameInCursor, DescrInCursor, 

    ConfirmedIDInCursor, moduleIdRfInCursor, LastInsertTimeInCursor;

  WHILE DataExists = 1 DO



    INSERT INTO tmpMobitelsConfig SELECT MobitelIDInCursor, NameInCursor, DescrInCursor, 

      ConfirmedIDInCursor, moduleIdRfInCursor, LastInsertTimeInCursor,

      (SELECT COALESCE(MAX(LogID), 0)
       FROM datagps
       WHERE Mobitel_ID = MobitelIDInCursor) AS LastLogID;



    FETCH CursorMobitels INTO MobitelIDInCursor, NameInCursor, DescrInCursor, 

    ConfirmedIDInCursor, moduleIdRfInCursor, LastInsertTimeInCursor;

  END WHILE;

  CLOSE CursorMobitels;



  SELECT Mobitel_ID, Name, Descr, ConfirmedID, moduleIdRf, LastInsertTime, LastLogID

  FROM tmpMobitelsConfig;



  DROP TEMPORARY TABLE tmpMobitelsConfig;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `RfLostDataGPS` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `RfLostDataGPS`(IN MobitelID INTEGER(11), OUT NeedOptimize TINYINT)
    COMMENT 'Поиск пропусков в RF данных заданного телетрека и заполнение таб'
BEGIN

  

  DECLARE MAX_RECORD_COUNT INT DEFAULT 33792;

  DECLARE FirstActualLogID INT; 



  DECLARE CurrentConfirmedID INT; 

  DECLARE NewConfirmedID INT DEFAULT 0; 

  DECLARE NewStartLogIDSelect INT DEFAULT 0; 

  DECLARE MaxMobitelLogID INT; 



  DECLARE BeginLogIDInCursor INT; 

  DECLARE EndLogIDInCursor INT; 

  DECLARE CountInLostRange INT; 

  DECLARE DataExists TINYINT DEFAULT 1; 

  DECLARE DataChanged TINYINT DEFAULT 0; 

  DECLARE NeedAnalyze TINYINT DEFAULT 0; 

  

  DECLARE NewRowCount INT DEFAULT 0; 

  

  DECLARE NewLogID INT; 

  DECLARE FirstLogID INT DEFAULT -9999999; 

  DECLARE SecondLogID INT; 

                                                                                    

  

  

  DECLARE CursorLostData CURSOR FOR

    SELECT Begin_LogID, End_LogID

    FROM datagpslost

    WHERE Mobitel_ID = MobitelID

    ORDER BY Begin_LogID;

    

  

  DECLARE CursorNewLogID CURSOR FOR

    SELECT LogID 

    FROM datagpslost_rftmp;

    

  

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;



  SET DataExists = 1;

  SET NeedOptimize = 0;

 

  SELECT COALESCE(ConfirmedID, 0) INTO CurrentConfirmedID

  FROM mobitels

  WHERE Mobitel_ID = MobitelID;



  

  SELECT COALESCE(MAX(LogID), 0) INTO MaxMobitelLogID

  FROM datagps

  WHERE (Mobitel_ID = MobitelID);



  IF CurrentConfirmedID <> MaxMobitelLogID THEN

    

    SET FirstActualLogID = MaxMobitelLogID - MAX_RECORD_COUNT;

    IF FirstActualLogID < 0 THEN

      SET FirstActualLogID = 0;

    END IF;



    

    DELETE FROM datagpslost

    WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID < FirstActualLogID);

    

    

    OPEN CursorLostData;

    FETCH CursorLostData INTO BeginLogIDInCursor, EndLogIDInCursor;

    

    

    IF DataExists = 0 THEN

      SET DataChanged = 0;

      SET NeedAnalyze = 1;

      

      SET NewStartLogIDSelect = GREATEST(CurrentConfirmedID, FirstActualLogID);

    END IF;



    

    WHILE DataExists = 1 DO

      

      SELECT COUNT(1) INTO CountInLostRange

      FROM datagps

      WHERE (Mobitel_ID = MobitelID) AND

        (LogID > BeginLogIDInCursor) AND (LogID < EndLogIDInCursor);



      

      IF (CountInLostRange > 0)  THEN

        

        DELETE FROM datagpslost

        WHERE (Mobitel_ID = MobitelID) AND (Begin_LogID >= BeginLogIDInCursor);



        SET DataChanged = 1;

        SET NeedAnalyze = 1;

        SET NewStartLogIDSelect = BeginLogIDInCursor;

        

        

        SET DataExists = 0;

      ELSE

        FETCH CursorLostData INTO BeginLogIDInCursor, EndLogIDInCursor;

      END IF;	

    END WHILE;

    CLOSE CursorLostData;

   

    

       

    IF (NeedAnalyze = 0) AND (EndLogIDInCursor < MaxMobitelLogID) THEN

      SET NewStartLogIDSelect = EndLogIDInCursor;

      SET NeedAnalyze = 1;

    END IF;

   

    



    IF NeedAnalyze = 1 THEN

      TRUNCATE TABLE datagpslost_rftmp;



      

      INSERT INTO datagpslost_rftmp	(LogID)

      SELECT DISTINCT(LogID)

      FROM datagps

      WHERE (Mobitel_ID = MobitelID) AND (LogID >= NewStartLogIDSelect)

      ORDER BY LogID;

      

      

      SET @InsertLostDataStatement = 

        "INSERT INTO datagpslost(Mobitel_ID, Begin_LogID, End_LogID) VALUES ";

      

      

      SET DataExists = 1;

      OPEN CursorNewLogID;

      FETCH CursorNewLogID INTO NewLogID;

      WHILE DataExists = 1 DO

        IF FirstLogID = -9999999 THEN

          

          SET FirstLogID = NewLogID;

        ELSE

          

          SET SecondLogID = NewLogID;

          IF (SecondLogID -	FirstLogID) > 1 THEN

            

            IF NewRowCount > 0 THEN

              SET @InsertLostDataStatement = 

                CONCAT(@InsertLostDataStatement, ",");

            END IF;

            SET @InsertLostDataStatement = 

              CONCAT(@InsertLostDataStatement, 

                " (", MobitelID, ", ", FirstLogID, ", ", SecondLogID, ")");

            

            SET NewRowCount = NewRowCount + 1;

          END IF;

          

          SET	FirstLogID = SecondLogID;

        END IF;	

        FETCH CursorNewLogID INTO NewLogID;

      END WHILE;

      CLOSE CursorNewLogID;

      

        

      IF NewRowCount > 0 THEN

        

        PREPARE stmt FROM @InsertLostDataStatement;

        EXECUTE stmt;

        DEALLOCATE PREPARE stmt;

        

        SET DataChanged = 1;

      END IF; 
             

      

      

      SELECT COALESCE(MIN(Begin_LogID), -1) INTO NewConfirmedID

      FROM datagpslost

      WHERE Mobitel_ID = MobitelID;



      

      IF NewConfirmedID = -1 THEN

        SET NewConfirmedID = MaxMobitelLogID;

      END IF;



      

      IF NewConfirmedID > CurrentConfirmedID THEN

        UPDATE mobitels

        SET ConfirmedID = NewConfirmedID

        WHERE (Mobitel_ID = MobitelID) AND (ConfirmedID < NewConfirmedID);

      END IF;

      

      TRUNCATE TABLE datagpslost_rftmp;

    END IF;	 
    

    IF DataChanged = 1 THEN

      SET NeedOptimize = 1;

    END IF;

  

  END IF;	
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `RfMobitelConfig` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `RfMobitelConfig`(IN paramMobitelID INTEGER(11))
    COMMENT 'Выборка RF настроек заданного телетрека'
BEGIN

SELECT
  m.Mobitel_ID AS Mobitel_ID,
  m.Name AS Name,
  m.Descr AS Descr,
  m.ConfirmedID AS ConfirmedID,
  c.moduleIdRf AS moduleIdRf,
  FROM_UNIXTIME(m.LastInsertTime) AS LastInsertTime,
  ( SELECT COALESCE(d.LogID, 0)
    FROM datagps d
    WHERE d.Mobitel_ID = m.Mobitel_ID
    ORDER BY d.LogID DESC
    LIMIT 1 ) AS LastLogID
FROM mobitels m
  JOIN internalmobitelconfig c ON (c.ID = m.InternalMobitelConfig_ID)
WHERE (m.Mobitel_ID = paramMobitelID) AND
  (c.InternalMobitelConfig_ID = (
    SELECT intConf.InternalMobitelConfig_ID
    FROM internalmobitelconfig intConf
    WHERE intConf.ID = c.ID
    ORDER BY intConf.InternalMobitelConfig_ID DESC
    LIMIT 1)) AND
  (c.moduleIdRf IS NOT NULL) AND (c.moduleIdRf <> _cp1251'')
ORDER BY m.Mobitel_ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `RfTransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `RfTransferBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные из буферной таблицы в datagps.'
BEGIN



  DECLARE MobitelIDInCursor INT; 

  DECLARE DataExists TINYINT DEFAULT 1; 

  DECLARE NeedOptimize TINYINT DEFAULT 0; 

  DECLARE NeedOptimizeParam TINYINT;

  DECLARE TmpMaxUnixTime INT; 



  DECLARE CursorMobitels CURSOR FOR

    SELECT DISTINCT(Mobitel_ID) FROM datagpsbuffer;



  

  DECLARE CONTINUE HANDLER FOR NOT FOUND SET DataExists = 0;

  

    

  

  

  DELETE o

  FROM online o, datagpsbuffer_pop dgb

  WHERE (o.Mobitel_ID = dgb.Mobitel_ID) AND (o.LogID = dgb.LogID);

  

  SET DataExists = 1;

  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    

    SELECT COALESCE(MAX(UnixTime), 0) INTO TmpMaxUnixTime

    FROM online FORCE INDEX (IDX_Mobitelid)

    WHERE Mobitel_ID = MobitelIDInCursor;



    

    INSERT INTO online (

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs)

    SELECT

      Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

      Direction, Speed, Valid, `Events`,

      Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

      Counter1, Counter2, Counter3, Counter4, whatIs

    FROM (

      SELECT * 

      FROM datagpsbuffer

      WHERE (Mobitel_ID = MobitelIDInCursor)  AND 

        (UnixTime > TmpMaxUnixTime) AND (Valid = 1)

      GROUP BY Mobitel_ID, LogID

      ORDER BY UnixTime DESC

      LIMIT 100) AS T

    ORDER BY UnixTime ASC; 



    

    DELETE FROM online

    WHERE (Mobitel_ID = MobitelIDInCursor) AND (UnixTime < 

      (SELECT COALESCE(MIN(UnixTime), 0) 

       FROM (

         SELECT UnixTime

         FROM online

         WHERE Mobitel_ID = MobitelIDInCursor 

         ORDER BY UnixTime DESC

         LIMIT 100) T1)); 

  

    FETCH CursorMobitels INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitels;

    





  

  UPDATE datagps d, datagpsbuffer b SET

    d.Message_ID = 0, d.Latitude = b.Latitude,

    d.Longitude = b.Longitude,

    d.Altitude = b.Altitude,

    d.UnixTime = b.UnixTime,

    d.Speed = b.Speed,

    d.Direction = b.Direction,

    d.Valid = b.Valid,

    d.InMobitelID = b.LogID,

    d.`Events` = b.`Events`,

    d.Sensor1 = b.Sensor1,

    d.Sensor2 = b.Sensor2,

    d.Sensor3 = b.Sensor3,

    d.Sensor4 = b.Sensor4,

    d.Sensor5 = b.Sensor5,

    d.Sensor6 = b.Sensor6,

    d.Sensor7 = b.Sensor7,

    d.Sensor8 = b.Sensor8,

    d.isShow = 0,

    d.whatIs = b.whatIs,

    d.Counter1 = b.Counter1,

    d.Counter2 = b.Counter2,

    d.Counter3 = b.Counter3,

    d.Counter4 = b.Counter4

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  DELETE b

  FROM datagps d, datagpsbuffer b

  WHERE (d.Mobitel_ID = b.Mobitel_ID) AND (d.LogID = b.LogID);



  

  INSERT INTO datagps (

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, InMobitelID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4, whatIs)

  SELECT

    Mobitel_ID, LogID, UnixTime, Latitude, Longitude, Altitude,

    Direction, Speed, Valid, `Events`, LogID,

    Sensor1, Sensor2, Sensor3, Sensor4, Sensor5, Sensor6, Sensor7, Sensor8,

    Counter1, Counter2, Counter3, Counter4,

    whatIs

  FROM datagpsbuffer

  GROUP BY Mobitel_ID, LogID;



  

  SET DataExists = 1;

  OPEN CursorMobitels;

  FETCH CursorMobitels INTO MobitelIDInCursor;

  WHILE DataExists = 1 DO

    

    UPDATE mobitels SET LastInsertTime = UNIX_TIMESTAMP(NOW())

    WHERE Mobitel_ID = MobitelIDInCursor;

        

    

    CALL RfLostDataGPS(MobitelIDInCursor, NeedOptimizeParam);

    SET NeedOptimize = GREATEST(NeedOptimize, NeedOptimizeParam);

    

    FETCH CursorMobitels INTO MobitelIDInCursor;

  END WHILE;

  CLOSE CursorMobitels;



  

  TRUNCATE TABLE datagpsbuffer;



  

  IF NeedOptimize = 1 THEN

    OPTIMIZE TABLE datagpslost;

  END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SelectDataGpsPeriodAll` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `SelectDataGpsPeriodAll`(IN mobile int, IN beginperiod datetime, IN endperiod datetime,

IN timebegin varchar(9), IN timeend varchar(9), IN weekdays varchar(15), IN daymonth varchar(90))
BEGIN

  DECLARE time0 time DEFAULT '23:59:59';

  DECLARE time1 time DEFAULT '00:00:00'; 



  DROP TEMPORARY TABLE IF EXISTS tempperiod4;



  CREATE TEMPORARY TABLE tempperiod4 -- временная таблица выборок в указанном диапазоне

  SELECT

    DataGps_ID AS DataGps_ID,

    Mobitel_ID AS Mobitel_ID,

    ((Latitude * 1.0000) / 600000) AS Lat,

    ((Longitude * 1.0000) / 600000) AS Lon,

    Altitude AS Altitude,

    FROM_UNIXTIME(UnixTime) AS `time`,

    (Speed * 1.852) AS speed,

    Valid AS Valid,

    (Sensor8 + (Sensor7 << 8) + (Sensor6 << 16) + (Sensor5 << 24) + (Sensor4 << 32) + (Sensor3 << 40) + (Sensor2 << 48) + (Sensor1 << 56)) AS sensor,

    Events AS Events,

    LogID AS LogID

  FROM datagps

  WHERE Mobitel_ID = mobile AND

  (UnixTime BETWEEN UNIX_TIMESTAMP(beginperiod) AND UNIX_TIMESTAMP(endperiod)) AND

  (Valid = 1) AND NOT (Latitude = 0 AND Longitude = 0)

  ORDER BY UnixTime;



  DROP TEMPORARY TABLE IF EXISTS tempweeks;



  IF weekdays != '' THEN



    CREATE TEMPORARY TABLE tempweeks (

      shead varchar(2)

    );



    SET @saTail = weekdays;

    WHILE @saTail != '' DO

      SET @sHead = SUBSTRING_INDEX(@saTail, ';', 1);

      SET @saTail = SUBSTRING(@saTail, LENGTH(@sHead) + 2);

      INSERT INTO tempweeks (shead)

        VALUES (@sHead);

    END WHILE;

  END IF;



  DROP TEMPORARY TABLE IF EXISTS tempday0;



  IF daymonth != '' THEN



    CREATE TEMPORARY TABLE tempday0 (

      shead varchar(2)

    );



    SET @saTail = daymonth;

    WHILE @saTail != '' DO

      SET @sHead = SUBSTRING_INDEX(@saTail, ';', 1);

      SET @saTail = SUBSTRING(@saTail, LENGTH(@sHead) + 2);

      INSERT INTO tempday0 (shead)

        VALUES (@sHead);

    END WHILE;

  END IF;



  -- getting selecting data

  IF (daymonth != '') AND (weekdays != '') THEN

    IF TIME(timebegin) < TIME(timeend) then

    SELECT

      *

    FROM tempperiod4

    WHERE ((DAY(`time`) IN (SELECT

      *

    FROM tempday0)) AND -- чтение по дням месяца

    (WEEKDAY(`time`) IN (SELECT

      *

    FROM tempweeks)) AND -- чтение по дням недели

    (TIME(`time`) BETWEEN TIME(timebegin) AND TIME(timeend))); -- чтение дат

    END IF;



    IF TIME(timebegin) > TIME(timeend) then

    SELECT

      *

    FROM tempperiod4

    WHERE ((DAY(`time`) IN (SELECT

      *

    FROM tempday0)) AND -- чтение по дням месяца

    (WEEKDAY(`time`) IN (SELECT

      *

    FROM tempweeks)) AND -- чтение по дням недели

    ((time(`time`) > time(timebegin) and time(`time`) < time(time0))

    OR (time(`time`) > time(time1) AND time(`time`) < time(timeend)))); -- чтение дат

    END IF;

    END IF;



      IF (daymonth = '') AND (weekdays != '') THEN

        IF TIME(timebegin) < TIME(timeend) then

        SELECT

          *

        FROM tempperiod4

        WHERE ((WEEKDAY(`time`) IN (SELECT

          *

        FROM tempweeks)) AND -- чтение по дням недели

        (TIME(`time`) BETWEEN TIME(timebegin) AND TIME(timeend))); -- чтение дат

          end IF;



        IF TIME(timebegin) > TIME(timeend) then

        SELECT

          *

        FROM tempperiod4

        WHERE ((WEEKDAY(`time`) IN (SELECT

          *

        FROM tempweeks)) AND -- чтение по дням недели

        ((time(`time`) > time(timebegin) and time(`time`) < time(time0))

    OR (time(`time`) > time(time1) AND time(`time`) < time(timeend)))); -- чтение дат

          end IF;

        END IF;



          IF (daymonth != '') AND (weekdays = '') THEN

            IF TIME(timebegin) < TIME(timeend) then

            SELECT

              *

            FROM tempperiod4

            WHERE ((DAY(`time`) IN (SELECT

              *

            FROM tempday0)) AND -- чтение по дням месяца

            (TIME(`time`) BETWEEN TIME(timebegin) AND TIME(timeend))); -- чтение дат

              END IF;



            IF TIME(timebegin) > TIME(timeend) then

            SELECT

              *

            FROM tempperiod4

            WHERE ((DAY(`time`) IN (SELECT

              *

            FROM tempday0)) AND -- чтение по дням месяца

            ((time(`time`) > time(timebegin) and time(`time`) < time(time0))

              OR (time(`time`) > time(time1) AND time(`time`) < time(timeend)))); -- чтение дат

              END IF;

            END IF;



              IF (daymonth = '') AND (weekdays = '') THEN

                IF TIME(timebegin) < TIME(timeend) then

                SELECT

                  *

                FROM tempperiod4

                WHERE (TIME(`time`) BETWEEN TIME(timebegin) AND TIME(timeend)); -- чтение дат

                  end IF;



                IF TIME(timebegin) > TIME(timeend) then

                SELECT

                  *

                FROM tempperiod4

                WHERE ((time(`time`) > time(timebegin) and time(`time`) < time(time0))

                  OR (time(`time`) > time(time1) AND time(`time`) < time(timeend))); -- чтение дат

                  end IF;

              END IF;

            END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `TestP` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `TestP`()
BEGIN

  SELECT VERSION();

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `TransferBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `TransferBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные из буферной таблицы в datagps.'
BEGIN









CREATE TEMPORARY TABLE IF NOT EXISTS temp1 ENGINE=HEAP(

  SELECT DataGPS_ID FROM datagpsbuffer

  );





UPDATE datagps d, datagpsbuffer b, temp1 t SET

  d.Message_ID = 0, 
  d.Latitude = b.Latitude,

  d.Longitude = b.Longitude,

  d.Altitude = b.Altitude,

  d.UnixTime = b.UnixTime,

  d.Speed = b.Speed,

  d.Direction = b.Direction,

  d.Valid = b.Valid,

  d.InMobitelID = NULL, 
  d.`Events` = b.`Events`,

  d.Sensor1 = b.Sensor1,

  d.Sensor2 = b.Sensor2,

  d.Sensor3 = b.Sensor3,

  d.Sensor4 = b.Sensor4,

  d.Sensor5 = b.Sensor5,

  d.Sensor6 = b.Sensor6,

  d.Sensor7 = b.Sensor7,

  d.Sensor8 = b.Sensor8,

  d.isShow = 0, 
  d.whatIs = b.whatIs,

  d.Counter1 = b.Counter1,

  d.Counter2 = b.Counter2,

  d.Counter3 = b.Counter3,

  d.Counter4 = b.Counter4

WHERE b.DataGps_ID = t.DataGps_ID

  AND d.Mobitel_ID = b.Mobitel_ID

  AND d.LogID = b.LogID;




DELETE b

FROM datagps d, datagpsbuffer b, temp1 t

WHERE b.DataGps_ID = t.DataGps_ID

  AND d.Mobitel_ID = b.Mobitel_ID

  AND d.LogID = b.LogID;




INSERT INTO datagps

  (

  Mobitel_ID,

  LogID,

  UnixTime,

  Latitude,

  Longitude,

  Altitude,

  Direction,

  Speed,

  Valid,

  `Events`,

  Sensor1,

  Sensor2,

  Sensor3,

  Sensor4,

  Sensor5,

  Sensor6,

  Sensor7,

  Sensor8,

  Counter1,

  Counter2,

  Counter3,

  Counter4,

  whatIs

  )

SELECT

  b.Mobitel_ID,

  b.LogID,

  b.UnixTime,

  b.Latitude,

  b.Longitude,

  b.Altitude,

  b.Direction,

  b.Speed,

  b.Valid,

  b.`Events`,

  b.Sensor1,

  b.Sensor2,

  b.Sensor3,

  b.Sensor4,

  b.Sensor5,

  b.Sensor6,

  b.Sensor7,

  b.Sensor8,

  b.Counter1,

  b.Counter2,

  b.Counter3,

  b.Counter4,

  b.whatIs

FROM datagpsbuffer b, temp1 t

WHERE b.DataGps_ID = t.DataGps_ID

GROUP BY b.Mobitel_ID, b.LogID;




DELETE b

FROM datagpsbuffer b, temp1 t

WHERE b.DataGps_ID = t.DataGps_ID;




DROP TEMPORARY TABLE temp1;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `TransferLiteBuffer` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `TransferLiteBuffer`()
    SQL SECURITY INVOKER
    COMMENT 'Переносит GPS данные из буферной таблицы в datagps.'
BEGIN









CREATE TEMPORARY TABLE IF NOT EXISTS temp2 ENGINE=HEAP(

  SELECT DataGPS_ID FROM datagpsbufferlite

  );





UPDATE datagps d, datagpsbuffer b, temp2 t SET

  d.Message_ID = b.Message_ID,

  d.Latitude = b.Latitude,

  d.Longitude = b.Longitude,

  d.Altitude = b.Altitude,

  d.UnixTime = b.UnixTime,

  d.Speed = b.Speed,

  d.Direction = b.Direction,

  d.Valid = b.Valid,

  d.InMobitelID = NULL, 
  d.`Events` = b.`Events`,

  d.Sensor1 = b.Sensor1,

  d.Sensor2 = b.Sensor2,

  d.Sensor3 = b.Sensor3,

  d.Sensor4 = b.Sensor4,

  d.Sensor5 = b.Sensor5,

  d.Sensor6 = b.Sensor6,

  d.Sensor7 = b.Sensor7,

  d.Sensor8 = b.Sensor8,

  d.isShow = b.IsShow,

  d.whatIs = b.whatIs,

  d.Counter1 = b.Counter1,

  d.Counter2 = b.Counter2,

  d.Counter3 = b.Counter3,

  d.Counter4 = b.Counter4

WHERE b.DataGps_ID = t.DataGps_ID

  AND d.Mobitel_ID = b.Mobitel_ID

  AND d.Latitude = b.Latitude

  AND d.Longitude = b.Longitude

  AND d.Altitude = b.Altitude

  AND d.UnixTime = b.UnixTime;




DELETE b

FROM datagps d, datagpsbufferlite b, temp2 t

WHERE b.DataGps_ID = t.DataGps_ID

  AND d.Mobitel_ID = b.Mobitel_ID

  AND d.Latitude = b.Latitude

  AND d.Longitude = b.Longitude

  AND d.Altitude = b.Altitude

  AND d.UnixTime = b.UnixTime;




INSERT INTO datagps

  (

  Mobitel_ID,

  LogID,

  UnixTime,

  Latitude,

  Longitude,

  Altitude,

  Direction,

  Speed,

  Valid,

  `Events`,

  Sensor1,

  Sensor2,

  Sensor3,

  Sensor4,

  Sensor5,

  Sensor6,

  Sensor7,

  Sensor8,

  Counter1,

  Counter2,

  Counter3,

  Counter4,

  whatIs

  )

SELECT

  b.Mobitel_ID,

  b.LogID,

  b.UnixTime,

  b.Latitude,

  b.Longitude,

  b.Altitude,

  b.Direction,

  b.Speed,

  b.Valid,

  b.`Events`,

  b.Sensor1,

  b.Sensor2,

  b.Sensor3,

  b.Sensor4,

  b.Sensor5,

  b.Sensor6,

  b.Sensor7,

  b.Sensor8,

  b.Counter1,

  b.Counter2,

  b.Counter3,

  b.Counter4,

  b.whatIs

FROM datagpsbufferlite b, temp2 t

WHERE b.DataGps_ID = t.DataGps_ID

GROUP BY b.Mobitel_ID, b.LogID, b.Latitude, b.Longitude, b.Altitude, b.UnixTime;




DELETE b

FROM datagpsbufferlite b, temp2 t

WHERE b.DataGps_ID = t.DataGps_ID;




DROP TEMPORARY TABLE temp2;

END ;;
DELIMITER ;

--
-- Final view structure for view `datavalue1`
--

/*!50001 DROP VIEW IF EXISTS `datavalue1`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `datavalue1` AS select round((`datagps`.`Longitude` / 600000),6) AS `lon`,round((`datagps`.`Latitude` / 600000),6) AS `lat`,`datagps`.`Mobitel_ID` AS `Mobitel_ID`,`sensordata`.`Value` AS `Value`,(`datagps`.`Speed` * 1.852) AS `speed`,from_unixtime(`datagps`.`UnixTime`) AS `time`,`sensordata`.`sensor_id` AS `sensor_id`,`datagps`.`DataGps_ID` AS `datavalue_id` from (`sensordata` join `datagps` on((`sensordata`.`datagps_id` = `datagps`.`DataGps_ID`))) where (`datagps`.`Valid` = 1) order by `datagps`.`UnixTime`,`datagps`.`Mobitel_ID`,`sensordata`.`sensor_id` */;

--
-- Final view structure for view `dataview`
--

/*!50001 DROP VIEW IF EXISTS `dataview`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `dataview` AS select `datagps`.`DataGps_ID` AS `DataGps_ID`,`datagps`.`Mobitel_ID` AS `Mobitel_ID`,(`datagps`.`Latitude` / 600000.00000) AS `Lat`,(`datagps`.`Longitude` / 600000.00000) AS `Lon`,`datagps`.`Altitude` AS `Altitude`,from_unixtime(`datagps`.`UnixTime`) AS `time`,(`datagps`.`Speed` * 1.852) AS `speed`,((`datagps`.`Direction` * 360) / 255) AS `direction`,`datagps`.`Valid` AS `Valid`,(((((((`datagps`.`Sensor8` + (`datagps`.`Sensor7` << 8)) + (`datagps`.`Sensor6` << 16)) + (`datagps`.`Sensor5` << 24)) + (`datagps`.`Sensor4` << 32)) + (`datagps`.`Sensor3` << 40)) + (`datagps`.`Sensor2` << 48)) + (`datagps`.`Sensor1` << 56)) AS `sensor`,`datagps`.`Events` AS `Events`,`datagps`.`LogID` AS `LogID` from `datagps` order by `datagps`.`LogID` */;

--
-- Final view structure for view `deviceview`
--

/*!50001 DROP VIEW IF EXISTS `deviceview`*/;
/*!50001 CREATE ALGORITHM=MERGE */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `deviceview` AS (select `m`.`Mobitel_ID` AS `Mobitel_ID`,`m`.`Name` AS `Name`,`m`.`Descr` AS `Descr`,`c`.`devIdShort` AS `devIdShort`,`m`.`DeviceType` AS `DeviceType`,`m`.`ConfirmedID` AS `ConfirmedID`,`c`.`moduleIdRf` AS `moduleIdRf` from ((`mobitels` `m` join `internalmobitelconfig` `c`) join `internalmobitelconfigview` `v`) where ((`v`.`ID` = `m`.`InternalMobitelConfig_ID`) and (`v`.`LastRecord` = `c`.`InternalMobitelConfig_ID`)) order by `m`.`Name`) */;

--
-- Final view structure for view `internalmobitelconfigview`
--

/*!50001 DROP VIEW IF EXISTS `internalmobitelconfigview`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `internalmobitelconfigview` AS (select `c`.`ID` AS `ID`,max(`c`.`InternalMobitelConfig_ID`) AS `LastRecord` from `internalmobitelconfig` `c` where (`c`.`devIdShort` <> _cp1251'') group by `c`.`ID`) */;


