+
+
- Lender
- PD Triggered Today
+ Personal Discussion Details
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/dashboard/dashboard.component.ts b/ng6-seed/src/app/dashboard/dashboard.component.ts
index d22f38292..f260b7b7c 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,60 +7,151 @@ import { Component } from '@angular/core';
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent {
+ //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() {
-
+
}
- //Lender wise PD Triggered
- lenderpd: Object[] = [{
- lendername:'ICICI',
- billingaddr:'Bangalore',
- fullpd:'9',
- smartpd:'6',
- }, {
- lendername:'IOB',
- billingaddr:'Chennai',
- fullpd:'10',
- smartpd:'5',
- }, {
- lendername:'SBI',
- billingaddr:'Pune',
- fullpd:'16',
- smartpd:'3',
- }, ];
- //City Wise PD Triggered
- citywisepd: Object[] = [{
- cityname: 'Bangalore',
- fullpd:'45',
- smartpd:'17',
- }, {
- cityname: 'Chennai',
- fullpd:'33',
- smartpd:'16',
- }, {
- cityname: 'Salem',
- fullpd:'22',
- smartpd:'12',
- }, ];
+ // //Lender wise PD Triggered
+ // lenderpd: Object[] = [{
+ // lendername:'ICICI',
+ // billingaddr:'Bangalore',
+ // fullpd:'9',
+ // smartpd:'6',
+ // }, {
+ // lendername:'IOB',
+ // billingaddr:'Chennai',
+ // fullpd:'10',
+ // smartpd:'5',
+ // }, {
+ // lendername:'SBI',
+ // billingaddr:'Pune',
+ // fullpd:'16',
+ // smartpd:'3',
+ // }, ];
- //Same status
- message: Object[] = [{
- applicantname: 'Saravana',
- applicantid:'ICICITN0118000354',
- lendername:'ICICI',
- status:'Allocated',
- photo: 'assets/images/face3.jpg',
- }, {
- applicantname: 'Kumaran',
- applicantid:'IOBKA0418000578',
- lendername:'IOB',
- status:'Allocated',
- photo: 'assets/images/face6.jpg',
- }, {
- applicantname: 'Priya',
- applicantid:'SBIGA0118000241',
- lendername:'SBI',
- status:'Triggered',
- photo: 'assets/images/face4.jpg',
- }, ];
+ // 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',
+ // billingaddr:'Bangalore',
+ // fullpd:'9',
+ // smartpd:'6',
+ // }, {
+ // lendername:'IOB',
+ // billingaddr:'Chennai',
+ // fullpd:'10',
+ // smartpd:'5',
+ // }, {
+ // lendername:'SBI',
+ // billingaddr:'Pune',
+ // fullpd:'16',
+ // smartpd:'3',
+ // }, ];
+
+ // //City Wise PD Triggered
+ // citywisepd: Object[] = [{
+ // cityname: 'Bangalore',
+ // fullpd:'45',
+ // smartpd:'17',
+ // }, {
+ // cityname: 'Chennai',
+ // fullpd:'33',
+ // smartpd:'16',
+ // }, {
+ // cityname: 'Salem',
+ // fullpd:'22',
+ // smartpd:'12',
+ // } ];
+
+ // //Same status
+ // message: Object[] = [{
+ // applicantname: 'Saravana',
+ // applicantid:'ICICITN0118000354',
+ // lendername:'ICICI',
+ // status:'Allocated',
+ // photo: 'assets/images/face3.jpg',
+ // }, {
+ // applicantname: 'Kumaran',
+ // applicantid:'IOBKA0418000578',
+ // lendername:'IOB',
+ // status:'Allocated',
+ // photo: 'assets/images/face6.jpg',
+ // }, {
+ // applicantname: 'Priya',
+ // applicantid:'SBIGA0118000241',
+ // lendername:'SBI',
+ // status:'Triggered',
+ // photo: 'assets/images/face4.jpg',
+ // } ];
}
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/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
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/settings/masters/component/company/company.component.ts b/ng6-seed/src/app/settings/masters/component/company/company.component.ts
index 17b2f760f..310dcfe96 100644
--- a/ng6-seed/src/app/settings/masters/component/company/company.component.ts
+++ b/ng6-seed/src/app/settings/masters/component/company/company.component.ts
@@ -9,6 +9,7 @@ import { FormBuilder,
/** Service */
import { MastersService } from '../../../service/masters/masters.service';
+import { NotifierService } from 'angular-notifier';
@Component({
@@ -21,14 +22,15 @@ export class CompanyComponent implements OnInit {
public _companyForm: FormGroup;
public companyData: any = [];
+ private notifier: NotifierService;
stateDatas: any[];
citydatas: any[];
errorMessage:string;
- constructor(private _formBuilder: FormBuilder,
- private _mastersService: MastersService) { }
+ constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
+ private _mastersService: MastersService) { this.notifier = notifier; }
FetchFormValue() {
this._mastersService.getAllCompany().subscribe(
@@ -139,11 +141,12 @@ export class CompanyComponent implements OnInit {
dataresult=>{
if (dataresult.dataStatus == true){
-
- alert("Data Saved Successfully");
+ //alert("Data Saved Successfully");
+ this.notifier.notify('success', 'Record Saved Successfully.!');
}
else{
- alert("SomeThing Wents Wrong Try Again !");
+ //alert("SomeThing Wents Wrong Try Again !");
+ this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
}
});
@@ -153,11 +156,12 @@ export class CompanyComponent implements OnInit {
this._mastersService.editMasterDetails(CompanyFormValue,'COMPANY').subscribe(
dataresult=>{
if (dataresult.dataStatus == true){
-
- alert("Data Edited Successfully");
+ //alert("Data Edited Successfully");
+ this.notifier.notify('success', 'Record Edited Successfully.!');
}
else{
- alert("SomeThing Wents Wrong Try Again !");
+ //alert("SomeThing Wents Wrong Try Again !");
+ this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
}
}
diff --git a/ng6-seed/src/app/settings/masters/component/customer-behaviour/customer-behaviour-list/customer-behaviour-list.component.html b/ng6-seed/src/app/settings/masters/component/customer-behaviour/customer-behaviour-list/customer-behaviour-list.component.html
index 1c738a32b..e422a9d8e 100644
--- a/ng6-seed/src/app/settings/masters/component/customer-behaviour/customer-behaviour-list/customer-behaviour-list.component.html
+++ b/ng6-seed/src/app/settings/masters/component/customer-behaviour/customer-behaviour-list/customer-behaviour-list.component.html
@@ -105,7 +105,7 @@
-->
- 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 5925987f3..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,16 +34,16 @@
- 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-dialog/question-category-dialog.component.html b/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.html
index b54a9f9fd..770a4570f 100644
--- a/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.html
+++ b/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.html
@@ -1,4 +1,4 @@
-
+
@@ -15,14 +15,14 @@ fxLayoutAlign="center">
-
- Category Name Required.
+
+ Category Name Required.
-
+
diff --git a/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.ts b/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.ts
index f276c315f..6959b2127 100644
--- a/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.ts
+++ b/ng6-seed/src/app/settings/masters/component/question-category/question-category-dialog/question-category-dialog.component.ts
@@ -31,8 +31,8 @@ export class QuestionCategoryDialogComponent implements OnInit {
formfunction(){
this._questionCategoryForm = this._formBuilder.group({
- question_categroy_id: [this.data.question_categroy_id],
- categroy_name: [this.data.categroy_name, Validators.compose([Validators.required])],
+ question_category_id: [this.data.question_category_id],
+ category_name: [this.data.category_name, Validators.compose([Validators.required])],
});
}
@@ -44,7 +44,7 @@ export class QuestionCategoryDialogComponent implements OnInit {
/** To Save/Edited Popup Data */
onSubmit() {
var QuestionFormValues = this._questionCategoryForm.value;
- if(isNaN(this.data.question_categroy_id)) {
+ if(isNaN(this.data.question_category_id)) {
Object.keys(QuestionFormValues).forEach((key) => ( QuestionFormValues[key] == null) && delete QuestionFormValues[key]);
@@ -82,7 +82,7 @@ export class QuestionCategoryDialogComponent implements OnInit {
}
/** To Reset Popup Data */
onReset(){
- this._questionCategoryForm.reset({ id: this.data.question_categroy_id });
+ this._questionCategoryForm.reset({ id: this.data.question_category_id });
}
onResetedited(){
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..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,19 +35,25 @@
{{row.serialno}}
-
+<<<<<<< HEAD
+
Question Category Name
+ {{row.category_name}}
+=======
+
+ Category
{{row.categroy_name}}
+>>>>>>> f40b8b4997c74fe358c25b41f5e1e558c66841ff
- Is Active
+ Active
@@ -55,14 +61,14 @@
class="example-margin"
matTooltip="Inactive" matTooltipPosition="above"
checked="false" [color]="color"
- (change)="isactiveQuestionCategory(row.question_categroy_id,row.isactive)"
+ (change)="isactiveQuestionCategory(row.question_category_id,row.isactive)"
(click)="active()">
- Actions
+ Action
@@ -76,7 +82,7 @@
-
No records found
+
diff --git a/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.ts b/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.ts
index fd3169758..0e1bfe851 100644
--- a/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.ts
+++ b/ng6-seed/src/app/settings/masters/component/question-category/question-category-list/question-category-list.component.ts
@@ -35,8 +35,8 @@ export class QuestionCategoryListComponent implements OnInit {
public dataLength: number;
public dataSource = new MatTableDataSource();
- //
- displayedColumns = ['serialno','categroy_name','actions', 'isactive'];
+ //
+ displayedColumns = ['serialno','category_name','actions', 'isactive'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
@@ -102,7 +102,7 @@ export class QuestionCategoryListComponent implements OnInit {
//To inactive the data
deleteQuestionCategory(id: number) {
- var PrimaryKeyWithValue ={'question_categroy_id':id};
+ var PrimaryKeyWithValue ={'question_category_id':id};
this._MasterService.deleteMasterDetails(PrimaryKeyWithValue,'QUESTIONCATEGORY')
.subscribe( data => { });
this.getQuestionCategory();
@@ -112,8 +112,8 @@ export class QuestionCategoryListComponent implements OnInit {
isactiveQuestionCategory(id: number,isactive : number) {
let ActiveDatas = isactive == 0
- ? { 'question_categroy_id':id,'isactive': '1'}
- : { 'question_categroy_id':id,'isactive': '0'}
+ ? { 'question_category_id':id,'isactive': '1'}
+ : { 'question_category_id':id,'isactive': '0'}
this._MasterService.editMasterDetails(ActiveDatas,'QUESTIONCATEGORY')
.subscribe(dataresult=>{
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 c1825639c..9b24cc3a0 100644
--- a/ng6-seed/src/app/settings/masters/masters.component.html
+++ b/ng6-seed/src/app/settings/masters/masters.component.html
@@ -11,94 +11,174 @@
[placeholderLabel]="'Find Masters...'"
[noEntriesFoundLabel]="'no matching found'">
-
+
+
+ {{master.master_name}}
- You must Pickup Master Name.
+
-
+<<<<<<< HEAD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+=======
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
-
-
-
-
-
-
+
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+>>>>>>> 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 3c840fa23..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,12 @@
name: string;
}
+
+ export interface Dbmaster{
+ master_id: number;
+ master_name: string;
+ constant_name: string;
+ }
// export interface Master {
// master_id: string;
// master_name: string;
@@ -35,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() {}
@@ -86,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)
@@ -98,38 +111,42 @@ 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);
+
+
+ public filteredMasters: ReplaySubject = new ReplaySubject(1);
@ViewChild('singleSelect') singleSelect: MatSelect;
@@ -139,14 +156,35 @@ export class MastersComponent implements OnInit {
ngOnInit() {
+
// this._MastersService.getAllMasterData('LISTOFMASTERS').subscribe((data:Master[]) => {
// this.masters = data;
// console.log(this.masters);
// });
- 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());
+ });
+
// load the initial master list
- this.filteredMasters.next(this.masters.slice());
+ //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))
@@ -158,6 +196,7 @@ export class MastersComponent implements OnInit {
ngAfterViewInit() {
//this.setInitialValue();
+ //console.log('ngafterViewInit',this.dbmasters);
}
ngOnDestroy() {
@@ -182,21 +221,64 @@ export class MastersComponent implements OnInit {
// }
private filterMasters() {
- if (!this.masters) {
+
+ 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) => {
+ 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._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.masters.filter(master => master.name.toLowerCase().indexOf(search) > -1)
+ //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 67e0462a9..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
@@ -12,22 +12,23 @@