You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
261 lines
7.3 KiB
261 lines
7.3 KiB
/**
|
|
* Copyright (c) 2002 Sinosoft Co.,LTD.
|
|
* All right reserved.
|
|
*/
|
|
|
|
package com.sinosoft.lis.schema;
|
|
|
|
import com.sinosoft.persistence.Entity;
|
|
import com.sinosoft.lis.pubfun.FDate;
|
|
import com.sinosoft.persistence.Column;
|
|
import com.sinosoft.persistence.Id;
|
|
import com.sinosoft.persistence.Schema;
|
|
import com.sinosoft.persistence.Table;
|
|
import com.sinosoft.persistence.impl.SchemaHelper;
|
|
import com.sinosoft.utility.CErrors;
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import lombok.experimental.Accessors;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* <p>ClassName: LBGrpAddressSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:37 836
|
|
*/
|
|
@Table(name = "LBGrpAddress")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LBGrpAddressSchema extends Entity implements Schema<LBGrpAddressSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING)
|
|
private String edorNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 1, name = "CustomerNo", desc = "客户号码", type = Schema.TYPE_STRING)
|
|
private String customerNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 2, name = "AddressNo", desc = "地址号码", type = Schema.TYPE_STRING)
|
|
private String addressNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 3, name = "GrpAddress", desc = "单位地址", type = Schema.TYPE_STRING)
|
|
private String grpAddress;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 4, name = "GrpZipCode", desc = "单位邮编", type = Schema.TYPE_STRING)
|
|
private String grpZipCode;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 5, name = "LinkMan1", desc = "联系人1", type = Schema.TYPE_STRING)
|
|
private String linkMan1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 6, name = "Department1", desc = "部门1", type = Schema.TYPE_STRING)
|
|
private String department1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 7, name = "HeadShip1", desc = "职务1", type = Schema.TYPE_STRING)
|
|
private String headShip1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 8, name = "Phone1", desc = "联系电话1", type = Schema.TYPE_STRING)
|
|
private String phone1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 9, name = "E_Mail1", desc = "E_mail1", type = Schema.TYPE_STRING)
|
|
private String e_Mail1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 10, name = "Fax1", desc = "传真1", type = Schema.TYPE_STRING)
|
|
private String fax1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 11, name = "LinkMan2", desc = "联系人2", type = Schema.TYPE_STRING)
|
|
private String linkMan2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 12, name = "Department2", desc = "部门2", type = Schema.TYPE_STRING)
|
|
private String department2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 13, name = "HeadShip2", desc = "职务2", type = Schema.TYPE_STRING)
|
|
private String headShip2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 14, name = "Phone2", desc = "联系电话2", type = Schema.TYPE_STRING)
|
|
private String phone2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 15, name = "E_Mail2", desc = "E_mail2", type = Schema.TYPE_STRING)
|
|
private String e_Mail2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 16, name = "Fax2", desc = "传真2", type = Schema.TYPE_STRING)
|
|
private String fax2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 17, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING)
|
|
private String operator;
|
|
|
|
@Column(index = 18, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 19, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
@Column(index = 20, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 21, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
|
|
public static final int FIELDNUM = 22; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LBGrpAddressSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LBGrpAddressSchema cloned = (LBGrpAddressSchema) super.clone();
|
|
cloned.fDate = (FDate) fDate.clone();
|
|
cloned.mErrors = (CErrors) mErrors.clone();
|
|
SchemaHelper.cloneDate(cloned, this, this.getClass());
|
|
return cloned;
|
|
}
|
|
|
|
public String[] getPK() {
|
|
return SchemaHelper.getPK(this.getClass());
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LBGrpAddressSchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LBGrpAddressSchema setMakeDate(String aMakeDate) {
|
|
if (aMakeDate != null && !aMakeDate.equals("") && !aMakeDate.equals("null")) {
|
|
makeDate = fDate.getDate(aMakeDate);
|
|
} else {
|
|
makeDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getModifyDate() {
|
|
if (modifyDate != null)
|
|
return fDate.getString(modifyDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LBGrpAddressSchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LBGrpAddressSchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LBGrpAddressSchema setSchema(LBGrpAddressSchema aLBGrpAddressSchema) {
|
|
SchemaHelper.setSchema(aLBGrpAddressSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LBGrpAddressSchema getSchema() {
|
|
LBGrpAddressSchema aLBGrpAddressSchema = new LBGrpAddressSchema();
|
|
aLBGrpAddressSchema.setSchema(this);
|
|
return aLBGrpAddressSchema;
|
|
}
|
|
|
|
public String encode() {
|
|
return SchemaHelper.encode(this);
|
|
}
|
|
|
|
public boolean decode(String strMessage) {
|
|
return SchemaHelper.decode(this, strMessage);
|
|
}
|
|
|
|
public String getV(String FCode) {
|
|
return SchemaHelper.getV(this, FCode);
|
|
}
|
|
|
|
public String getV(int nFieldIndex) {
|
|
return SchemaHelper.getV(this, nFieldIndex);
|
|
}
|
|
|
|
public boolean setV(String FCode, String FValue) {
|
|
return SchemaHelper.setV(this, FCode, FValue);
|
|
}
|
|
|
|
public int getFieldCount() {
|
|
return FIELDNUM;
|
|
}
|
|
|
|
public int getFieldIndex(String strFieldName) {
|
|
return SchemaHelper.getFieldIndex(this.getClass(), strFieldName);
|
|
}
|
|
|
|
public String getFieldName(int nFieldIndex) {
|
|
return SchemaHelper.getFieldName(this.getClass(), nFieldIndex);
|
|
}
|
|
|
|
public int getFieldType(String strFieldName) {
|
|
return SchemaHelper.getFieldType(this.getClass(), strFieldName);
|
|
}
|
|
|
|
public int getFieldType(int nFieldIndex) {
|
|
return SchemaHelper.getFieldType(this.getClass(), nFieldIndex);
|
|
}
|
|
}
|
|
|