From 8f7dbe97c18e4c9337c65471520874a44d99f3c4 Mon Sep 17 00:00:00 2001 From: swarn Date: Thu, 8 Jun 2017 17:11:36 +0530 Subject: [PATCH] fuel order complete, fixed bugs on ramp fee manager --- app/css/custom.css | 16 +++ app/index.html | 6 ++ app/js/app.constant.js | 2 +- app/js/app.js | 8 +- app/partials/ContactView/ContactView.html | 2 + app/partials/FuelVendors/FuelVendors.html | 2 +- app/partials/customers/customers.html | 2 + .../enterFuelOrder/enterFuelOrder.controller.js | 70 ++++++++++++ app/partials/enterFuelOrder/enterFuelOrder.html | 117 +++++++++++++++++++++ .../enterFuelOrder/enterFuelOrder.service.js | 86 +++++++++++++++ app/partials/fuelManager/fuelManager.controller.js | 20 +++- app/partials/fuelManager/fuelManager.html | 20 ++-- app/partials/login/login.service.js | 4 +- app/partials/main/main.html | 3 + app/partials/viewcontact/viewcontact.controller.js | 5 +- app/partials/viewcontact/viewcontact.html | 8 +- bower.json | 3 +- 17 files changed, 351 insertions(+), 23 deletions(-) create mode 100644 app/partials/enterFuelOrder/enterFuelOrder.controller.js create mode 100644 app/partials/enterFuelOrder/enterFuelOrder.html create mode 100644 app/partials/enterFuelOrder/enterFuelOrder.service.js diff --git a/app/css/custom.css b/app/css/custom.css index 2b9cc5b..4ec2b1c 100644 --- a/app/css/custom.css +++ b/app/css/custom.css @@ -705,4 +705,20 @@ font-size: 10px !important; } .recordCountSelect{ background-color: #fff; +} +.exportBtn{ + margin-top: 20px; +} +.select2-container .select2-choice{ + height: 34px !important; + padding: 6px 12px !important; + border: 1px solid #ccc !important; + background-image: none !important; +} +.select2-container .select2-choice .select2-arrow{ + border-left: none !important; + background: transparent !important; +} +.select2-container .select2-choice{ + padding: 2px 12px !important; } \ No newline at end of file diff --git a/app/index.html b/app/index.html index ef93cfa..e7a8b1b 100644 --- a/app/index.html +++ b/app/index.html @@ -42,6 +42,8 @@ + + @@ -78,6 +80,8 @@ + + @@ -139,6 +143,7 @@ +
@@ -175,6 +180,7 @@ + diff --git a/app/js/app.constant.js b/app/js/app.constant.js index cdda7f3..8521ccf 100644 --- a/app/js/app.constant.js +++ b/app/js/app.constant.js @@ -5,7 +5,7 @@ .constant('BASE_URL', { url: 'http://54.149.169.33:8080/ws' - //url: 'http://192.168.1.175:8080/ws' + //url: 'http://192.168.2.178:8080/ws' //url: 'http://192.168.1.8:8080/ws' }) diff --git a/app/js/app.js b/app/js/app.js index 4174df4..684208e 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -1,7 +1,7 @@ 'use strict'; - angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable', 'ui.toggle', 'ngTable']) + angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable', 'ui.toggle', 'ngTable', 'ui.select2']) .config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.withCredentials = true; @@ -240,6 +240,12 @@ controller: "viewVendorContactController" }) + .state("app.enterFuelOrder", { + url: "/enterFuelOrder", + templateUrl: "partials/enterFuelOrder/enterFuelOrder.html", + controller: "enterFuelOrderController" + }) + } ]) diff --git a/app/partials/ContactView/ContactView.html b/app/partials/ContactView/ContactView.html index 4620c5f..111b0d4 100644 --- a/app/partials/ContactView/ContactView.html +++ b/app/partials/ContactView/ContactView.html @@ -61,6 +61,8 @@ + + - +
@@ -135,7 +128,8 @@ Reported On: - {{jets.rampFeesAndAvoidance.reportedOn}} + + {{todayDateNew}} diff --git a/app/partials/login/login.service.js b/app/partials/login/login.service.js index 56aaddd..eb3801d 100644 --- a/app/partials/login/login.service.js +++ b/app/partials/login/login.service.js @@ -89,10 +89,12 @@ authService.getUser = function () { return JSON.parse(window.localStorage.getItem("currentUser")); } - + authService.setUser = function (authData) { + console.log('authdata', authData); window.localStorage.setItem("currentUser", JSON.stringify(authData.userProfile.userType)); window.localStorage.setItem("userProfileId", JSON.stringify(authData.userProfile.id)); + window.localStorage.setItem('currentUserName', JSON.stringify(authData.userProfile.firstName +' '+ authData.userProfile.lastName)); if(authData.userProfile.userType.type == 'ADMIN' || authData.userProfile.userType.type == 'FBO'){ role = USER_ROLES.admin; $rootScope.isAuthenticated = true; diff --git a/app/partials/main/main.html b/app/partials/main/main.html index a52d72b..972e8e9 100644 --- a/app/partials/main/main.html +++ b/app/partials/main/main.html @@ -55,6 +55,9 @@
diff --git a/bower.json b/bower.json index 702a37d..1e3b175 100644 --- a/bower.json +++ b/bower.json @@ -33,6 +33,7 @@ "angular-cookies": "~1.6.4", "angular-resource": "~1.6.4", "angular-xeditable": "~0.7.1", - "angular-bootstrap-toggle": "~0.1.2" + "angular-bootstrap-toggle": "~0.1.2", + "angular-ui-select2": "^0.0.5" } } -- 2.0.0