| @@ -34,6 +34,7 @@ import {ContactModel} from './models/contact.model'; | |||
| import {BrokerDashboardComponent} from './broker-dashboard/broker-dashboard.component'; | |||
| import {LoanStepsComponent} from './loan-steps/loan-steps.component'; | |||
| import {LoanRowListComponent} from './loan-row-list/loan-row-list.component'; | |||
| import {LoanDetailComponent} from './loan-detail/loan-detail.component'; | |||
| const routes: Routes = [ | |||
| @@ -121,6 +121,11 @@ import { LoanStepsComponent } from './loan-steps/loan-steps.component'; | |||
| import { ListViewModule } from '@progress/kendo-angular-listview'; | |||
| import { LoanRowListComponent } from './loan-row-list/loan-row-list.component'; | |||
| import { LoanSingleRowComponent } from './loan-single-row/loan-single-row.component'; | |||
| import { LoanDetailBasicInfoComponent } from './loan-detail/loan-detail-basic-info/loan-detail-basic-info.component'; | |||
| import { LoanDetailPeopleComponent } from './loan-detail/loan-detail-people/loan-detail-people.component'; | |||
| import { LoanDetailRewardComponent } from './loan-detail/loan-detail-reward/loan-detail-reward.component'; | |||
| import { LoanDetailProgressComponent } from './loan-detail/loan-detail-progress/loan-detail-progress.component'; | |||
| import { LoanDetailTrailComponent } from './loan-detail/loan-detail-trail/loan-detail-trail.component'; | |||
| @@ -210,6 +215,11 @@ export function initializeApp(appConfig: AppConfig): () => Promise<void> { | |||
| LoanStepsComponent, | |||
| LoanRowListComponent, | |||
| LoanSingleRowComponent, | |||
| LoanDetailBasicInfoComponent, | |||
| LoanDetailPeopleComponent, | |||
| LoanDetailRewardComponent, | |||
| LoanDetailProgressComponent, | |||
| LoanDetailTrailComponent, | |||
| ], | |||
| imports: [ | |||
| BrowserModule, | |||
| @@ -0,0 +1,2 @@ | |||
| <p>loan-detail-basic-info works!</p> | |||
| basic info {{ Loan.Id}} | |||
| @@ -0,0 +1,25 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { LoanDetailBasicInfoComponent } from './loan-detail-basic-info.component'; | |||
| describe('LoanDetailBasicInfoComponent', () => { | |||
| let component: LoanDetailBasicInfoComponent; | |||
| let fixture: ComponentFixture<LoanDetailBasicInfoComponent>; | |||
| beforeEach(async () => { | |||
| await TestBed.configureTestingModule({ | |||
| declarations: [ LoanDetailBasicInfoComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| }); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(LoanDetailBasicInfoComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -0,0 +1,16 @@ | |||
| import { Component, Input, OnInit } from '@angular/core'; | |||
| import {LoanModel} from '../../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail-basic-info', | |||
| templateUrl: './loan-detail-basic-info.component.html', | |||
| styleUrls: ['./loan-detail-basic-info.component.scss'] | |||
| }) | |||
| export class LoanDetailBasicInfoComponent implements OnInit { | |||
| @Input() Loan: LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -0,0 +1 @@ | |||
| <p>loan-detail-people works! {{ Loan.Id}}</p> | |||
| @@ -0,0 +1,25 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { LoanDetailPeopleComponent } from './loan-detail-people.component'; | |||
| describe('LoanDetailPeopleComponent', () => { | |||
| let component: LoanDetailPeopleComponent; | |||
| let fixture: ComponentFixture<LoanDetailPeopleComponent>; | |||
| beforeEach(async () => { | |||
| await TestBed.configureTestingModule({ | |||
| declarations: [ LoanDetailPeopleComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| }); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(LoanDetailPeopleComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -0,0 +1,16 @@ | |||
| import {Component, Input, OnInit} from '@angular/core'; | |||
| import {LoanModel} from '../../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail-people', | |||
| templateUrl: './loan-detail-people.component.html', | |||
| styleUrls: ['./loan-detail-people.component.scss'] | |||
| }) | |||
| export class LoanDetailPeopleComponent implements OnInit { | |||
| @Input() Loan: LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -0,0 +1 @@ | |||
| <p>loan-detail-progress works! {{ Loan.Id}} </p> | |||
| @@ -0,0 +1,25 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { LoanDetailProgressComponent } from './loan-detail-progress.component'; | |||
| describe('LoanDetailProgressComponent', () => { | |||
| let component: LoanDetailProgressComponent; | |||
| let fixture: ComponentFixture<LoanDetailProgressComponent>; | |||
| beforeEach(async () => { | |||
| await TestBed.configureTestingModule({ | |||
| declarations: [ LoanDetailProgressComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| }); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(LoanDetailProgressComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -0,0 +1,16 @@ | |||
| import {Component, Input, OnInit} from '@angular/core'; | |||
| import {LoanModel} from '../../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail-progress', | |||
| templateUrl: './loan-detail-progress.component.html', | |||
| styleUrls: ['./loan-detail-progress.component.scss'] | |||
| }) | |||
| export class LoanDetailProgressComponent implements OnInit { | |||
| @Input() Loan: LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -0,0 +1 @@ | |||
| <p>loan-detail-reward works! {{ Loan.Id}}</p> | |||
| @@ -0,0 +1,25 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { LoanDetailRewardComponent } from './loan-detail-reward.component'; | |||
| describe('LoanDetailRewardComponent', () => { | |||
| let component: LoanDetailRewardComponent; | |||
| let fixture: ComponentFixture<LoanDetailRewardComponent>; | |||
| beforeEach(async () => { | |||
| await TestBed.configureTestingModule({ | |||
| declarations: [ LoanDetailRewardComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| }); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(LoanDetailRewardComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -0,0 +1,16 @@ | |||
| import {Component, Input, OnInit} from '@angular/core'; | |||
| import {LoanModel} from '../../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail-reward', | |||
| templateUrl: './loan-detail-reward.component.html', | |||
| styleUrls: ['./loan-detail-reward.component.scss'] | |||
| }) | |||
| export class LoanDetailRewardComponent implements OnInit { | |||
| @Input() Loan: LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -0,0 +1 @@ | |||
| <p>loan-detail-trail works! {{ Loan.Id}}</p> | |||
| @@ -0,0 +1,25 @@ | |||
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { LoanDetailTrailComponent } from './loan-detail-trail.component'; | |||
| describe('LoanDetailTrailComponent', () => { | |||
| let component: LoanDetailTrailComponent; | |||
| let fixture: ComponentFixture<LoanDetailTrailComponent>; | |||
| beforeEach(async () => { | |||
| await TestBed.configureTestingModule({ | |||
| declarations: [ LoanDetailTrailComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| }); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(LoanDetailTrailComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -0,0 +1,16 @@ | |||
| import {Component, Input, OnInit} from '@angular/core'; | |||
| import {LoanModel} from '../../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail-trail', | |||
| templateUrl: './loan-detail-trail.component.html', | |||
| styleUrls: ['./loan-detail-trail.component.scss'] | |||
| }) | |||
| export class LoanDetailTrailComponent implements OnInit { | |||
| @Input() Loan: LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -1,6 +1,53 @@ | |||
| <div class="wrapper"> | |||
| <kendo-expansionpanel | |||
| [title]="'Basic Info - ' + Loan.Id" | |||
| [subtitle]="Loan.Amount | currency " | |||
| [expanded]="false" | |||
| > | |||
| <div class="content"> | |||
| <app-loan-detail-basic-info [Loan]="Loan"></app-loan-detail-basic-info> | |||
| </div> | |||
| </kendo-expansionpanel> | |||
| <p>loan-detail works!</p> | |||
| <kendo-expansionpanel | |||
| [title]="'People'" | |||
| [subtitle]="Loan.Amount | currency " | |||
| [expanded]="false" | |||
| > | |||
| <div class="content"> | |||
| <app-loan-detail-people [Loan]="Loan"></app-loan-detail-people> | |||
| </div> | |||
| </kendo-expansionpanel> | |||
| <div style="background-color:yellow;"> {{dataItem.Id}}</div> | |||
| <kendo-expansionpanel | |||
| [title]="'Reward'" | |||
| [subtitle]="Loan.Amount | currency " | |||
| [expanded]="false" | |||
| > | |||
| <div class="content"> | |||
| <app-loan-detail-reward [Loan]="Loan"></app-loan-detail-reward> | |||
| </div> | |||
| </kendo-expansionpanel> | |||
| <kendo-expansionpanel | |||
| [title]="'Progress'" | |||
| [subtitle]="Loan.Amount | currency " | |||
| [expanded]="false" | |||
| > | |||
| <div class="content"> | |||
| <app-loan-detail-progress [Loan]="Loan"></app-loan-detail-progress> | |||
| </div> | |||
| </kendo-expansionpanel> | |||
| <kendo-expansionpanel | |||
| [title]="'Trail Income'" | |||
| [subtitle]="Loan.Amount | currency " | |||
| [expanded]="false" | |||
| > | |||
| <div class="content"> | |||
| <app-loan-detail-trail [Loan]="Loan"></app-loan-detail-trail> | |||
| </div> | |||
| </kendo-expansionpanel> | |||
| </div> | |||
| <div style="background-color:yellow;"> {{dataItem.Client}}</div> | |||
| @@ -1,4 +1,5 @@ | |||
| import {Component, Input, OnInit} from '@angular/core'; | |||
| import {LoanModel} from '../models/loan.model'; | |||
| @Component({ | |||
| selector: 'app-loan-detail', | |||
| @@ -7,7 +8,7 @@ import {Component, Input, OnInit} from '@angular/core'; | |||
| }) | |||
| export class LoanDetailComponent implements OnInit { | |||
| @Input() public dataItem :any; | |||
| @Input() public Loan : LoanModel; | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| @@ -13,7 +13,7 @@ import {PageChangeEvent} from '@progress/kendo-angular-listview'; | |||
| export class LoanRowListComponent implements OnInit { | |||
| public allLoans: LoanSummaryService; | |||
| public skip: number = 0 | |||
| public take: number = 10; | |||
| public take: number = 5; | |||
| constructor(private lss: LoanSummaryService, private ss: SessionService, private config: AppConfig) { } | |||
| ngOnInit(): void { | |||
| @@ -66,5 +66,8 @@ | |||
| </li> | |||
| </ul> | |||
| </div> | |||
| <div class="col-md-12"> | |||
| <app-loan-detail [Loan]="Loan"></app-loan-detail> | |||
| </div> | |||
| </div> | |||
| </div> | |||