mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
diplmas signaure solved
This commit is contained in:
@@ -170,7 +170,8 @@ export interface expedienteTask {
|
||||
Status : string
|
||||
DispatchNumber: any
|
||||
AttachmentsProcessLastInstanceID: any
|
||||
InstanceID: any
|
||||
InstanceID: any,
|
||||
DraftIds: string
|
||||
}
|
||||
|
||||
export interface ExpedienteTask {
|
||||
|
||||
+6
-4
@@ -129,11 +129,14 @@ export class DiplomaAssinarPage implements OnInit {
|
||||
"TaskStartDate": res.taskStartDate,
|
||||
"InstanceID": res.workflowInstanceDataFields.InstanceID,
|
||||
"FolderID": res.workflowInstanceDataFields.FolderID,
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
}
|
||||
|
||||
console.log('draftidsss',res.workflowInstanceDataFields.DraftIds);
|
||||
this.fulltask = res;
|
||||
let stringDraft = res.workflowInstanceDataFields.DraftIds;
|
||||
this.DraftIds = stringDraft
|
||||
this.DraftIds = res.workflowInstanceDataFields.DraftIds
|
||||
console.log('draftidsss 111',this.DraftIds);
|
||||
|
||||
let split_stringDraft = stringDraft?.split(";").filter(Boolean);
|
||||
|
||||
@@ -233,11 +236,9 @@ export class DiplomaAssinarPage implements OnInit {
|
||||
"dataFields": {
|
||||
"ReviewUserComment": '',
|
||||
"InstanceIDNew": this.task.InstanceID,
|
||||
"DraftIds": "",
|
||||
},
|
||||
"AttachmentList": {
|
||||
"ProcessInstanceID": this.task.InstanceID,
|
||||
"DraftIds": null,
|
||||
"Attachments": []
|
||||
},
|
||||
}
|
||||
@@ -269,10 +270,11 @@ export class DiplomaAssinarPage implements OnInit {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
const data = res.data
|
||||
if (data == "Yes") {
|
||||
console.log(' diploma Draft draft',this.task.DraftIds)
|
||||
let body = {
|
||||
"InstanceId": this.task.InstanceID,
|
||||
"FolderId": this.task.FolderID,
|
||||
"DraftIds": this.DraftIds,
|
||||
"DraftIds": this.task.DraftIds,
|
||||
"OriginalFileName": this.DraftNames
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ export class DiplomaPage implements OnInit {
|
||||
"WorkflowName": res.workflowDisplayName,
|
||||
"DeadlineType": res.workflowInstanceDataFields.DeadlineType,
|
||||
"activityInstanceName": res.activityInstanceName,
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
}
|
||||
this.fulltask = res;
|
||||
console.log('Diploma anexo',this.fulltask.Documents )
|
||||
|
||||
+2
-1
@@ -370,7 +370,8 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
"Status": res.workflowInstanceDataFields.Status,
|
||||
"DispatchNumber": res.workflowInstanceDataFields.DispatchNumber,
|
||||
"AttachmentsProcessLastInstanceID": res.workflowInstanceDataFields.AttachmentsProcessLastInstanceID,
|
||||
"InstanceID": res.workflowInstanceDataFields.InstanceID
|
||||
"InstanceID": res.workflowInstanceDataFields.InstanceID,
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
}
|
||||
|
||||
this.fulltask = res;
|
||||
|
||||
@@ -132,7 +132,8 @@ export class ExpedientePrPage implements OnInit {
|
||||
"activityInstanceName": res.activityInstanceName,
|
||||
"Status": res.workflowInstanceDataFields.Status,
|
||||
"Deadline": res.deadline,
|
||||
"TaskStartDate": res.taskStartDate
|
||||
"TaskStartDate": res.taskStartDate,
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
}
|
||||
|
||||
this.fulltask = res;
|
||||
|
||||
@@ -252,7 +252,7 @@ export class NewPublicationPage implements OnInit {
|
||||
.then(async (content) => {
|
||||
this.filecontent = true;
|
||||
let fileObject = {
|
||||
FileBase64: content.data,
|
||||
FileBase64: 'data:video/mp4;base64,'+content.data,
|
||||
FileExtension: 'mp4',
|
||||
OriginalFileName: 'video'
|
||||
}
|
||||
@@ -292,11 +292,21 @@ export class NewPublicationPage implements OnInit {
|
||||
console.log(result)
|
||||
console.log(content)
|
||||
this.filecontent = true;
|
||||
let fileObject = {
|
||||
FileBase64: content.data,
|
||||
FileExtension: this.removeTextBeforeSlash(element.mimeType, '/'),
|
||||
OriginalFileName: 'video'
|
||||
let fileObject;
|
||||
if(this.removeTextBeforeSlash(element.mimeType, '/') == "mp4") {
|
||||
fileObject = {
|
||||
FileBase64: 'data:video/mp4;base64,'+ content.data,
|
||||
FileExtension: this.removeTextBeforeSlash(element.mimeType, '/'),
|
||||
OriginalFileName: 'video'
|
||||
}
|
||||
} else {
|
||||
fileObject = {
|
||||
FileBase64: content.data,
|
||||
FileExtension: this.removeTextBeforeSlash(element.mimeType, '/'),
|
||||
OriginalFileName: 'image'
|
||||
}
|
||||
}
|
||||
|
||||
this.seletedContent.push(fileObject)
|
||||
})
|
||||
.catch((err) => console.error(err));
|
||||
@@ -479,6 +489,18 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
const date = formatDate(new Date(), 'yyyy-MM-dd HH:mm:ss')
|
||||
|
||||
/* this.seletedContent = this.seletedContent.map((e) => {
|
||||
if(e.FileExtension == "mp4") {
|
||||
return {
|
||||
FileBase64: e.FileBase64,
|
||||
FileExtension: 'data:video/mp4;base64,'+e.FileExtension,
|
||||
OriginalFileName: "video",
|
||||
}
|
||||
}
|
||||
|
||||
return e
|
||||
}) */
|
||||
|
||||
/* if (this.capturedImage != '') { */
|
||||
this.publication = {
|
||||
DateIndex: date,
|
||||
@@ -511,6 +533,8 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
try {
|
||||
|
||||
|
||||
|
||||
await this.publications.CreatePublication(this.folderId, this.publication).toPromise();
|
||||
this.close();
|
||||
this.httpErrorHandle.httpsSucessMessagge('Criar publicação')
|
||||
|
||||
@@ -217,11 +217,11 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
"dataFields": {
|
||||
"ReviewUserComment": note,
|
||||
"InstanceIDNew": this.task.InstanceID,
|
||||
"DraftIds": "",
|
||||
/* "DraftIds": "", */
|
||||
},
|
||||
"AttachmentList": {
|
||||
"ProcessInstanceID": this.task.InstanceID,
|
||||
"DraftIds": null,
|
||||
/* "DraftIds": null, */
|
||||
"Attachments": []
|
||||
},
|
||||
}
|
||||
@@ -256,10 +256,12 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
const data = res.data
|
||||
if (data == "Yes") {
|
||||
|
||||
console.log(' diploma options Draft draft',this.DraftIds)
|
||||
let body = {
|
||||
"InstanceId": this.task.InstanceID,
|
||||
"FolderId": this.task.FolderID,
|
||||
"DraftIds": this.DraftIds,
|
||||
"DraftIds": this.task.DraftIds,
|
||||
"OriginalFileName": this.DraftNames
|
||||
}
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
+2
@@ -148,6 +148,8 @@ export class EventDetailsDocumentsOptionsPage implements OnInit {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
const data = res.data
|
||||
if(data == "Yes") {
|
||||
|
||||
console.log(' event detais Draft draft',this.DraftIds)
|
||||
let body = {
|
||||
"InstanceId": this.InstanceID,
|
||||
"FolderId": this.FolderID,
|
||||
|
||||
@@ -359,7 +359,7 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
.then(async (content) => {
|
||||
console.log(result)
|
||||
console.log(content)
|
||||
console.log('load video tablet base64',content)
|
||||
this.filecontent = true;
|
||||
let fileObject = new PublicationAttachmentEntity ({
|
||||
base64: content.data,
|
||||
@@ -1002,6 +1002,7 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
.then(async (content) => {
|
||||
this.filecontent = true;
|
||||
console.log('',content)
|
||||
let fileObject = new PublicationAttachmentEntity({
|
||||
base64: content.data,
|
||||
extension: 'mp4',
|
||||
|
||||
Reference in New Issue
Block a user