add photograph section
This commit is contained in:
parent
9c8f8d2133
commit
048a9959f5
@ -18,33 +18,35 @@ export class ImagesAllComponent implements OnInit { imageData: any;
|
||||
notifier: NotifierService;
|
||||
dialogRef: any;
|
||||
params: { pd_id: string; random_string: any; };
|
||||
// params: { pd_id: string; random_string: any; };
|
||||
constructor(private _pd: PdTrigerService,
|
||||
|
||||
private dialog: MatDialog, notifier:NotifierService,
|
||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any,@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any, @Inject(MAT_DIALOG_DATA) public data: any) {
|
||||
this.notifier = notifier
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
|
||||
console.log(this.data);
|
||||
|
||||
this.getPDImageDetails();
|
||||
}
|
||||
getPDImageDetails() {
|
||||
if(this.data.page==1)
|
||||
{
|
||||
|
||||
this.params = {"pd_id":"","random_string":this.data.random_string}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
this.params = {"pd_id":"","random_string":this.pd_all_details.pdmaster_details.random_string}
|
||||
}
|
||||
console.log(this.pd_all_details)
|
||||
|
||||
|
||||
let params = {"pd_id":"","random_string":this.pd_all_details.pdMasterList.random_string}
|
||||
if(this.data.page==1)
|
||||
{
|
||||
|
||||
this.params = {"pd_id":"","random_string":this.data.random_string}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
this.params = {"pd_id":"","random_string":this.pd_all_details.pdmaster_details.random_string}
|
||||
}
|
||||
console.log(this.pd_all_details)
|
||||
console.log('abi');
|
||||
//let params = {"pd_id":"","random_string":this.pd_all_details.pdMasterList.random_string}
|
||||
//let params = {"pd_id":"","random_string":'i2PnHMA7cdGx8zkz'}
|
||||
// console.log(params);
|
||||
this._pd.getPDImgDetails(this.params).subscribe(result=>{
|
||||
|
||||
@ -216,7 +216,7 @@
|
||||
<span *ngIf="master.fk_pd_type == '2' && master.vendor_status != null" matTooltip="Vendor Status" matTooltipPosition="above" style="font-size:14px !important;color:rgb(2, 124, 181) !important;">( {{master.agency_short_name}} - {{master.vendor_status}} )</span>
|
||||
</div>
|
||||
<div fxFlex="80" align="right">
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 10"><button *ngIf="master.pd_status!=pdStatusCheck.CANCELLED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Photograph Section" matTooltipPosition="above" (click)="photographsection(master,addresses)"><mat-icon>add_a_photo</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 10"><button *ngIf="master.pd_status!=pdStatusCheck.CANCELLED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Photograph Section" matTooltipPosition="above" (click)="photographsection(master,addresses)"><mat-icon>collections</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 10"><button *ngIf="master.pd_status!=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><button *ngIf="roleAccessDetails.trigger && addresses.assigned_pd==null || addresses.assigned_pd==''" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate PD for this address' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 10"><button *ngIf="roleAccessDetails.allocate && addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && master.pd_status!=pdStatusCheck.ADD_ON_PENDING && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master,addresses)"><mat-icon>verified_user</mat-icon></button></span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user