Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import { GetusercredService } from '../getusercred.service';
- import { CheckusercredService } from '../checkusercred.service';
- // import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
- @Component({
- selector: 'app-navbarside',
- templateUrl: './navbarside.component.html',
- styleUrls: ['./navbarside.component.css']
- })
- export class NavbarsideComponent implements OnInit {
- username:any;
- screensize:any;
- showmenu="false";
- constructor(public getUserCred:GetusercredService, public checkUserCred:CheckusercredService) { }
- //Inquiry
- jsonForInquiryPD:any;
- jsonForInquiryLGD:any;
- jsonForInquiryPDLGD:any;
- jsonForInquiryPDFL:any;
- jsonForInquiryPDLGDFL:any;
- jsonForInquiryCKPN:any;
- jsonForInquiryRegressionModel:any;
- //Treasury
- jsonForInquiryDefaultTableRate:any;
- jsonForInquiryAssetType:any;
- jsonForInquiryAssetECLCalculation:any;
- //ECL Modelling
- jsonForInquiryMacroEconomyData:any;
- jsonForInquiryBackTesting:any;
- jsonForInquiryScenarioGenerator:any;
- //Config
- jsonForInquiryMacroEconomyConfig:any;
- jsonForInquiryECLModelling:any;
- jsonForInquiryRatingAndStaging:any;
- ngOnInit() {
- var usercred=this.getUserCred.getUserData();
- this.username = JSON.parse(usercred).userFullname;
- //Inquiry
- this.jsonForInquiryPD={};
- this.jsonForInquiryLGD={};
- this.jsonForInquiryPDLGD={};
- this.jsonForInquiryPDFL={};
- this.jsonForInquiryPDLGDFL={};
- this.jsonForInquiryCKPN={};
- this.jsonForInquiryRegressionModel={};
- //Treasury
- this.jsonForInquiryDefaultTableRate={};
- this.jsonForInquiryAssetType={};
- this.jsonForInquiryAssetECLCalculation={};
- //ECL Modelling
- this.jsonForInquiryMacroEconomyData={};
- this.jsonForInquiryBackTesting={};
- this.jsonForInquiryScenarioGenerator={};
- this.jsonForInquiryMacroEconomyConfig={};
- this.jsonForInquiryECLModelling={};
- this.jsonForInquiryRatingAndStaging={};
- //Inquiry
- this.jsonForInquiryPD=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryPD"));
- this.jsonForInquiryLGD=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryLGD"));
- this.jsonForInquiryPDLGD=JSON.parse(this.checkUserCred.checkUserCred(usercred,"inquiryPDLGD"));
- this.jsonForInquiryPDFL=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryPDFL"));
- this.jsonForInquiryPDLGDFL=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryPDLGDFL"));
- this.jsonForInquiryCKPN=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryCKPN"));
- this.jsonForInquiryRegressionModel=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryRegressionModel"));
- //Treasury
- this.jsonForInquiryDefaultTableRate=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryAssetRating"));
- this.jsonForInquiryAssetECLCalculation=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryAssetDataECL"));
- //ECL Modelling
- this.jsonForInquiryMacroEconomyData=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryMacroEconomyData"));
- this.jsonForInquiryBackTesting=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryBackTesting"));
- this.jsonForInquiryScenarioGenerator=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryForwardLookingScenario"));
- //Config
- this.jsonForInquiryMacroEconomyConfig=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryMacroEconomyConfig"));
- this.jsonForInquiryECLModelling=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryECLConfig"));
- this.jsonForInquiryRatingAndStaging=JSON.parse(this.checkUserCred.checkUserCred(usercred,"InquiryRatingConfig"));
- // this.breakpointObserver.observe([
- // Breakpoints.XSmall,
- // Breakpoints.Small,
- // Breakpoints.Medium,
- // Breakpoints.Large,
- // Breakpoints.XLarge
- // ]).subscribe(result => {
- // if (result.breakpoints[Breakpoints.XSmall]) {
- // this.showmenu="true";
- // }
- // if (result.breakpoints[Breakpoints.Small]) {
- // this.showmenu="true";
- // }
- // if (result.breakpoints[Breakpoints.Medium]) {
- // this.showmenu="true";
- // }
- // if (result.breakpoints[Breakpoints.Large]) {
- // this.showmenu="false";
- // }
- // if (result.breakpoints[Breakpoints.XLarge]) {
- // this.showmenu="false";
- // }
- // });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement