+
+
+
@@ -18,6 +17,7 @@
{{master.city_name}} / {{master.state_name}}-{{master.pincode}}
+
{{master.product_name}} / {{master.subproduct_name}}
{{master.pd_type_name}} {{master.pd_allocation_type_name}} {{master.pd_allocated_to}}
@@ -40,7 +40,7 @@
Applicants
-
+
@@ -53,31 +53,31 @@
-
-
-
-
-
+
Documents
-
+
+
+ {{documents.pd_document_title}}
+
+ {{documents.pd_document_name}}
+
-
-
-
-
+
@@ -86,4 +86,11 @@
+
+
+
diff --git a/ng6-seed/src/app/pd-triger/view-pd/view-pd.component.ts b/ng6-seed/src/app/pd-triger/view-pd/view-pd.component.ts
index bfb32830f..29e3ba07a 100644
--- a/ng6-seed/src/app/pd-triger/view-pd/view-pd.component.ts
+++ b/ng6-seed/src/app/pd-triger/view-pd/view-pd.component.ts
@@ -1,8 +1,9 @@
import { Component, OnInit,ViewEncapsulation, EventEmitter, Input, Output } from '@angular/core';
+import { MatDialog } from '@angular/material';
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
-import { CustomValidators } from 'ng2-validation';
import { NotifierService } from 'angular-notifier';
import { PdTrigerService } from '../pd-service/pd-triger.service';
+import { PdAllocationComponent } from '../pd-allocation/pd-allocation.component';
@Component({
selector: 'app-view-pd',
templateUrl: './view-pd.component.html',
@@ -25,7 +26,7 @@ export class ViewPdComponent implements OnInit {
@Output() loadParent = new EventEmitter
();
public _EditPDtriggerForm:FormGroup;
constructor(private _fb: FormBuilder,
- private _pd: PdTrigerService, notifier:NotifierService) {
+ private _pd: PdTrigerService, notifier:NotifierService, private dialog: MatDialog,) {
this.notifier=notifier
}
@@ -42,6 +43,7 @@ export class ViewPdComponent implements OnInit {
if (data.status == 200) {
this.pdMasterData=data.records.pd_master_details;
this.pdApplicantData= data.records.applicants_details;
+ this.pdDocumentsData=data.records.pd_documnets;
this.pdLogsData=data.records.pd_logs;
}
}, error => this.errorMessage = error);
@@ -59,6 +61,18 @@ export class ViewPdComponent implements OnInit {
this.editApplicantData=applicantData;
this.showEditApplicantComponent=!this.showEditApplicantComponent;
}
+ // pd allocation to
+ // edit questions master details popup model
+ pdAllocationTo(pdID:any) {
+ const dialogRef = this.dialog.open(PdAllocationComponent, {
+ data: pdID,
+ disableClose: true
+ });
+ dialogRef.afterClosed()
+ .subscribe(dataresult => {
+ //this.getQuestionsMasters();
+ });
+ }
updateViewComponent(editBack:string) {
if(editBack=='1'){