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.
247 lines
6.7 KiB
247 lines
6.7 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: LZCardBugetSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:45 537
|
|
*/
|
|
@Table(name = "LZCardBuget")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LZCardBugetSchema extends Entity implements Schema<LZCardBugetSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING)
|
|
private String manageCom;
|
|
|
|
@Id
|
|
@Column(index = 1, name = "SDate", desc = "预算开始日期", type = Schema.TYPE_DATE)
|
|
private Date sDate;
|
|
|
|
@Id
|
|
@Column(index = 2, name = "EDate", desc = "预算结束日期", type = Schema.TYPE_DATE)
|
|
private Date eDate;
|
|
|
|
@Getter
|
|
@Column(index = 3, name = "Buget", desc = "预算费用", type = Schema.TYPE_DOUBLE)
|
|
private double buget;
|
|
|
|
@Column(index = 4, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 5, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
@Column(index = 6, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 7, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 8, name = "CertifyCode", desc = "单证编码", type = Schema.TYPE_STRING)
|
|
private String certifyCode;
|
|
|
|
|
|
public static final int FIELDNUM = 9; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LZCardBugetSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LZCardBugetSchema cloned = (LZCardBugetSchema) 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 getSDate() {
|
|
if (sDate != null)
|
|
return fDate.getString(sDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardBugetSchema setSDate(Date aSDate) {
|
|
sDate = aSDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setSDate(String aSDate) {
|
|
if (aSDate != null && !aSDate.equals("") && !aSDate.equals("null")) {
|
|
sDate = fDate.getDate(aSDate);
|
|
} else {
|
|
sDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getEDate() {
|
|
if (eDate != null)
|
|
return fDate.getString(eDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardBugetSchema setEDate(Date aEDate) {
|
|
eDate = aEDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setEDate(String aEDate) {
|
|
if (aEDate != null && !aEDate.equals("") && !aEDate.equals("null")) {
|
|
eDate = fDate.getDate(aEDate);
|
|
} else {
|
|
eDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setBuget(double aBuget) {
|
|
buget = aBuget;
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setBuget(String aBuget) {
|
|
if (aBuget != null && !aBuget.equals("") && !aBuget.equals("null")) {
|
|
buget = new Double(aBuget);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LZCardBugetSchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema 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 LZCardBugetSchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema setSchema(LZCardBugetSchema aLZCardBugetSchema) {
|
|
SchemaHelper.setSchema(aLZCardBugetSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LZCardBugetSchema getSchema() {
|
|
LZCardBugetSchema aLZCardBugetSchema = new LZCardBugetSchema();
|
|
aLZCardBugetSchema.setSchema(this);
|
|
return aLZCardBugetSchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|