Sheet No 103 changes : ps
This commit is contained in:
parent
528b1dbb80
commit
03f66f5914
@ -261,6 +261,7 @@
|
||||
<span *ngIf="((currentPDStatus!=pdStatusCheck.CANCELLED) && (currentVendorStatus != pdStatusCheck.CANCELLED)) && (userRoleID == '26' || userRoleID == '27') && (userRoleID == '28' && currentVendorStatus !=pdStatusCheck.COMPLETED && currentVendorStatus !=pdStatusCheck.QC_COMPLETED) && (userRoleID == '29' && currentVendorStatus !=pdStatusCheck.QC_COMPLETED)"><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span> -->
|
||||
<span *ngIf="is_agency_logged_in == true && master.lender_short_name == 'MWISE' && LenderRoleID != '25' && (LenderRoleID != '29' || userId == master.fk_pd_allocated_to && currentVendorStatus!='QC COMPLETED')"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].vendor_status!=pdStatusCheck.DRAFT && currentVendorStatus!=pdStatusCheck.BOUNCED && currentVendorStatus!='QC COMPLETED'&& (LenderRoleID == '27' || LenderRoleID == '28'||currentVendorStatus!=pdStatusCheck.TRIGGERED)|| currentPDStatus!=pdStatusCheck.CANCELLED || LenderRoleID == '29'" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,addresses.addtional_pd_data[0].vendor_status)"><mat-icon>question_answer</mat-icon></button></span>
|
||||
<span *ngIf="((currentPDStatus!=pdStatusCheck.CANCELLED) && (currentVendorStatus != pdStatusCheck.CANCELLED)) && (userRoleID == '28' || userRoleID == '26' || userRoleID == '27') "><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span>
|
||||
<span *ngIf="dummyFlag"><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Send back to CPA" matTooltipPosition="above" (click)="allocateToCpa()"><mat-icon>swap_vert</mat-icon></button></span>
|
||||
</div>
|
||||
<ng-template #prompt><!-- Lender ADMIN Section C.S. - {{currentPDStatus}} C.V.S - {{currentVendorStatus}} -->
|
||||
<span *ngIf="master.lender_short_name == 'MWISE' && addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name">
|
||||
@ -292,7 +293,7 @@
|
||||
|
||||
<!--8 . Cancellation - Cancellation not need remaining all status -both normal and vendor -->
|
||||
<span><button *ngIf="(currentPDStatus!==pdStatusCheck.CANCELLED) || (currentPDStatus === pdStatusCheck.ALLOCATED_TO_FIA && (currentVendorStatus!==pdStatusCheck.CANCELLED))" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Cancel PD" matTooltipPosition="above" (click)="cancelPD(addresses)"><mat-icon>cancel_presentation</mat-icon></button></span>
|
||||
|
||||
<!-- <span *ngIf="dummyFlag"><button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Send back to CPA" matTooltipPosition="above" (click)="allocateToCpa()"><mat-icon>swap_vert</mat-icon></button></span> -->
|
||||
</span>
|
||||
</ng-template>
|
||||
</div>
|
||||
|
||||
@ -21,6 +21,7 @@ import Swal from 'sweetalert2';
|
||||
import { VideoPlayerComponent } from 'app/video-player/video-player.component';
|
||||
import { AwsService } from 'app/AwsService/aws.service';
|
||||
import { ExcelUploadDialogComponent } from '../add-pd/excel-upload-dialog/excel-upload-dialog.component';
|
||||
import { environment } from 'environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-view-pd',
|
||||
@ -33,7 +34,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
private notifier: NotifierService;
|
||||
public userRoleID = +localStorage.getItem('user_role');
|
||||
public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
|
||||
private environmentName = environment.environmentName;
|
||||
errorMessage: any;
|
||||
pdMasterData: any = [];
|
||||
pdAddressesData: any = [];
|
||||
@ -133,6 +134,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
is_agency_logged_in: boolean;
|
||||
currentVendorStatus: any;
|
||||
pdAgencyid: any;
|
||||
dummyFlag:any;
|
||||
|
||||
constructor(notifier: NotifierService, private dialog: MatDialog, private _fb: FormBuilder,
|
||||
private _pd: PdTrigerService, private route: ActivatedRoute, private router: Router, private ListPdComponent: ListPdComponent,
|
||||
@ -148,6 +150,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
ngOnInit() {
|
||||
|
||||
this.userRoleType=localStorage.getItem('user_role');
|
||||
|
||||
if(this.userRoleType=='28' || this.userRoleType=='29')
|
||||
{
|
||||
this.is_agency_logged_in=true;
|
||||
@ -161,6 +164,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
this.userId = this._aws.getlocale()
|
||||
console.log(this.userId);
|
||||
console.log(this.userRoleID);
|
||||
this.dummyFlag = (this.environmentName == 'Production Environment' && this.userId == '284') ? true : ((this.environmentName == 'Development Environment' && this.userId == '392') ? true: false);
|
||||
this.ListPdComponent.showListView(false);
|
||||
this.route.params.subscribe(params => {
|
||||
this.viewID = params['pdid'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user