/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmCompany", showName: "机构", manageable:true, editable:true, }) export class MdlAmCompany { @AMProp({ showName: "机构Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public companyId; @AMProp({ showName: "机构名称", showInGrid: true, showInDetail: true, editable: true, showInRef: true, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public companyName; @AMProp({ showName: "地址", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:256"], type: "string" }) public address; @AMProp({ showName: "联系人", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public linkMan; @AMProp({ showName: "联系电话", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["require", "maxLength:15"], type: "string" }) public linkTel; @AMProp({ showName: "通信地址", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:256"], type: "string" }) public mailAddress; @AMProp({ showName: "邮编", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:6"], type: "string" }) public zipcode; @AMProp({ showName: "传真号码", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:15"], type: "string" }) public faxNo; @AMProp({ showName: "固定电话", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:15"], type: "string" }) public fixTelNo; @AMProp({ showName: "电子邮箱", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:50"], type: "string" }) public email; @AMProp({ showName: "备注", showInDetail: true, editable: true, editOption: { type: "textarea" }, validator: ["maxLength:512"], type: "string" }) public remarks; }