import { Base } from './base'; import { Dictionary } from './dictionary'; export class PayrollDate extends Base { payrollID: number; type: string; typeNumber: number; date: Date; active: boolean; isException: boolean; constructor(data: any = null) { super(); this.payrollID = 0; this.type = ''; this.typeNumber = 0; this.date = new Date(); this.active = false; this.isException = false; this.load(data); } } export class PayrollDates extends Base { types: any = { diario: 1, semanal: 2, catorcenal: 3, quincenal: 4, mensual: 5, daily: 1, weekly: 2, biweekly: 3, bimonthly: 4, monthly: 5, 1: 'daily', 2: 'weekly', 3: 'biweekly', 4: 'bimonthly', 5: 'monthly' }; daily: Dictionary; weekly: Dictionary; biweekly: Dictionary; bimonthly: Dictionary; monthly: Dictionary; constructor(data: any = null) { super(); this.daily = new Dictionary(PayrollDate); this.weekly = new Dictionary(PayrollDate); this.biweekly = new Dictionary(PayrollDate); this.bimonthly = new Dictionary(PayrollDate); this.monthly = new Dictionary(PayrollDate); this.load(data); } }