/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmAlgorithm", showName: "算法", manageable:true, editable:true, colsInRow:1 }) export class MdlAmAlgorithm { @AMProp({ showName: "算法Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public algorithmId; @AMProp({ showName: "算法类型", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref:'MdlAmAlgorithmType', editOption: { type: "select", option: { multi: false, refModel: "MdlAmAlgorithmType", valueProp: "algorithmTypeId", displayProp: "typeName" } } }) public amAlgorithmType; @AMProp({ showName: "创建人", showInGrid: true, showInDetail: true, editable: false, type:'ref', ref: "MdlAmUser", useLogonUser:{update:true}, editOption: { type: "select", option: { multi: false, refModel: "MdlAmUser", valueProp: "userId", displayProp: "userName" } } }) public amUser; @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: ["require", "maxLength:128"], type: "string" }) public algorithmName; @AMProp({ showName: "处理模块", showInGrid: true, showInDetail: true, editable: false, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public handleModule; @AMProp({ showName: "算法介绍", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "textarea" }, validator: ["maxLength:512"], type: "string" }) public description; }