import { TStim } from ".."; import { IPathResponse } from "../core"; import { TFlowDataResponse } from "../flow"; import { ICardRoomResponse } from "./ICardRoomResponse"; export interface ICardFwczResponse { whoBuild: number; userIndx: number; fwczIndx: number; parentID: number; hashCode: number; dataLevl: number; dataFrom: number; kjndKJQJ: number; dataStat: number; dataOrdr: number; dataHide: number; dataType: number; dataDate: number; dataTime: number; dataGUID: string; userMain: number; mastName: string; mastGUID: string; createBy: string; createAt: number; updateBy: string; updateAt: number; deleteBy: string; deleteAt: number; queuesBy: number; entityID: string; sourceND: number; menuMain: number; menuUUID: string; unitMain: number; deptMain: number; sqyhText: string; sqbmText: string; flowUndo: number; flowText: string; fwczStat: number; fwczCode: string; fwczName: string; fwczDate: number; /** 招租方式 */ fwczZzfs: number; /** 报名竞价人数 */ fwczBmrs: number; /** 参与竞价人数 */ fwczCyrs: number; /** 招租底价 */ fwczZzdj: number; /** 成交首年租金 */ fwczNzj: number; /** 溢价率 */ fwczYjl: number; /** 成交时间 */ fwczCjsj: number; /** 过会单价 */ fwczGhdj: number; /** 过会有效期 */ fwczGhyxq: number; /** 底价确定方式 */ fwczQdfs: number; /** 行权人职务 */ flowUsrTitle: string; /** 行权人姓名 */ flowUserName: string; /** 行权人身份证号 */ flowUserIdcd: string; /** 行权人联系方式 */ flowDContact: string; /** 备注 */ fwczMemo: string; /** 单位编码 */ sourceDW: string; /** 单位名称 */ unitText: string; /** 招租方式.名称 */ fwczZzfsText: string; /** 底价确定方式.名称 */ fwczQdfsText: string; /** 房产名称 */ cardName: string; /** 房间编号 */ roomCode: string; /** 房间地址 */ roomAddr: string; /** 旧系统房源编号 */ code4Old: string; thirdApp: string; lastDate: number; lastTime: number; flowMain: number; flowNode: number; flowStat: number; didFirst: number; lastMemo: string; userName: string; userGUID: string; listRoom: ICardRoomResponse[]; listPath: IPathResponse[]; } export class TCardFwczResponse implements ICardFwczResponse { whoBuild: number = 0; userIndx: number = 0; fwczIndx: number = 0; parentID: number = 0; hashCode: number = 0; dataLevl: number = 0; dataFrom: number = 0; kjndKJQJ: number = 0; dataStat: number = 0; dataOrdr: number = 0; dataHide: number = 0; dataType: number = 0; dataDate: number = 0; dataTime: number = 0; dataGUID: string = ""; userMain: number = 0; mastName: string = ""; mastGUID: string = ""; createBy: string = ""; createAt: number = 0; updateBy: string = ""; updateAt: number = 0; deleteBy: string = ""; deleteAt: number = 0; queuesBy: number = 0; entityID: string = ""; sourceND: number = 0; menuMain: number = 0; menuUUID: string = ""; unitMain: number = 0; deptMain: number = 0; sqyhText: string = ""; sqbmText: string = ""; flowUndo: number = 0; flowText: string = ""; fwczStat: number = 0; fwczCode: string = ""; fwczName: string = ""; fwczDate: number = 0; /** 招租方式 */ fwczZzfs: number = 0; /** 报名竞价人数 */ fwczBmrs: number = 0; /** 参与竞价人数 */ fwczCyrs: number = 0; /** 招租底价 */ fwczZzdj: number = 0; /** 成交首年租金 */ fwczNzj: number = 0; /** 溢价率 */ fwczYjl: number = 0; /** 成交时间 */ fwczCjsj: number = 0; /** 过会单价 */ fwczGhdj: number = 0; /** 过会有效期 */ fwczGhyxq: number = 0; /** 底价确定方式 */ fwczQdfs: number = 0; /** 行权人职务 */ flowUsrTitle: string = ""; /** 行权人姓名 */ flowUserName: string = ""; /** 行权人身份证号 */ flowUserIdcd: string = ""; /** 行权人联系方式 */ flowDContact: string = ""; /** 备注 */ fwczMemo: string = ""; /** 单位编码 */ sourceDW: string = ""; /** 单位名称 */ unitText: string = ""; /** 招租方式.名称 */ fwczZzfsText: string = ""; /** 底价确定方式.名称 */ fwczQdfsText: string = ""; /** 房产名称 */ cardName: string = ""; /** 房间编号 */ roomCode: string = ""; /** 房间地址 */ roomAddr: string = ""; /** 旧系统房源编号 */ code4Old: string = ""; thirdApp: string = ""; lastDate: number = 0; lastTime: number = 0; flowMain: number = 0; flowNode: number = 0; flowStat: number = 0; didFirst: number = 0; lastMemo: string = ""; userName: string = ""; userGUID: string = ""; listRoom: ICardRoomResponse[] = []; listPath: IPathResponse[] = []; static toFlowDatas(fwczs: TCardFwczResponse[]): TFlowDataResponse[] { return fwczs.map((u) => this.toFlowData(u)); } static toFlowData(fwcz: TCardFwczResponse): TFlowDataResponse { let result = new TFlowDataResponse(); result.whoBuild = fwcz.whoBuild; result.userIndx = fwcz.userIndx; result.flowMain = fwcz.flowMain; result.flowNode = fwcz.flowNode; result.flowStat = fwcz.fwczStat; // result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_XMTZ_WAIT; result.entityID = fwcz.entityID; result.billMain = fwcz.fwczIndx; result.billCode = fwcz.fwczCode; result.billMemo = fwcz.fwczMemo; result.outMoney = 0; result.createAt = fwcz.createAt; result.mastName = fwcz.mastName; result.createBy = fwcz.createBy; result.unitMain = fwcz.unitMain; result.deptMain = fwcz.deptMain; result.menuUUID = fwcz.menuUUID; return result; } static toWldyPrintData(fwcz: ICardFwczResponse) { const data = new TStim.TStimulsoftPrintData(); data.billMain = String(fwcz.fwczIndx); data.menuUUID = fwcz.menuUUID; return data; } static toWldyPrintDatas(listFwcz: ICardFwczResponse[]) { return listFwcz.map((u) => this.toWldyPrintData(u)); } }