-
-
+
+
+
-
-
-
-
- Proudly presented by Supercredit.com
+
-
+
+
+
+
+
+
+
+
+ Additional info
+
diff --git a/src/app/loan-add-new/loan-add-new.component.scss b/src/app/loan-add-new/loan-add-new.component.scss
index 7702e70..e742af8 100644
--- a/src/app/loan-add-new/loan-add-new.component.scss
+++ b/src/app/loan-add-new/loan-add-new.component.scss
@@ -1,5 +1,2 @@
+.pane-content { padding: 0 10px; }
-
-div.vertical-spacer {
- margin-bottom: 30px;
-}
diff --git a/src/app/loan-add-new/loan-add-new.component.ts b/src/app/loan-add-new/loan-add-new.component.ts
index 8f678ad..b1ae59f 100644
--- a/src/app/loan-add-new/loan-add-new.component.ts
+++ b/src/app/loan-add-new/loan-add-new.component.ts
@@ -1,6 +1,6 @@
-import {Component, OnInit, ViewChild} from '@angular/core';
-import {FormControl, FormGroup, Validators} from '@angular/forms';
-import {StepperComponent} from '@progress/kendo-angular-layout';
+import { Component, OnInit, ViewChild } from '@angular/core';
+import { FormControl, FormGroup, Validators } from '@angular/forms';
+
@Component({
selector: 'app-loan-add-new',
@@ -8,75 +8,72 @@ import {StepperComponent} from '@progress/kendo-angular-layout';
styleUrls: ['./loan-add-new.component.scss']
})
export class LoanAddNewComponent implements OnInit {
- public submitted: boolean ;
- public currentStep = 0;
- @ViewChild('stepper', { static: true })
- public stepper: StepperComponent;
-
-
-
- public steps = [
- { label: 'Basic Info', isValid: true },
- { label: 'People Reward', isValid: false },
- { label: 'Trail Income', isValid: true },
- { label: 'Payable', isValid: true, optional: true }
- ];
-
-
+ //popup
+ public dialogOpened = false;
+ public windowOpened = false;
- public registerForm: FormGroup = new FormGroup({
- transID: new FormControl(),
- submissionDate: new FormControl(new Date(2020, 0, 10)),
- status: new FormControl(),
- lender: new FormControl('SuperCredit', Validators.required),
- amount: new FormControl(100, [Validators.required , Validators.min(100), Validators.max(1000000000)]),
- settlementDate: new FormControl(new Date(2020, 0, 9)),
- description: new FormControl( '', Validators.maxLength(2000)),
- });
+ //test
+ public somedata : string = "opened";
+ //form access
- public form = new FormGroup({
- basicInfo: this.registerForm,
- peopleReward: this.registerForm,
- trailIncome :this.registerForm,
- payable: this.registerForm
- });
+ //@ViewChild('birthDate', {static: true}) birthDate: LoanEditComponent;
constructor() { }
- public get currentGroup(): FormGroup {
- return this.getGroupAt(this.currentStep);
+ ngOnInit(): void {
}
- private getGroupAt(index: number): FormGroup {
- const groups = Object.keys(this.form.controls).map((groupName) => this.form.get(groupName)) as FormGroup[];
- return groups[index];
+ public close(component) {
+ this.somedata = "" + Math.random();
+ this[component + 'Opened'] = false;
}
- public next(): void {
- this.currentStep += 1;
+ public open(component) {
+ //this.somedata = "" + Math.random();
+ this[component + 'Opened'] = true;
}
- public prev(): void {
- this.currentStep -= 1;
+ public action(status) {
+ console.log(`Dialog result: ${status}`);
+ this.dialogOpened = false;
}
- public submit(): void {
- this.submitted = true;
- if (!this.form.valid) {
- this.form.markAllAsTouched();
- this.stepper.validateSteps();
- }
- console.log('Submitted data', this.form.value);
- }
+ public min: Date = new Date(2015, 0, 1);
+ public max: Date = new Date(2030, 4, 31);
+ public registerForm: FormGroup = new FormGroup({
+ transID: new FormControl(),
+ submissionDate: new FormControl(new Date(2020, 0, 10)),
+ clientNames : new FormControl([1]),
+ brokers : new FormControl([2]),
+ referals : new FormControl([3]),
+ status: new FormControl(),
+ lender: new FormControl(),
+ limit: new FormControl(),
+ settlementDate: new FormControl(new Date(2020, 0, 9)),
+ });
+ public submitForm(): void {
+ this.registerForm.markAllAsTouched();
+ //this.action('yes');
+ }
- ngOnInit(): void {
+ public clearForm(): void {
+ this.registerForm.reset();
+ //this.action('no');
}
+ public listClientNames: Array<{ text: string, value: number }> = [
+ { text: 'John', value: 1 },
+ { text: 'Steven', value: 2 },
+ { text: 'William', value: 3 }
+ ];
+
+ public statis: { text: string, value: number } = { text: 'Female', value: 2 };
+
}
diff --git a/src/app/loan-detail/loan-detail.component.html b/src/app/loan-detail/loan-detail.component.html
new file mode 100644
index 0000000..cd788d4
--- /dev/null
+++ b/src/app/loan-detail/loan-detail.component.html
@@ -0,0 +1,6 @@
+
+
loan-detail works!
+
+
{{dataItem.Id}}
+
+
{{dataItem.Client}}
diff --git a/src/app/loan-detail/loan-detail.component.scss b/src/app/loan-detail/loan-detail.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/loan-detail/loan-detail.component.spec.ts b/src/app/loan-detail/loan-detail.component.spec.ts
new file mode 100644
index 0000000..38a3823
--- /dev/null
+++ b/src/app/loan-detail/loan-detail.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { LoanDetailComponent } from './loan-detail.component';
+
+describe('LoanDetailComponent', () => {
+ let component: LoanDetailComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ LoanDetailComponent ]
+ })
+ .compileComponents();
+ });
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(LoanDetailComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/loan-detail/loan-detail.component.ts b/src/app/loan-detail/loan-detail.component.ts
new file mode 100644
index 0000000..4336475
--- /dev/null
+++ b/src/app/loan-detail/loan-detail.component.ts
@@ -0,0 +1,16 @@
+import {Component, Input, OnInit} from '@angular/core';
+
+@Component({
+ selector: 'app-loan-detail',
+ templateUrl: './loan-detail.component.html',
+ styleUrls: ['./loan-detail.component.scss']
+})
+export class LoanDetailComponent implements OnInit {
+
+ @Input() public dataItem :any;
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/src/app/loan-edit/basicinfo/basicinfo.component.html b/src/app/loan-edit/basicinfo/basicinfo.component.html
index d0f696c..dd8b2b9 100644
--- a/src/app/loan-edit/basicinfo/basicinfo.component.html
+++ b/src/app/loan-edit/basicinfo/basicinfo.component.html
@@ -1,79 +1,105 @@
-
-