bu3.model.ts 530 Bytes
Newer Older
Natthaphat Pankiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
export interface Bu3Model {
    bu3id: string;
    tdesc: string;
    edesc: string;
    parent: string;
    companyId: string;
}


export class MyBu3Model implements Bu3Model {
    bu3id: string;
    tdesc: string;
    edesc: string;
    parent: string;
    companyId: string;
    constructor(data: Partial<Bu3Model>) {
        this.bu3id = data.bu3id || ""
        this.tdesc = data.tdesc || ""
        this.edesc = data.edesc || ""
        this.parent = data.parent || ""
        this.companyId = data.companyId || ""
    }
}