mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
+5
-1
@@ -112,11 +112,15 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
console.log(this.postData);
|
console.log(this.postData);
|
||||||
|
|
||||||
this.calendarService.postExpedientEvent(this.task.DocId, this.postData, "md",this.task.SerialNumber, this.task.FsId);
|
|
||||||
|
|
||||||
if(this.task.FsId == '8'){
|
if(this.task.FsId == '8'){
|
||||||
|
this.calendarService.postExpedientEvent(this.task.DocId, this.postData, "md",this.task.SerialNumber, this.task.FsId);
|
||||||
this.distartExpedientModal();
|
this.distartExpedientModal();
|
||||||
}
|
}
|
||||||
|
else if(this.task.FsId == '361'){
|
||||||
|
this.calendarService.createTaskEvent(this.task.FolderId, this.postData, "md",this.task.SerialNumber, this.task.FsId);
|
||||||
|
}
|
||||||
|
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,6 +199,22 @@ export class EventsService {
|
|||||||
params = params.set("SerialNumber", serialNumber);
|
params = params.set("SerialNumber", serialNumber);
|
||||||
params = params.set("applicationID", applicationID);
|
params = params.set("applicationID", applicationID);
|
||||||
|
|
||||||
|
let options = {
|
||||||
|
headers: this.headers,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
|
||||||
|
console.log(res);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
createTaskEvent(folderId:any, body:any, sharedagenda:string, serialNumber:any, applicationID:any){
|
||||||
|
const geturl = environment.apiURL + 'calendar/' + ((sharedagenda != '') ? sharedagenda : 'CreateEventExpediente')+'/dispatch';
|
||||||
|
let params = new HttpParams();
|
||||||
|
|
||||||
|
params = params.set("FolderId", folderId);
|
||||||
|
params = params.set("SerialNumber", serialNumber);
|
||||||
|
params = params.set("applicationID", applicationID);
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
params: params
|
params: params
|
||||||
|
|||||||
@@ -1,19 +1,12 @@
|
|||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="thetitle"><ion-label >Despacho</ion-label></div>
|
<div class="thetitle"><ion-label >Despachos</ion-label></div>
|
||||||
<div class="theicon">
|
<div class="theicon">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh($event)">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ion-toolbar>
|
|
||||||
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
|
|
||||||
<ion-segment-button value="despachos">
|
|
||||||
Lista de despachos
|
|
||||||
</ion-segment-button>
|
|
||||||
</ion-segment>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
@@ -25,9 +18,9 @@
|
|||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
|
|
||||||
<div class="width-100" [ngSwitch]="segment">
|
<div class="width-100">
|
||||||
<div *ngIf="despachoList">
|
<div *ngIf="despachoList">
|
||||||
<ion-list *ngSwitchCase="'despachos'">
|
<ion-list>
|
||||||
<ion-item
|
<ion-item
|
||||||
class="expediente ion-no-padding"
|
class="expediente ion-no-padding"
|
||||||
*ngFor = "let task of despachoList"
|
*ngFor = "let task of despachoList"
|
||||||
|
|||||||
Reference in New Issue
Block a user