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