diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts index 5b898d14a..8c2de3cb8 100644 --- a/src/app/modals/create-process/create-process.page.ts +++ b/src/app/modals/create-process/create-process.page.ts @@ -81,7 +81,7 @@ export class CreateProcessPage implements OnInit { SouceType: 'FOLDER', SourceId: this.task.workflowInstanceDataFields.FolderID, DeadlineType: '', - SubjectTypes: [], + SubjectTypes: [99999844], }; @@ -90,7 +90,7 @@ export class CreateProcessPage implements OnInit { /* By Default TypeDeadline should be 'Normal' */ this.postData.Priority = '99999861'; /* By Default TypeDeadline should be 'Economia' */ - this.postData.SubjectTypes = [99999844]; + this.postData.SubjectTypeId = '99999844'; /* Initialize 'Subject' with the title of the expedient */ this.postData.DispatchFolder.Subject = this.task.workflowInstanceDataFields.Subject; this.profile = this.navParams.get('profile'); @@ -169,7 +169,7 @@ export class CreateProcessPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , + SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, } @@ -182,7 +182,7 @@ export class CreateProcessPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , + SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, } @@ -195,7 +195,7 @@ export class CreateProcessPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , + SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, } diff --git a/src/app/models/despacho.model.ts b/src/app/models/despacho.model.ts index edb2f5c42..606722c5f 100644 --- a/src/app/models/despacho.model.ts +++ b/src/app/models/despacho.model.ts @@ -5,7 +5,7 @@ export class Despacho{ DistributionType: string; CountryCode: string; Priority: string; - SubjectTypes: any[]; + SubjectTypeId: string; UserEmail: string; UsersSelected: Participant[]; DispatchFolder: Folder; diff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts index f643d8630..c2ffd9aff 100644 --- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts @@ -95,7 +95,7 @@ export class ExpedientTaskModalPage implements OnInit { SouceType: 'DOC', //FOLDER SourceId: this.task.workflowInstanceDataFields.DocId, //FolderId DeadlineType: '', - SubjectTypes: new Array(), + SubjectTypes: [99999844], }; @@ -104,7 +104,7 @@ export class ExpedientTaskModalPage implements OnInit { /* By Default TypeDeadline should be 'Normal' */ this.postData.Priority = '99999861'; /* By Default TypeDeadline should be 'Economia' */ - this.postData.SubjectTypes = [99999844]; + this.postData.SubjectTypeId = '99999844'; /* Initialize 'Subject' with the title of the expedient */ this.postData.DispatchFolder.Subject = this.task.workflowInstanceDataFields.Subject; this.profile = this.navParams.get('profile'); @@ -192,7 +192,7 @@ export class ExpedientTaskModalPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , + SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, AttachmentList: docs, @@ -220,7 +220,7 @@ export class ExpedientTaskModalPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , + SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, AttachmentList: docs @@ -245,7 +245,7 @@ export class ExpedientTaskModalPage implements OnInit { CountryCode: 'AO', Priority: this.postData.Priority, UserEmail: this.user, - SubjectTypes: this.postData.SubjectTypes , //this.selectedTypes + SubjectTypeId: this.postData.SubjectTypeId, //this.selectedTypes UsersSelected: attendees, DispatchFolder: this.dispatchFolder, AttachmentList: docs