UNPKG

aux-dbf

Version:

DBF for price PSM

59 lines (51 loc) 1.1 kB
export enum COLUMN_TYPE { BINARY = "B", CHARACTER = "C", DATE = "D", FLOAT = "F", GENERAL_OLE = "G", INTEGER = "I", LOGICAL = "L", MEMO = "M", NUMBER = "N", DOUBLE = "O", PICTURE = "P", VARBINARY = "Q", DATE_TIME = "T", VARCHAR = "V", BLOB = "W", CURRENCY = "Y", TIMESTAMP = "@", AUTOINCREMENT = "+", } export class Column { private name: string; private size: number; private type: COLUMN_TYPE; private decimalPlaces: number; public isMDX: boolean; /** * Индекс колонки */ public index: number; public Add(name: string, size: number, type: COLUMN_TYPE, index: number, decimalPlaces?: number, isMDX?: boolean) { this.name = name; this.size = size; this.type = type; this.index = index; this.decimalPlaces = decimalPlaces; this.isMDX = isMDX } public getDecimalPlaces(): number { return this.decimalPlaces } public getTitle(): string { return this.name; } public getType(): COLUMN_TYPE { return this.type; } public getSize(): number { return this.size; } }