mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add attendee component in gabinete digital
This commit is contained in:
@@ -340,7 +340,7 @@
|
||||
(cloneAllmobileComponent)="cloneAllmobileComponent()"
|
||||
[eventAttendees]="contacts"
|
||||
(clearContact)="clearContact()"
|
||||
(setContact)="setContact()"
|
||||
(setContact)="setContact($event)"
|
||||
|
||||
></app-new-event>
|
||||
<!-- Edit -->
|
||||
@@ -351,7 +351,7 @@
|
||||
(cloneAllmobileComponent)="cloneAllmobileComponent()"
|
||||
(clearContact)="clearContact()"
|
||||
(openAttendeesComponent)="openAttendeesComponent($event)"
|
||||
(setContact)="setContact()"
|
||||
(setContact)="setContact($event)"
|
||||
></app-edit-event>
|
||||
|
||||
<!-- View -->
|
||||
@@ -383,7 +383,7 @@
|
||||
|
||||
|
||||
<app-attendee-modal
|
||||
class="d-flex flex-column height-100"
|
||||
class="d-flex flex-column height-100"
|
||||
*ngIf="mobileComponent.showAttendees"
|
||||
[eventAttendees]="contacts"
|
||||
(closeComponent)="GoBackEditOrAdd()"
|
||||
|
||||
@@ -4,11 +4,9 @@ import { Event } from '../../models/event.model';
|
||||
import { EventsService } from 'src/app/services/events.service';
|
||||
import { Router } from '@angular/router';
|
||||
import { ActivatedRoute, NavigationEnd } from '@angular/router';
|
||||
import { formatDate } from '@angular/common';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
import { AuthService } from 'src/app/services/auth.service';
|
||||
import { StorageService } from 'src/app/services/storage.service';
|
||||
import { AuthConnstants } from 'src/app/config/auth-constants';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { EventDetailPage } from './event-detail/event-detail.page';
|
||||
import { EventDetailModalPage } from './event-detail-modal/event-detail-modal.page';
|
||||
@@ -75,17 +73,12 @@ export class EventsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
swipe(){
|
||||
console.log('!!!!');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
//Inicializar segment
|
||||
this.segment = "Combinada";
|
||||
//Initialize profile as mdgpr
|
||||
this.profile = "mdgpr";
|
||||
console.log(this.profile);
|
||||
/* console.log(this.profile); */
|
||||
|
||||
/* this.storageService.get(AuthConnstants.USER).then(res=>{
|
||||
console.log(res);
|
||||
|
||||
+5
-1
@@ -7,6 +7,7 @@ import { IonicModule } from '@ionic/angular';
|
||||
import { ExpedientTaskModalPageRoutingModule } from './expedient-task-modal-routing.module';
|
||||
|
||||
import { ExpedientTaskModalPage } from './expedient-task-modal.page';
|
||||
import { AttendeeModalPage } from 'src/app/shared/event/attendee-modal/attendee-modal.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -15,6 +16,9 @@ import { ExpedientTaskModalPage } from './expedient-task-modal.page';
|
||||
IonicModule,
|
||||
ExpedientTaskModalPageRoutingModule
|
||||
],
|
||||
declarations: [ExpedientTaskModalPage]
|
||||
declarations: [
|
||||
ExpedientTaskModalPage,
|
||||
AttendeeModalPage
|
||||
]
|
||||
})
|
||||
export class ExpedientTaskModalPageModule {}
|
||||
|
||||
+8
-2
@@ -114,8 +114,14 @@
|
||||
</ion-list>
|
||||
</div>
|
||||
</div>
|
||||
<div class="aside-right flex-column height-100">
|
||||
</div>
|
||||
|
||||
<app-attendee-modal
|
||||
class="aside-right d-flex flex-column height-100"
|
||||
[eventAttendees]="contacts"
|
||||
(closeComponent)="closeComponent()"
|
||||
(setContact)="setContact($event)"
|
||||
></app-attendee-modal>
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
<ion-footer>
|
||||
|
||||
+19
-7
@@ -40,14 +40,18 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
dispatchFolder: Folder;
|
||||
participants: Participant[];
|
||||
|
||||
contacts: EventPerson[] = [];
|
||||
// trigger hide and show for attendee component
|
||||
showAttendees= false;
|
||||
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
private router:Router,
|
||||
private processes:ProcessesService,
|
||||
private attachmentsService: AttachmentsService,
|
||||
private navParams: NavParams,
|
||||
private authService: AuthService,
|
||||
) {
|
||||
private authService: AuthService) {
|
||||
this.user = environment.defaultuser +'@'+ environment.domain;
|
||||
this.task = this.navParams.get('task');
|
||||
this.taskType = this.navParams.get('taskAction');
|
||||
@@ -70,7 +74,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
this.postData.SubjectTypeId = '99999844';
|
||||
/* Initialize 'Subject' with the title of the expedient */
|
||||
this.postData.DispatchFolder.Subject = this.task.workflowInstanceFolio;
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.taskDate = new Date(this.task.taskStartDate);
|
||||
@@ -78,12 +82,12 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
console.log(res);
|
||||
});
|
||||
console.log(this.user); */
|
||||
console.log(this.task)
|
||||
/* console.log(this.task) */
|
||||
|
||||
console.log(this.task.serialNumber);
|
||||
/* console.log(this.task.serialNumber); */
|
||||
this.getAttachments();
|
||||
|
||||
console.log(this.getSubjectType());
|
||||
/* console.log(this.getSubjectType()); */
|
||||
|
||||
}
|
||||
|
||||
@@ -101,7 +105,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
});
|
||||
}
|
||||
saveTask(){
|
||||
console.log(this.taskType);
|
||||
/* console.log(this.taskType); */
|
||||
|
||||
switch (this.taskType)
|
||||
{
|
||||
@@ -229,4 +233,12 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
modal.onDidDismiss();
|
||||
}
|
||||
|
||||
async setContact(data:EventPerson[]){
|
||||
this.contacts = data;
|
||||
}
|
||||
|
||||
async closeComponent(){
|
||||
this.showAttendees = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user