WIP
This commit is contained in:
@@ -11,14 +11,17 @@ import { AuthService } from '../../services/auth.service';
|
||||
import { DateUtils } from '../../utilities/date-utils';
|
||||
import { NumberUtils } from '../../utilities/number-utils';
|
||||
import { CellGroupRoutineEventsService } from '../../services/crudServices/cell-group-routine-events.service';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { PastoralDomainService } from '../../services/crudServices/pastoral-domain.service';
|
||||
import { MyAppBase } from '../MyAppBase';
|
||||
import { StateService } from '../../services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-dinner',
|
||||
templateUrl: './dinner.component.html',
|
||||
styleUrls: ['./dinner.component.scss']
|
||||
})
|
||||
export class DinnerComponent implements OnInit {
|
||||
|
||||
export class DinnerComponent extends MyAppBase {
|
||||
constructor(
|
||||
private cellGroupRoutineEventsService: CellGroupRoutineEventsService,
|
||||
private messageService: MsgBoxService,
|
||||
@@ -26,10 +29,12 @@ export class DinnerComponent implements OnInit {
|
||||
private sessionService: SessionService,
|
||||
private lineService: LineService,
|
||||
private cdRef: ChangeDetectorRef,
|
||||
private headerService: HeaderService,
|
||||
private authService: AuthService
|
||||
private authService: AuthService,
|
||||
protected stateService: StateService,
|
||||
protected route: ActivatedRoute,
|
||||
protected pastoralDomainService: PastoralDomainService
|
||||
) {
|
||||
|
||||
super(stateService, route, pastoralDomainService);
|
||||
}
|
||||
|
||||
cellGroupEvent: CellGroupRoutineEvents;
|
||||
@@ -40,10 +45,12 @@ export class DinnerComponent implements OnInit {
|
||||
isLoading: boolean = true;
|
||||
processing: boolean = false;
|
||||
|
||||
ngOnInit(): void {
|
||||
this.headerService.setHeader("晚宴系統")
|
||||
pageOnInit(): void {
|
||||
this.stateService.SetPageTitle("晚宴系統");
|
||||
this.getAllData();
|
||||
|
||||
}
|
||||
|
||||
getAllData() {
|
||||
|
||||
this.isLoading = true;
|
||||
@@ -70,7 +77,7 @@ export class DinnerComponent implements OnInit {
|
||||
|
||||
this.processing = false;
|
||||
this.toastrService.success('菜單更新完成!');
|
||||
this.lineService.pushCommandMessage('Cac4ac5a8d7fc52daa444d71dc7c360a9', 'dinner');
|
||||
this.lineService.pushCommandMessage(this.cellGroupEvent.pastoralDomainId, 'dinner');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user