- 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 10732c318..96272fc1b 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
@@ -35,13 +35,19 @@
{{row.serialno}}
+<<<<<<< HEAD
Question Category Name
{{row.category_name}}
+=======
+
+ Category
+ {{row.categroy_name}}
+>>>>>>> f40b8b4997c74fe358c25b41f5e1e558c66841ff
- 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/masters/masters.component.html b/ng6-seed/src/app/settings/masters/masters.component.html
index e258e2f9a..9b24cc3a0 100644
--- a/ng6-seed/src/app/settings/masters/masters.component.html
+++ b/ng6-seed/src/app/settings/masters/masters.component.html
@@ -17,11 +17,12 @@
{{master.master_name}}
- You must Pickup Master Name.
+
+<<<<<<< HEAD
@@ -97,12 +98,87 @@
+=======
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+>>>>>>> f40b8b4997c74fe358c25b41f5e1e558c66841ff
-
-
\ 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 b5d384235..642bae1e0 100644
--- a/ng6-seed/src/app/settings/masters/masters.component.ts
+++ b/ng6-seed/src/app/settings/masters/masters.component.ts
@@ -17,6 +17,7 @@
name: string;
}
+
export interface Dbmaster{
master_id: number;
master_name: string;
@@ -40,9 +41,16 @@
styleUrls: ['./masters.component.scss']
})
export class MastersComponent implements OnInit {
+
private dbmasters: Dbmaster[];
+
+
+ //public dbmasters: Dbmaster = new Dbmaster();
+
+ //public arr: Array<{master_id: number, master_name: string}>;
+
/* Normal Search Code
- pickUpMasterData : string;
+ pickUpMasterData : string
constructor() {}
@@ -91,7 +99,7 @@ export class MastersComponent implements OnInit {
/** control for the MatSelect filter keyword */
public masterFilterCtrl: FormControl = new FormControl();
-
+
//masters: Master[];
constructor(private _MastersService: MastersService)
@@ -103,38 +111,41 @@ 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;
@@ -145,11 +156,13 @@ 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) => {
@@ -163,9 +176,15 @@ export class MastersComponent implements OnInit {
});
this.filteredMasters.next(this.dbmasters.slice());
});
+
// load the initial master list
//this.filteredMasters.next(this.masters.slice());
+
+ //console.log(this.dbmasters.master_id);
+
+ // load the initial master list
+
// listen for search field value changes
this.masterFilterCtrl.valueChanges
.pipe(takeUntil(this._onDestroy))
@@ -177,6 +196,7 @@ export class MastersComponent implements OnInit {
ngAfterViewInit() {
//this.setInitialValue();
+ //console.log('ngafterViewInit',this.dbmasters);
}
ngOnDestroy() {
@@ -201,13 +221,23 @@ export class MastersComponent implements OnInit {
// }
private filterMasters() {
+
if (!this.dbmasters) {
return;
+
+ // this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe(data => {
+ // this.dbmasters = data.records;
+ // if (!this.dbmasters) {
+ // return;
+ // }
+ //console.log(this.dbmasters);
}
+
+
// 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) => {
@@ -221,6 +251,10 @@ export class MastersComponent implements OnInit {
});
this.filteredMasters.next(this.dbmasters.slice());
});
+
+
+ //this.filteredMasters.next(this.masters.slice());
+
return;
} else {
search = search.toLowerCase();
@@ -237,11 +271,14 @@ export class MastersComponent implements OnInit {
}
return 0;
});
+
this.filteredMasters.next(
//this.masters.filter(master => master.name.toLowerCase().indexOf(search) > -1)
this.dbmasters.filter(master => master.master_name.toLowerCase().indexOf(search) > -1)
);
});
+
+ //this.filteredMasters.next(this.dbmasters.slice());
}
}
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 5243117e5..4392ea103 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
@@ -19,9 +19,12 @@
No records found
+
+
+
-
+
-
+
+
+
-
+
- {{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
-
-
-
+
-
-
- 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 @@
-
-
-
-
-
-
-
-
+
\ 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;
}