UNPKG

py-uni

Version:

py-uni

34 lines (32 loc) 1.31 kB
/** * 填报情况对象 */ export class ReportSubmitCount{ FillInItemInstanceId: string; // 填报项实例 FillInItemInstanceName: string; // 实例名称 Type: number; // 填报类型(期、次) Year: string; // 年份 Period: number; // 期次 Status: number; // 状态(未开始、已结束、进行中) SubmitNum: number; // 已填报 NotSubmitNum: number; // 未填报 constructor(options: { FillInItemInstanceId?: string; FillInItemInstanceName?: string; Type?: number; Year?: string; Period?: number; Status?: number; SubmitNum?: number; NotSubmitNum?: number; } = {}) { this.FillInItemInstanceId = options.FillInItemInstanceId || ''; this.FillInItemInstanceName = options.FillInItemInstanceName || ''; this.Type = !options.Type ? 0 : Number.parseFloat(options.Type.toString()); this.Year = options.Year || ''; this.Period = !options.Period ? 0 : Number.parseFloat(options.Period.toString()); this.Status = !options.Status ? 0 : Number.parseFloat(options.Status.toString()); this.SubmitNum = !options.SubmitNum ? 0 : Number.parseFloat(options.SubmitNum.toString()); this.NotSubmitNum = !options.NotSubmitNum ? 0 : Number.parseFloat(options.NotSubmitNum.toString()); } }