/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmImportRes", showName: "计算/试验资源", }) export class MdlAmImportRes { @AMProp({ showName: "资源Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public importResId; @AMProp({ showName: "文件", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref:'MdlAmFile', editOption: { type: "file" }, validator: ["require"] }) public amFile; @AMProp({ showName: "备注", showInGrid: true, showInDetail: true, editable: true, showInRef: true, editOption: { type: "text" }, validator: ["maxLength:512"], type: "string" }) public remarks; }