Przeglądaj źródła

collective check in after broker-dashboard is ready.

tags/2.037
Patrick Sun 4 lat temu
rodzic
commit
53f3ab526e
25 zmienionych plików z 225 dodań i 36 usunięć
  1. +1
    -1
      package-lock.json
  2. +1
    -1
      package.json
  3. +2
    -0
      src/app/app-routing.module.ts
  4. +2
    -0
      src/app/app.module.ts
  5. +2
    -2
      src/app/auth/auth.component.ts
  6. +3
    -0
      src/app/broker-dashboard/broker-dashboard.component.html
  7. +0
    -0
      src/app/broker-dashboard/broker-dashboard.component.scss
  8. +25
    -0
      src/app/broker-dashboard/broker-dashboard.component.spec.ts
  9. +15
    -0
      src/app/broker-dashboard/broker-dashboard.component.ts
  10. +4
    -1
      src/app/broker-loan-list/broker-loan-list.component.ts
  11. +9
    -4
      src/app/chart-amount-of-loans/chart-amount-of-loans.component.ts
  12. +9
    -4
      src/app/chart-type-of-loans/chart-type-of-loans.component.ts
  13. +6
    -5
      src/app/contact-edit/contact-edit.component.ts
  14. +4
    -2
      src/app/list-all-loans/list-all-loans.component.html
  15. +28
    -0
      src/app/list-all-loans/list-all-loans.component.ts
  16. +35
    -0
      src/app/loan-edit/basicinfo/basicinfo.component.html
  17. +6
    -0
      src/app/loan-edit/basicinfo/basicinfo.component.scss
  18. +20
    -8
      src/app/loan-edit/basicinfo/basicinfo.component.ts
  19. +1
    -1
      src/app/loan-edit/loan-edit.component.ts
  20. +0
    -1
      src/app/main-menu-items.ts
  21. +38
    -1
      src/app/models/loan.model.ts
  22. +1
    -1
      src/app/profile/profile.component.html
  23. +11
    -2
      src/app/service/loan_summary.service.ts
  24. +1
    -1
      src/app/service/session.service.ts
  25. +1
    -1
      src/app/top-bar/top-bar.component.ts

+ 1
- 1
package-lock.json Wyświetl plik

