mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add event to sqlite changed
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@
|
||||
<name>gabinete digital</name>
|
||||
<description>An awesome Ionic/Cordova app.</description>
|
||||
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
|
||||
<content original-src="index.html" src="http://localhost:8100" />
|
||||
<content src="index.html" />
|
||||
<access origin="*" />
|
||||
<allow-navigation href="*" />
|
||||
<allow-navigation href="*" />
|
||||
@@ -181,7 +181,7 @@
|
||||
</mfp:windows10>
|
||||
<mfp:appChecksum>0</mfp:appChecksum>
|
||||
</mfp:windows>
|
||||
<mfp:platformVersion>8.0.0.00-20210905-154328</mfp:platformVersion>
|
||||
<mfp:platformVersion>8.0.0.00-20210308-063916</mfp:platformVersion>
|
||||
<mfp:clientCustomInit enabled="false" />
|
||||
<mfp:server runtime="mfp" url="http://gpr-dev-10.gabinetedigital.local:9080" />
|
||||
<mfp:serverUri url="" />
|
||||
|
||||
+3
-1
@@ -99,6 +99,7 @@
|
||||
"ng2-pdf-viewer": "^7.0.1",
|
||||
"ngx-socket-io": "^3.2.0",
|
||||
"pdfjs": "^2.4.6",
|
||||
"pdfjs-dist": "^2.9.359",
|
||||
"puppeteer": "^10.1.0",
|
||||
"rxjs": "~6.6.3",
|
||||
"rxjs-compat": "^6.6.7",
|
||||
@@ -191,7 +192,8 @@
|
||||
},
|
||||
"platforms": [
|
||||
"browser",
|
||||
"ios"
|
||||
"ios",
|
||||
"android"
|
||||
]
|
||||
},
|
||||
"main": "karma.conf.js",
|
||||
|
||||
@@ -185,7 +185,9 @@ export class EventsPage implements OnInit {
|
||||
|
||||
const list = mdOficialEvents.concat(mdPessoalEvents);
|
||||
console.log("getAllMdOficialPessoalEvents", list)
|
||||
this.SqliteAddEvent(list);
|
||||
/* list.forEach(element => {
|
||||
this.sqliteservice.addEvent(element)
|
||||
}); */
|
||||
this.listToPresent = list
|
||||
|
||||
|
||||
@@ -206,7 +208,9 @@ export class EventsPage implements OnInit {
|
||||
|
||||
const list = prOficialEvents.concat(prPessoalEvents);
|
||||
console.log("getAllPrOficialPessoalEvents", list)
|
||||
this.SqliteAddEvent(list);
|
||||
/* list.forEach(element => {
|
||||
this.sqliteservice.addEvent(element)
|
||||
}); */
|
||||
|
||||
if (list.length > 0) {
|
||||
this.currentEvent = list[0].Subject;
|
||||
@@ -289,38 +293,6 @@ export class EventsPage implements OnInit {
|
||||
break;
|
||||
} */
|
||||
}
|
||||
SqliteAddEvent(list) {
|
||||
list.forEach((event) => {
|
||||
let data = {
|
||||
EventId: event.EventId,
|
||||
HasAttachments: event.HasAttachments,
|
||||
Subject: event.Subject,
|
||||
Location: event.Location,
|
||||
CalendarId: event.CalendarId,
|
||||
CalendarName: event.CalendarName,
|
||||
StartDate: event.StartDate,
|
||||
EndDate: event.EndDate,
|
||||
EventType: "",
|
||||
Attendees: "",
|
||||
IsMeeting: "",
|
||||
IsRecurring: "",
|
||||
IsAllDayEvent: event.IsAllDayEvent,
|
||||
AppointmentState: "",
|
||||
TimeZone: "",
|
||||
Organizer: "",
|
||||
Category: "",
|
||||
EventRecurrence: "",
|
||||
Attachments: "",
|
||||
Body: ""
|
||||
}
|
||||
|
||||
if (!event.Organizer) {
|
||||
this.sqliteservice.addEvent(data);
|
||||
console.log("Events page add event sqllite")
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
getEventsFromLocalDb() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user