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 21ddcce91..ae5969331 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 @@ -222,6 +222,7 @@ + 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 4b24803a8..1a0e2fb39 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 @@ -515,6 +515,26 @@ export class ViewPdComponent implements OnInit, OnDestroy { this.router.navigate(['../../../startpd', pdDetails.assigned_pd,this.masterRandomString], { relativeTo: this.route }); } } + getPDStart2(pdDetails: any, status: string) { + this.destroyType = 3; + if (status == this.pdStatusCheck.ALLOCATED || status == this.pdStatusCheck.SCHEDULED) { + const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, { + data: { pdid: pdDetails.assigned_pd, pd_status: this.pdStatusCheck.INPROGRESS ,random_string:this.masterRandomString}, + disableClose: true, + minWidth: '30%', + maxWidth: '40%', + }); + dialogRef.afterClosed() + .subscribe(dataresult => { + if (dataresult.update_status == true) { + this.router.navigate(['../../../startpd2',pdDetails.assigned_pd,this.masterRandomString], { relativeTo: this.route }); + } + }); + } + else { + this.router.navigate(['../../../startpd2', pdDetails.assigned_pd,this.masterRandomString], { relativeTo: this.route }); + } + } getPDIDReport(pdID: any) { this.destroyType = 3; diff --git a/ng6-seed/src/app/template2/edit-template/edit-template.component.html b/ng6-seed/src/app/template2/edit-template/edit-template.component.html index 263d48f5f..294da2663 100644 --- a/ng6-seed/src/app/template2/edit-template/edit-template.component.html +++ b/ng6-seed/src/app/template2/edit-template/edit-template.component.html @@ -4,6 +4,10 @@