add smcagencyid
This commit is contained in:
parent
54aa0f971d
commit
b931172686
@ -5,7 +5,7 @@
|
||||
margin-top: -5px;
|
||||
display: block;
|
||||
}
|
||||
:host /deep/ {
|
||||
:host {
|
||||
mat-sidenav {
|
||||
max-width: 400px;
|
||||
max-height: 500px;
|
||||
|
||||
@ -175,118 +175,135 @@ export class PdTrigerService {
|
||||
// get pd details
|
||||
getPdDetails(lenderId): Observable<any> {
|
||||
|
||||
this.userRoleType=localStorage.getItem('user_role');
|
||||
this.usertype=localStorage.getItem('usertype');
|
||||
if(this.usertype=='true')
|
||||
{
|
||||
if(this.userRoleType=='29')
|
||||
{
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
let userid1=this._aws.getlocale()
|
||||
let userid = localStorage.getItem('userid');
|
||||
const Lender:any = this.entity_id ?
|
||||
{ params: new HttpParams().set('lenderid', this.entity_id) } :
|
||||
{};
|
||||
|
||||
Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid1).set('pdagencyid',this.pdagencyid).set('pdofficerid',userid) : {}
|
||||
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", Lender)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
// this.usertype=localStorage.getItem('usertype');
|
||||
|
||||
|
||||
// else if(this.userRoleType=='28')
|
||||
// {
|
||||
// // alert('manager');
|
||||
// console.log('manager');
|
||||
// this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
let userid1=this._aws.getlocale()
|
||||
// this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
// let userid1=this._aws.getlocale()
|
||||
|
||||
const Lender:any = this.entity_id ?
|
||||
{ params: new HttpParams().set('lenderid', this.entity_id) } :
|
||||
{};
|
||||
// const Lender:any = this.entity_id ?
|
||||
// { params: new HttpParams().set('lenderid', this.entity_id) } :
|
||||
// {};
|
||||
|
||||
Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid1).set('pdagencyid',this.pdagencyid) : {}
|
||||
// Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid1).set('pdagencyid',this.pdagencyid) : {}
|
||||
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", Lender)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
}
|
||||
// return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", Lender)
|
||||
// .pipe(
|
||||
// catchError(this.handleError('operation', []))
|
||||
// )
|
||||
// }
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
let userRoleType1=localStorage.getItem('user_role');
|
||||
|
||||
let latest =localStorage.getItem('Latest');
|
||||
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
|
||||
let LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
|
||||
let userid=this._aws.getlocale()
|
||||
|
||||
const Lender:any = this.entity_id ?
|
||||
{ params: new HttpParams().set('lenderid', this.entity_id) } :
|
||||
{ };
|
||||
// if(LenderRoleID == '25') {
|
||||
if(LenderRoleID=='28' || LenderRoleID=='29')
|
||||
{
|
||||
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid).set('pdagencyid',this.pdagencyid) : {}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Lender.params = Lender && Lender.params ? Lender.params.set('createdby',userid) : {}
|
||||
}
|
||||
// }
|
||||
return this._http.get<any>(this.apiUrl + "listLessPDDetails/get",Lender)
|
||||
return this._http.get<any>(this.apiUrl + "listLessPDDetails/get",Lender)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// get status based pd list
|
||||
getTabStatusPdDetails(status: string,lenderId): Observable<any> {
|
||||
|
||||
this.usertype=localStorage.getItem('usertype');
|
||||
if(this.usertype=='true')
|
||||
{
|
||||
if(this.userRoleType=='29')
|
||||
{
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
let userid1=this._aws.getlocale()
|
||||
let userid = localStorage.getItem('userid');
|
||||
let paramHttp1:any= this.entity_id && status ?
|
||||
{params : new HttpParams().set('lenderid', this.entity_id).set('status',status).set('pdagencyid',this.pdagencyid).set('pdofficerid',userid).set('is_smc_vendor',this.usertype)} : {};
|
||||
paramHttp1.params = paramHttp1.params.set('createdby',userid1)
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp1)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
// let LenderID=localStorage.getItem('LenderRoleID');
|
||||
|
||||
// if(LenderID=='29')
|
||||
// {
|
||||
// this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
// this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
// let userid1=this._aws.getlocale()
|
||||
// let userid = localStorage.getItem('userid');
|
||||
// let paramHttp1:any= this.entity_id && status ?
|
||||
// {params : new HttpParams().set('lenderid', this.entity_id).set('status',status).set('pdagencyid',this.pdagencyid).set('pdofficerid',userid).set('is_smc_vendor',this.usertype)} : {};
|
||||
// paramHttp1.params = paramHttp1.params.set('createdby',userid1)
|
||||
// return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp1)
|
||||
// .pipe(
|
||||
// catchError(this.handleError('operation', []))
|
||||
// )
|
||||
// }
|
||||
|
||||
else
|
||||
{
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
let userid1=this._aws.getlocale()
|
||||
let paramHttp1:any= this.entity_id && status ?
|
||||
{params : new HttpParams().set('lenderid', this.entity_id).set('status',status).set('pdagencyid',this.pdagencyid)} : {};
|
||||
paramHttp1.params = paramHttp1.params.set('createdby',userid1)
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp1)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// else if(LenderID=='28')
|
||||
// {
|
||||
// this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
// this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
// let userid1=this._aws.getlocale()
|
||||
// let paramHttp1:any= this.entity_id && status ?
|
||||
// {params : new HttpParams().set('lenderid', this.entity_id).set('status',status).set('pdagencyid',this.pdagencyid)} : {};
|
||||
// paramHttp1.params = paramHttp1.params.set('createdby',userid1)
|
||||
// return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp1)
|
||||
// .pipe(
|
||||
// catchError(this.handleError('operation', []))
|
||||
// )
|
||||
// }
|
||||
|
||||
|
||||
|
||||
this.entity_id=localStorage.getItem('LocalSetEntity');
|
||||
|
||||
let LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
let userid=this._aws.getlocale()
|
||||
if(LenderRoleID=='28'||LenderRoleID=='29')
|
||||
{
|
||||
|
||||
this.pdagencyid = localStorage.getItem('smc_agency_id');
|
||||
let paramHttp1:any= this.entity_id && status ?
|
||||
|
||||
{params : new HttpParams().set('lenderid', this.entity_id).set('status',status).set('pdagencyid',this.pdagencyid)} : {};
|
||||
paramHttp1.params = paramHttp1.params.set('createdby',userid)
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp1)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
let paramHttp:any= this.entity_id && status ?
|
||||
|
||||
{params : new HttpParams().set('lenderid', this.entity_id).set('status',status)} : {};
|
||||
paramHttp.params = paramHttp.params.set('createdby',userid)
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp)
|
||||
return this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", paramHttp)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// get edit row pd details
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
margin-top: -5px;
|
||||
display: block;
|
||||
}
|
||||
:host /deep/ {
|
||||
:host {
|
||||
mat-sidenav {
|
||||
max-width: 400px;
|
||||
max-height: 500px;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
@import "../mixins/bi-app/bi-app-ltr";
|
||||
@import "../app.variables";
|
||||
@import "../mixins";
|
||||
:host /deep/ {
|
||||
:host {
|
||||
[appAccordionToggle] {
|
||||
cursor: pointer;
|
||||
}
|
||||
@ -86,7 +86,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.app-dark :host /deep/ {
|
||||
.app-dark :host {
|
||||
.messages-list {
|
||||
.mat-list-item {
|
||||
background: mat-color($dark-background, card);
|
||||
@ -95,7 +95,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
[dir="rtl"] :host /deep/ {
|
||||
[dir="rtl"] :host {
|
||||
.messages-nav {
|
||||
mat-icon {
|
||||
margin-right: 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user