From 98b689c3af12f8702c250e987057ff62d9d5e047 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 15 Oct 2018 09:35:47 +0530 Subject: [PATCH 1/2] select dropdown changes : ps --- ng6-seed/package-lock.json | 28 +++- ng6-seed/package.json | 1 - .../branch-dialog/branch-dialog.component.ts | 2 +- ...ndustry_classification-list.component.html | 8 +- .../settings/masters/masters.component.html | 120 +++++++------- .../app/settings/masters/masters.component.ts | 155 +++++++++++------- .../app/settings/masters/model/Dbmaster.ts | 7 + .../pd-team-list/pd-team-list.component.html | 14 +- 8 files changed, 199 insertions(+), 136 deletions(-) create mode 100644 ng6-seed/src/app/settings/masters/model/Dbmaster.ts diff --git a/ng6-seed/package-lock.json b/ng6-seed/package-lock.json index 7119b427d..f30e1a2fb 100644 --- a/ng6-seed/package-lock.json +++ b/ng6-seed/package-lock.json @@ -4294,12 +4294,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4314,17 +4316,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -4441,7 +4446,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -4453,6 +4459,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -4467,6 +4474,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -4474,12 +4482,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -4498,6 +4508,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -4578,7 +4589,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -4590,6 +4602,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -4711,6 +4724,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", diff --git a/ng6-seed/package.json b/ng6-seed/package.json index 06740755f..77f4ff8ef 100644 --- a/ng6-seed/package.json +++ b/ng6-seed/package.json @@ -88,4 +88,3 @@ "typescript": "^2.7.2" } } - \ No newline at end of file diff --git a/ng6-seed/src/app/settings/masters/component/branch/branch-dialog/branch-dialog.component.ts b/ng6-seed/src/app/settings/masters/component/branch/branch-dialog/branch-dialog.component.ts index 4b051e7fc..aa157394c 100644 --- a/ng6-seed/src/app/settings/masters/component/branch/branch-dialog/branch-dialog.component.ts +++ b/ng6-seed/src/app/settings/masters/component/branch/branch-dialog/branch-dialog.component.ts @@ -58,7 +58,7 @@ export class BranchDialogComponent implements OnInit { } }, error => this.errorMessage = error); - + } /** Branch Form Datas*/ diff --git a/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html b/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html index 5925987f3..aae6029fc 100644 --- a/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html @@ -43,7 +43,7 @@ - + diff --git a/ng6-seed/src/app/settings/masters/masters.component.html b/ng6-seed/src/app/settings/masters/masters.component.html index c1825639c..541e9da76 100644 --- a/ng6-seed/src/app/settings/masters/masters.component.html +++ b/ng6-seed/src/app/settings/masters/masters.component.html @@ -11,87 +11,91 @@ [placeholderLabel]="'Find Masters...'" [noEntriesFoundLabel]="'no matching found'"> - + + + {{master.master_name}} - You must Pickup Master Name. + -
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+ + +
-
- -
-
- -
-
- -
-
- -
-
- - -
-
- -
-
- -
-
+
-
- - +
+
-
- +
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+
- - \ No newline at end of file diff --git a/ng6-seed/src/app/settings/masters/masters.component.ts b/ng6-seed/src/app/settings/masters/masters.component.ts index 3c840fa23..032d99b8c 100644 --- a/ng6-seed/src/app/settings/masters/masters.component.ts +++ b/ng6-seed/src/app/settings/masters/masters.component.ts @@ -11,33 +11,26 @@ import { take, takeUntil } from 'rxjs/operators'; import { MastersService } from './../service/masters/masters.service' + + import {Dbmaster } from './model/Dbmaster'; export interface Master { id: string; name: string; } - // export interface Master { - // master_id: string; - // master_name: string; - // } - - - -// export interface masterArray { -// value: string; -// viewValue: string; -// } - @Component({ selector: 'app-masters', templateUrl: './masters.component.html', styleUrls: ['./masters.component.scss'] }) export class MastersComponent implements OnInit { - + + //public dbmasters: Dbmaster = new Dbmaster(); + private dbmasters: Dbmaster[]; + //public arr: Array<{master_id: number, master_name: string}>; /* Normal Search Code - pickUpMasterData : string; + pickUpMasterData : string constructor() {} @@ -86,7 +79,7 @@ export class MastersComponent implements OnInit { /** control for the MatSelect filter keyword */ public masterFilterCtrl: FormControl = new FormControl(); - + //masters: Master[]; constructor(private _MastersService: MastersService) @@ -98,38 +91,38 @@ export class MastersComponent implements OnInit { } /** list of masters */ - - private masters: Master[] = [ - {id: 'master-1',name: 'Industry Classfication'}, - {id: 'master-2',name: 'Branch'}, - {id: 'master-3',name: 'Title'}, - {id: 'master-4',name: 'City'}, - {id: 'master-5',name: 'States'}, - {id: 'master-6',name: 'Regions'}, - {id: 'master-7',name: 'Relation Ship'}, - {id: 'master-8',name: 'Product'}, - {id: 'master-9',name: 'Sub Product'}, - {id: 'master-10',name: 'Occupation of Non earning members'}, - {id: 'master-11',name: 'Type of activity'}, - {id: 'master-12',name: 'Unit of Measurement'}, - {id: 'master-13',name: 'Frequency'}, - {id: 'master-14',name: 'Comments on locality'}, - {id: 'master-15',name: 'Customer Behaviour'}, - {id: 'master-16',name: 'Customer Segment'}, - {id: 'master-17',name: 'Designation'}, - {id: 'master-18',name: 'Lender Hierarchy'}, - {id: 'master-19',name: 'Company Details'}, - {id: 'master-20',name: 'Question Category'}, - {id: 'master-21',name: 'PD Type'}, - {id: 'master-22',name: 'Approach to PD location'}, - {id: 'master-23',name: 'PD Allocation Type'}, - {id: 'master-24',name: 'PD Notification'}, - // {id: 'master-25',name: 'PD Office Lender'}, - // {id: 'master-25',name: 'PD Team'}, - ]; + + // private masters: Master[] = [ + // {id: 'master-1',name: 'Industry Classfication'}, + // {id: 'master-2',name: 'Branch'}, + // {id: 'master-3',name: 'Title'}, + // {id: 'master-4',name: 'City'}, + // {id: 'master-5',name: 'States'}, + // {id: 'master-6',name: 'Regions'}, + // {id: 'master-7',name: 'Relation Ship'}, + // {id: 'master-8',name: 'Product'}, + // {id: 'master-9',name: 'Sub Product'}, + // {id: 'master-10',name: 'Occupation of Non earning members'}, + // {id: 'master-11',name: 'Type of activity'}, + // {id: 'master-12',name: 'Unit of Measurement'}, + // {id: 'master-13',name: 'Frequency'}, + // {id: 'master-14',name: 'Comments on locality'}, + // {id: 'master-15',name: 'Customer Behaviour'}, + // {id: 'master-16',name: 'Customer Segment'}, + // {id: 'master-17',name: 'Designation'}, + // {id: 'master-18',name: 'Lender Hierarchy'}, + // {id: 'master-19',name: 'Company Details'}, + // {id: 'master-20',name: 'Question Category'}, + // {id: 'master-21',name: 'PD Type'}, + // {id: 'master-22',name: 'Approach to PD location'}, + // {id: 'master-23',name: 'PD Allocation Type'}, + // {id: 'master-24',name: 'PD Notification'}, + // // {id: 'master-25',name: 'PD Office Lender'}, + // // {id: 'master-25',name: 'PD Team'}, + // ]; /** list of masters filtered by search keyword */ - public filteredMasters: ReplaySubject = new ReplaySubject(1); + public filteredMasters: ReplaySubject = new ReplaySubject(1); @ViewChild('singleSelect') singleSelect: MatSelect; @@ -139,13 +132,24 @@ export class MastersComponent implements OnInit { ngOnInit() { - // this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe((data:Master[]) => { - // this.masters = data; - // console.log(this.masters); - // }); - console.log(this.masters); + this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe(data => { + this.dbmasters = data.records; + this.dbmasters = this.dbmasters.sort((a, b) => { + if (a.master_name > b.master_name) { + return 1; + } + if (a.master_name < b.master_name) { + return -1; + } + return 0; + }); + this.filteredMasters.next(this.dbmasters.slice()); + }); + + //console.log(this.dbmasters.master_id); + // load the initial master list - this.filteredMasters.next(this.masters.slice()); + // listen for search field value changes this.masterFilterCtrl.valueChanges @@ -158,6 +162,7 @@ export class MastersComponent implements OnInit { ngAfterViewInit() { //this.setInitialValue(); + //console.log('ngafterViewInit',this.dbmasters); } ngOnDestroy() { @@ -182,21 +187,57 @@ export class MastersComponent implements OnInit { // } private filterMasters() { - if (!this.masters) { - return; + // this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe(data => { + // this.dbmasters = data.records; + // if (!this.dbmasters) { + // return; + // } + //console.log(this.dbmasters); + if(!this.dbmasters){ + return; } + + // get the search keyword let search = this.masterFilterCtrl.value; if (!search) { - this.filteredMasters.next(this.masters.slice()); + this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe(data => { + this.dbmasters = data.records; + this.dbmasters = this.dbmasters.sort((a, b) => { + if (a.master_name > b.master_name) { + return 1; + } + if (a.master_name < b.master_name) { + return -1; + } + return 0; + }); + this.filteredMasters.next(this.dbmasters.slice()); + }); + + //this.filteredMasters.next(this.masters.slice()); return; } else { search = search.toLowerCase(); } // filter the masters - this.filteredMasters.next( - this.masters.filter(master => master.name.toLowerCase().indexOf(search) > -1) - ); + this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe(data => { + this.dbmasters = data.records; + this.dbmasters = this.dbmasters.sort((a, b) => { + if (a.master_name > b.master_name) { + return 1; + } + if (a.master_name < b.master_name) { + return -1; + } + return 0; + }); + //this.filteredMasters.next(this.dbmasters.slice()); + this.filteredMasters.next( + this.dbmasters.filter(master => master.master_name.toLowerCase().indexOf(search) > -1) + ); + }); + } } diff --git a/ng6-seed/src/app/settings/masters/model/Dbmaster.ts b/ng6-seed/src/app/settings/masters/model/Dbmaster.ts new file mode 100644 index 000000000..ca8195cc2 --- /dev/null +++ b/ng6-seed/src/app/settings/masters/model/Dbmaster.ts @@ -0,0 +1,7 @@ +export class Dbmaster { + + master_id: any; + master_name: any; + constant_name: any; + +} diff --git a/ng6-seed/src/app/settings/pd-team/pd-team-list/pd-team-list.component.html b/ng6-seed/src/app/settings/pd-team/pd-team-list/pd-team-list.component.html index 67e0462a9..ad61f252f 100644 --- a/ng6-seed/src/app/settings/pd-team/pd-team-list/pd-team-list.component.html +++ b/ng6-seed/src/app/settings/pd-team/pd-team-list/pd-team-list.component.html @@ -12,22 +12,16 @@
-
+
- -
-<<<<<<< HEAD - -======= + +
+
-
- ->>>>>>> 3ad6314e0e602cb2c232acb142715009dca646f9 -
From f40b8b4997c74fe358c25b41f5e1e558c66841ff Mon Sep 17 00:00:00 2001 From: saravanakumarkandasami Date: Mon, 15 Oct 2018 17:57:57 +0530 Subject: [PATCH 2/2] Dashboard and Master menu --- .../app/dashboard/dashboard.component.html | 157 +++---------- .../src/app/dashboard/dashboard.component.ts | 75 ++++++- .../branch-list/branch-list.component.html | 10 +- .../branch-list/branch-list.component.ts | 2 +- .../city/city-list/city-list.component.html | 4 +- .../comments-on-locality-list.component.html | 6 +- .../customer-behaviour-list.component.html | 4 +- .../customer-segment-list.component.html | 6 +- .../designation-list.component.html | 6 +- .../frequency-list.component.html | 6 +- ...ndustry_classification-list.component.html | 4 +- .../lender-hierarchy-list.component.html | 8 +- .../members-occupation-list.component.html | 6 +- .../pd-allocation-type-list.component.html | 4 +- ...pd-location-approach-dialog.component.html | 2 +- .../pd-location-approach-list.component.html | 6 +- .../pd-notification-list.component.html | 2 +- .../pd-type-list/pd-type-list.component.html | 4 +- .../product-list/product-list.component.html | 6 +- .../question-category-list.component.html | 6 +- .../regions-list/regions-list.component.html | 6 +- .../relation-ship-list.component.html | 6 +- .../states-list/states-list.component.html | 8 +- .../sub-product-list.component.html | 8 +- .../title-list/title-list.component.html | 6 +- .../activity-list.component.html | 6 +- .../uom/uom-list/uom-list.component.html | 6 +- .../pd-team-manage.component.html | 17 +- .../users/register/register.component.html | 211 ++++++++++-------- .../users/user-list/user-list.component.html | 176 +++++++-------- .../users/user-list/user-list.component.ts | 39 +++- ng6-seed/src/index.html | 5 + 32 files changed, 436 insertions(+), 382 deletions(-) diff --git a/ng6-seed/src/app/dashboard/dashboard.component.html b/ng6-seed/src/app/dashboard/dashboard.component.html index d02b0aefb..bd1a9f504 100644 --- a/ng6-seed/src/app/dashboard/dashboard.component.html +++ b/ng6-seed/src/app/dashboard/dashboard.component.html @@ -1,164 +1,63 @@ -
+ + +
-
- -
-
-

PD Triggered

-
-
-
-

Full PD

-

13

-
-
-

Smart PD

-

13

-
-
-
-
-
-
- -
-
-

PD Allocated

-
-
-
-

Full PD

-

33

-
-
-

Smart PD

-

5

-
-
-
-
-
-
- -
-
-

PD Scheduled

-
-
-
-

Full PD

-

20

-
-
-

Smart PD

-

6

-
-
-
-
-
-
- -
-
- -
-
-

PD Progress

-
-
-
-

Full PD

-

34

-
-
-

Smart PD

-

9

-
-
-
-
-
-
- -
-
-

PD Completed

-
-
-
-

Full PD

-

65

-
-
-

Smart PD

-

24

-
-
-
-
-
-
- -
-
-

QC Completed

-
-
-
-

Full PD

-

47

-
-
-

Smart PD

-

29

-
-
-
-
-
+
+ + Personal Discussion Details + +
+ +
+ + +
+
+
+
+
-
+
- Lender - PD Triggered Today + Lenderwise + Triggered Today

{{item.lendername}} / {{item.billingaddr}}

-

Full PD -{{item.fullpd}} / Smart PD -{{item.smartpd}}

+

Full -{{item.fullpd}} / Smart -{{item.smartpd}}

-
+
Citywise - PD Triggered Today + Triggered Today

