Commit 30eb22c8 authored by Chalaka Tharindu Jayasinghe's avatar Chalaka Tharindu Jayasinghe

Merge branch 'maintenaceDateBE' into 'master'

Maintenace date BE

See merge request !26
parents ef3abe04 2264a27f
Date,Service,ServiceName,TakenTime,Price,Customer,VehicleType,VehicleMake,VehicleModel,VehicleNumber,MeterReading,VehicleManufacturedYear,AvergeUsage,mailID
1/1/2012,1,Full Service,45,3650,1,Motor Car,TOYOTA,IST UA-NCP60,KA-5010,56340,2002,,nbachalaka@gmail.com
4/12/2013,1,Full Service,60,3600,3,Dual Purpose Vehicle,TOYOTA,HIACE,254-0119,70300,1994,,sarathjay@gmail.com
10/4/2015,1,Full Service,60,3800,4,Motor Car,SUZUKI,DAA-MH44s WAGONR,CAR-1325,256,2014,,sankasilva@gmail.com
2/1/2013,1,Full Service,120,5000,5,Dual Purpose Vehicle,LAND ROVER,DEFENDER,PR-8007,1450,2011,,nirmalhadagama@gmail.com
1/7/2018,1,Full Service,60,3500,6,Motor Car,SUZUKI,ALTO LXI 800,CAT-5600,4790,2016,,nisalrenuja@gmail.com
4/24/2013,1,Full Service,30,550,7,Motor Cycle,BAJAJ,PLATINA,BAA-5673,1350,2012,,samanedisrisinghe@gmail.com
1/1/2019,1,Full Service,120,6500,8,Motor Car,TOYOTA,CBA-TRJ150W PRADO,CAZ-4000,6790,2017,,ranjanjayasinghe@gmail.com
8/8/2015,1,Full Service,45,3200,9,Motor Car,TOYOTA,PRIUS C,CAA-4563,2495,2014,,mallikasamarasinghe22@gmail.com
1/1/2019,1,Full Service,90,4750,10,Dual Purpose Vehicle,NISSAN,DBF-VM20 VANETTE,PI-6537,12450,2014,,bashithayasas@gmail.com
1/1/2019,1,Full Service,45,2700,11,Motor Tricycle,BAJAJ,BAJAJ 4 S,QU-4907,50127,2009,,sachithaabeykoon4567@gmail.com
1/1/2019,1,Full Service,60,5600,12,Dual Purpose Vehicle,MAHINDRA,BMT PLUS MDI,DAA-4532,18670,2015,,ranmalsaman@gmail.com
1/1/2019,1,Full Service,90,4000,13,Motor Cycle,BAJAJ,BAJAJ BOXER,HA-3527,56430,2002,,nimalfonseka@gmail.com
1/1/2019,1,Full Service,120,6500,14,Motor Car,HONDA,DAA-GP5,CAD-3412,8970,2014,,nisalsenanayake@gmail.com
1/1/2019,1,Full Service,140,7000,15,Motor Car,TOYOTA,LAND CRUISER PRADO,CAA-7648,15900,2013,,samdhiperera@gmail.com
1/1/2019,1,Full Service,60,5500,16,Motor Car,MARUTI,ALTO-K10,KN-6429,23760,2011,,isurukumarasiri@gmail.com
1/1/2019,1,Full Service,120,7500,17,Dual Purpose Vehicle,TOYOTA,LAND CRUISER ,LF-7618,56978,2007,,dushansubasinghe@gmail.com
1/1/2019,1,Full Service,100,8500,18,Motor Car,BMW,745L,KD-4527,34690,2003,,vihangavithnage@gmail.com
1/2/2019,1,Full Service,75,5500,19,Motor Car,HONDA,DAA-RU3-VEZEL,CAD-5063,25649,2014,,sahannirmala@gmail.com
1/2/2019,1,Full Service,30,1250,20,Motor Cycle,DAIDO,CF100-3,GH-4361,76500,2000,,sunilrathnayake@gmail.com
1/2/2019,1,Full Service,90,4800,21,Motor Car,TOYOTA,DAA-NHP10,CAA-5623,41000,2012,,samanathauda@gmail.com
1/2/2019,1,Full Service,120,4800,22,Motor Lorry,ISUZU,TKG-NMR85N ELF,LN-6429,31500,2013,,ranilrumesh@gmail.com
1/2/2019,1,Full Service,90,9500,23,Motor Car,JEEP,WRANGLER SPORT,CAT-8007,20800,2016,,nuwanrathnayake@gmail.com
1/2/2019,1,Full Service,100,6500,24,Motor Coach,TATA,LPO1510,NA-5629,22500,2006,,eshansanje@gmail.com
1/2/2019,1,Full Service,60,4200,25,Dual Purpose Vehicle,NISSAN,KG-VWGE24,PA-2030,83000,1999,,sarathsilva@gmail.com
1/2/2019,1,Full Service,90,4500,26,Motor Lorry,MAZDA,TITAN,GF-4310,93500,1995,,harshasilva@gmail.com
1/2/2019,1,Full Service,90,4800,27,Motor Car,MICRO,PANDA LC 1.0,CAF-3201,14600,2015,,wasanaabekoon@gmail.com
1/2/2019,1,Full Service,110,5200,28,Motor Car,TOYOTA,PREMIO,CAD-1131,15500,2014,,samankumara@gmail.com
1/2/2019,1,Full Service,70,4500,29,Motor Car,SUZUKI,ALTO LXI 800,CAD-3518,18750,2014,,vishwakodikara@gmail.com
1/2/2019,1,Full Service,70,5000,30,Dual Purpose Vehicle,TOYOTA,KF-CR42V,PA-4317,45786,2001,,ruwanmapalage@gmail.com
1/2/2019,1,Full Service,100,5500,31,Dual Purpose Vehicle,TATA,ACE EX2,DAA-3421,20310,2014,,madawapramod@gmail.com
1/2/2019,1,Full Service,30,1250,32,Motor Cycle,KINETIC,STARYKER,UT-5410,29700,2008,,salanitharaka@gmail.com
1/2/2019,1,Full Service,45,2700,33,Motor Tricycle,BAJAJ,BAJAJ AUTO,GH-8614,76849,2001,,chameshdenuwan@gmail.com
1/2/2019,1,Full Service,110,4800,34,Motor Lorry,MITSUBISHI,CANTER,GC-6729,60780,1995,,imeshasewwandi@gmail.com
1/3/2019,1,Full Service,120,6500,35,Motor Car,HONDA,CR-V 2.OL,CAA-6009,12380,2013,,dilusharasanja@gmail.com
1/3/2019,1,Full Service,90,4800,36,Motor Car,TOYOTA,DAA-NHP10,CAD-5410,18650,2014,,mahindajayawardane@gmail.com
1/3/2019,1,Full Service,80,4200,37,Motor Car,HONDA,DAA-ZE2,KP-9021,45500,2009,,gamunuprera@gmail.com
1/3/2019,1,Full Service,90,4000,38,Land Vehicle,TAFE,45DI,RD-5622,20800,2013,,samanalmeda@gmail.com
1/3/2019,1,Full Service,100,6000,39,Dual Purpose Vehicle,TOYOTA,HILUX,PK-6900,4560,2019,,upulsomarathne@gmail.com
1/3/2019,1,Full Service,30,1500,40,Motor Cycle,ROZENDO,RN 90-2,TO-6744,23805,2006,,samanalisamarasekara@gmail.com
1/3/2019,1,Full Service,140,8000,41,Motor Car,LAND ROVER,RANGE ROVER,CAA-6000,39787,2003,,namalsarathchandra@gmail.com
1/3/2019,1,Full Service,120,6500,42,Motor Car,HONDA,CIVIC,CBA-5400,850,2018,,gaveentharindu@gmail.com
1/3/2019,1,Full Service,110,6000,43,Motor Coach,MITSUBISHI,ROSA BE64DJRMDA,ND-5699,28710,2013,,thakshilathennakoon@gmail.com
1/3/2019,1,Full Service,110,4800,44,Motor Car,HONDA,DAA-RU3-VEZEL,CAF-9000,27100,2014,,nimalsamakoon@gmail.com
1/3/2019,1,Full Service,90,5000,45,Motor Car,MITSUBISHI,PAJERO,32-6729,98490,1989,,mahasensilva@gmail.com
1/3/2019,1,Full Service,30,1250,46,Motor Cycle,BAJAJ,BAJAJ BOXER CT-DELUXE,HA-6733,975692,2002,,darshanapathirana@gmail.com
1/3/2019,1,Full Service,100,5000,47,Motor Car,M.G,MG ZS1.0T AT TL3,CBF-6000,15299,2018,,wasanathabandara@gmail.com
1/3/2019,1,Full Service,90,3500,48,Dual Purpose Vehicle,MITSUBISHI,L 200,254-0755,78345,2000,,isharamadushan@gmail.com
1/3/2019,1,Full Service,90,4000,49,Dual Purpose Vehicle,NISSAN,KR-AHR69 ATLAS,PR-1111,25400,2006,,sadunidesilva@gmail.com
1/3/2019,1,Full Service,100,4500,50,Motor Car,TOYOTA,RUSH,KN-5444,35690,2007,,francisroshan@gmail.com
1/3/2019,1,Full Service,110,4800,51,Motor Car,TOYOTA,DAA-NKE165 AXIO,CBA-7000,15940,2017,,shiyansirisena@gmail.com
2/3/2010,1,Full Service,80,1250,52,Motor Car,NISSAN,SUNNY,KD-6444,49492,2003,,nilanshatharaka@gmail.com
1/3/2019,1,Full Service,120,7500,53,Motor Car,JEEP,WRANGLER SPORT,CAR-1234,25490,2015,,manjulajayasinghe@gmail.com
1/3/2019,1,Full Service,60,4500,54,Motor Car,SUZUKI,ALTO LXI 800,CAT-5600,21350,2016,,sdkweerkoon@gmail.com
1/3/2019,1,Full Service,150,7500,55,Dual Purpose Vehicle,LANKA ASHOK LEYLAND,DOST LS,DAA-9000,33532,2013,,rahaljanaka@gmail.com
1/3/2019,1,Full Service,60,4000,56,Motor Car,MARUTI,800,KA-2341,53487,2005,,banukalakmal@gmail.com
1/3/2019,1,Full Service,75,5500,57,Motor Car,HONDA,VEZEL,CAA-5901,27534,2014,,theekshanarathnayake@gmail.com
1/4/2019,1,Full Service,70,5500,58,Motor Car,TOYOTA,DBA-NGX50 C-HR,CBA-2422,18248,2017,,thisarahjay@gmail.com
1/4/2019,1,Full Service,60,4800,59,Motor Car,NISSAN,ZAA AZEO LEAF,CAN-5160,30103,2014,,keshanpathiraja@gmail.com
1/4/2019,1,Full Service,50,4200,60,Motor Car,NISSAN,CEFIRO,GR-5633,94563,1999,,udithindrakantha@gmail.com
1/4/2019,1,Full Service,90,3500,61,Dual Purpose Vehicle,ISUZU,DOUBLE CAB,250-3462,90343,1997,,nbabuddhini@gmail.com
1/4/2019,1,Full Service,90,5000,62,Dual Purpose Vehicle,JMC,JX1023DSER,PD-3421,65132,2011,,tharushikawijerathne@gmail.com
1/4/2019,1,Full Service,110,5500,63,Light Motor Lorry,MITSUBISHI,FE73PE6R-CANTER,LJ-8941,54543,2011,,pavithrabandara@gmail.com
1/4/2019,1,Full Service,90,4800,64,Motor Car,TOYOTA,DAA-NHP10 AQUA,CAR-4001,27337,2015,,dimuthuwijethunga@gmail.com
1/4/2019,1,Full Service,60,4500,65,Motor Car,SUZUKI,SWIFT VXI SUZUKI,KP-6711,53411,2011,,arunabandra@gmail.com
1/4/2019,1,Full Service,60,4800,66,Motor Car,PERODUA,AM1ZG,KN-6522,50002,2010,,lahirubimsara@gmail.com
1/4/2019,1,Full Service,60,4500,67,Motor Car,SUZUKI,DAA-MH44S WAGONR,CAT-9876,30569,2015,,sunilappuhami@gmail.com
1/4/2019,1,Full Service,50,4800,68,Motor Car,ZOTYE,NOMAD II,CAD-5433,35232,2014,,ruchiralakmal@gmail.com
1/4/2019,1,Full Service,110,7000,69,Motor Car,LAND ROVER,DEFENDER 110 XSTD,CAM-1234,29561,2014,,lalithsubasinghe@gmail.com
1/4/2019,1,Full Service,90,5500,70,Dual Purpose Vehicle,NISSAN,NAWARA D/C OUTLAW DC,PD-2030,77823,2007,,wasanthjayasinghe@gmail.com
1/4/2019,1,Full Service,90,4800,71,Motor Car,TOYOTA,DBA-NZT260 ALLION,KT-4802,54131,2010,,dinidubandara@gmail.com
1/5/2019,1,Full Service,60,4500,72,Motor Car,SUZUKI,ALTO LXI 800,CAD-6543,39721,2014,,kavindukarunanayake@gmail.com
1/5/2019,1,Full Service,70,5000,73,Motor Car,SSANG YONG,REXTON 270XDI,KL-4444,67222,2009,,sadarukavinda@gmail.com
1/5/2007,1,Full Service,80,750,74,Motor Car,MITSUBISHI,J44,31-6926,21321,1981,,nadeelshavinda@gmail.om
1/5/2019,1,Full Service,70,4500,75,Dual Purpose Vehicle,TOYOTA,HIACE PANEL VAN,PD-6757,56234,2008,,charithjayakantha@gmail.com
1/5/2019,1,Full Service,110,9000,76,Motor Car,BMW,520DM SPORT,CAA-8000,44523,2013,,pulasthiariyarathne@gmail.com
1/5/2019,1,Full Service,120,10500,77,Motor Car,MERCEDES BENZ,C350 SPORT PREMIUM,CAT-5555,20341,2015,,malinthaprasad@gmail.com
1/5/2019,1,Full Service,100,4800,78,Dual Purpose Vehicle,TOYOTA,KF-CR42V,PA-5333,78345,2001,,shalikawanasundara@gmail.com
11/5/2004,1,Full Service,90,1500,79,Dual Purpose Vehicle,NISSAN,HOMY,254-0040,34290,1995,,rukshansenevirathne@gmail.com
1/5/2019,1,Full Service,70,4800,80,Motor Car,HONDA,INSIGHT,KO-6555,62215,2009,,malakapasindu@gmail.com
1/5/2007,1,Full Service,70,2000,81,Motor Car,MITSUBISHI,MONTERO,KD-1234,9470,2004,,ramidusandeepa@gmail.com
1/5/2019,1,Full Service,110,8500,82,Motor Car,BMW,520D SE AUTO,CAE-1000,34512,2014,,zoysadesilva@gmail.com
1/5/2019,1,Full Service,60,4000,83,Dual Purpose Vehicle,TOYOTA,DBF-S402MTOWNACE,PK-6755,24213,2016,,kgmalith@gmail.com
1/5/2019,1,Full Service,110,7000,84,Motor Car,AUDI,A1 SPORT BACK,CBE-5420,20234,2018,,sadunmadushanka@gmail.com
1/5/2019,1,Full Service,60,4500,85,Motor Car,TOYOTA,DBA-KSP90 VITZ,CAE-5020,59243,2009,,neeludaya@gmail.com
1/6/2007,1,Full Service,60,2100,86,Motor Car,TOYOTA,UA-ZZE122,KJ-7099,20701,2003,,gamunupranavithana@gmail.com
1/6/2019,1,Full Service,60,4800,87,Dual Purpose Vehicle,TATA,ACE-EX,PT-4050,32343,2012,,nandalalkarunasekara@gmail.com
1/6/2019,1,Full Service,60,4500,88,Dual Purpose Vehicle,TOYOTA,QDF-GDH201V,PL-9000,19243,2018,,denuwanrajapakshe@gmail.com
1/6/2019,1,Full Service,60,5000,89,Motor Car,TOYOTA,DAA NHP10 AQUA,CAM-9911,24451,2013,,sajithmadura@gmail.com
1/6/2009,1,Full Service,90,2500,90,Dual Purpose Vehicle,NISSAN,NAVARA,PD-4992,5630,2007,,rahulperera@gmail.com
1/6/2019,1,Full Service,100,5500,91,Dual Purpose Vehicle,TATA,ACE,PR-4004,45220,2011,,udayakumara@gmail.com
1/6/2019,1,Full Service,100,6500,92,Motor Car,MITSUBISHI,V98WLYXZSR MONTERO,CAB-7099,39364,2013,,nuwanjayasen@gmail.com
1/6/2009,1,Full Service,110,3000,93,Motor Car,TOYOTA LEXUS,DBA-NZE141-AXIO,KL-1124,4560,2007,,kusalranasinghe@gmail.com
1/6/2019,1,Full Service,60,4500,94,Motor Car,NISSAN,ZAA-AZEO LEAF,CAT-6009,44492,2014,,gihanmendis@gmail.com
1/6/2019,1,Full Service,70,5500,95,Motor Car,TOYOTA,PRIUS ,CAB-6141,50013,2012,,thumiduravindra@gmail.com
1/6/2019,1,Full Service,60,4800,96,Motor Car,PERODUA,VIVA-ELITE AMIZG,KN-7193,49353,2011,,prasannajithabekoon@gmail.com
1/6/2019,1,Full Service,30,1750,97,Motor Cycle,BAJAJ,PULSER 135 LS,BAH-5610,49355,2013,,raveeabenayake@gmail.com
1/6/2019,1,Full Service,140,8500,98,Motor Car,LAND ROVER,RANGE ROVER,CAR-8888,30045,2015,,lalithfonseka@gmail.com
1/6/2013,1,Full Service,130,3500,99,Motor Car,MERCEDES BENZ,CLS350,CAA-1111,4035,2011,,sugaththilakarathne@gmail.com
1/6/2010,1,Full Service,70,2500,100,Dual Purpose Vehicle,MITSUBISHI,L200-DIAMOND,PD-4932,2239,2008,,maheshsamarakoon@gmail.com
6/2/2018,1,Full Service,30,1750,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,38010,2011,570,nbachalaka@gmail.com
12/24/2012,2,Full Service,45,3750,1,Motor Car,TOYOTA,IST UA-NCP60,KA-5010,63644,2002,592,nbachalaka@gmail.com
2/8/2014,1,Full Service,60,3700,3,Dual Purpose Vehicle,TOYOTA,HIACE,254-0119,79100,1994,1100,sarathjay@gmail.com
9/20/2016,1,Full Service,60,3850,4,Motor Car,SUZUKI,DAA-MH44s WAGONR,CAR-1325,4094,2014,358,sankasilva@gmail.com
2/15/2014,1,Full Service,120,5300,5,Dual Purpose Vehicle,LAND ROVER,DEFENDER,PR-8007,8484,2011,618,nirmalhadagama@gmail.com
1/8/2019,1,Full Service,60,3800,6,Motor Car,SUZUKI,ALTO LXI 800,CAT-5600,13292,2016,654,nisalrenuja@gmail.com
10/23/2013,1,Full Service,30,660,7,Motor Cycle,BAJAJ,PLATINA,BAA-5673,4836,2012,581,samanedisrisinghe@gmail.com
1/2/2020,1,Full Service,120,6840,8,Motor Car,TOYOTA,CBA-TRJ150W PRADO,CAZ-4000,13090,2017,525,ranjanjayasinghe@gmail.com
9/3/2016,1,Full Service,45,3500,9,Motor Car,TOYOTA,PRIUS C,CAA-4563,8423,2014,456,mallikasamarasinghe22@gmail.com
1/7/2020,1,Full Service,90,4750,10,Dual Purpose Vehicle,NISSAN,DBF-VM20 VANETTE,PI-6537,15609,2014,243,bashithayasas@gmail.com
8/8/2019,1,Full Service,45,2700,11,Motor Tricycle,BAJAJ,BAJAJ 4 S,QU-4907,57967,2009,980,sachithaabeykoon4567@gmail.com
10/17/2019,1,Full Service,60,5600,12,Dual Purpose Vehicle,MAHINDRA,BMT PLUS MDI,DAA-4532,18670,2015,270,ranmalsaman@gmail.com
5/9/2019,1,Full Service,90,4000,13,Motor Cycle,BAJAJ,BAJAJ BOXER,HA-3527,66510,2002,960,nimalfonseka@gmail.com
11/23/2019,1,Full Service,120,6500,14,Motor Car,HONDA,DAA-GP5,CAD-3412,18285,2014,810,nisalsenanayake@gmail.com
12/28/2019,1,Full Service,140,7000,15,Motor Car,TOYOTA,LAND CRUISER PRADO,CAA-7648,20580,2013,360,samdhiperera@gmail.com
10/9/2019,1,Full Service,60,5500,16,Motor Car,MARUTI,ALTO-K10,KN-6429,27660,2011,390,isurukumarasiri@gmail.com
9/1/2019,1,Full Service,120,7500,17,Dual Purpose Vehicle,TOYOTA,LAND CRUISER ,LF-7618,63678,2007,670,dushansubasinghe@gmail.com
11/5/2019,1,Full Service,100,8500,18,Motor Car,BMW,745L,KD-4527,38870,2003,380,vihangavithnage@gmail.com
1/24/2020,1,Full Service,75,5500,19,Motor Car,HONDA,DAA-RU3-VEZEL,CAD-5063,30774,2014,410,sahannirmala@gmail.com
8/19/2019,1,Full Service,30,1250,20,Motor Cycle,DAIDO,CF100-3,GH-4361,81288,2000,584,sunilrathnayake@gmail.com
2/2/2020,1,Full Service,90,4800,21,Motor Car,TOYOTA,DAA-NHP10,CAA-5623,46530,2012,395,samanathauda@gmail.com
11/27/2019,1,Full Service,120,4800,22,Motor Lorry,ISUZU,TKG-NMR85N ELF,LN-6429,40872,2013,852,ranilrumesh@gmail.com
1/12/2020,1,Full Service,90,9500,23,Motor Car,JEEP,WRANGLER SPORT,CAT-8007,30394,2016,780,nuwanrathnayake@gmail.com
7/28/2019,1,Full Service,100,6500,24,Motor Coach,TATA,LPO1510,NA-5629,35604,2006,1680,eshansanje@gmail.com
12/2/2019,1,Full Service,60,4200,25,Dual Purpose Vehicle,NISSAN,KG-VWGE24,PA-2030,91280,1999,690,sarathsilva@gmail.com
11/8/2019,1,Full Service,90,4500,26,Motor Lorry,MAZDA,TITAN,GF-4310,110660,1995,1560,harshasilva@gmail.com
11/4/2019,1,Full Service,90,4800,27,Motor Car,MICRO,PANDA LC 1.0,CAF-3201,25193,2015,963,wasanaabekoon@gmail.com
1/23/2020,1,Full Service,110,5200,28,Motor Car,TOYOTA,PREMIO,CAD-1131,22007,2014,482,samankumara@gmail.com
1/7/2020,1,Full Service,70,4500,29,Motor Car,SUZUKI,ALTO LXI 800,CAD-3518,24834,2014,468,vishwakodikara@gmail.com
10/2/2019,1,Full Service,70,5000,30,Dual Purpose Vehicle,TOYOTA,KF-CR42V,PA-4317,50806,2001,502,ruwanmapalage@gmail.com
9/7/2019,1,Full Service,100,5500,31,Dual Purpose Vehicle,TATA,ACE EX2,DAA-3421,31632,2014,1258,madawapramod@gmail.com
6/13/2019,1,Full Service,30,1250,32,Motor Cycle,KINETIC,STARYKER,UT-5410,31879,2008,346,salanitharaka@gmail.com
7/8/2019,1,Full Service,45,2700,33,Motor Tricycle,BAJAJ,BAJAJ AUTO,GH-8614,83772,2001,989,chameshdenuwan@gmail.com
10/11/2019,1,Full Service,110,4800,34,Motor Lorry,MITSUBISHI,CANTER,GC-6729,71490,1995,1050,imeshasewwandi@gmail.com
1/3/2020,1,Full Service,120,6500,35,Motor Car,HONDA,CR-V 2.OL,CAA-6009,20882,2013,654,dilusharasanja@gmail.com
1/16/2020,1,Full Service,90,4800,36,Motor Car,TOYOTA,DAA-NHP10,CAD-5410,25994,2014,544,mahindajayawardane@gmail.com
12/3/2019,1,Full Service,80,4200,37,Motor Car,HONDA,DAA-ZE2,KP-9021,48596,2009,258,gamunuprera@gmail.com
11/7/2019,1,Full Service,90,4000,38,Land Vehicle,TAFE,45DI,RD-5622,22984,2013,195,samanalmeda@gmail.com
1/9/2020,1,Full Service,100,6000,39,Dual Purpose Vehicle,TOYOTA,HILUX,PK-6900,11978,2019,562,upulsomarathne@gmail.com
11/17/2019,1,Full Service,30,1500,40,Motor Cycle,ROZENDO,RN 90-2,TO-6744,34607,2006,956,samanalisamarasekara@gmail.com
1/14/2020,1,Full Service,140,8000,41,Motor Car,LAND ROVER,RANGE ROVER,CAA-6000,51667,2003,880,namalsarathchandra@gmail.com
11/3/2019,1,Full Service,120,6500,42,Motor Car,HONDA,CIVIC,CBA-5400,11805,2018,987,gaveentharindu@gmail.com
10/9/2019,1,Full Service,110,6000,43,Motor Coach,MITSUBISHI,ROSA BE64DJRMDA,ND-5699,49010,2013,2030,thakshilathennakoon@gmail.com
1/9/2020,1,Full Service,110,4800,44,Motor Car,HONDA,DAA-RU3-VEZEL,CAF-9000,39580,2014,960,nimalsamakoon@gmail.com
7/7/2019,1,Full Service,90,5000,45,Motor Car,MITSUBISHI,PAJERO,32-6729,103460,1989,710,mahasensilva@gmail.com
6/3/2019,1,Full Service,30,1250,46,Motor Cycle,BAJAJ,BAJAJ BOXER CT-DELUXE,HA-6733,101684,2002,682,darshanapathirana@gmail.com
1/3/2020,1,Full Service,100,5000,47,Motor Car,M.G,MG ZS1.0T AT TL3,CBF-6000,21617,2018,486,wasanathabandara@gmail.com
8/8/2019,1,Full Service,90,3500,48,Dual Purpose Vehicle,MITSUBISHI,L 200,254-0755,89989,2000,1420,isharamadushan@gmail.com
11/3/2019,1,Full Service,90,4000,49,Dual Purpose Vehicle,NISSAN,KR-AHR69 ATLAS,PR-1111,31296,2006,536,sadunidesilva@gmail.com
1/11/2020,1,Full Service,100,4500,50,Motor Car,TOYOTA,RUSH,KN-5444,42273,2007,495,francisroshan@gmail.com
10/3/2019,1,Full Service,110,4800,51,Motor Car,TOYOTA,DAA-NKE165 AXIO,CBA-7000,24460,2017,852,shiyansirisena@gmail.com
12/5/2010,1,Full Service,80,1250,52,Motor Car,NISSAN,SUNNY,KD-6444,56902,2003,741,nilanshatharaka@gmail.com
1/7/2020,1,Full Service,120,7500,53,Motor Car,JEEP,WRANGLER SPORT,CAR-1234,32644,2015,542,manjulajayasinghe@gmail.com
1/28/2020,1,Full Service,60,4500,54,Motor Car,SUZUKI,ALTO LXI 800,CAT-5600,28147,2016,489,sdkweerkoon@gmail.com
11/23/2019,1,Full Service,150,7500,55,Dual Purpose Vehicle,LANKA ASHOK LEYLAND,DOST LS,DAA-9000,40874,2013,633,rahaljanaka@gmail.com
9/15/2019,1,Full Service,60,4000,56,Motor Car,MARUTI,800,KA-2341,61560,2005,598,banukalakmal@gmail.com
12/20/2019,1,Full Service,75,5500,57,Motor Car,HONDA,VEZEL,CAA-5901,35827,2014,653,theekshanarathnayake@gmail.com
1/4/2020,1,Full Service,70,5500,58,Motor Car,TOYOTA,DBA-NGX50 C-HR,CBA-2422,28024,2017,752,thisarahjay@gmail.com
12/24/2019,1,Full Service,60,4800,59,Motor Car,NISSAN,ZAA AZEO LEAF,CAN-5160,37655,2014,590,keshanpathiraja@gmail.com
9/4/2019,1,Full Service,50,4200,60,Motor Car,NISSAN,CEFIRO,GR-5633,100323,1999,633,udithindrakantha@gmail.com
7/14/2019,1,Full Service,90,3500,61,Dual Purpose Vehicle,ISUZU,DOUBLE CAB,250-3462,94100,1997,501,nbabuddhini@gmail.com
10/4/2019,1,Full Service,90,5000,62,Dual Purpose Vehicle,JMC,JX1023DSER,PD-3421,71792,2011,666,tharushikawijerathne@gmail.com
10/18/2019,1,Full Service,110,5500,63,Light Motor Lorry,MITSUBISHI,FE73PE6R-CANTER,LJ-8941,69976,2011,1456,pavithrabandara@gmail.com
1/23/2020,1,Full Service,90,4800,64,Motor Car,TOYOTA,DAA-NHP10 AQUA,CAR-4001,37543,2015,745,dimuthuwijethunga@gmail.com
11/16/2019,1,Full Service,60,4500,65,Motor Car,SUZUKI,SWIFT VXI SUZUKI,KP-6711,64508,2011,965,arunabandra@gmail.com
10/15/2019,1,Full Service,60,4800,66,Motor Car,PERODUA,AM1ZG,KN-6522,54580,2010,436,lahirubimsara@gmail.com
12/10/2019,1,Full Service,60,4500,67,Motor Car,SUZUKI,DAA-MH44S WAGONR,CAT-9876,43279,2015,1025,sunilappuhami@gmail.com
10/4/2019,1,Full Service,50,4800,68,Motor Car,ZOTYE,NOMAD II,CAD-5433,41170,2014,588,ruchiralakmal@gmail.com
1/11/2020,1,Full Service,110,7000,69,Motor Car,LAND ROVER,DEFENDER 110 XSTD,CAM-1234,38485,2014,666,lalithsubasinghe@gmail.com
12/12/2019,1,Full Service,90,5500,70,Dual Purpose Vehicle,NISSAN,NAWARA D/C OUTLAW DC,PD-2030,87195,2007,762,wasanthjayasinghe@gmail.com
12/30/2019,1,Full Service,90,4800,71,Motor Car,TOYOTA,DBA-NZT260 ALLION,KT-4802,61528,2010,569,dinidubandara@gmail.com
11/29/2019,1,Full Service,60,4500,72,Motor Car,SUZUKI,ALTO LXI 800,CAD-6543,53059,2014,1114,kavindukarunanayake@gmail.com
9/19/2019,1,Full Service,70,5000,73,Motor Car,SSANG YONG,REXTON 270XDI,KL-4444,71983,2009,496,sadarukavinda@gmail.com
8/5/2007,1,Full Service,80,800,74,Motor Car,MITSUBISHI,J44,31-6926,24345,1981,378,nadeelshavinda@gmail.om
10/25/2019,1,Full Service,70,4500,75,Dual Purpose Vehicle,TOYOTA,HIACE PANEL VAN,PD-6757,66720,2008,971,charithjayakantha@gmail.com
1/5/2020,1,Full Service,110,9000,76,Motor Car,BMW,520DM SPORT,CAA-8000,53011,2013,648,pulasthiariyarathne@gmail.com
1/27/2020,1,Full Service,120,10500,77,Motor Car,MERCEDES BENZ,C350 SPORT PREMIUM,CAT-5555,30622,2015,745,malinthaprasad@gmail.com
10/5/2019,1,Full Service,100,4800,78,Dual Purpose Vehicle,TOYOTA,KF-CR42V,PA-5333,84930,2001,652,shalikawanasundara@gmail.com
6/1/2005,1,Full Service,90,1600,79,Dual Purpose Vehicle,NISSAN,HOMY,254-0040,40282,1995,854,rukshansenevirathne@gmail.com
12/5/2019,1,Full Service,70,4800,80,Motor Car,HONDA,INSIGHT,KO-6555,71314,2009,752,malakapasindu@gmail.com
11/12/2007,1,Full Service,70,2200,81,Motor Car,MITSUBISHI,MONTERO,KD-1234,16350,2004,688,ramidusandeepa@gmail.com
1/12/2020,1,Full Service,110,8500,82,Motor Car,BMW,520D SE AUTO,CAE-1000,40756,2014,466,zoysadesilva@gmail.com
9/15/2019,1,Full Service,60,4000,83,Dual Purpose Vehicle,TOYOTA,DBF-S402MTOWNACE,PK-6755,30464,2016,658,kgmalith@gmail.com
1/9/2020,1,Full Service,110,7000,84,Motor Car,AUDI,A1 SPORT BACK,CBE-5420,30503,2018,778,sadunmadushanka@gmail.com
12/13/2019,1,Full Service,60,4500,85,Motor Car,TOYOTA,DBA-KSP90 VITZ,CAE-5020,64165,2009,428,neeludaya@gmail.com
11/16/2007,1,Full Service,60,2200,86,Motor Car,TOYOTA,UA-ZZE122,KJ-7099,27651,2003,695,gamunupranavithana@gmail.com
9/6/2019,1,Full Service,60,4800,87,Dual Purpose Vehicle,TATA,ACE-EX,PT-4050,44192,2012,1288,nandalalkarunasekara@gmail.com
10/8/2019,1,Full Service,60,4500,88,Dual Purpose Vehicle,TOYOTA,QDF-GDH201V,PL-9000,25597,2018,623,denuwanrajapakshe@gmail.com
12/14/2019,1,Full Service,60,5000,89,Motor Car,TOYOTA,DAA NHP10 AQUA,CAM-9911,35672,2013,806,sajithmadura@gmail.com
11/6/2009,1,Full Service,90,2600,90,Dual Purpose Vehicle,NISSAN,NAVARA,PD-4992,13040,2007,741,rahulperera@gmail.com
12/2/2019,1,Full Service,100,5500,91,Dual Purpose Vehicle,TATA,ACE,PR-4004,57997,2011,1056,udayakumara@gmail.com
12/27/2019,1,Full Service,100,6500,92,Motor Car,MITSUBISHI,V98WLYXZSR MONTERO,CAB-7099,49504,2013,780,nuwanjayasen@gmail.com
1/27/2010,1,Full Service,110,3150,93,Motor Car,TOYOTA LEXUS,DBA-NZE141-AXIO,KL-1124,16140,2007,965,kusalranasinghe@gmail.com
2/7/2020,1,Full Service,60,4500,94,Motor Car,NISSAN,ZAA-AZEO LEAF,CAT-6009,54982,2014,744,gihanmendis@gmail.com
1/28/2020,1,Full Service,70,5500,95,Motor Car,TOYOTA,PRIUS ,CAB-6141,59225,2012,658,thumiduravindra@gmail.com
10/16/2019,1,Full Service,60,4800,96,Motor Car,PERODUA,VIVA-ELITE AMIZG,KN-7193,54515,2011,487,prasannajithabekoon@gmail.com
6/6/2019,1,Full Service,30,1750,97,Motor Cycle,BAJAJ,PULSER 135 LS,BAH-5610,53002,2013,598,raveeabenayake@gmail.com
1/18/2020,1,Full Service,140,8500,98,Motor Car,LAND ROVER,RANGE ROVER,CAR-8888,36606,2015,486,lalithfonseka@gmail.com
11/4/2013,1,Full Service,130,3700,99,Motor Car,MERCEDES BENZ,CLS350,CAA-1111,7249,2011,659,sugaththilakarathne@gmail.com
10/19/2010,1,Full Service,70,2600,100,Dual Purpose Vehicle,MITSUBISHI,L200-DIAMOND,PD-4932,8223,2008,748,maheshsamarakoon@gmail.com
2/1/2019,1,Full Service,100,9000,101,Motor Car,BMW,I 8,CBI-8008,19343,2018,,gihanrupasinghe@gmail.com
2/1/2019,1,Full Service,70,4800,102,Motor Car,SUZUKI,ALTO LXI 800,CAG-3412,35234,2015,,rusirumarapana@gmail.com
2/1/2008,1,Full Service,70,2200,103,Motor Car,PROTON,GEN-2,KD-9033,3450,2006,,anuradhapanagoda@gmail.com
2/1/2019,1,Full Service,90,6500,104,Motor Car,TOYOTA,HILUX REVO,PL-4444,20476,2017,,nilushidias@gmail.com
2/1/2019,1,Full Service,60,2750,105,Motor Tricycle,BAJAJ,RE,ABB-6656,34362,2015,,ruwankalpage@gmail.com
2/1/2019,1,Full Service,30,1700,106,Motor Cycle,HERO,PLEASURE,BBD-9080,45267,2014,,patalipremadasa@gmail.com
2/1/2019,1,Full Service,50,6600,107,Motor Coach,MITSUBISHI,PDG-BE63DE ROSA,ND-6526,78234,2011,,aravindarathnasekara@gmail.com
2/1/2019,1,Full Service,70,7200,108,Motor Car,LAND ROVER,RANGE ROVER HSE SD4,CBG-5555,21376,2018,,nipunaalwis@gmail.com
2/1/2019,1,Full Service,55,2700,109,Motor Tricycle,BAJAJ,RE,ABD-5426,35462,2015,,dilansenanayake@gmail.com
2/1/2008,1,Full Service,110,2800,110,Dual Purpose Vehicle,TOYOTA,KR-KDH200K,PF-3680,3890,2006,,shanesenarath@gmail.com
2/1/2019,1,Full Service,70,6500,111,Motor Car,TOYOTA,DAA-NHP10 AQUA,CAF-6389,67538,2014,,rakithasareppa@gmail.com
2/1/2019,1,Full Service,90,6600,112,Motor Car,HONDA,CRV,CBF-5000,27546,2018,,nuwanranaweera@gmail.com
2/1/2009,1,Full Service,110,2900,113,Dual Purpose Vehicle,TOYOTA,KR-KDH200V HIACE,PF-2030,5236,2007,,dilithmahanama@gmail.com
2/1/2013,1,Full Service,85,2200,114,Dual Purpose Vehicle,MAHINDRA,MAXXIMO,PR-3322,3234,2011,,sadunkumara@gmail.com
2/1/2019,1,Full Service,90,5500,115,Motor Car,M.G,MG ZS1.0T AT TL3,CBD-4525,20004,2018,,anuramapa34@gmail.com
9/12/2019,1,Full Service,100,9000,101,Motor Car,BMW,I 8,CBI-8008,25778,2018,786,gihanrupasinghe@gmail.com
1/1/2009,1,Full Service,70,2300,103,Motor Car,PROTON,GEN-2,KD-9033,7779,2006,481,anuradhapanagoda@gmail.com
11/2/2019,1,Full Service,90,6500,104,Motor Car,TOYOTA,HILUX REVO,PL-4444,27656,2017,718,nilushidias@gmail.com
7/2/2019,1,Full Service,60,2750,105,Motor Tricycle,BAJAJ,RE,ABB-6656,41700,2015,1223,ruwankalpage@gmail.com
6/2/2019,1,Full Service,30,1700,106,Motor Cycle,HERO,PLEASURE,BBD-9080,50300,2014,987,patalipremadasa@gmail.com
7/9/2019,1,Full Service,50,6600,107,Motor Coach,MITSUBISHI,PDG-BE63DE ROSA,ND-6526,92106,2011,2312,aravindarathnasekara@gmail.com
1/29/2009,1,Full Service,70,7200,108,Motor Car,LAND ROVER,RANGE ROVER HSE SD4,CBG-5555,29644,2018,689,nipunaalwis@gmail.com
6/8/2019,1,Full Service,55,2700,109,Motor Tricycle,BAJAJ,RE,ABD-5426,40849,2015,1036,dilansenanayake@gmail.com
12/1/2009,1,Full Service,110,3000,110,Dual Purpose Vehicle,TOYOTA,KR-KDH200K,PF-3680,8822,2006,548,shanesenarath@gmail.com
9/1/2019,1,Full Service,70,6500,111,Motor Car,TOYOTA,DAA-NHP10 AQUA,CAF-6389,74522,2014,873,rakithasareppa@gmail.com
1/23/2020,1,Full Service,90,6600,112,Motor Car,HONDA,CRV,CBF-5000,36575,2018,711,nuwanranaweera@gmail.com
11/24/2009,1,Full Service,110,3100,113,Dual Purpose Vehicle,TOYOTA,KR-KDH200V HIACE,PF-2030,9997,2007,529,dilithmahanama@gmail.com
8/25/2020,1,Full Service,85,5200,114,Dual Purpose Vehicle,MAHINDRA,MAXXIMO,PR-3322,78153,2011,1129,sadunkumara@gmail.com
12/26/2019,1,Full Service,90,5500,115,Motor Car,M.G,MG ZS1.0T AT TL3,CBD-4525,28795,2018,745,anuramapa34@gmail.com
12/3/2018,1,Full Service,30,1750,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,41430,2011,570,nbachalaka@gmail.com
6/4/2019,1,Full Service,30,1800,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,44550,2011,520,nbachalaka@gmail.com
12/5/2019,1,Full Service,30,1850,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,48084,2011,589,nbachalaka@gmail.com
6/6/2020,1,Full Service,30,1900,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,51732,2011,608,nbachalaka@gmail.com
12/4/2020,1,Full Service,30,1950,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,55122,2011,565,nbachalaka@gmail.com
6/6/2021,1,Full Service,30,2000,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,58896,2011,629,nbachalaka@gmail.com
12/9/2021,1,Full Service,30,2050,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,62268,2011,562,nbachalaka@gmail.com
6/6/2022,1,Full Service,30,2100,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,66672,2011,722,nbachalaka@gmail.com
11/3/2022,1,Full Service,30,2150,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,70404,2011,622,nbachalaka@gmail.com
6/4/2019,1,Full Service,30,2200,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,41430,2011,570,nbachalaka@gmail.com
12/5/2019,1,Full Service,30,2250,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,44550,2011,520,nbachalaka@gmail.com
6/6/2020,1,Full Service,30,2300,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,48084,2011,589,nbachalaka@gmail.com
12/4/2020,1,Full Service,30,2350,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,51732,2011,608,nbachalaka@gmail.com
6/6/2021,1,Full Service,30,2400,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,55122,2011,565,nbachalaka@gmail.com
12/9/2021,1,Full Service,30,2450,1,Motor Cycle,BAJAJ,DISCOVER 150-DIS,XG - 6466,58896,2011,629,nbachalaka@gmail.com
......@@ -60,3 +60,18 @@ class MyForm3(forms.Form):
#Customer Frequency
class MyForm(forms.Form):
customerid = forms.IntegerField(label='Customer ID', widget=forms.TextInput(attrs={'class': 'input_field', 'required': True}))
#Maitenance Date
MODE_SERVICES = [
('0', 'Select Service Type'),
('1', 'Full Service')
]
class MyFormServices(forms.Form):
customerid = forms.IntegerField(label='Enter Customer ID ')
Vnumber = forms.CharField(label='Enter Vehicle Number ')
ServiceType = forms.IntegerField(label="Select Service", widget=forms.Select(choices=MODE_SERVICES))
......@@ -18,5 +18,7 @@ urlpatterns = [
path('Result/', responseapp_views.Forecasting),
path('Customer_Data/', responseapp_views.Customer_Data),
path('Customer_Frequency/', responseapp_views.Customer_Frequency),
path('MaintainData/', responseapp_views.MaintainData),
path('NextMaintain/', responseapp_views.NextMaintain),
path('', admin.site.urls),
]
\ No newline at end of file
......@@ -4,8 +4,9 @@ from django.template import loader
from django.http import HttpResponse
from sklearn.tree import DecisionTreeClassifier
from User.forms import MyForm,MyForm2,MyForm3,MyForm4,MyForm5
from User.forms import MyForm,MyForm2,MyForm3,MyForm4,MyForm5,MyFormServices
from django.contrib.auth import authenticate, login
from sklearn.linear_model import LogisticRegression
from User import models as Umodels
from django.http import HttpResponseRedirect
from django.contrib import messages
......@@ -274,22 +275,6 @@ def Forecasting(request):
# End Demand Forecasting Machine Learning Model
def AdminLogin(request):
if request.method == 'POST':
myForm = MyForm2(request.POST)
if myForm.is_valid():
UserName = myForm.cleaned_data['UserName']
Password = myForm.cleaned_data['Password']
gotdata = Umodels.loginDataAdmin.objects.all().filter(UserName=UserName , Password=Password).count()
if gotdata > 0:
return render(request, 'Admin/AdminHome.html');
else:
messages.success(request, 'Login Info Not Found , Please Check Your UserName and Password')
return HttpResponseRedirect(request.path_info)
else:
form = MyForm2()
return render(request, 'Admin/AdminLogin.html', {'form':form});
# Customer Data
def Customer_Data(request):
data = pd.read_csv('Data/CustomerDatasetNew_4.csv')
......@@ -426,8 +411,6 @@ def Customer_Frequency(request):
form = MyForm()
return render(request, 'Admin/Customer_Frequency.html', {'form': form});
def AdminHome(request):
return render(request,'Admin/AdminHome.html')
# tensorflow sound detection model
# import tensorflow as tf
......@@ -487,6 +470,239 @@ def AdminHome(request):
# model.save('./model.h5')
#Next Maintain Date
def NextMaintain(request):
if request.method == 'POST':
myForm = MyFormServices(request.POST)
#myForm3 = MyForm3(request.POST or None)
# price prediction with logitic
if myForm.is_valid():
customerid = myForm.cleaned_data['customerid']
checkValid = pd.read_csv('Data/MaintainData.csv')
checkValid = checkValid[(checkValid["Customer"] == customerid)]
print("Validation----------------------")
checkValid = (checkValid.shape[0])
if (checkValid > 0):
ServiceType = myForm.cleaned_data['ServiceType']
customerid = myForm.cleaned_data['customerid']
Vnumber = myForm.cleaned_data['Vnumber']
df = pd.read_csv('Data/MaintainData.csv')
df = df[(df["Customer"] == customerid)]
df = df[(df["Service"] == ServiceType)]
df = df[(df["VehicleNumber"] == Vnumber)]
df.shape
dataset = df.head()
# print(dataset)
# do same but attach it to the dataframe
# df['Different'] = df.apply(lambda row: 45, axis=1)
df['a'] = pd.to_datetime(df['Date']).diff()
df['a'] = df['a'].astype(str).str.replace("days", "")
df['a'] = df['a'].astype(str).str.replace("NaT", "30")
print(df)
X = df[['TakenTime', 'Price', 'MeterReading']]
y = df['a']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0)
logreg = LogisticRegression()
logreg.fit(X_train, y_train)
Accuracy = logreg.score(X_test, y_test)
print(Accuracy)
MeterReading = df['MeterReading'].mean()
# print(MeterReading)
new_input = [[28, 200, MeterReading]]
pred = logreg.predict(new_input)
pred = int(pred)
print("--------------Customer will come after days---------------------")
# print(pred)
startdate = "7/7/2021"
enddate = pd.to_datetime(startdate) + pd.DateOffset(days=pred)
print(enddate)
df = df[:1]
# data = data.to_html()
json_records = df.reset_index().to_json(orient='records')
arr = []
arr = json.loads(json_records)
if (arr == [] ):
# data = data.to_html()
json_records = df.reset_index().to_json(orient='records')
arr = []
arr = json.loads(json_records)
else:
a = 2
form = MyFormServices()
enddate = enddate.strftime("%d/%m/%Y")
# parts = enddate.split(' ')
# message_count = int(parts[0])
# print(message_count)
# ARIMA SECTION
# inputdate = '12/01/2020'
# HERE I USE AN EXMAMPLE FROM MATPLOTLIB SITE
# Data for plotting
# t = np.arange(0.0, 2.0, 0.01)
# s = 1 + np.sin(2 * np.pi * t)
import numpy as np
import matplotlib.pyplot as plt
df2 = pd.read_csv('Data/MaintainData.csv')
df2 = df2[(df2["Customer"] == customerid)]
df2 = df2[(df2["Service"] == ServiceType)]
df = df2[(df2["VehicleNumber"] == Vnumber)]
#df.drop('Service','ServiceName','TakenTime','Customer','VehicleType','VehicleMake','VehicleModel','VehicleNumber','MeterReading','VehicleManufacturedYear','AvergeUsage','mailID', axis=1, inplace=True)
df = df.drop(columns=['Service','ServiceName','TakenTime','Customer','VehicleType','VehicleMake','VehicleModel','VehicleNumber','MeterReading','VehicleManufacturedYear','AvergeUsage','mailID', ])
df.head()
## Cleaning up the data
df.columns = ["Date", "Price"]
rrr = df.head()
## Drop last 2 rows
#df.drop(106, axis=0, inplace=True)
#df.tail()
# df.drop(105, axis=0, inplace=True)
# df.tail()
# Convert Date into Datetime
df['Date'] = pd.to_datetime(df['Date'])
df.head()
df.set_index('Date', inplace=True)
df.head()
df.describe()
# df.plot()
# plt.show()
### Testing For Stationarity
from statsmodels.tsa.stattools import adfuller
test_result = adfuller(df['Price'])
def adfuller_test(Price):
result = adfuller(Price)
labels = ['ADF Test Statistic', 'p-value', '#Lags Used', 'Number of Observations Used']
for value, label in zip(result, labels):
print(label + ' : ' + str(value))
if result[1] <= 0.05:
print(
"strong evidence against the null hypothesis(Ho), reject the null hypothesis. Data has no unit root and is stationary")
else:
print(
"weak evidence against null hypothesis, time series has a unit root, indicating it is non-stationary ")
adfuller_test(df['Price'])
##Differencing
df['Price First Difference'] = df['Price'] - df['Price'].shift(1)
df['Price'].shift(1)
df['Seasonal First Difference'] = df['Price'] - df['Price'].shift(12)
# df.head(14)
## Again test dickey fuller test
adfuller_test(df['Seasonal First Difference'].dropna())
import statsmodels.api as sm
# For non-seasonal data
# p=1, d=1, q=0 or 1
# from statsmodels.tsa.arima_model import ARIMA
from statsmodels.tsa.arima.model import ARIMA
model = ARIMA(df['Price'], order=(1, 1, 1))
model_fit = model.fit()
# model_fit.summary()
# df['forecast'] = model_fit.predict(start=8, end=8, dynamic=True)
# df[['Price','forecast']].plot(figsize=(12,8))
model = sm.tsa.statespace.SARIMAX(df['Price'], order=(1, 1, 1), seasonal_order=(1, 1, 1, 12))
results = model.fit()
from pandas.tseries.offsets import DateOffset
future_dates = [df.index[-1] + DateOffset(months=x) for x in range(0, 150)]
future_datest_df = pd.DataFrame(index=future_dates[1:], columns=df.columns)
# future_datest_df.tail()
future_df = pd.concat([df, future_datest_df])
print(future_df)
Datefinding = int(df.shape[1] + 15)
print(Datefinding)
forecastedPrice = future_df['forecast'] = results.predict(start=Datefinding, end=Datefinding, dynamic=True)
print("its Arima output")
forecastedPrice = (forecastedPrice.to_string())
print(forecastedPrice[5:13])
else:
form = MyFormServices()
context = {'form': form,'d': "CUSTOMER NOT FOUND"}
return render(request, 'Admin/NextMaintain.html', context)
context = { 'form': form, 'd': enddate , 'forecastedPrice':' Rs ' + forecastedPrice[5:13] }
return render(request, 'Admin/NextMaintain.html', context)
else:
form = MyFormServices()
return render(request, 'Admin/NextMaintain.html', {'form': form });
def MaintainData(request):
data1 = pd.read_csv('Data/MaintainData.csv')
finalpt = data1.head(10)
json_records = finalpt.reset_index().to_json(orient='records')
arr = []
arr = json.loads(json_records)
context = {'d': arr}
return render(request, 'Admin/MaintainData.html',context);
def AdminLogin(request):
if request.method == 'POST':
myForm = MyForm2(request.POST)
if myForm.is_valid():
UserName = myForm.cleaned_data['UserName']
Password = myForm.cleaned_data['Password']
gotdata = Umodels.loginDataAdmin.objects.all().filter(UserName=UserName , Password=Password).count()
if gotdata > 0:
return render(request, 'Admin/AdminHome.html');
else:
messages.success(request, 'Login Info Not Found , Please Check Your UserName and Password')
return HttpResponseRedirect(request.path_info)
else:
form = MyForm2()
return render(request, 'Admin/AdminLogin.html', {'form':form});
def AdminHome(request):
return render(request,'Admin/AdminHome.html')
......
No preview for this file type
{% extends 'Admin/Sidebar2.html' %}
{% block content %}
{% load widget_tweaks %}
{%load static%}
<head>
<!-- Font special for pages-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">
<!-- Main CSS-->
<link href="{% static "css/main.css" %}"rel="stylesheet" media="all">
</head>
<div class=" >
<div class="wrapper wrapper 0">
<div style="margin-left: 0px;" class="card card-5">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</ul>
{% endif %}
<div class="card-heading">
<h2 class="title"> MAINTAINS DATA </h2>
</div>
<div id="myDiv">
<div id="div_print">
<div class="card card-body printableArea">
<div class="container" style="overflow-x:auto;">
Customer Maintains Data
<table class="table table-striped">
<thead>
<tr>
<th> Service Date </th>
<th> Service </th>
<th> Taken Time </th>
<th> Price </th>
<th> Customer </th>
<th> Vehicle Type </th>
<th> Vehicle Make </th>
<th> Vehicle Model </th>
<th> Vehicle Number </th>
<th> Meter Reading </th>
<th> Vehicle Manufactured Year </th>
<th> Average Usage </th>
</tr>
</thead>
<tbody>
{% if d %}
{% for i in d %}
<tr>
<td>{{i.Date}}</td>
<td>{{i.ServiceName}}</td>
<td>{{i.TakenTime}}</td>
<td>{{i.Price}}</td>
<td>{{i.Customer}}</td>
<td>{{i.VehicleType}} </td>
<td>{{i.VehicleMake}} </td>
<td>{{i.VehicleModel}} </td>
<td>{{i.VehicleNumber}} </td>
<td>{{i.MeterReading}} </td>
<td>{{i.VehicleManufacturedYear}} </td>
<td>{{i.AverageUsage}} </td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div></div>
<script language="javascript">
function printdiv(printpage) {
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
var newstr = document.all.item(printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr + newstr + footstr;
window.print();
document.body.innerHTML = oldstr;
location.reload();
return false;
}
</script>
<div class="card-body">
<input name="b_print" type="button" class="btn btn-primary btn-print" onClick="printdiv('div_print');" value=" Print ">
</div>
<div class="alert alert-primary" role="alert" >© SMART SERVICE STATION 2022 </div>
</div>
</div>
</div>
</div>
{% endblock content %}
......@@ -15,14 +15,12 @@
<div style="margin-left: 0px;" class="card card-5">
<br/><br/>
{% if messages %}
<div class="alert alert-danger" role="alert">
<ul class="messages">
{% for message in messages %}
{% if message.tags %} {% endif %} {{ message }}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</div>
</ul>
{% endif %}
<div class="card-heading">
......@@ -31,37 +29,50 @@
<div class="card-body">
<form action="/Admin/Predicted_Date/" method="post">
<form action="/Admin/NextMaintain/" method="post">
{% csrf_token %}
<table class="table table-light">
{{form3.as_table}}
{{form.as_table}}
</table>
<input type="submit" value="NEXT MAINTAIN DATE" class="btn btn--radius-2 btn" style="background:#02111f"/>
<input type="submit" value="NEXT MAINTAIN DATE" class="btn btn--radius-2 btn-primary"/>
<div role="alert">
<center><h3> {{ d }} </h3></center>
</div>
</form>
<br>
<center> <div class="alert alert-success">
{{ d }}
{{ forecastedPrice }}
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
</div> </center>
</div>
</div>
</div><div class="alert alert-primary fixed-bottom mb-0 text-center" style="background: #747578; border: none; color: white;" role="alert" > © SERVPORT 2022 </div>
</div>
<div class="alert alert-primary" role="alert" >© SMART SERVICE STATION 2022 </div>
</div>
{% endblock content %}
{% extends 'Admin/Sidebar2.html' %}
{% block content %}
{% load widget_tweaks %}
{%load static%}
<head>
<!-- Font special for pages-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">
<!-- Main CSS-->
<link href="{% static "css/main.css" %}"rel="stylesheet" media="all">
</head>
<center>
<div class=">
<div class="wrapper wrapper--w790">
<div style="margin-left: 0px;" class="card card-5">
<div class="card-heading">
<h2 class="title"> Next Service Date </h2>
</div>
{% autoescape off %}
<div>{{ g }}</div>
{% endautoescape %}
<div class="alert alert-danger" role="alert">
Next Service Date is : {{ d }}
<br>
</div>
</div>
</div>
</div>
{% endblock content %}
......@@ -188,8 +188,8 @@ body{
<li><a style="text-decoration:none;" href="/Admin/PurchaseHistory/"><i class="fas fa-cubes"></i> Purchase History </a>
<li><a style="text-decoration:none;" href="/Admin/Customer_Data/"><i class="fas fa-user"></i> Customer Data </a>
<li><a style="text-decoration:none;" href="/Admin/Customer_Frequency/"><i class="fas fa-chart-bar"></i> Customer Frequency </a>
<li><a style="text-decoration:none;" href="/Admin/Next_Maintain/"><i class="fas fa-user"></i> Next Service Date </a>
<li><a style="text-decoration:none;" href="/Admin"><i class="fas fa-chart-bar"></i> Vehicle Maintenance Data </a>
<li><a style="text-decoration:none;" href="/Admin/NextMaintain/"><i class="fas fa-user"></i> Next Service Date </a>
<li><a style="text-decoration:none;" href="/Admin/MaintainData/"><i class="fas fa-chart-bar"></i> Maintenance Data </a>
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment