/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmTarget", showName: "试验/计算对象", manageable:true, editable:true, }) export class MdlAmTarget { @AMProp({ showName: "Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public targetId; @AMProp({ showName: "对象名称", showInGrid: true, showInDetail: true, editable: true, showInRef: true, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public targetName; @AMProp({ showName: "对象代码", showInGrid: true, showInDetail: true, editable: true, showInCond:true, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public targetCode; @AMProp({ showName: "父对象", showInGrid: true, showInDetail: true, editable: true, nameInGrid:true, type:'ref', ref:'MdlAmTarget', editOption: { type: "select", option: { multi: false, refModel: "MdlAmTarget", valueProp: "targetId", displayProp: "targetName" } } }) public amTarget; @AMProp({ showName: "创建时间", showInGrid: true, showInDetail: true, editable: false, showInCond:true, editOption: { type: "datetime" }, type: "datetime" }) public createTime; @AMProp({ showName: "备注", showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:512"], type: "string" }) public remarks; }