/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmOrgMode", showName: "数据组织方式", manageable:true, editable:true, colsInRow:1, editWidth:500 }) export class MdlAmOrgMode { @AMProp({ showName: "组织方式Id", showInGrid: true, showInDetail: true, isId: true, width:100, editable: false, type: "int" }) public orgModeId; @AMProp({ showName: "名称", showInGrid: true, showInDetail: true, editable: true, showInRef: true, width:150, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public orgModeName; @AMProp({ showName: "组织项", showInGrid: true, showInDetail: true, showInQuery:true, editable: true, width:150, type:'ref', ref:'MdlAmOrgCond', editOption: { type: "transfer", option: { refModel: "MdlAmOrgCond", valueProp: "orgCondId", displayProp: "showName" } }, validator: ["require"] }) public amOrgConds; @AMProp({ showName: "是否默认", width:100, showInGrid: true, showInDetail: true, editable: true, title:'设置为默认组织方式', editOption: { type: "checkbox" ,yes:1,no:0}, type: "string", defaultValue:0 }) public isDefault; @AMProp({ showName: "备注", showInGrid: true, showInDetail: true, editable: true, showInRef: true, editOption: { type: "text" }, validator: ["maxLength:256"], type: "string" }) public remarks; }