diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.html
index 98c09f699..69a88e926 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.html
@@ -70,7 +70,7 @@
add
-->
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.ts
index eb3c1c646..8cac3dc77 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/other-applicant-details/other-applicant-details.component.ts
@@ -15,6 +15,7 @@ export class OtherApplicantDetailsComponent implements OnInit {
applicantInfo: any = { 'pd_co_applicant_id': "", 'applicant_name': '', 'is_applicant': false, 'is_person_met': false, applicant_title_name: '', age: '', qualification: '', course_name: '' };
titleList: any = [];
qualificationList: any = [];
+ individuals_order_id: any;
//EditGeneralFormData: any=[];
//EditFlag: boolean = false;
@@ -77,10 +78,11 @@ export class OtherApplicantDetailsComponent implements OnInit {
// create applicant form array
createApplicant(elementValue: any) {
+ console.log('00000',elementValue);
return this._fb.group({
pd_co_applicant_id: [elementValue.pd_co_applicant_id],
- applicant_title_name: [elementValue.applicant_title_name, Validators.required],
- applicant_name: [elementValue.applicant_name || '', Validators.required],
+ applicant_title_name: [elementValue.applicant_title_name, Validators.required],
+ applicant_name: [{value:elementValue.applicant_name, disabled : elementValue.individuals_order_id == 1 ? true : false} || '', Validators.required],
is_applicant: [elementValue.is_applicant || false],
is_person_met: [elementValue.is_person_met || false],
age: [elementValue.age || ''],
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
index 20d43ab9e..d4dbdd2b3 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
@@ -97,7 +97,7 @@
-
diff --git a/ng6-seed/src/app/sales-pd/sales-pd.component.ts b/ng6-seed/src/app/sales-pd/sales-pd.component.ts
index 8699d8e42..cd35947da 100644
--- a/ng6-seed/src/app/sales-pd/sales-pd.component.ts
+++ b/ng6-seed/src/app/sales-pd/sales-pd.component.ts
@@ -19,6 +19,7 @@ export class SalesPdComponent implements OnInit {
// data source variable details
salesPdData:any[] = [];
+ salesPdpdf:any[] = [];
errorMessage:any[]=[];
recordStatus: boolean;
@@ -33,7 +34,8 @@ export class SalesPdComponent implements OnInit {
constructor(private _pdSales: PdTrigerService) { }
ngOnInit() {
- this.loadSalesPDDetails()
+ this.loadSalesPDDetails();
+ // this.salesPDpdf();
}
@@ -58,9 +60,26 @@ export class SalesPdComponent implements OnInit {
this.errorMessage.push(error);
// this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
alert(error.html_format);
- });
+ });
+ }
+
+ salesPDpdf(pdfdetail){
+ this._pdSales.getSalesPdpdf(pdfdetail)
+ .subscribe(
+ data => {
+ if (data.status == 200) {
+ // window.location.href=data.records;
+ window.open(data.records, '_blank');
+ }
+
+ }
+ // , error => this.errorMessage = error);
+ ,error => {
+ this.errorMessage.push(error);
+ // this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
+ alert(error.html_format);
+ });
-
}
pageChange(e) {
console.log(e);