Customer.groovy
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:2k
源码类别:

PlugIns编程

开发平台:

Java

  1. class Customer {
  2.     String cusId // 客户编号       *
  3.     String cusName // 客户姓名       *
  4.     String cusEname // 客户英文名
  5.     String cusCompany // 客户所属公司
  6.     Code cusSex // 客户性别
  7.     Date cusBirth // 客户生日
  8.     String cusCard // 客户生份证
  9.     byte[] cusImage // 客户照片
  10.     String cusTel1 // 联系电话      *
  11.     String cusTel2 // 备用电话
  12.     String cusLinkman // 紧急联系人
  13.     String cusLinktel // 紧急联系人电话
  14.     String cusEmail // 邮箱
  15.     Code cusClan // 名族
  16.     String cusNative // 籍贯
  17.     String cusAddress // 联系地址
  18.     Code cusEducation // 学历
  19.     Code cusProfession // 职业
  20.     Code cusWorkstate // 在职状态
  21.     String cusSchool // 毕业院校
  22.     Code cusHealth // 健康状况
  23.     Code cusType // 客户类别
  24.     String cusServer // 本公司受理人
  25.     String cusLikegoods // 喜欢本公司的产品
  26.     String cusMemo // 备注
  27.     String cusDel // 删除状态
  28.     Date cusCreatetime //
  29.     String cusCreater //
  30.     Date cusLastchange //
  31.     String cusLastchanger //
  32.     static constraints = {
  33.         cusId(maxSize: 12, unique: true)
  34.         cusName(maxSize: 10, blank: false)
  35.         cusEname(maxSize: 20,nullable:true)
  36.         cusCompany(maxSize: 50, blank: false,nullable:true)
  37.         cusSex(blank: false)
  38.         cusBirth(nullable:true)
  39.         cusCard(maxSize: 20, unique: true,nullable:true)
  40.         cusImage(maxSize: 100000,nullable:true)
  41.         cusTel1(maxSize: 20, blank: false)
  42.         cusTel2(maxSize: 20,nullable:true)
  43.         cusLinkman(maxSize: 10,nullable:true)
  44.         cusLinktel(maxSize: 20,nullable:true)
  45.         cusEmail(maxSize: 20,nullable:true)
  46.         cusClan(nullable:true)
  47.         cusNative(maxSize:20,nullable:true)
  48.         cusAddress(maxSize:50,nullable:true)
  49.         cusEducation(nullable:true)
  50.         cusProfession(nullable:true)
  51.         cusWorkstate(nullable:true)
  52.         cusSchool(maxSize:25,nullable:true)
  53.         cusHealth(nullable:true)
  54.         cusType(nullable:true)
  55.         cusServer(maxSize:20,nullable:true)
  56.         cusLikegoods(maxSize:200,nullable:true)
  57.         cusMemo(maxSize: 500,nullable:true)
  58.         cusDel(maxSize:2)
  59.         cusCreatetime(blank:false)
  60.         cusCreater(maxSize:12,maxSize:12,blank:false)
  61.         cusLastchange(blank:false)
  62.         cusLastchanger(maxSize:12,maxSize:12,blank:false)
  63.     }
  64. }