diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
index bb956f0..7f69a6a 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
@@ -173,7 +173,9 @@
{{details.scheduled_on}}
- {{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
+
+
+ {{details.pd_status=='ALLOCATED_TO_FIA' && details.SMC_vendor_agency_name!=null && details.pd_allocated_to==null?details.SMC_vendor_agency_name:details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
index 61b1aa5..85966a7 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
@@ -112,7 +112,7 @@
{{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
-
{{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
+
{{details.pd_status=='ALLOCATED_TO_FIA' && details.SMC_vendor_agency_name!=null && details.pd_allocated_to==null?details.SMC_vendor_agency_name:details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
index fa0e012..429c003 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
@@ -111,7 +111,7 @@
{{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
-
{{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
+
{{details.pd_status=='ALLOCATED_TO_FIA'?details.SMC_vendor_agency_name:details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
@@ -162,7 +162,7 @@
{{details.scheduled_on}}
- {{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
+ {{details.pd_status=='ALLOCATED_TO_FIA' && details.SMC_vendor_agency_name!=null && details.pd_allocated_to==null?details.SMC_vendor_agency_name:details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
index f8ca364..4e91b78 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
@@ -119,9 +119,7 @@ export class PdAllocationComponent implements OnInit {
}
/** To update pd officer*/
updatePdOfficer(allocateDetails:any) {
- console.log(allocateDetails);
- console.log('test');
- //return;
+
if(!allocateDetails){
this.notifier.notify('warning', 'Please Choose PD Officer.!');
}
@@ -129,7 +127,7 @@ export class PdAllocationComponent implements OnInit {
this.usertype=localStorage.getItem('usertype');
if(this.usertype=='true')
{
-
+
this.updateData = {
"pd_id":this.data.pd_id,
// "fk_pd_allocated_to":allocateDetails.fk_user_id,
@@ -140,6 +138,7 @@ export class PdAllocationComponent implements OnInit {
else
{
+
//this.userId = this._aws.getlocale()
this.updateData = {
"pd_id":this.data.pd_id,
@@ -167,6 +166,36 @@ export class PdAllocationComponent implements OnInit {
});
}
}
+ updateagency(allocateDetails:any)
+ {
+ console.log(allocateDetails);
+ // return
+
+ this.updateData = {
+ "pd_id":this.data.pd_id,
+ // "fk_pd_allocated_to":allocateDetails.fk_user_id,
+ "fk_pd_allocated_to":allocateDetails.fk_state_id,
+ "pd_agency_id":allocateDetails.entity_id
+ }
+
+ console.log(this.updateData);
+ //return
+ this._pd.updatePdOfficer(this.updateData).subscribe(
+ result => {
+ if (result.status == 200) {
+ this.notifier.notify('success', 'PD Allocated.!');
+ this.dialogRef.close(true);
+ }
+ else {
+ this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
+ this.errorMessage = "Something Went Wrong Try Again.!";
+ }
+ }, 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.!');
+ this.errorMessage = "Some Thing Wents Wrong Try Again.!";
+ // this.dialogRef.close();
+ });
+ }
/** For Popup Close Button */
closeAllocationComponent(): void {
this.dialogRef.close();
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.html
index c2321fe..60bca73 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.html
@@ -22,7 +22,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts
index e486cd6..0ac5093 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-status-change-dialogue/pd-status-change-dialogue.component.ts
@@ -26,6 +26,12 @@ export class PdStatusChangeDialogueComponent implements OnInit {
usertype: string;
vendorOfficerList: any;
errorMessage: any;
+ updateData: {
+ pd_id: any;
+ // "fk_pd_allocated_to":allocateDetails.fk_user_id,
+ fk_pd_allocated_to: any; pd_agency_id: any;
+ };
+
constructor(notifier: NotifierService , private pd: PdTrigerService,private dialogRef: MatDialogRef,@Inject(MAT_DIALOG_DATA) public data: any)
{
this.notifier = notifier;
@@ -38,7 +44,7 @@ export class PdStatusChangeDialogueComponent implements OnInit {
}
ngOnInit() {
-
+
if(this.data.pd_status=='COMPLETED'){
let params: any={};
params.pd_id = this.data.pdid;
@@ -87,7 +93,8 @@ export class PdStatusChangeDialogueComponent implements OnInit {
// }
- changePDStatus(status: string): void {
+ changePDStatus(status: string,pdid): void {
+ let pd=pdid;
this.usertype=localStorage.getItem('usertype');
console.log(this.dialogType,this.enableAddonPD)
@@ -141,6 +148,35 @@ export class PdStatusChangeDialogueComponent implements OnInit {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
});
}
+ this.selfallocate(pd);
+ }
+ selfallocate(pd)
+ {
+
+ this.updateData = {
+ "pd_id":pd,
+ "fk_pd_allocated_to":localStorage.getItem('userid'),
+ "pd_agency_id":localStorage.getItem('user_role')=='28'|| localStorage.getItem('user_role')=='29'?localStorage.getItem('smc_agency_id'):localStorage.getItem('user_role')
+ }
+ console.log(this.updateData);
+ // return
+ this.pd.updatePdOfficer(this.updateData).subscribe(
+ result => {
+ if (result.status == 200) {
+ this.notifier.notify('success', 'PD Allocated.!');
+ this.dialogRef.close(true);
+ }
+ else {
+ this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
+ this.errorMessage = "Something Went Wrong Try Again.!";
+ }
+ }, 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.!');
+ this.errorMessage = "Some Thing Wents Wrong Try Again.!";
+ // this.dialogRef.close();
+ });
+
+
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-form/dynamic-form.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-form/dynamic-form.component.ts
index 7c402a8..b4e5e95 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-form/dynamic-form.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-form/dynamic-form.component.ts
@@ -250,7 +250,7 @@ export class DynamicFormComponent implements OnInit {
}
if(this.json_answers[json_obj.group_key] != null && this.json_answers[json_obj.group_key] instanceof Array){
- this.json_answers[json_obj.group_key].splice(index,1)
+ //this.json_answers[json_obj.group_key].splice(index,1)
}
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html
index 8187b1e..6291203 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.html
@@ -1,196 +1,188 @@
+
+ {{parent_ques.question}}
+
+
+
+ close
+
+
+ Select
-
-
-
-
-
-
-
\ No newline at end of file
+ add_circle_outline {{val.answer}}
+
+
+
+ {{validation.message}}
+
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/image-capture/image-capture.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/image-capture/image-capture.component.ts
index 97000d0..5b30f38 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/image-capture/image-capture.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/image-capture/image-capture.component.ts
@@ -71,6 +71,17 @@ export class ImageCaptureComponent implements OnInit {
this.records = result.records
if(this.records.is_cus_link_disabled != '1') {
this.imageData =this.records.img_data;
+
+
+ // this.imageData.push({img_data: [],
+ // img_key: "additional_photograph",
+ // img_name: "Additional Photograph",
+ // is_loader: false,
+ // is_multiple: 1,
+ // is_saved: true,
+ // section_heading: "Additional Photograph"});
+ // console.log(this.imageData);
+ console.log('imagedata');
this.imageData.forEach(val=>{
val.is_loader = false
val.is_saved = true
@@ -98,7 +109,10 @@ export class ImageCaptureComponent implements OnInit {
// }
addImage(event,index){
this.loaderService.showMatSpinnerDialog('Processing watermark..');
+ console.log('event');
console.log(event,index);
+ console.log('event');
+
var reader = new FileReader();
// let imagePath = event;
reader.readAsDataURL(event);
@@ -121,6 +135,12 @@ export class ImageCaptureComponent implements OnInit {
if(this.imageData[this.current_index].is_multiple == 1) {
console.log("multi");
let img_param={img_url:watermarked_img,is_base64:true,link:geoCoordinates}
+
+ console.log('param');
+ console.log(img_param);
+ console.log(this.imageData[this.current_index].img_data);
+
+ console.log('param');
this.imageData[this.current_index].img_data.push(img_param)
this.sendImage(this.imageData,this.imageData[this.current_index].img_data.length-1)
}
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 558c802..923de67 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
@@ -205,15 +205,15 @@
-
+
{{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.pd_status==pdStatusCheck.ALLOCATED_TO_FIA ?'Allocated to vendor':master.pd_status | titlecase}}
-
- {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.pd_status | titlecase}}
+
+ {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.pd_status==pdStatusCheck.ALLOCATED_TO_FIA ?'Allocated to vendor':master.pd_status | titlecase}}
{{master.vendor_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.vendor_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.vendor_status | titlecase}}
-
+
@@ -224,7 +224,7 @@
-
+
@@ -233,9 +233,10 @@
-
- {{master.pd_allocated_to | titlecase}}
-
+
+ {{master.pd_status=='ALLOCATED_TO_FIA' && master.SMC_vendor_agency_name!=null && master.pd_allocated_to==null?master.SMC_vendor_agency_name:master.pd_allocated_to}}
+
+