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.
 
 
 

299 lines
8.5 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: LZCardPlanSchema </p>
* <p>Description: DB层 Schema 类文件 </p>
* <p>Company: Sinosoft Co.,LTD </p>
* @Database Schema2
* @author Makerx2
* @CreateDatetime 2019-03-16 16:05:45 670
*/
@Table(name = "LZCardPlan")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LZCardPlanSchema extends Entity implements Schema<LZCardPlanSchema>, Cloneable {
// @Field
@Getter
@Setter
@Id
@Column(index = 0, name = "PlanID", desc = "计划标识", type = Schema.TYPE_STRING)
private String planID;
@Getter
@Setter
@Column(index = 1, name = "CertifyCode", desc = "单证编码", type = Schema.TYPE_STRING)
private String certifyCode;
@Getter
@Setter
@Column(index = 2, name = "PlanType", desc = "计划类型", type = Schema.TYPE_STRING)
private String planType;
@Getter
@Column(index = 3, name = "AppCount", desc = "申请数量", type = Schema.TYPE_INT)
private int appCount;
@Getter
@Setter
@Column(index = 4, name = "AppOperator", desc = "申请人", type = Schema.TYPE_STRING)
private String appOperator;
@Getter
@Setter
@Column(index = 5, name = "AppCom", desc = "申请机构", type = Schema.TYPE_STRING)
private String appCom;
@Getter
@Column(index = 6, name = "ConCount", desc = "调整数量", type = Schema.TYPE_INT)
private int conCount;
@Getter
@Setter
@Column(index = 7, name = "ConOperator", desc = "调整人", type = Schema.TYPE_STRING)
private String conOperator;
@Getter
@Setter
@Column(index = 8, name = "ConCom", desc = "调整机构", type = Schema.TYPE_STRING)
private String conCom;
@Getter
@Column(index = 9, name = "RetCount", desc = "批复数量", type = Schema.TYPE_INT)
private int retCount;
@Getter
@Setter
@Column(index = 10, name = "RetOperator", desc = "批复人", type = Schema.TYPE_STRING)
private String retOperator;
@Getter
@Setter
@Column(index = 11, name = "RetCom", desc = "批复机构", type = Schema.TYPE_STRING)
private String retCom;
@Getter
@Setter
@Column(index = 12, name = "RetState", desc = "批复情况", type = Schema.TYPE_STRING)
private String retState;
@Getter
@Column(index = 13, name = "AssignCount", desc = "库存分配数量", type = Schema.TYPE_INT)
private int assignCount;
@Getter
@Setter
@Column(index = 14, name = "RelaPlan", desc = "关联计划", type = Schema.TYPE_STRING)
private String relaPlan;
@Getter
@Setter
@Column(index = 15, name = "RelaPrint", desc = "关联印刷", type = Schema.TYPE_STRING)
private String relaPrint;
@Column(index = 16, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
private Date makeDate;
@Getter
@Setter
@Column(index = 17, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
private String makeTime;
@Column(index = 18, name = "UpdateDate", desc = "更新日期", type = Schema.TYPE_DATE)
private Date updateDate;
@Getter
@Setter
@Column(index = 19, name = "UpdateTime", desc = "更新时间", type = Schema.TYPE_STRING)
private String updateTime;
@Getter
@Setter
@Column(index = 20, name = "PlanState", desc = "计划状态", type = Schema.TYPE_STRING)
private String planState;
public static final int FIELDNUM = 21; // 数据库表的字段个数
private transient FDate fDate = new FDate(); // 处理日期
public transient CErrors mErrors; // 错误信息
// @Constructor
public LZCardPlanSchema() {
mErrors = new CErrors();
}
// @Method
public Object clone() throws CloneNotSupportedException {
LZCardPlanSchema cloned = (LZCardPlanSchema) 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 LZCardPlanSchema setAppCount(int aAppCount) {
appCount = aAppCount;
return this;
}
public LZCardPlanSchema setAppCount(String aAppCount) {
if (aAppCount != null && !aAppCount.equals("") && !aAppCount.equals("null")) {
appCount = new Integer(aAppCount);
}
return this;
}
public LZCardPlanSchema setConCount(int aConCount) {
conCount = aConCount;
return this;
}
public LZCardPlanSchema setConCount(String aConCount) {
if (aConCount != null && !aConCount.equals("") && !aConCount.equals("null")) {
conCount = new Integer(aConCount);
}
return this;
}
public LZCardPlanSchema setRetCount(int aRetCount) {
retCount = aRetCount;
return this;
}
public LZCardPlanSchema setRetCount(String aRetCount) {
if (aRetCount != null && !aRetCount.equals("") && !aRetCount.equals("null")) {
retCount = new Integer(aRetCount);
}
return this;
}
public LZCardPlanSchema setAssignCount(int aAssignCount) {
assignCount = aAssignCount;
return this;
}
public LZCardPlanSchema setAssignCount(String aAssignCount) {
if (aAssignCount != null && !aAssignCount.equals("") && !aAssignCount.equals("null")) {
assignCount = new Integer(aAssignCount);
}
return this;
}
public String getMakeDate() {
if (makeDate != null)
return fDate.getString(makeDate);
else
return null;
}
public LZCardPlanSchema setMakeDate(Date aMakeDate) {
makeDate = aMakeDate;
return this;
}
public LZCardPlanSchema setMakeDate(String aMakeDate) {
if (aMakeDate != null && !aMakeDate.equals("") && !aMakeDate.equals("null")) {
makeDate = fDate.getDate(aMakeDate);
} else {
makeDate = null;
}
return this;
}
public String getUpdateDate() {
if (updateDate != null)
return fDate.getString(updateDate);
else
return null;
}
public LZCardPlanSchema setUpdateDate(Date aUpdateDate) {
updateDate = aUpdateDate;
return this;
}
public LZCardPlanSchema setUpdateDate(String aUpdateDate) {
if (aUpdateDate != null && !aUpdateDate.equals("") && !aUpdateDate.equals("null")) {
updateDate = fDate.getDate(aUpdateDate);
} else {
updateDate = null;
}
return this;
}
public LZCardPlanSchema setSchema(LZCardPlanSchema aLZCardPlanSchema) {
SchemaHelper.setSchema(aLZCardPlanSchema, this);
return this;
}
public LZCardPlanSchema getSchema() {
LZCardPlanSchema aLZCardPlanSchema = new LZCardPlanSchema();
aLZCardPlanSchema.setSchema(this);
return aLZCardPlanSchema;
}
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);
}
}