mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -60,8 +60,8 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
this.postEvent = new Event();
|
this.postEvent = new Event();
|
||||||
this.isEventEdited = false;
|
this.isEventEdited = false;
|
||||||
this.postEvent = this.navParams.get('event');
|
|
||||||
this.postEvent.EventRecurrence = {Type:'-1'};
|
this.postEvent.EventRecurrence = {Type:'-1'};
|
||||||
|
this.postEvent = this.navParams.get('event');
|
||||||
this.caller = this.navParams.get('caller');
|
this.caller = this.navParams.get('caller');
|
||||||
this.initCalendarName = this.postEvent.CalendarName;
|
this.initCalendarName = this.postEvent.CalendarName;
|
||||||
|
|
||||||
@@ -179,14 +179,17 @@ export class EditEventPage implements OnInit {
|
|||||||
this.injectValidation()
|
this.injectValidation()
|
||||||
this.runValidation()
|
this.runValidation()
|
||||||
|
|
||||||
if(this.Form.invalid) return false
|
if(this.Form.invalid) return false;
|
||||||
|
if(this.selectedRecurringType != '-1'){
|
||||||
|
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||||
|
}
|
||||||
|
|
||||||
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc)
|
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc)
|
||||||
try{
|
try{
|
||||||
console.log(this.postEvent);
|
console.log(this.postEvent);
|
||||||
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||||
|
|
||||||
this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
|
/* this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
|
||||||
if(this.initCalendarName != this.postEvent.CalendarName){
|
if(this.initCalendarName != this.postEvent.CalendarName){
|
||||||
let body = {
|
let body = {
|
||||||
"EventId": this.postEvent.EventId,
|
"EventId": this.postEvent.EventId,
|
||||||
@@ -199,7 +202,7 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
}, error => {
|
}, error => {
|
||||||
this.toastService.badRequest()
|
this.toastService.badRequest()
|
||||||
});
|
}); */
|
||||||
|
|
||||||
this.isEventEdited = true;
|
this.isEventEdited = true;
|
||||||
this.goBack();
|
this.goBack();
|
||||||
|
|||||||
@@ -180,11 +180,10 @@
|
|||||||
<ion-datetime
|
<ion-datetime
|
||||||
placeholder="Última ocorrência"
|
placeholder="Última ocorrência"
|
||||||
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence"
|
[(ngModel)]="postEvent.EventRecurrence.LastOcurrence"
|
||||||
displayFormat="D MMM YYYY H:mm"
|
displayFormat="DD MMM YYYY"
|
||||||
minuteValues="0,15,30,45"
|
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
||||||
min="2021"
|
min="2021"
|
||||||
max="2025"
|
max="2045"
|
||||||
>
|
>
|
||||||
</ion-datetime>
|
</ion-datetime>
|
||||||
<!-- <ion-input placeholder="Data fim" [(ngModel)]="postData.EndDate"></ion-input> -->
|
<!-- <ion-input placeholder="Data fim" [(ngModel)]="postData.EndDate"></ion-input> -->
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||||
this.loadedEvent = res;
|
this.loadedEvent = res;
|
||||||
|
|
||||||
/* console.log(res); */
|
console.log(res);
|
||||||
|
|
||||||
this.today = new Date(res.StartDate);
|
this.today = new Date(res.StartDate);
|
||||||
/* console.log(new Date(this.today)); */
|
/* console.log(new Date(this.today)); */
|
||||||
@@ -181,6 +181,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async editEvent() {
|
async editEvent() {
|
||||||
|
console.log(this.loadedEvent);
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 800){
|
if( window.innerWidth <= 800){
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.router.events.forEach((event) => {
|
this.router.events.forEach((event) => {
|
||||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
this.checkRoutes();
|
|
||||||
this.LoadCounts();
|
this.LoadCounts();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -149,7 +148,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
|
|
||||||
checkRoutes(){
|
checkRoutes(){
|
||||||
if(this.router.url == '/home/gabinete-digital?eventos=true'){
|
if(this.router.url == '/home/gabinete-digital?eventos=true'){
|
||||||
this.openEventsToApprovePage("MDGPR");
|
this.openEventsToApprovePage();
|
||||||
this.selectedElement='approval';
|
this.selectedElement='approval';
|
||||||
}
|
}
|
||||||
else if(this.router.url == '/home/gabinete-digital?expedientes=true'){
|
else if(this.router.url == '/home/gabinete-digital?expedientes=true'){
|
||||||
@@ -189,6 +188,9 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
this. openDiplomasAssinarPage();
|
this. openDiplomasAssinarPage();
|
||||||
this.selectedElement='DiplomasAssinar';
|
this.selectedElement='DiplomasAssinar';
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.checkRoutes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshExpedientes(){
|
refreshExpedientes(){
|
||||||
@@ -312,9 +314,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
openEventsToApprovePage(profile:any) {
|
openEventsToApprovePage() {
|
||||||
console.log(profile);
|
|
||||||
|
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
let navigationExtras: NavigationExtras = { queryParams: {"eventos": true,}};
|
let navigationExtras: NavigationExtras = { queryParams: {"eventos": true,}};
|
||||||
if( window.innerWidth <= 801) {
|
if( window.innerWidth <= 801) {
|
||||||
|
|||||||
Reference in New Issue
Block a user