changes : ps
This commit is contained in:
parent
1e2e7912e4
commit
a36743770f
@ -98,7 +98,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="Action">
|
<ng-container matColumnDef="Action">
|
||||||
<mat-cell class="cell center" *matCellDef="let details;">
|
<mat-cell class="cell center" *matCellDef="let details;">
|
||||||
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" ((click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">
|
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
|||||||
@ -87,11 +87,17 @@
|
|||||||
matTooltip="Edit " matTooltipPosition="below">
|
matTooltip="Edit " matTooltipPosition="below">
|
||||||
<mat-icon>edit</mat-icon>
|
<mat-icon>edit</mat-icon>
|
||||||
</button> -->
|
</button> -->
|
||||||
<button type="button" class="mr-1 mb-1 hover-icon" mat-raised-button mat-icon-button
|
<button type="button" class="mr-1 hover-icon" mat-raised-button mat-icon-button
|
||||||
(click)="removeIndividuals(i,details)" matTooltip="Remove Individuals"
|
(click)="removeIndividuals(i,details)" matTooltip="Remove Individuals"
|
||||||
matTooltipPosition="below">
|
matTooltipPosition="below">
|
||||||
<mat-icon>delete</mat-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
<div *ngIf="_generalForm.controls.individuals.value[i].is_person_met_pic != '' ">
|
||||||
|
<img mat-card-avatar src="{{_generalForm.controls.individuals.value[i].is_person_met_pic}}" class="ml-0 mt-0 mb-0 mr-2 " ngxViewer>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="_generalForm.controls.individuals.value[i].is_person_met_id_proof != '' ">
|
||||||
|
<img mat-card-avatar src="{{_generalForm.controls.individuals.value[i].is_person_met_id_proof}}" class="ml-0 mt-0 mb-0 mr-2 " ngxViewer>
|
||||||
|
</div>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import { ELEMENT_PROBE_PROVIDERS } from '@angular/platform-browser/src/dom/debug
|
|||||||
import { DatePipe } from '@angular/common';
|
import { DatePipe } from '@angular/common';
|
||||||
import { SearchRelationPipe } from './../../../../../pd-pipes/search-relation.pipe';
|
import { SearchRelationPipe } from './../../../../../pd-pipes/search-relation.pipe';
|
||||||
import { Options } from 'selenium-webdriver/edge';
|
import { Options } from 'selenium-webdriver/edge';
|
||||||
|
// import { ImageCropperComponent } from '../dialogue/image-cropper/image-cropper.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-general-info',
|
selector: 'app-general-info',
|
||||||
@ -35,7 +36,6 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
count: number = 1;
|
count: number = 1;
|
||||||
errorMessage: any;
|
errorMessage: any;
|
||||||
maxDate: any;
|
maxDate: any;
|
||||||
|
|
||||||
disableAfterSubmit: boolean;
|
disableAfterSubmit: boolean;
|
||||||
|
|
||||||
public pd_applicants_details: any;
|
public pd_applicants_details: any;
|
||||||
@ -836,7 +836,20 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
/******************* validate all form group and form array fields ENd Here ********/
|
/******************* validate all form group and form array fields ENd Here ********/
|
||||||
pdf(fileURL){
|
pdf(fileURL){
|
||||||
window.open(fileURL);
|
window.open(fileURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// imageCrop(pic,pic_name){
|
||||||
|
// console.log(pic,pic_name);
|
||||||
|
// let arr = { 'pic_name':pic_name,'pic':pic,'from_id':this.form_id}
|
||||||
|
// const dialogRef = this.dialog.open(ImageCropperComponent, {
|
||||||
|
// data: arr,
|
||||||
|
// });
|
||||||
|
// dialogRef.afterClosed()
|
||||||
|
// .subscribe(dataresult => {
|
||||||
|
// console.log(dataresult);
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
/** For DOCS Tab */
|
/** For DOCS Tab */
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
|
|||||||
@ -210,11 +210,10 @@ export class QcPdReportComponent implements OnInit {
|
|||||||
this.pdReportRecords = data.records;
|
this.pdReportRecords = data.records;
|
||||||
this.qcStatus = data.records.pdstatus;
|
this.qcStatus = data.records.pdstatus;
|
||||||
console.log(this.qcStatus);
|
console.log(this.qcStatus);
|
||||||
this.generateBtn = data.records.is_original_report_created == 0 ? true : false;
|
this.generateBtn = data.records.is_original_report_created == 1 ? false : true;
|
||||||
console.log(this.generateBtn);
|
console.log(this.generateBtn);
|
||||||
this.reGenerateBtn = data.records.is_original_report_created == 1 ? true : false;
|
this.reGenerateBtn = data.records.is_original_report_created == 1 ? true : false;
|
||||||
console.log(this.reGenerateBtn);
|
console.log(this.reGenerateBtn);
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.generateBtn = true;
|
this.generateBtn = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user