import { Base } from './base'; export class FinancialReturn extends Base { employeeNumber: string; type: string; date: Date; financialReturnID: string; index: number; amount: number; constructor(data: any | null = null) { super(); this.employeeNumber = ''; this.type = ''; this.date = new Date(); this.financialReturnID = ''; this.index = 0; this.amount = 0; this.load(data); if (data) { if (data.timeStamp > 0) { let aDate: Date | null = null; aDate = new Date(); aDate.setTime(data.timeStamp); this.date = aDate; } } } }