diff --git a/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.html b/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.html
index 340bb94c7..a30235d64 100644
--- a/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.html
+++ b/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.html
@@ -179,7 +179,7 @@
-
+
@@ -187,9 +187,11 @@
-
-
-
+
+
+
+
+
diff --git a/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.ts b/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.ts
index 859a3f9b7..cabd1804f 100644
--- a/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.ts
+++ b/ng6-seed/src/app/pd-triger/add-pd/add-pd.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, ViewEncapsulation } from '@angular/core';
+import { Component, OnInit, ViewEncapsulation, Output, EventEmitter } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
import { CustomValidators } from 'ng2-validation';
import { PdTrigerService } from '../pd-service/pd-triger.service';
@@ -11,6 +11,8 @@ import { AwsService } from '../../AwsService/aws.service';
encapsulation: ViewEncapsulation.None
})
export class AddPdComponent implements OnInit {
+ @Output() loadParent = new EventEmitter();
+
public PDtriggerForm: FormGroup;
items: FormArray;
CityList: any;
@@ -276,4 +278,7 @@ this._pd.getAllMasterDatas('PDTYPE')
this._pd.addPdDetails(pd_form).subscribe();
}
}
+ loadPdListCompoent() {
+ this.loadParent.emit('1')
+ }
}
diff --git a/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.html b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.html
new file mode 100644
index 000000000..cb6987e03
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.html
@@ -0,0 +1,11 @@
+
+
+
+ {{ childData }}
+
+
+
+
+
+
+
diff --git a/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.scss b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.spec.ts b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.spec.ts
new file mode 100644
index 000000000..ad598b308
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { EditPdComponent } from './edit-pd.component';
+
+describe('EditPdComponent', () => {
+ let component: EditPdComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ EditPdComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(EditPdComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.ts b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.ts
new file mode 100644
index 000000000..b9c660080
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/edit-pd/edit-pd.component.ts
@@ -0,0 +1,23 @@
+import { Component, OnInit,ViewEncapsulation, EventEmitter, Input, Output } from '@angular/core';
+import { ListPdComponent } from '../list-pd/list-pd.component';
+
+@Component({
+ selector: 'app-edit-pd',
+ templateUrl: './edit-pd.component.html',
+ styleUrls: ['./edit-pd.component.scss'],
+ encapsulation: ViewEncapsulation.None
+})
+export class EditPdComponent implements OnInit {
+ @Input() childData: string;
+ @Output() loadParent = new EventEmitter();
+ constructor() {
+
+ }
+
+ ngOnInit() {
+ }
+ loadPdListCompoent() {
+ this.loadParent.emit('2')
+ }
+
+}
diff --git a/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.html b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.html
new file mode 100644
index 000000000..ee96ba06a
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.html
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+ All PD Details
+
+
+
+
+
+
+
+
+ Confirmed PD Details
+
+
+
+ {{tile.text}}
+
+
+
+
+
+
+
+
+
+
+ In Progress PD Details
+
+
+
+ {{tile.text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.scss b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.scss
new file mode 100644
index 000000000..b1e122b24
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.scss
@@ -0,0 +1,5 @@
+.ic-change:hover {
+ transform: scale(1.1);
+ color: green;
+}
+
diff --git a/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.spec.ts b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.spec.ts
new file mode 100644
index 000000000..e91599347
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ListPdComponent } from './list-pd.component';
+
+describe('ListPdComponent', () => {
+ let component: ListPdComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ ListPdComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(ListPdComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.ts b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.ts
new file mode 100644
index 000000000..e64b9d67e
--- /dev/null
+++ b/ng6-seed/src/app/pd-triger/list-pd/list-pd.component.ts
@@ -0,0 +1,115 @@
+import { Component, OnInit, ViewEncapsulation, EventEmitter, Output } from '@angular/core';
+import { PdTrigerService } from '../pd-service/pd-triger.service';
+
+@Component({
+ selector: 'app-list-pd',
+ templateUrl: './list-pd.component.html',
+ styleUrls: ['./list-pd.component.scss'],
+ encapsulation: ViewEncapsulation.None
+})
+export class ListPdComponent implements OnInit {
+ parentEditData :string;
+ showParentComponent:boolean;
+ showAddComponent:boolean;
+ showEditComponent:boolean;
+ errorMessage: any;
+ pdList:any[];
+ tiles: any[] = [{
+ text: 'One',
+ cols: 3,
+ rows: 1,
+ color: 'lightblue'
+ }, {
+ text: 'Two',
+ cols: 1,
+ rows: 1,
+ color: 'lightgreen'
+ }, {
+ text: 'Three',
+ cols: 1,
+ rows: 1,
+ color: 'lightpink'
+ }, {
+ text: 'Four',
+ cols: 2,
+ rows: 1,
+ color: '#DDBDF1'
+ }];
+
+ dogs: Object[] = [{
+ name: 'Porter',
+ human: 'Kara'
+ }, {
+ name: 'Mal',
+ human: 'Jeremy'
+ }, {
+ name: 'Koby',
+ human: 'Igor'
+ }, {
+ name: 'Razzle',
+ human: 'Ward'
+ }, {
+ name: 'Molly',
+ human: 'Rob'
+ }, {
+ name: 'Husi',
+ human: 'Matias'
+ }];
+
+ basicRowHeight = 80;
+ fixedCols = 4;
+ fixedRowHeight = 50;
+ ratioGutter = 1;
+ fitListHeight = '400px';
+ ratio = '8:1';
+
+ addTileCols() {
+ this.tiles[2].cols++;
+ }
+ constructor(private _pd: PdTrigerService) {
+ }
+
+ ngOnInit() {
+ this.showParentComponent=true
+ this.showAddComponent=false
+ this.showEditComponent=false
+ this._pd.getPdDetails()
+ .subscribe(
+ data => {
+ if (data.status == 200) {
+ this.pdList = data.records;
+ }
+ }, error => this.errorMessage = error);
+ }
+ addPdDetails(){
+ this.showParentComponent=false
+ this.showEditComponent=false
+ this.showAddComponent=!this.showAddComponent
+
+
+ }
+
+ editPdDetails(editID:string){
+ this.showParentComponent=false
+ this.showAddComponent=false
+ this.showEditComponent=!this.showEditComponent
+ this.parentEditData=editID
+ }
+ updateParentComponent(event:string) {
+ this.showParentComponent=!this.showParentComponent
+ if(event=='1'){
+ this.showAddComponent=!this.showAddComponent
+ }
+ else if(event=='2'){
+ this.showEditComponent=!this.showEditComponent
+ }
+ this._pd.getPdDetails()
+ .subscribe(
+ data => {
+ if (data.status == 200) {
+ this.pdList = data.records;
+ }
+ }, error => this.errorMessage = error);
+}
+
+}
diff --git a/ng6-seed/src/app/pd-triger/pd-service/pd-triger.service.ts b/ng6-seed/src/app/pd-triger/pd-service/pd-triger.service.ts
index f5048b551..1babea421 100644
--- a/ng6-seed/src/app/pd-triger/pd-service/pd-triger.service.ts
+++ b/ng6-seed/src/app/pd-triger/pd-service/pd-triger.service.ts
@@ -38,6 +38,12 @@ export class PdTrigerService {
catchError(this.handleError('operation', []))
)
}
+ getPdDetails(): Observable {
+ return this._http.get(this.apiUrl+"listLessPDDetails/get")
+ .pipe(
+ catchError(this.handleError('operation', []))
+ )
+ }
private handleError(operation = 'operation', result?: T) {
return (error: any): Observable => {
diff --git a/ng6-seed/src/app/pd-triger/pd-triger-routing.module.ts b/ng6-seed/src/app/pd-triger/pd-triger-routing.module.ts
index 68107874b..cf23e2a3d 100644
--- a/ng6-seed/src/app/pd-triger/pd-triger-routing.module.ts
+++ b/ng6-seed/src/app/pd-triger/pd-triger-routing.module.ts
@@ -1,11 +1,12 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
+import { ListPdComponent } from './list-pd/list-pd.component';
import { AddPdComponent } from './add-pd/add-pd.component';
export const PdTrigerRoutes: Routes = [
{
path: '',
- component: AddPdComponent
+ component: ListPdComponent
// children:
// [{
// path: 'pdtriggerlist',
diff --git a/ng6-seed/src/app/pd-triger/pd-triger.module.ts b/ng6-seed/src/app/pd-triger/pd-triger.module.ts
index 4bbf56394..0dab02906 100644
--- a/ng6-seed/src/app/pd-triger/pd-triger.module.ts
+++ b/ng6-seed/src/app/pd-triger/pd-triger.module.ts
@@ -8,7 +8,7 @@ import {
MatRadioModule,
MatButtonModule,MatTableModule,MatPaginatorModule,
MatProgressBarModule,MatDialogModule, MatSortModule,
- MatToolbarModule,MatSelectModule, MatListModule } from '@angular/material';
+ MatToolbarModule,MatSelectModule, MatListModule, MatGridListModule, MatTabsModule } from '@angular/material';
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
@@ -22,6 +22,8 @@ import 'hammerjs';
import { PdTrigerRoutes } from './pd-triger-routing.module';
import { AddPdComponent } from './add-pd/add-pd.component';
import { PdTrigerService } from './pd-service/pd-triger.service';
+import { ListPdComponent } from './list-pd/list-pd.component';
+import { EditPdComponent } from './edit-pd/edit-pd.component';
@NgModule({
imports: [
@@ -39,14 +41,14 @@ import { PdTrigerService } from './pd-service/pd-triger.service';
FlexLayoutModule,
NgxDatatableModule,
FormsModule,MatSlideToggleModule,
- MatSelectModule, MatListModule,
+ MatSelectModule, MatListModule,MatGridListModule, MatTabsModule,
ReactiveFormsModule,
FileUploadModule,
TreeModule,
MatDialogModule,
NgxMatSelectSearchModule
],
- declarations: [AddPdComponent],
+ declarations: [AddPdComponent, ListPdComponent, EditPdComponent],
providers: [PdTrigerService]
})
export class PdTrigerModule { }
{{details.applicat_details[0].applicant_name}}
+ +{{details.lender_applicant_id}} {{details.pd_date_of_initiation}}
+{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}} {{details.loan_amount}} {{details.state_name}}/{{details.city_name}}
+ + ++
{{details.applicat_details[0].applicant_name}}
+ +{{details.lender_applicant_id}} {{details.pd_date_of_initiation}}
+{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}} {{details.loan_amount}} {{details.state_name}}/{{details.city_name}}
+ + ++
{{details.applicat_details[0].applicant_name}}
+ +{{details.lender_applicant_id}} {{details.pd_date_of_initiation}}
+{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}} {{details.loan_amount}} {{details.state_name}}/{{details.city_name}}
+ + ++
{{details.applicat_details[0].applicant_name}}
+ +{{details.lender_applicant_id}} {{details.pd_date_of_initiation}}
+{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}} {{details.loan_amount}} {{details.state_name}}/{{details.city_name}}
+ + ++ + +