change actions date field

This commit is contained in:
Peter Maquiran
2023-09-22 18:12:48 +01:00
parent 6033ecdfb0
commit c0eee0e2b3
7 changed files with 73 additions and 50 deletions
@@ -62,7 +62,7 @@ export class DiplomaPage implements OnInit {
public TaskService: TaskService
) {
this.activatedRoute.paramMap.subscribe(params => {
//
//
if (params["params"].SerialNumber) {
this.serialNumber = params["params"].SerialNumber;
@@ -106,7 +106,7 @@ export class DiplomaPage implements OnInit {
},
translucent: true
});
popover.onDidDismiss().then(() => {
this.TaskService.loadDiplomas()
}, (error) => {
@@ -122,7 +122,7 @@ export class DiplomaPage implements OnInit {
async LoadTaskDetail(serial: string) {
this.processes.GetTask(serial).subscribe(res => {
this.TaskService.loadDiplomas();
this.task = {
"SerialNumber": res.serialNumber,
"Folio": res.workflowInstanceDataFields.Subject,
@@ -143,7 +143,7 @@ export class DiplomaPage implements OnInit {
// this.updateProcessOnDB(res)
let stringDraft = res.workflowInstanceDataFields.DraftIds;
let split_stringDraft = stringDraft?.split(";").filter(Boolean);
this.mergedArray = []
try {
this.getDraft(split_stringDraft);
@@ -197,7 +197,7 @@ export class DiplomaPage implements OnInit {
getFromDb() {
}
async viewDocument({Document, content}) {
@@ -238,8 +238,8 @@ export class DiplomaPage implements OnInit {
getDocumentDetails(forlderId: string, applicationId: string) {
this.processes.GetDocumentDetails(forlderId, applicationId).subscribe(res => {
this.attachments = res.Documents;
})
}
@@ -429,7 +429,7 @@ export class DiplomaPage implements OnInit {
}
}
close() {
this.modalController.dismiss();
@@ -439,7 +439,7 @@ export class DiplomaPage implements OnInit {
// console.log(actionname)
}
async openExpedientActionsModal(taskAction: any, task: any) {
let classs;
@@ -460,7 +460,7 @@ export class DiplomaPage implements OnInit {
});
modal.onDidDismiss().then(async (res) => {
if (res['data'] == 'openDiscart') {
await this.distartExpedientModal();
@@ -468,7 +468,10 @@ export class DiplomaPage implements OnInit {
this.TaskService.loadDiplomas()
this.goBack();
if(taskAction != '0') {
this.goBack();
}
}, (error) => {
console.log(error)
});
@@ -477,7 +480,7 @@ export class DiplomaPage implements OnInit {
}
async distartExpedientModal() {
const modal = await this.modalController.create({
component: DiscartExpedientModalPage,
componentProps: {
@@ -494,7 +497,7 @@ export class DiplomaPage implements OnInit {
this.TaskService.loadDiplomas()
if (res['data'] == 'close') {
this.close();
/*
/*
this.close();
this.openMenu(); */
}
@@ -33,7 +33,8 @@
[showSeconds]="showSeconds"
[stepHour]="1" [stepMinute]="12"
[stepSecond]="stepSecond"
[touchUi]="touchUi">
[touchUi]="touchUi"
[hideTime]="true">
</ngx-mat-datetime-picker>
</mat-form-field>
@@ -60,7 +61,8 @@
[showSeconds]="showSeconds"
[stepHour]="1" [stepMinute]="15"
[stepSecond]="stepSecond"
[touchUi]="touchUi">
[touchUi]="touchUi"
[hideTime]="true">
</ngx-mat-datetime-picker>
</mat-form-field>
</div>