WEB-277: Collection sheet and Productive collection sheet part I

This commit is contained in:
Jose Alberto Hernandez
2025-09-02 21:36:31 -05:00
parent f1adfaf9e1
commit dbf551fcd1
25 changed files with 412 additions and 21 deletions
@@ -174,7 +174,7 @@ export class AttachCenterMeetingComponent implements OnInit {
locale
};
this.centersService.createCenterMeeting(this.centerId, data).subscribe((response: any) => {
this.router.navigate(['../../'], { relativeTo: this.route });
this.router.navigate(['../../general'], { relativeTo: this.route });
});
}
}
+12
View File
@@ -282,4 +282,16 @@ export class CentersService {
executeEditCenter(centerId: string, data: any): Observable<any> {
return this.http.put(`/groups/${centerId}`, data);
}
getAllMeetingFallCenters(
officeId: number,
staffId: number,
meetingDate: string,
dateFormat: string,
locale: string
): Observable<any> {
return this.http.get(
`/centers?dateFormat=${dateFormat}&locale=${locale}&meetingDate=${meetingDate}&officeId=${officeId}&staffId=${staffId}`
);
}
}
@@ -24,7 +24,7 @@ export class CenterActionsResolver {
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const actionName = route.paramMap.get('name');
const actionName = route.paramMap.get('action');
const centerId = route.paramMap.get('centerId') || route.parent.parent.paramMap.get('centerId');
switch (actionName) {
case 'Assign Staff':