{{item.cityname}}

-

Full PD -{{item.fullpd}} / Smart PD -{{item.smartpd}}

+

Full -{{item.fullpd}} / Smart -{{item.smartpd}}

-
+
- Information - PD In Same Status + Alert warning + Unscheduled
- +

{{item.applicantname}}

{{item.applicantid}}

{{item.lendername}} - {{item.status}}

diff --git a/ng6-seed/src/app/dashboard/dashboard.component.ts b/ng6-seed/src/app/dashboard/dashboard.component.ts index d22f38292..c9fcd8477 100644 --- a/ng6-seed/src/app/dashboard/dashboard.component.ts +++ b/ng6-seed/src/app/dashboard/dashboard.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; + @Component({ selector: 'app-dashboard', @@ -6,9 +7,81 @@ import { Component } from '@angular/core'; styleUrls: ['./dashboard.component.scss'] }) export class DashboardComponent { - constructor() { + //public single: any[]; + //public multi: any[]; + public showXAxis = true; + public showYAxis = true; + public gradient = false; + public showLegend = false; + public showXAxisLabel = true; + public xAxisLabel = 'Type'; + public showYAxisLabel = true; + public yAxisLabel = 'Application'; + public colorScheme = { + domain: ['#673ab7', '#f44336', '#009688 ', '#2196f3', '#ffd740 ', '#eb35bb '] + }; + constructor() { + } + multi: Object[] = [ + { + name: 'Full', + series: [ + { + name: 'Triggered', + value: 50 + }, + { + name: 'Allocated', + value: 29 + }, + { + name: 'Schudled', + value: 45 + }, + { + name: 'InProgress', + value: 67 + }, + { + name: 'Completed', + value: 34 + },{ + name: 'QC Completed', + value: 22 + } + ] + }, + { + name: 'Smart', + series: [ + { + name: 'Triggred', + value: 60 + }, + { + name: 'Allocated', + value: 33 + }, + { + name: 'Schudled', + value: 76 + }, + { + name: 'InProgress', + value: 34 + },{ + name: 'Completed', + value: 56 + },{ + name: 'QC Completed', + value: 45 + } + ] + }, + ]; + //Lender wise PD Triggered lenderpd: Object[] = [{ lendername:'ICICI', diff --git a/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.html b/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.html index b548f6251..fcdbc2c68 100644 --- a/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.html @@ -26,17 +26,17 @@ - Branch Name + Branch {{row.name}} - City Name + City {{row.city_name}} - Actions + Action @@ -44,7 +44,7 @@ - Is Active + Active
- + diff --git a/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.ts b/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.ts index edd6fd2d5..5fea0b7ff 100644 --- a/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.ts +++ b/ng6-seed/src/app/settings/masters/component/branch/branch-list/branch-list.component.ts @@ -150,7 +150,7 @@ active(){ Swal({ title: 'Are you sure?', type: 'warning', - showCancelButton: true, + showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yes, activate it!' diff --git a/ng6-seed/src/app/settings/masters/component/city/city-list/city-list.component.html b/ng6-seed/src/app/settings/masters/component/city/city-list/city-list.component.html index ad8dec250..728a52b03 100644 --- a/ng6-seed/src/app/settings/masters/component/city/city-list/city-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/city/city-list/city-list.component.html @@ -100,12 +100,12 @@ - City Name + City {{row.name}} - State Name + State {{row.state_name}} diff --git a/ng6-seed/src/app/settings/masters/component/comments-on-locality/comments-on-locality-list/comments-on-locality-list.component.html b/ng6-seed/src/app/settings/masters/component/comments-on-locality/comments-on-locality-list/comments-on-locality-list.component.html index 860e77df7..78aafa8a6 100644 --- a/ng6-seed/src/app/settings/masters/component/comments-on-locality/comments-on-locality-list/comments-on-locality-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/comments-on-locality/comments-on-locality-list/comments-on-locality-list.component.html @@ -94,7 +94,7 @@ - Comments On Locality Rating + Locality Rating {{row.rating}} @@ -107,7 +107,7 @@ --> - Actions + Action @@ -115,7 +115,7 @@ - Is Active + Active --> - Actions + Action @@ -113,7 +113,7 @@ - Is Active + Active diff --git a/ng6-seed/src/app/settings/masters/component/customer-segment/customer-segment-list/customer-segment-list.component.html b/ng6-seed/src/app/settings/masters/component/customer-segment/customer-segment-list/customer-segment-list.component.html index 4a701354a..a11e5ff36 100644 --- a/ng6-seed/src/app/settings/masters/component/customer-segment/customer-segment-list/customer-segment-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/customer-segment/customer-segment-list/customer-segment-list.component.html @@ -94,13 +94,13 @@ - Customer Segment + Segment {{row.name}} - Actions + Action @@ -109,7 +109,7 @@ - Is Active + Active diff --git a/ng6-seed/src/app/settings/masters/component/designation/designation-list/designation-list.component.html b/ng6-seed/src/app/settings/masters/component/designation/designation-list/designation-list.component.html index c7ba7e2d7..0909e1c7d 100644 --- a/ng6-seed/src/app/settings/masters/component/designation/designation-list/designation-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/designation/designation-list/designation-list.component.html @@ -96,12 +96,12 @@ - Designation Name + Designation {{row.name}} - Is Active + Active @@ -124,7 +124,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/frequency/frequency-list/frequency-list.component.html b/ng6-seed/src/app/settings/masters/component/frequency/frequency-list/frequency-list.component.html index ee86a9249..53fd768ea 100644 --- a/ng6-seed/src/app/settings/masters/component/frequency/frequency-list/frequency-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/frequency/frequency-list/frequency-list.component.html @@ -105,12 +105,12 @@ - Frequency Name + Frequency {{row.name}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html b/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html index aae6029fc..29f81a42a 100644 --- a/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/industry_classification/industry_classification-list/industry_classification-list.component.html @@ -34,12 +34,12 @@ - Industry Classification Name + Classification {{row.name}} - Is Active + Active diff --git a/ng6-seed/src/app/settings/masters/component/lender-hierarchy/lender-hierarchy-list/lender-hierarchy-list.component.html b/ng6-seed/src/app/settings/masters/component/lender-hierarchy/lender-hierarchy-list/lender-hierarchy-list.component.html index 669e3cb9d..d29cbfe6e 100644 --- a/ng6-seed/src/app/settings/masters/component/lender-hierarchy/lender-hierarchy-list/lender-hierarchy-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/lender-hierarchy/lender-hierarchy-list/lender-hierarchy-list.component.html @@ -90,17 +90,17 @@ - Lender Hierarchy + Hierarchy {{row.lender_hierarchy}} - State Name + State {{row.cityname}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/members-occupation/members-occupation-list/members-occupation-list.component.html b/ng6-seed/src/app/settings/masters/component/members-occupation/members-occupation-list/members-occupation-list.component.html index 00da6e7cc..c37bbfac3 100644 --- a/ng6-seed/src/app/settings/masters/component/members-occupation/members-occupation-list/members-occupation-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/members-occupation/members-occupation-list/members-occupation-list.component.html @@ -109,14 +109,14 @@ - Occupation Non Earning Member + Occupation {{row.name}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/pd-allocation-type/pd-allocation-type-list.component.html b/ng6-seed/src/app/settings/masters/component/pd-allocation-type/pd-allocation-type-list.component.html index a0b0d17a2..8d2a4fee3 100644 --- a/ng6-seed/src/app/settings/masters/component/pd-allocation-type/pd-allocation-type-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/pd-allocation-type/pd-allocation-type-list.component.html @@ -28,12 +28,12 @@ - PD Allocation Type + Type {{row.pd_allocation_type_name}} - PD Allocation Logic + Logic {{row.pd_allocation_logic}} diff --git a/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-dialog/pd-location-approach-dialog.component.html b/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-dialog/pd-location-approach-dialog.component.html index 7cc5879cf..d65b8cde4 100644 --- a/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-dialog/pd-location-approach-dialog.component.html +++ b/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-dialog/pd-location-approach-dialog.component.html @@ -33,7 +33,7 @@ fxLayoutAlign="center">
- + Description Required. diff --git a/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-list/pd-location-approach-list.component.html b/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-list/pd-location-approach-list.component.html index 69b6028a0..fc9991cd7 100644 --- a/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-list/pd-location-approach-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/pd-location-approach/pd-location-approach-list/pd-location-approach-list.component.html @@ -90,12 +90,12 @@ - PD Location + Location {{row.description}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/pd-notification/pd-notification-list.component.html b/ng6-seed/src/app/settings/masters/component/pd-notification/pd-notification-list.component.html index 0f5bbdbe5..08a08a66d 100644 --- a/ng6-seed/src/app/settings/masters/component/pd-notification/pd-notification-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/pd-notification/pd-notification-list.component.html @@ -36,7 +36,7 @@ - PD Status + Status {{row.pd_status_name}} diff --git a/ng6-seed/src/app/settings/masters/component/pd-type/pd-type-list/pd-type-list.component.html b/ng6-seed/src/app/settings/masters/component/pd-type/pd-type-list/pd-type-list.component.html index 45815f287..ed7ac372d 100644 --- a/ng6-seed/src/app/settings/masters/component/pd-type/pd-type-list/pd-type-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/pd-type/pd-type-list/pd-type-list.component.html @@ -90,12 +90,12 @@ - PD Type + Type {{row.type_name}} - Is Active + Active diff --git a/ng6-seed/src/app/settings/masters/component/product/product-list/product-list.component.html b/ng6-seed/src/app/settings/masters/component/product/product-list/product-list.component.html index 59d48ad1c..677912f7f 100644 --- a/ng6-seed/src/app/settings/masters/component/product/product-list/product-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/product/product-list/product-list.component.html @@ -36,7 +36,7 @@ - Product Name + Product {{row.name}} @@ -46,7 +46,7 @@ - Is Active + Active @@ -69,7 +69,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.html b/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.html index 23d77bb4d..8c79d1cf8 100644 --- a/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.html @@ -36,12 +36,12 @@ - Question Category Name + Category {{row.categroy_name}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/regions/regions-list/regions-list.component.html b/ng6-seed/src/app/settings/masters/component/regions/regions-list/regions-list.component.html index 721a29181..716f3fcd0 100644 --- a/ng6-seed/src/app/settings/masters/component/regions/regions-list/regions-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/regions/regions-list/regions-list.component.html @@ -21,12 +21,12 @@ - Region Name + Region {{row.name}} - Is Active + Active - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/relation-ship/relation-ship-list/relation-ship-list.component.html b/ng6-seed/src/app/settings/masters/component/relation-ship/relation-ship-list/relation-ship-list.component.html index 47ac9f9b0..ca7f53328 100644 --- a/ng6-seed/src/app/settings/masters/component/relation-ship/relation-ship-list/relation-ship-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/relation-ship/relation-ship-list/relation-ship-list.component.html @@ -112,13 +112,13 @@ - Relationship Name + Relationship {{row.name}} - Is Active + Active @@ -141,7 +141,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/states/states-list/states-list.component.html b/ng6-seed/src/app/settings/masters/component/states/states-list/states-list.component.html index 22983dd36..197920973 100644 --- a/ng6-seed/src/app/settings/masters/component/states/states-list/states-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/states/states-list/states-list.component.html @@ -131,17 +131,17 @@ - State Name + State {{row.name}} - Region Name + Region {{row.region_name}} - Is Active + Active @@ -164,7 +164,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/sub-product/sub-product-list/sub-product-list.component.html b/ng6-seed/src/app/settings/masters/component/sub-product/sub-product-list/sub-product-list.component.html index 8ddf1791e..590ea0f63 100644 --- a/ng6-seed/src/app/settings/masters/component/sub-product/sub-product-list/sub-product-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/sub-product/sub-product-list/sub-product-list.component.html @@ -120,17 +120,17 @@ - Product Name + Product {{row.product_name}} - Sub-Product Name + Sub-Product {{row.name}} - Is Active + Active @@ -153,7 +153,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/title/title-list/title-list.component.html b/ng6-seed/src/app/settings/masters/component/title/title-list/title-list.component.html index 216b2fa5b..fcca0155c 100644 --- a/ng6-seed/src/app/settings/masters/component/title/title-list/title-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/title/title-list/title-list.component.html @@ -109,12 +109,12 @@ - Title Name + Title {{row.name}} - Is Active + Active @@ -137,7 +137,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/type-of-activity/activity-list/activity-list.component.html b/ng6-seed/src/app/settings/masters/component/type-of-activity/activity-list/activity-list.component.html index 478f72eef..aabc465a8 100644 --- a/ng6-seed/src/app/settings/masters/component/type-of-activity/activity-list/activity-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/type-of-activity/activity-list/activity-list.component.html @@ -103,12 +103,12 @@ - Activity Name + Activity {{row.name}} - Is Active + Active @@ -131,7 +131,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/masters/component/uom/uom-list/uom-list.component.html b/ng6-seed/src/app/settings/masters/component/uom/uom-list/uom-list.component.html index dc2e9ab0f..ca7892d3c 100644 --- a/ng6-seed/src/app/settings/masters/component/uom/uom-list/uom-list.component.html +++ b/ng6-seed/src/app/settings/masters/component/uom/uom-list/uom-list.component.html @@ -29,13 +29,13 @@ - UOM Name + UOM {{row.name}} - Is Active + Active @@ -58,7 +58,7 @@ - Actions + Action diff --git a/ng6-seed/src/app/settings/pd-team/pd-team-manage/pd-team-manage.component.html b/ng6-seed/src/app/settings/pd-team/pd-team-manage/pd-team-manage.component.html index 6a07b4430..e31ad0925 100644 --- a/ng6-seed/src/app/settings/pd-team/pd-team-manage/pd-team-manage.component.html +++ b/ng6-seed/src/app/settings/pd-team/pd-team-manage/pd-team-manage.component.html @@ -3,22 +3,23 @@
Manage PD Team
-
+
-
+ + +
-
+
- {{pdteamdetails.team_name | titlecase}} info - -
+ {{pdteamdetails.team_name | titlecase}} info + {{pdteamdetails.short_name}}
@@ -49,5 +50,7 @@
{{pdTeamManageData}}
+ +
\ No newline at end of file diff --git a/ng6-seed/src/app/settings/users/register/register.component.html b/ng6-seed/src/app/settings/users/register/register.component.html index 5065050f5..c48574908 100755 --- a/ng6-seed/src/app/settings/users/register/register.component.html +++ b/ng6-seed/src/app/settings/users/register/register.component.html @@ -1,79 +1,121 @@ - - - USER REGISTRATION - - - +
- Personal
+
+
+
User Registration
+
+
+ + + +
+
+
+
+ + Personal
+ +
+ + +
+ User Profile + +
+
+ +
+ + {{img}} + +
+ + + First Name Required. + Atleast 5 Characters. + Not More Than 10 Characters. + -
- - - First Name Required. - Atleast 5 Characters. - Not More Than 10 Characters. - +
+ + + Last Name Required. + + + + + +
+ + + Isactive + + +
+ + - - - - Last Name Required. - - - - - - - -
+
+
+ + Contact
+ +
+ + + email Address Required. + Invalid Email Address. + +
+ + + + Phone Number Required. + Invalid Phone Number. + + +
+ + + -- + + {{s.name}} + + + State Required. +
+ + + + -- + + {{c.name}} + + + city Required. + +
+ +
+
+
+ + - Account Details

-
- - - email Address Required. - Invalid Email Address. - - - - - - Phone Number Required. - Invalid Phone Number. - - - - - -- - - {{s.name}} - - - State Required. - - - - - -- - - {{c.name}} - - - city Required. - -
- + + @@ -134,7 +176,8 @@ city Required.
--> - Role Information

+ Role
+
Enitity Type Required +
@@ -157,7 +201,9 @@ Lender Name Required. + +
-- @@ -165,7 +211,10 @@ {{ent.full_name}} Vendor Name Required. - + + +
+ @@ -180,9 +229,12 @@
+
+
+ +
-
-
- User Profile - -
-
- -
- - {{img}} - -
-
- - Isactive - -
-
+
diff --git a/ng6-seed/src/app/settings/users/user-list/user-list.component.html b/ng6-seed/src/app/settings/users/user-list/user-list.component.html index b5a3a6fed..1d9c308f8 100644 --- a/ng6-seed/src/app/settings/users/user-list/user-list.component.html +++ b/ng6-seed/src/app/settings/users/user-list/user-list.component.html @@ -1,88 +1,90 @@ - - - -
-
- -
-
-
Users

-
- - - - -
+
+ +
+
+ Users +
- - - - Sl - {{us.SerialNo}} - - - - Full Name - {{us.user_first_name}} {{us.user_last_name}} - - - - Email Id - {{us.email}} - - - Mobile No - {{us.mobile_no}} - - - Roles - {{us.role_name}} - - - Entities - {{us.entitytypename}} - - - Is Active - - - - - - - - - - - - Actions - - edit - - - - - - - - - - - - - -
- + +
+
+
+ + + + +
+
+ + + + Sl + {{us.SerialNo}} + + + + Name + {{us.user_first_name}} {{us.user_last_name}} + + + + Email + {{us.email}} + + + Mobile + {{us.mobile_no}} + + + Role + {{us.role_name}} + + + Entity + {{us.entitytypename}} + + + Active + + + + + + + + + + + + Action + + edit + + + + + + + + + + + +
+
+ +
+ \ No newline at end of file diff --git a/ng6-seed/src/app/settings/users/user-list/user-list.component.ts b/ng6-seed/src/app/settings/users/user-list/user-list.component.ts index 29f23fae9..5d9842295 100644 --- a/ng6-seed/src/app/settings/users/user-list/user-list.component.ts +++ b/ng6-seed/src/app/settings/users/user-list/user-list.component.ts @@ -5,7 +5,8 @@ import { MatPaginator, MatTableDataSource,MatSort } from '@angular/material'; import { UserService } from '../../service/user.service'; import { DataSource } from '@angular/cdk/table'; import { CognitoService } from '../../../AwsService/cognito.service'; - + /**sweet alert */ +import Swal from 'sweetalert2' @Component({ selector: 'app-user-list', @@ -146,5 +147,41 @@ export class UserListComponent implements OnInit { this.getusers(); }) } + //Sweetalert2 for active and deactive +active(){ + Swal({ + title: 'Are you sure?', + type: 'warning', + showCancelButton: true, + confirmButtonColor: '#3085d6', + cancelButtonColor: '#d33', + confirmButtonText: 'Yes, activate it!' + }).then((result) => { + if (result.value) { + Swal( + 'Activated!', + 'success' + ) + } + }) +} +deactive() +{ + Swal({ + title: 'Are you sure?', + type: 'warning', + showCancelButton: true, + confirmButtonColor: '#3085d6', + cancelButtonColor: '#d33', + confirmButtonText: 'Yes, deactivate it!' + }).then((result) => { + if (result.value) { + Swal( + 'Deactivated!', + 'success' + ) + } + }) +} } diff --git a/ng6-seed/src/index.html b/ng6-seed/src/index.html index ec6b2a986..de6c3b18d 100644 --- a/ng6-seed/src/index.html +++ b/ng6-seed/src/index.html @@ -124,6 +124,11 @@ .mat-cell{ font-size:1.2em !important; } + .mat-header-cell{ + font-size:1.2em !important; + font-weight:800 !important; + } + .swal2-header { text-align:left !important; }