start pd changes

This commit is contained in:
gandhimathi 2019-03-13 16:45:35 +05:30
parent bdd289a737
commit 8d1937b7a6
2 changed files with 7 additions and 2 deletions

View File

@ -116,7 +116,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered===true);
this.answeredQuestions = getAnsweredFormsCount.length;
this.pdFullDetails = data.records;
if(type==1 && data.records.pdmaster_details.pd_status=='SCHEDULED') {
if(type==1 && (data.records.pdmaster_details.pd_status=='SCHEDULED' || data.records.pdmaster_details.pd_status=='ALLOCATED')) {
this.pdStatusDialogue(this.pdStatusCheck.INPROGRESS)
}
}
@ -144,6 +144,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
if(dataresult.update_status==true){
this.loadTemplates(this.startPD,2);
}
else {
this.router.navigate(['../../viewpd', this.startPD], {relativeTo: this.route});
}
});
}

View File

@ -326,7 +326,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
// start pd
getPDStart(pdID: any, status: string) {
this.destroyType = 3;
if (status == this.pdStatusCheck.SCHEDULED) {
if (status == this.pdStatusCheck.ALLOCATED || status == this.pdStatusCheck.SCHEDULED) {
const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, {
data: { pdid: this.viewID, pd_status: this.pdStatusCheck.INPROGRESS },
disableClose: true,