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.
314 lines
8.8 KiB
314 lines
8.8 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: LPSubmitApplySchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:43 344
|
|
*/
|
|
@Table(name = "LPSubmitApply")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LPSubmitApplySchema extends Entity implements Schema<LPSubmitApplySchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "SubNo", desc = "呈报序号", type = Schema.TYPE_STRING)
|
|
private String subNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 1, name = "GrpContNo", desc = "团体合同号码", type = Schema.TYPE_STRING)
|
|
private String grpContNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 2, name = "EdorType", desc = "保全类型", type = Schema.TYPE_STRING)
|
|
private String edorType;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 3, name = "SubDesc", desc = "呈报描述", type = Schema.TYPE_STRING)
|
|
private String subDesc;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 4, name = "SubPer", desc = "呈报人", type = Schema.TYPE_STRING)
|
|
private String subPer;
|
|
|
|
@Column(index = 5, name = "SubDate", desc = "呈报日期", type = Schema.TYPE_DATE)
|
|
private Date subDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 6, name = "ManageCom", desc = "呈报机构", type = Schema.TYPE_STRING)
|
|
private String manageCom;
|
|
|
|
@Getter
|
|
@Column(index = 7, name = "SubTimes", desc = "呈报次数", type = Schema.TYPE_INT)
|
|
private int subTimes;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 8, name = "SubState", desc = "呈报状态", type = Schema.TYPE_STRING)
|
|
private String subState;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 9, name = "DispDept", desc = "承接机构代码", type = Schema.TYPE_STRING)
|
|
private String dispDept;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 10, name = "DispPer", desc = "承接人员编号", type = Schema.TYPE_STRING)
|
|
private String dispPer;
|
|
|
|
@Column(index = 11, name = "DealDate", desc = "处理日期", type = Schema.TYPE_DATE)
|
|
private Date dealDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 12, name = "DealType", desc = "处理类型", type = Schema.TYPE_STRING)
|
|
private String dealType;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 13, name = "DealIdea", desc = "处理意见", type = Schema.TYPE_STRING)
|
|
private String dealIdea;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 14, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING)
|
|
private String operator;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 15, name = "HasDealed", desc = "处理完毕标志", type = Schema.TYPE_STRING)
|
|
private String hasDealed;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 16, name = "AppText1", desc = "附件1", type = Schema.TYPE_STRING)
|
|
private String appText1;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 17, name = "AppText2", desc = "附件2", type = Schema.TYPE_STRING)
|
|
private String appText2;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 18, name = "AppText3", desc = "附件3", type = Schema.TYPE_STRING)
|
|
private String appText3;
|
|
|
|
@Column(index = 19, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE)
|
|
private Date makeDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 20, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING)
|
|
private String makeTime;
|
|
|
|
@Column(index = 21, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE)
|
|
private Date modifyDate;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 22, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING)
|
|
private String modifyTime;
|
|
|
|
|
|
public static final int FIELDNUM = 23; // 数据库表的字段个数
|
|
|
|
private transient FDate fDate = new FDate(); // 处理日期
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LPSubmitApplySchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LPSubmitApplySchema cloned = (LPSubmitApplySchema) 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 getSubDate() {
|
|
if (subDate != null)
|
|
return fDate.getString(subDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LPSubmitApplySchema setSubDate(Date aSubDate) {
|
|
subDate = aSubDate;
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setSubDate(String aSubDate) {
|
|
if (aSubDate != null && !aSubDate.equals("") && !aSubDate.equals("null")) {
|
|
subDate = fDate.getDate(aSubDate);
|
|
} else {
|
|
subDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setSubTimes(int aSubTimes) {
|
|
subTimes = aSubTimes;
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setSubTimes(String aSubTimes) {
|
|
if (aSubTimes != null && !aSubTimes.equals("") && !aSubTimes.equals("null")) {
|
|
subTimes = new Integer(aSubTimes);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getDealDate() {
|
|
if (dealDate != null)
|
|
return fDate.getString(dealDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LPSubmitApplySchema setDealDate(Date aDealDate) {
|
|
dealDate = aDealDate;
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setDealDate(String aDealDate) {
|
|
if (aDealDate != null && !aDealDate.equals("") && !aDealDate.equals("null")) {
|
|
dealDate = fDate.getDate(aDealDate);
|
|
} else {
|
|
dealDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public String getMakeDate() {
|
|
if (makeDate != null)
|
|
return fDate.getString(makeDate);
|
|
else
|
|
return null;
|
|
}
|
|
|
|
public LPSubmitApplySchema setMakeDate(Date aMakeDate) {
|
|
makeDate = aMakeDate;
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema 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 LPSubmitApplySchema setModifyDate(Date aModifyDate) {
|
|
modifyDate = aModifyDate;
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setModifyDate(String aModifyDate) {
|
|
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
|
|
modifyDate = fDate.getDate(aModifyDate);
|
|
} else {
|
|
modifyDate = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema setSchema(LPSubmitApplySchema aLPSubmitApplySchema) {
|
|
SchemaHelper.setSchema(aLPSubmitApplySchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LPSubmitApplySchema getSchema() {
|
|
LPSubmitApplySchema aLPSubmitApplySchema = new LPSubmitApplySchema();
|
|
aLPSubmitApplySchema.setSchema(this);
|
|
return aLPSubmitApplySchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|