- ปรับรูปแบบ template html

This commit is contained in:
x2Skyz
2025-11-26 15:16:46 +07:00
parent 9e4af33493
commit 97fef61d8d
11 changed files with 156 additions and 125 deletions

View File

@@ -1 +1 @@
<app-budget-aproval (ExpenseEventSubmit)="OnBudgetExp($event)"></app-budget-aproval>
<app-budget-aproval (ExpenseEventSubmit)="OnBudgetExp($event)" [prjnam]="prjNam"></app-budget-aproval>

View File

@@ -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();
}

View File

@@ -36,7 +36,6 @@ export class MainManagerContentComponent implements OnInit {
private generalService: GeneralService,
private projectStateService: ProjectStateService
) {}
ngOnInit(): void {
this.OnSearchPrj({}, true);
}