UNPKG

armisa-models

Version:
35 lines (30 loc) 836 B
import { MainStateManager } from "./MainStateManager"; export interface IReportInfoing { id: number; path: string; title: string; fileName: string; } export class ReportInfoing { userLogin(reportInfos: IReportInfoing[]) { this.reportInfos = reportInfos.map(i => new ReportInfo(i.id, i.path, i.fileName, i.title)); } public reportInfos: ReportInfo[] = []; constructor( public mainStateManager: MainStateManager, ) { } } class ReportInfo { public system: '02.Accounting' | '09.Net'; public type: 'report' | 'form'; constructor( public id: number, public path: string, public fileName: string, public title: string, ) { this.system = '02.Accounting'; this.type = 'report'; } }