-
-
{{ searchDocument.Assunto}}
- {{ searchDocument.appName}}
+ {{ searchDocument.appName}}
{{ searchDocument.EntidadeOrganicaNome }}
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts
index f297717b6..7d05ab861 100644
--- a/src/app/pages/search/search.page.ts
+++ b/src/app/pages/search/search.page.ts
@@ -243,7 +243,8 @@ export class SearchPage implements OnInit {
this.loadWordCloud();
});
- } else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect"){
+ }
+ else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect"){
this.showLoader = true;
@@ -319,7 +320,7 @@ export class SearchPage implements OnInit {
});
} else {
- let counter = 0;
+ let counter = 0;
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
@@ -385,11 +386,93 @@ export class SearchPage implements OnInit {
}
this.loadWordCloud();
});
-
}
+ }
- } else if (this.type == "AccoesPresidenciais"){
+ else if ( this.type == "Correspondencia"){
+
+ this.showLoader = true;
+
+ this.searchCategories = [];
+ this.searchDocuments = [];
+ this.showSearchDocuments = [];
+
+ if(this.select) {
+
+ let counter = 0;
+
+ this.search.searchForDoc(this.searchSubject, this.searchDocumentDate, this.searchSender
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
+
+ res.Categories.forEach( e => {
+ e['Active'] = false;
+ this.searchCategories.push(e)
+ });
+
+ // bind respose
+
+ this.sortArrayISODate(res.Documents).forEach(e => {
+ e['appName'] = 'Correspondencia'
+ this.searchDocuments.push(e)
+ });
+
+ this.reorderList(this.ordinance);
+
+ // hide show document
+ if(this.searchDocuments.length >= 1){
+ this.showDocuments = true;
+ } else {
+ this.showDocuments = false
+ }
+ counter++;
+
+ if(counter ==2){
+ this.showLoader = false;
+ }
+ this.showLoader = false;
+ this.loadWordCloud();
+ });
+
+ } else {
+ let counter = 0;
+
+ this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
+
+ res.Categories.forEach( e => {
+ e['Active'] = false;
+ this.searchCategories.push(e)
+ });
+
+ // bind respose
+
+ this.sortArrayISODate(res.Documents).forEach(e => {
+ e['appName'] = 'Correspondencia'
+ this.searchDocuments.push(e)
+ });
+
+ this.reorderList(this.ordinance);
+
+ // hide show document
+ if(this.searchDocuments.length >= 1){
+ this.showDocuments = true;
+ } else {
+ this.showDocuments = false
+ }
+
+ counter++;
+
+ if(counter ==2){
+ this.showLoader = false;
+ }
+
+ this.loadWordCloud();
+ });
+ }
+ }
+
+ else if (this.type == "AccoesPresidenciais"){
this.showLoader = true;
diff --git a/src/app/services/functions/file.service.ts b/src/app/services/functions/file.service.ts
index 00883b376..087e77394 100644
--- a/src/app/services/functions/file.service.ts
+++ b/src/app/services/functions/file.service.ts
@@ -54,7 +54,6 @@ export class FileService {
) { }
uploadFile(formData:any){
- alert('OIEE')
//const geturl = environment.apiURL + 'Tasks/DelegateTask';
const geturl = environment.apiURL + 'lakefs/UploadFiles';
diff --git a/src/app/services/processes.service.ts b/src/app/services/processes.service.ts
index 0385d53b5..c68ad489f 100644
--- a/src/app/services/processes.service.ts
+++ b/src/app/services/processes.service.ts
@@ -44,7 +44,6 @@ export class ProcessesService {
}
uploadFile(formData:any){
- alert('OIEE')
//const geturl = environment.apiURL + 'Tasks/DelegateTask';
const geturl = environment.apiURL + 'lakefs/UploadFiles';
diff --git a/src/app/shared/agenda/new-event/new-event.page.ts b/src/app/shared/agenda/new-event/new-event.page.ts
index dc4d542b1..e615df6a8 100644
--- a/src/app/shared/agenda/new-event/new-event.page.ts
+++ b/src/app/shared/agenda/new-event/new-event.page.ts
@@ -218,7 +218,10 @@ export class NewEventPage implements OnInit {
}
runValidation() {
- this.validateFrom = true
+ this.validateFrom = true;
+ if(new Date(this.postEvent.StartDate).getTime() > new Date(this.postEvent.EndDate).getTime()){
+ this.toastService._badRequest("A data de fim não pode ser inferior a data de início do evento")
+ }
}
injectValidation() {
@@ -227,7 +230,7 @@ export class NewEventPage implements OnInit {
const str: any = this.postEvent.EventRecurrence.Type.toString()
this.postEvent.EventRecurrence.Type = str
}
-
+
this.Form = new FormGroup({
Subject: new FormControl(this.postEvent.Subject, [
Validators.required,
@@ -255,8 +258,8 @@ export class NewEventPage implements OnInit {
Date: new FormControl( new Date(this.postEvent.StartDate).getTime() < new Date(this.postEvent.EndDate).getTime() ? 'ok': null,[
Validators.required
]),
-
})
+
}
diff --git a/src/app/shared/chat/group-messages/group-messages.page.html b/src/app/shared/chat/group-messages/group-messages.page.html
index 9c73ae1d4..086fa5332 100644
--- a/src/app/shared/chat/group-messages/group-messages.page.html
+++ b/src/app/shared/chat/group-messages/group-messages.page.html
@@ -148,11 +148,11 @@
-
+
diff --git a/src/app/shared/chat/messages/messages.page.html b/src/app/shared/chat/messages/messages.page.html
index f837907fe..d1afd2f27 100644
--- a/src/app/shared/chat/messages/messages.page.html
+++ b/src/app/shared/chat/messages/messages.page.html
@@ -122,11 +122,11 @@
-
+