diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html index 32796f7..bb1908c 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html @@ -791,7 +791,7 @@
+ (eventCapturePic) ="captureControls($event.controls,$event.img_name,$event.form_id)">
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html index 14213fe..0985168 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html @@ -10,9 +10,9 @@ {{master.vendor_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.vendor_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.vendor_status | titlecase}} - - - + + +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts index 75465c4..5098490 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts @@ -243,47 +243,47 @@ export class ViewPdComponent implements OnInit, OnDestroy { // window.open(concat_url, '_blank'); // } - editPdMaster(masterData: any, flag) { - let record = { - "records": masterData, - "applicantLength": this.pdApplicantData.length - } - const dialogPDMaster = this.dialog.open(EditPdMasterComponent, { - data: record, - position: { right: '0' }, - width: '80%', - disableClose: true - }); - dialogPDMaster.afterOpen() - .subscribe(dataresult => { - if (flag == 1) { - let ffd: any = []; - this.FilteredFieldNames.forEach(field => { - if(field != undefined){ - ffd.push(field.frontEnd_FieldName); - } - }); + // editPdMaster(masterData: any, flag) { + // let record = { + // "records": masterData, + // "applicantLength": this.pdApplicantData.length + // } + // const dialogPDMaster = this.dialog.open(EditPdMasterComponent, { + // data: record, + // position: { right: '0' }, + // width: '80%', + // disableClose: true + // }); + // dialogPDMaster.afterOpen() + // .subscribe(dataresult => { + // if (flag == 1) { + // let ffd: any = []; + // this.FilteredFieldNames.forEach(field => { + // if(field != undefined){ + // ffd.push(field.frontEnd_FieldName); + // } + // }); - // this.notifier.notify('info', 'Please Fill ' + ffd.join(' , ') + ' Fields.!'); - Swal({ - title: 'Please complete the below details', - confirmButtonColor: "red", - // html:true, - //text:'Please Fill' + ffd.forEach(data=>{ data }) + ' ! ', - text: ffd.join(' , ') - }); - // Swal({ - // title: "HTML Title!", - // text: "...
" + flag + "
...", + // // this.notifier.notify('info', 'Please Fill ' + ffd.join(' , ') + ' Fields.!'); + // Swal({ + // title: 'Please complete the below details', + // confirmButtonColor: "red", + // // html:true, + // //text:'Please Fill' + ffd.forEach(data=>{ data }) + ' ! ', + // text: ffd.join(' , ') + // }); + // // Swal({ + // // title: "HTML Title!", + // // text: "...
" + flag + "
...", - // }) ; - } - }); - dialogPDMaster.afterClosed().subscribe(dataresult => { + // // }) ; + // } + // }); + // dialogPDMaster.afterClosed().subscribe(dataresult => { - this.viewPdDetails(this.viewID) - }); - } + // this.viewPdDetails(this.viewID) + // }); + // } editPdApplicant(applicantData: any,CSAbbr : any) { let setPdDetails = { "pdID": this.viewID, @@ -444,10 +444,10 @@ export class ViewPdComponent implements OnInit, OnDestroy { }); } - getPDIDReport(pdID: any) { - this.destroyType = 3; - this.router.navigate(['../../../pd_report', pdID,this.masterRandomString], { relativeTo: this.route }); - } + // getPDIDReport(pdID: any) { + // this.destroyType = 3; + // this.router.navigate(['../../../pd_report', pdID,this.masterRandomString], { relativeTo: this.route }); + // } // // direct trigger the pd // directTriggerPD(data: any,masterdetail : any){ @@ -484,36 +484,36 @@ export class ViewPdComponent implements OnInit, OnDestroy { // direct trigger the pd - directTriggerPD(data: any, masterdetail: any) { + // directTriggerPD(data: any, masterdetail: any) { - let pdid = masterdetail.pd_id; - let random_string=masterdetail.random_string - let getValues = data.filter(val => val).map(Val => Val); - this.FilteredFieldNames = getValues.map(x => { - let findIndex = this.localMandatoryFields.map(val => val.backEnd_FieldName).indexOf(x); - return this.localMandatoryFields[findIndex]; - }); + // let pdid = masterdetail.pd_id; + // let random_string=masterdetail.random_string + // let getValues = data.filter(val => val).map(Val => Val); + // this.FilteredFieldNames = getValues.map(x => { + // let findIndex = this.localMandatoryFields.map(val => val.backEnd_FieldName).indexOf(x); + // return this.localMandatoryFields[findIndex]; + // }); - if (data.length > 0) { - this.localcount = 1; - this.editPdMaster(masterdetail, this.localcount); - } - else { - let lenderMasterArray = { "pd_id": pdid,random_string:random_string } - this._pd.editPdMasterDetails(lenderMasterArray, this.pdStatusCheck.TRIGGERED).subscribe(result => { - if (result.status == 200) { - this.notifier.notify('success', 'PD Status Updated.'); - this.viewPdDetails(this.viewID); - } - else { - this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); - } - }, error => { - this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); - }); - } + // if (data.length > 0) { + // this.localcount = 1; + // this.editPdMaster(masterdetail, this.localcount); + // } + // else { + // let lenderMasterArray = { "pd_id": pdid,random_string:random_string } + // this._pd.editPdMasterDetails(lenderMasterArray, this.pdStatusCheck.TRIGGERED).subscribe(result => { + // if (result.status == 200) { + // this.notifier.notify('success', 'PD Status Updated.'); + // this.viewPdDetails(this.viewID); + // } + // else { + // this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); + // } + // }, error => { + // this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); + // }); + // } - } + // } // this is for initiate additional pd initiateAddtionalPD(parentData: any, childData: any, type: boolean){