// 假设 IEntity 接口定义如下
interface IEntity {
    ChangeToTable(): string[];
    ChangeFromTable(parms: any[]): void;
}

export class TradePrintMessage implements IEntity {
    /**
     * 交易号
     */
    public TradeNo: string;
    /**
     * 交易名称
     */
    public TradeName: string;
    /**
     * 已有表单数
     */
    public FormCount: number;

    constructor() {
        this.TradeNo = '';
        this.TradeName = '';
        this.FormCount = 0;
    }

    public ChangeToTable(): string[] {
        return [this.TradeNo, this.TradeName, this.FormCount.toString()];
    }

    public ChangeFromTable(parms: any[]): void {
        this.TradeNo = parms[0].toString();
        this.TradeName = parms[1].toString();
        this.FormCount = parseInt(parms[2].toString(), 10);
    }
}