- ปรับรูปแบบ template html
This commit is contained in:
@@ -1 +1 @@
|
||||
<app-budget-aproval (ExpenseEventSubmit)="OnBudgetExp($event)"></app-budget-aproval>
|
||||
<app-budget-aproval (ExpenseEventSubmit)="OnBudgetExp($event)" [prjnam]="prjNam"></app-budget-aproval>
|
||||
|
||||
@@ -14,16 +14,24 @@ export class BudgetAprovalContent implements OnInit {
|
||||
|
||||
myTrnmst: ITrnmst[]=[];
|
||||
myDropBdg: IDropBdg[]=[];
|
||||
constructor(
|
||||
prjSeq:string = '';
|
||||
prjNam:string = '';
|
||||
; constructor(
|
||||
private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
private generalService: GeneralService,
|
||||
private transactionStateService: TransactionStateService
|
||||
){}
|
||||
){
|
||||
const nav = this.router.getCurrentNavigation();
|
||||
if (nav?.extras.state) {
|
||||
this.prjSeq = nav.extras.state['prjseq'];
|
||||
this.prjNam = nav.extras.state['prjnam'];
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
let param = this.route.snapshot.paramMap.get('seq');
|
||||
this.OnSearchTrn(param);
|
||||
// this.prjSeq = this.route.snapshot.param.get('seq');
|
||||
this.OnSearchTrn(this.prjSeq);
|
||||
this.OnBudgetSearch();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ export class MainManagerContentComponent implements OnInit {
|
||||
private generalService: GeneralService,
|
||||
private projectStateService: ProjectStateService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.OnSearchPrj({}, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user