/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmFile", showName: "文件", }) export class MdlAmFile { @AMProp({ showName: "文件id", showInGrid: true, showInDetail: true, isId: true, width:80, editable: false, type: "int" }) public fileId; @AMProp({ showName: "文件类型", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref:'MdlAmFileType', editOption: { type: "select", option: { multi: false, refModel: "MdlAmFileType", valueProp: "fileTypeId", displayProp: "typeName" } } }) public amFileType; @AMProp({ showName: "文件名称", showInGrid: true, showInDetail: true, editable: true, width:150, showInRef: true, editOption: { type: "text" }, validator: ["maxLength:128"], type: "string" }) public fileName; @AMProp({ showName: "存储路径", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "textarea" }, validator: ["maxLength:1024"], type: "string" }) public savePath; @AMProp({ showName: "下载路径", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "textarea" }, validator: ["maxLength:1024"], type: "string" }) public downPath; @AMProp({ showName: "备注", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:256"], type: "string" }) public remarks; }