diff --git a/src/app/pages/search/search.page.scss b/src/app/pages/search/search.page.scss
index 3262d2a75..2825609a1 100644
--- a/src/app/pages/search/search.page.scss
+++ b/src/app/pages/search/search.page.scss
@@ -281,3 +281,15 @@ ion-slide{
}
}
+
+
+.loader{
+ position: absolute;
+ margin-top: -14px;
+ width: calc(100% - 39px);
+}
+
+
+.swiper-container{
+ width: 100%;
+}
\ No newline at end of file
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts
index c5deed915..a5ee79198 100644
--- a/src/app/pages/search/search.page.ts
+++ b/src/app/pages/search/search.page.ts
@@ -33,6 +33,8 @@ export class SearchPage implements OnInit {
showDocuments = false;
showAdvanceSearch = false;
+ showLoader: boolean;
+
height: number = 411;
width: number = 411;
@@ -88,8 +90,62 @@ export class SearchPage implements OnInit {
*/
basicSearch(){
+ function getCookie(cname) {
+ var name = cname + "=";
+ var decodedCookie = decodeURIComponent(document.cookie);
+ var ca = decodedCookie.split(';');
+ for(var i = 0; i
{
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '0').subscribe(res=>{
+ console.log(res);
+
+ res.Categories.forEach( e => {
+ e['Active'] = false;
+ });
+
+ // bind respose
+ this.searchCategories = res.Categories;
+
+ this.searchDocuments = this.sortArrayISODate(res.Documents);
+
+ this.reorderList(this.ordinance);
+
+ // hide show document
+ if(this.searchDocuments.length >= 1){
+ this.showDocuments = true;
+ } else {
+ this.showDocuments = false
+ }
+
+ this.showLoader = false;
+ });
+ } else if (APPType == '8,361'){
+
+ console.log('aplication type 8,361');
+
+ this.showLoader = true;
+
+ this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
console.log(res);
res.Categories.forEach( e => {
@@ -111,6 +167,64 @@ export class SearchPage implements OnInit {
}
});
+
+ this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res=>{
+ console.log(res);
+
+ res.Categories.forEach( e => {
+ e['Active'] = false;
+ });
+
+ // bind respose
+ this.searchCategories = res.Categories;
+
+ this.searchDocuments = this.sortArrayISODate(res.Documents);
+
+ this.reorderList(this.ordinance);
+
+ // hide show document
+ if(this.searchDocuments.length >= 1){
+ this.showDocuments = true;
+ } else {
+ this.showDocuments = false
+ }
+
+ this.showLoader = false;
+ });
+ } else if (APPType == '386'){
+
+ this.showLoader = true;
+
+ console.log('aplication type 386');
+
+ this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
+ ,this.searchOrganicEntiry, this.searchDocTypeId, '386').subscribe(res=>{
+ console.log(res);
+
+ res.Categories.forEach( e => {
+ e['Active'] = false;
+ });
+
+ // bind respose
+ this.searchCategories = res.Categories;
+
+ this.searchDocuments = this.sortArrayISODate(res.Documents);
+
+ this.reorderList(this.ordinance);
+
+ // hide show document
+ if(this.searchDocuments.length >= 1){
+ this.showDocuments = true;
+ } else {
+ this.showDocuments = false
+ }
+
+ this.showLoader = false;
+ });
+ }
+
+
}
/**
diff --git a/src/assets/images/icons-add-new-event.svg b/src/assets/images/icons-add-new-event.svg
new file mode 100644
index 000000000..bd41db7c7
--- /dev/null
+++ b/src/assets/images/icons-add-new-event.svg
@@ -0,0 +1,19 @@
+
diff --git a/src/assets/images/icons-received-event.svg b/src/assets/images/icons-received-event.svg
new file mode 100644
index 000000000..28399319e
--- /dev/null
+++ b/src/assets/images/icons-received-event.svg
@@ -0,0 +1,22 @@
+
diff --git a/src/global.scss b/src/global.scss
index 94c1bdbbf..f32253053 100644
--- a/src/global.scss
+++ b/src/global.scss
@@ -29,6 +29,8 @@
// calendar
+// ionic calendar2
+
td.monthview-current{
color: white;
/* border-radius: 89px; */
@@ -43,7 +45,6 @@ td.monthview-current{
justify-content: center;
align-items: center;
text-align: center;
- padding-left: 9px;
color: white;
}
}
@@ -57,7 +58,15 @@ td.monthview-selected {
color: black !important;
}
+.event-detail-container{
+ display: none;
+}
+.cal-week-view {
+ border-top: none !important;
+}
+
+.calendar-event-type
/* Timeline */
.cal-hour-segment {
@@ -133,16 +142,45 @@ td.monthview-selected {
display: none;
}
-// ionic calendar2
-.event-detail-container{
- display: none;
-}
-
-.cal-week-view {
- border-top: none !important;
-}
-
.timeline-box-{}
+
+
+.calendar-event-type-Oficial{
+ border-right: 3px solid #f05d5e !important;
+ border-radius: 21px !important;
+ color: black !important;
+ margin: 0px auto !important;
+ width: 35px !important;
+}
+
+.calendar-event-type-Pessoal{
+ border-left: 3px solid #ffb703 !important;
+ border-radius: 21px !important;
+ color: black !important;
+ margin: 0px auto !important;
+ width: 35px !important;
+}
+
+.calendar-event-type-both{
+ border-radius: 21px !important;
+ border-left: 3px solid #ffb703 !important;
+ border-bottom: none !important;
+ border-right: 3px solid #f05d5e !important;
+ color: black !important;
+ margin: 0px auto !important;
+ width: 35px !important;
+}
+
+.cal-hour-segment {
+ border-bottom: none !important;
+}
+
+
+
+td.monthview-current{
+ border-bottom: 1px solid #3a87ad !important;
+}
+
/* angular-cli file: src/styles.css */
@import "../node_modules/angular-calendar/css/angular-calendar.css";
-
+@import "./style/main.scss";