/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmUser", showName: "用户", manageable:true, editable:true, }) export class MdlAmUser { @AMProp({ showName: "userId", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public userId; @AMProp({ showName: "用户名", showInGrid: true, showInDetail: true, showInQuery:true, showInRef: true, editable: true, editOption: { type: "text" }, validator: ["require", "maxLength:64"], type: "string" }) public userName; @AMProp({ showName: "真实姓名", showInGrid: true, showInDetail: true, showInQuery:true, editable: true, editOption: { type: "text" }, validator: ["require", "maxLength:64"], type: "string" }) public realName; @AMProp({ showName: "密码", editable: true, editOption: { type: "text" }, validator: ["require", "maxLength:32"], type: "string", defaultValue:"123456" }) public pwd; @AMProp({ showName: "联系电话", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:15"], type: "string" }) public tel; @AMProp({ showName: "手机号", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:11"], type: "string" }) public mobile; @AMProp({ showName: "电子邮箱", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:50"], type: "string" }) public email; @AMProp({ showName: "所属组", showInGrid: true, showInDetail: true, // showInQuery:true, editable: true, type:'ref', ref:'MdlAmGroup', editOption: { type: "select", option: { multi: true, refModel: "MdlAmGroup", valueProp: "groupId", displayProp: "groupName" } } }) public amGroups; @AMProp({ showName: "所属机构", showInGrid: true, showInDetail: true, showInQuery:true, editable: true, type:'ref', ref:'MdlAmCompany', editOption: { type: "select", option: { multi: false, refModel: "MdlAmCompany", valueProp: "companyId", displayProp: "companyName" } } }) public amCompany; @AMProp({ showName: "是否可用", showInGrid: true, showInDetail: true, editOption: { type: "number" }, type: "int" }) public enabled; @AMProp({ showName: "备注", showInGrid: true, showInDetail: true, editable: true, editOption: { type: "text" }, validator: ["maxLength:256"], type: "string" }) public remarks; }