@@ -1,6 +1,6 @@
{
"name": "broker",
"version": "2.0.20",
"version": "2.0.25",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

+ 1
- 1
package.json Wyświetl plik

@@ -1,6 +1,6 @@
{
"name": "broker",
"version": "2.0.20",
"version": "2.0.25",
"scripts": {
"ng": "ng",
"versionIncrease": "npm --no-git-tag-version version patch",

+ 2
- 0
src/app/app-routing.module.ts Wyświetl plik

@@ -31,6 +31,7 @@ import {RewardsAllComponent} from './rewards-all/rewards-all.component';
import {PayOutDetailsComponent} from './pay-out-details/pay-out-details.component';
import {ContactEditComponent} from './contact-edit/contact-edit.component';
import {ContactModel} from './models/contact.model';
import {BrokerDashboardComponent} from './broker-dashboard/broker-dashboard.component';


const routes: Routes = [
@@ -46,6 +47,7 @@ const routes: Routes = [
{path : 'uploads', component: LenderUploadsComponent, canActivate: [AuthGuard]},
{path : 'uploads/:id', component: LenderUploadsComponent, canActivate: [AuthGuard]},
{path : 'broker-loan-list', component: BrokerLoanListComponent, canActivate: [AuthGuard] },
{path : 'broker-dashboard', component: BrokerDashboardComponent, canActivate: [AuthGuard] },
{path : 'broker-reward', component: BrokerRewardComponent, canActivate: [AuthGuard] },
{path : 'broker-profile', component: BrokerProfileComponent, canActivate: [AuthGuard]},
{path : 'client-loan-list', component: ClientLoanListComponent, canActivate: [AuthGuard] },

+ 2
- 0
src/app/app.module.ts Wyświetl plik

@@ -116,6 +116,7 @@ import { NumberRangeFilterComponent } from './grid-filter/number-range-filter/nu
import { StringFilterComponent } from './grid-filter/string-filter/string-filter.component';
import { DateFilterComponent } from './grid-filter/date-filter/date-filter.component';
import { ContactEditComponent } from './contact-edit/contact-edit.component';
import { BrokerDashboardComponent } from './broker-dashboard/broker-dashboard.component';



@@ -200,6 +201,7 @@ export function initializeApp(appConfig: AppConfig): () => Promise<void> {
StringFilterComponent,
DateFilterComponent,
ContactEditComponent,
BrokerDashboardComponent,
],
imports: [
BrowserModule,

+ 2
- 2
src/app/auth/auth.component.ts Wyświetl plik

@@ -52,7 +52,7 @@ export class AuthComponent implements OnInit, OnDestroy{
this.loading = false;
// console.log (' auth event login ' , rsp );
if (rsp.login) {
switch ( rsp.role ) {
switch ( rsp.role.toLowerCase() ) {
case 'admin':
this.router.navigate(['/dashboard']);
break;
@@ -63,7 +63,7 @@ export class AuthComponent implements OnInit, OnDestroy{
this.router.navigate(['/dashboard']);
break;
case 'broker':
this.router.navigate(['/broker-loan-list']);
this.router.navigate(['/broker-dashboard']);
break;
case 'user':
this.router.navigate(['/client-loan-list']);

+ 3
- 0
src/app/broker-dashboard/broker-dashboard.component.html Wyświetl plik

@@ -0,0 +1,3 @@
<app-chart-type-of-loans></app-chart-type-of-loans>
<app-chart-amount-of-loans></app-chart-amount-of-loans>
<app-broker-loan-list></app-broker-loan-list>

+ 0
- 0
src/app/broker-dashboard/broker-dashboard.component.scss Wyświetl plik


+ 25
- 0
src/app/broker-dashboard/broker-dashboard.component.spec.ts Wyświetl plik

@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { BrokerDashboardComponent } from './broker-dashboard.component';

describe('BrokerDashboardComponent', () => {
let component: BrokerDashboardComponent;
let fixture: ComponentFixture<BrokerDashboardComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ BrokerDashboardComponent ]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(BrokerDashboardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/broker-dashboard/broker-dashboard.component.ts Wyświetl plik

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-broker-dashboard',
templateUrl: './broker-dashboard.component.html',
styleUrls: ['./broker-dashboard.component.scss']
})
export class BrokerDashboardComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}

+ 4
- 1
src/app/broker-loan-list/broker-loan-list.component.ts Wyświetl plik

@@ -25,7 +25,10 @@ export class BrokerLoanListComponent implements OnInit {

private loadData(): void {
const sort: Array <SortDescriptor> = [{dir: 'desc', field: 'Settlement'}];
const filter: CompositeFilterDescriptor = {logic: 'and', filters: [] };
const filter: CompositeFilterDescriptor = {logic: 'or', filters: [] };
filter.filters.push({field:'client_ids', operator: 'contains', value: this.broker.Id, ignoreCase: true})
filter.filters.push({field:'broker_ids', operator: 'contains', value: this.broker.Id, ignoreCase: true})
filter.filters.push({field:'other_rewarder_ids', operator: 'contains', value: this.broker.Id, ignoreCase: true})
this.lss.query({ skip: 0, take: 1000, sort, filter});
}


+ 9
- 4
src/app/chart-amount-of-loans/chart-amount-of-loans.component.ts Wyświetl plik

@@ -3,6 +3,7 @@ import {Observable} from 'rxjs';
import {TypeOfLoansModel} from '../models/type-of-loans.model';
import {AuthService} from '../service/auth.service';
import {HttpClient} from '@angular/common/http';
import {SessionService} from '../service/session.service';

@Component({
selector: 'app-chart-amount-of-loans',
@@ -19,16 +20,20 @@ export class ChartAmountOfLoansComponent implements OnInit {
public share = [87, 154, 210, 215];
public count = [87, 154, 210, 215];

constructor(private auth: AuthService, private http: HttpClient) { }
constructor(private auth: AuthService, private ss: SessionService, private http: HttpClient) { }

ngOnInit(): void {
this.getAmountOfLoans();
let peopleId = '';
if ( this.ss.loggedIn.UserEx.Role.toLowerCase() != 'admin' ) {
peopleId = this.ss.loggedIn.UserEx.Id;
}
this.getAmountOfLoans(peopleId);
}


// tslint:disable-next-line:typedef
public getAmountOfLoans() {
this.http.get<TypeOfLoansModel[]>(this.auth.getUrl('chart/amount-of-loans')).subscribe(
public getAmountOfLoans(peopleId: string) {
this.http.get<TypeOfLoansModel[]>(this.auth.getUrl('chart/amount-of-loans/' + peopleId)).subscribe(
resp => {
this.buildChart(resp);
}

+ 9
- 4
src/app/chart-type-of-loans/chart-type-of-loans.component.ts Wyświetl plik

@@ -5,6 +5,7 @@ import {HttpClient} from '@angular/common/http';
import {AuthService} from '../service/auth.service';
import {map} from 'rxjs/operators';
import {equalsArray, randomNumber} from '../helper.function';
import {SessionService} from '../service/session.service';

@Component({
selector: 'app-chart-type-of-loans',
@@ -18,7 +19,7 @@ export class ChartTypeOfLoansComponent implements OnInit {

public totalNumberOfLoans = 0;

constructor(private auth: AuthService, private http: HttpClient) { }
constructor(private auth: AuthService, private ss: SessionService, private http: HttpClient) { }

private previous: TypeOfLoansModel[] = [];
ngOnInit(): void {
@@ -32,7 +33,11 @@ export class ChartTypeOfLoansComponent implements OnInit {
}

public updateTypeOfLoans(observer: Subscriber<TypeOfLoansModel[]>): void {
this.getTypeOfLoans().subscribe(
let peopleId = '';
if ( this.ss.loggedIn.UserEx.Role.toLowerCase() != 'admin' ) {
peopleId = this.ss.loggedIn.UserEx.Id;
}
this.getTypeOfLoans(peopleId).subscribe(
resp => {
if ( ! equalsArray(this.previous, resp ) ){
this.previous = resp;
@@ -50,8 +55,8 @@ export class ChartTypeOfLoansComponent implements OnInit {
}, refresh);
}

public getTypeOfLoans(): Observable<TypeOfLoansModel[]> {
return this.http.get<TypeOfLoansModel[]>(this.auth.getUrl('chart/type-of-loans')).pipe(
public getTypeOfLoans(peopleId: string): Observable<TypeOfLoansModel[]> {
return this.http.get<TypeOfLoansModel[]>(this.auth.getUrl('chart/type-of-loans/' + peopleId)).pipe(
map(
input => {
const ret = [];

+ 6
- 5
src/app/contact-edit/contact-edit.component.ts Wyświetl plik

@@ -98,11 +98,12 @@ export class ContactEditComponent implements OnInit {
this.People = new UserExModel(resp);
this.avatarUrl = 'url(' + this.config.getUrl('avatar/' + this.People.Id) + ')';
this.People.defaultContact = this.People.Contacts[0];
switch ( this.People.Role ){
switch ( this.People.Role.toLowerCase() ){
case "admin":
this.roleAdmin = true;
this.roleManager = false;
this.roleAccountant = false;
this.roleAccountant = false;
break
case "manager":
this.roleAdmin = false;
@@ -114,15 +115,15 @@ export class ContactEditComponent implements OnInit {
this.roleManager = true;
this.roleAccountant = false;
break;
case "User":
case "user":
this.featureUser = true;
this.featureBroker = false;
break;
case "Broker":
case "broker":
this.featureUser = true;
this.featureBroker = true;
break;
case "People":
case "people":
this.featureUser = false;
this.featureBroker = false;
break;
@@ -299,7 +300,7 @@ export class ContactEditComponent implements OnInit {

private doSave(): void {
this.ps.saveUserEx(this.People).subscribe(
resp => { console.log (resp); },
resp => { this.People.Id = resp.Id; },
err => { this.msgBox.Show('Err saving user, please try again later'); },
() => {}
);

+ 4
- 2
src/app/list-all-loans/list-all-loans.component.html Wyświetl plik

@@ -111,7 +111,9 @@

<kendo-grid-column field="Status" title="Status" [width]="180" [headerClass]="'colStatus'" [class]="'alignStatus colStatus'" [resizable]="false" >
<ng-template kendoGridCellTemplate let-dataItem>
<span *ngIf="dataItem.Status != 'none'" class="badge badge-success">{{dataItem.Status}}</span>
<span *ngIf="dataItem.Status != 'none'" #anchor class="badge badge-success">{{dataItem.Status}}</span>
<kendo-dropdownbutton [data]="getMileStone(dataItem)" [icon]="'calendar'"> </kendo-dropdownbutton>

</ng-template>
<ng-template kendoGridFilterCellTemplate let-filter let-column="column">
<app-string-filter [filter]="filter" [fieldName]="'Status'">
@@ -168,7 +170,7 @@
</app-number-range-filter>
</ng-template>
</kendo-grid-column>
<kendo-grid-column field="OffsetBalance" title="Offset Balance($)" width="200" [class]="'topAlign'" filter="numeric">
<kendo-grid-column *ngIf="false" field="OffsetBalance" title="Offset Balance($)" width="200" [class]="'topAlign'" filter="numeric">
<ng-template kendoGridCellTemplate let-dataItem>
<span *ngIf="dataItem.OffsetBalance > 0" [ngClass]="{'red text-bold': dataItem.Percentage > 60}">
{{ dataItem.OffsetBalance | currency }}

+ 28
- 0
src/app/list-all-loans/list-all-loans.component.ts Wyświetl plik

@@ -209,4 +209,32 @@ export class ListAllLoansComponent implements OnInit {
hideAfter: 5000,
});
}

public getMileStone( di: LoanModel) : any {
let ret = [
{ text: 'ApplicationReceived :' + this.dateToText(di.ApplicationReceived) },
{ text: 'Lodgement : ' + this.dateToText(di.Lodgement)},
{ text: 'ValuationOrdered : ' + this.dateToText(di.ValuationOrdered)},
{ text: 'ValuationCompleted: ' + this.dateToText(di.ValuationCompleted)},
{ text: 'ConditionalApproved: ' + this.dateToText(di.ConditionalApproved)},
{ text: 'OutstandingReturned: ' + this.dateToText(di.OutstandingReturned)},
{ text: 'FormalApproved: ' + this.dateToText(di.FormalApproved)},
{ text: 'SettlementBooked: ' + this.dateToText(di.SettlementBooked)},
{ text: 'SettlementCompleted: ' + this.dateToText(di.SettlementCompleted)},
];

return ret ;
}

private dateToText(d: Date): string {
if ( !d ) {
return " ----- ";
}

if (d.getFullYear() < 1900 ) {
return "----"
}else{
return d.toLocaleDateString("en-US")
}
}
}

+ 35
- 0
src/app/loan-edit/basicinfo/basicinfo.component.html Wyświetl plik

@@ -37,6 +37,41 @@
</kendo-formfield>
<div class="vertical-spacer"></div>

<div class="time-milestone" >
<span>ApplicationReceived: </span> <kendo-datepicker [(value)]="Loan.ApplicationReceived"></kendo-datepicker>
</div>
<div class="time-milestone" >
<span>Lodgement: </span> <kendo-datepicker [(value)]="Loan.Lodgement"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>ValuationOrdered: </span> <kendo-datepicker [(value)]="Loan.ValuationOrdered"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>ValuationCompleted: </span> <kendo-datepicker [(value)]="Loan.ValuationCompleted"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>ConditionalApproved: </span> <kendo-datepicker [(value)]="Loan.ConditionalApproved"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>OutstandingReturned: </span> <kendo-datepicker [(value)]="Loan.OutstandingReturned"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>FormalApproved: </span> <kendo-datepicker [(value)]="Loan.FormalApproved"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>SettlementBooked: </span> <kendo-datepicker [(value)]="Loan.SettlementBooked"></kendo-datepicker>
</div>
<div class="time-milestone" >

<span>SettlementCompleted: </span> <kendo-datepicker [(value)]="Loan.SettlementCompleted"></kendo-datepicker>
</div>

<kendo-formfield>
<kendo-label [for]="Lender" text="Lender Organization (Funding Agency)">
</kendo-label>

+ 6
- 0
src/app/loan-edit/basicinfo/basicinfo.component.scss Wyświetl plik

@@ -3,3 +3,9 @@
margin-bottom:20px;
}

div.time-milestone{
display: inline-block;
width:200px;
margin: 15px;
background: beige;
}

+ 20
- 8
src/app/loan-edit/basicinfo/basicinfo.component.ts Wyświetl plik

@@ -46,17 +46,29 @@ export class BasicinfoComponent implements OnInit {
`;

public listLoanStatus: Array<{text: string, value: string}> = [
{text: '1 - Processing:   Just received from Client', value: 'Processing'} ,
{text: '2 - Valuation :   Valuating From Bank', value: 'Valuation'},
{text: '3 - Application in Progress:   Application Submitted', value: 'Application in Progress'},
{text: '4 - Approved :   Approved by lender', value: 'Approved' },
{text: '5 - Settled :   Settlement date finalized.', value: 'Settled'},
{text: '6 - Finished :   Fully paid, terminated, or switched)', value: 'Finished'},
{text: '7 - Aborted :   Ended with negative reasons', value: 'Aborted'},
{text: '8 - Declined :   Declined by Fund provider', value: 'Declined'},
{text: '1 - Application Received:   Just received from Client', value: 'ApplicationReceived'} ,
{text: '2 - Lodgement :    Start Lodgement', value: 'Lodgement'},
{text: '3 - Valuation Ordered:   Valuation Ordered', value: 'ValuationOrdered'},
{text: '4 - Valuation Completed :   Valuation Completed', value: 'ValuationCompleted' },
{text: '5 - Conditional Approval :   Conditional Approval.', value: 'ConditionalApproval'},
{text: '6 - Outstanding Returned :   Outstanding Returned', value: 'OutstandingReturned'},
{text: '7 - Formal Approved :   Outstanding Returned', value: 'FormalApproved'},
{text: '8 - Settlement Booked :   Ended with negative reasons', value: 'SettlementBooked'},
{text: '9 - Settlement Completed :   Declined by Fund provider', value: 'SettlementCompleted'},

{text: 'Processing:   Just received from Client', value: 'Processing'} ,
{text: 'Valuation :   Valuating From Bank', value: 'Valuation'},
{text: 'Application in Progress:   Application Submitted', value: 'Application in Progress'},
{text: 'Approved :   Approved by lender', value: 'Approved' },
{text: 'Settled :   Settlement date finalized.', value: 'Settled'},
{text: 'Finished :   Fully paid, terminated, or switched)', value: 'Finished'},
{text: 'Aborted :   Ended with negative reasons', value: 'Aborted'},
{text: 'Declined :   Declined by Fund provider', value: 'Declined'},

];

ngOnInit(): void {
console.log(this);
}

public next(basicInfoForm: NgForm): void {

+ 1
- 1
src/app/loan-edit/loan-edit.component.ts Wyświetl plik

@@ -87,7 +87,7 @@ export class LoanEditComponent implements OnInit {
// console.log('loading loan for edit ... ', id);
this.lss.getLoan(id).subscribe(
resp => {
this.Loan.Response = resp;
this.Loan = new LoanModel(resp);
this.Loan.auth = this.auth;
this.Loan.lss = this.lss;
self.LoanUpdated.emit(this.Loan);

+ 0
- 1
src/app/main-menu-items.ts Wyświetl plik

@@ -42,7 +42,6 @@ export const mainMenuItems: any[] = [
icon: 'user',
items: [
{ text: 'Add ', icon: 'plus', url: './#contact' },
{ text: 'Add ', icon: 'plus', url: './#people-add' },
{ text: 'List All', fa: faIdCard , url: './#list-all-people'},
]
},

+ 38
- 1
src/app/models/loan.model.ts Wyświetl plik

@@ -35,6 +35,16 @@ export class LoanModel {
public auth?: AuthService;
public lss?: LoanSingleService;

public ApplicationReceived: Date;
public Lodgement: Date;
public ValuationOrdered: Date;
public ValuationCompleted: Date;
public ConditionalApproved: Date;
public OutstandingReturned: Date;
public FormalApproved: Date;
public SettlementBooked: Date;
public SettlementCompleted: Date;

constructor(payload: Partial<LoanModel>) {
this.Id = payload.Id || '';
this.Amount = payload.Amount || 0;
@@ -97,6 +107,17 @@ export class LoanModel {

this.auth = payload.auth || null;
this.lss = payload.lss || null;


this.ApplicationReceived = this.getDate(payload.ApplicationReceived);
this.Lodgement = this.getDate(payload.Lodgement);
this.ValuationOrdered = this.getDate(payload.ValuationOrdered);
this.ValuationCompleted = this.getDate(payload.ValuationCompleted);
this.ConditionalApproved= this.getDate(payload.ConditionalApproved);
this.OutstandingReturned= this.getDate(payload.OutstandingReturned);
this.FormalApproved= this.getDate(payload.FormalApproved);
this.SettlementBooked= this.getDate(payload.SettlementBooked);
this.SettlementCompleted= this.getDate(payload.SettlementCompleted);
}

public static EmptyNew(lss: LoanSingleService, auth: AuthService): LoanModel {
@@ -389,7 +410,23 @@ export class LoanModel {
PayIn: this.PayIn,
PeopleMap: this.PeopleMap,
auth: undefined,
lss: undefined
lss: undefined,

ApplicationReceived: this.ApplicationReceived,
Lodgement: this.Lodgement,
ValuationOrdered: this.ValuationOrdered,
ValuationCompleted: this.ValuationCompleted,
ConditionalApproved: this.ConditionalApproved,
OutstandingReturned: this.OutstandingReturned,
FormalApproved: this.FormalApproved,
SettlementBooked: this.SettlementBooked,
SettlementCompleted: this.SettlementCompleted
});
}

private getDate(field : any ): Date {
let ret = field ? new Date(field) : null ;
if ( ret && ret !== null && ret.getFullYear() < 1900 ) return null ;
return ret;
}
}

+ 1
- 1
src/app/profile/profile.component.html Wyświetl plik

@@ -4,7 +4,7 @@
<div class="container settings">
<div class="row justify-content-center">
<div class="add-new" >
<kendo-icon [name]="'reload'" [size]="'medium'" [themeColor]="'warning'" (click)="onAddNew()">
<kendo-icon *ngIf="showAdminTool && People.Id != ''" [name]="'reload'" [size]="'medium'" [themeColor]="'warning'" (click)="onAddNew()">
</kendo-icon>
</div>
<div class="col-sm-12">

+ 11
- 2
src/app/service/loan_summary.service.ts Wyświetl plik

@@ -35,8 +35,17 @@ export abstract class LoanQueryService extends BehaviorSubject<GridDataResult> {
response.data.forEach( (value, index) =>{
response.data[index].Settlement = this.convertToDateTimeObject(value.Settlement);
response.data[index].LastPayInDate = this.convertToDateTimeObject(value.LastPayInDate);
// console.log(index, response.data[index].Settlement , typeof response.data[index].Settlement );
// console.log(index, response.data[index].LastPayInDate , typeof response.data[index].LastPayInDate );

response.data[index].ApplicationReceived = this.convertToDateTimeObject(value.ApplicationReceived);
response.data[index].Lodgement = this.convertToDateTimeObject(value.Lodgement);
response.data[index].ValuationOrdered = this.convertToDateTimeObject(value.ValuationOrdered);
response.data[index].ValuationCompleted = this.convertToDateTimeObject(value.ValuationCompleted);
response.data[index].ConditionalApproved = this.convertToDateTimeObject(value.ConditionalApproved);
response.data[index].OutstandingReturned = this.convertToDateTimeObject(value.OutstandingReturned);
response.data[index].FormalApproved = this.convertToDateTimeObject(value.FormalApproved);
response.data[index].SettlementBooked = this.convertToDateTimeObject(value.SettlementBooked);
response.data[index].SettlementCompleted = this.convertToDateTimeObject(value.SettlementCompleted);

});
// console.log(response);
return response;

+ 1
- 1
src/app/service/session.service.ts Wyświetl plik

@@ -61,7 +61,7 @@ export class SessionService {

if (resp.UserEx) {
this.loggedIn.UserEx = new UserExModel(resp.UserEx);
console.log(this.loggedIn, resp);
// console.log(this.loggedIn, resp);
}

this.loginResult.emit(this.loggedIn);

+ 1
- 1
src/app/top-bar/top-bar.component.ts Wyświetl plik

@@ -58,7 +58,7 @@ export class TopBarComponent implements OnInit , OnDestroy {

private selectMenuShow(role: string): void {
this.showMenu = true;
switch ( role ){
switch ( role.toLowerCase() ){
case 'admin':
this.items = mainMenuItems;
break;

Ładowanie…
Anuluj
Zapisz