WEB-277: Collection sheet and Productive collection sheet part I
This commit is contained in:
+1
-1
@@ -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 });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user