HRM-10/HRM.UI/ClientApp/src/app/payroll-ot/bonus-basic-entry/bonus-basic-entry.component.ts
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

55 lines
2.3 KiB
TypeScript

import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import {BasicMasterListColumn, BasicMasterView, EnumColumnDataTypes, EnumFormView} from '../../form-builder/Basic-Master-View';
import {basicformbuilderService} from '../../form-builder/basic-form-builder.service';
import {EnumDefaultValidatorType, EnumDynamicControlType} from '../../form-builder/Basic-Entry-form';
import { BasicMasterViewComponent } from 'src/app/form-builder/Basic-Master-View.component';
@Component({
selector: 'app-bonus-basic-entry',
templateUrl: './bonus-basic-entry.component.html',
styleUrls: ['./bonus-basic-entry.component.css']
,
changeDetection: ChangeDetectionStrategy.Eager,
standalone: false,
})
export class BonusBasicEntryComponent implements OnInit {
ListviewData: any;
msv: BasicMasterView = new BasicMasterView();
thebaseurl: string;
public config = {
animated: true,
keyboard: true,
backdrop: true,
ignoreBackdropClick: true
};
/** user ctor */
constructor(public msvs: basicformbuilderService) {
this.msvs.setMasterView(this.msv);
}
ngOnInit() {
this.msv.caption = 'Bonus';
this.msv.fromViewType = EnumFormView.ListView;
this.msv.searchPayrolltype = true;
this.msv.listViewColumn.push(new BasicMasterListColumn('Code', 'Code', EnumColumnDataTypes.String));
this.msv.listViewColumn.push(new BasicMasterListColumn('Name', 'Name', EnumColumnDataTypes.String));
//this.msv.listViewColumn.push(new BasicMasterListColumn('Status', 'Status', EnumColumnDataTypes.String));
this.msv.entryFrom.formHeight = 305;
this.msv.entryFrom.formWidth = 550;
this.msv.entryFrom.caption = 'Bonus';
this.msv.entryFrom.iDColumnName = 'id';
this.msv.entryFrom.sourceObject = 'Bonus';
this.msv.entryFrom.AddControl('Code', 'Code', EnumDynamicControlType.TextBox, '', true, EnumDefaultValidatorType.Custom, 256, 2);
this.msv.entryFrom.AddControl('Name', 'Name', EnumDynamicControlType.TextBox, '', true, EnumDefaultValidatorType.Custom, 256, 2);
this.msv.entryFrom.AddControl('Name in Bangla', 'NameInBangla', EnumDynamicControlType.TextBox, '', false, EnumDefaultValidatorType.Custom, 256, 2);
}
}