/** * 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; /** *

ClassName: LPPrintInfoSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* * @author Makerx2 * @Database LPPrintInfo * @CreateDatetime 2025-06-22 17:19:09 444 */ @Table(name = "LPPrintInfo", desc = "LPPrintInfo") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPPrintInfoSchema extends Entity implements Schema, Cloneable { // @Field /** * 打印编号 */ @Getter @Setter @Id @Column(index = 0, name = "PrintNo", desc = "打印编号", type = Schema.TYPE_STRING) private String printNo; /** * 集体合同号码 */ @Getter @Setter @Column(index = 1, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING) private String grpContNo; /** * 保全受理号 */ @Getter @Setter @Column(index = 2, name = "EdorAcceptNo", desc = "保全受理号", type = Schema.TYPE_STRING) private String edorAcceptNo; /** * 业务号,批单号,通知书号 */ @Getter @Setter @Id @Column(index = 3, name = "OtherNo", desc = "业务号,批单号,通知书号", type = Schema.TYPE_STRING) private String otherNo; /** * 打印类型 */ @Getter @Setter @Column(index = 4, name = "PrintType", desc = "打印类型", type = Schema.TYPE_STRING) private String printType; /** * URL */ @Getter @Setter @Column(index = 5, name = "URLPath", desc = "打印服务路径", type = Schema.TYPE_STRING) private String uRLPath; /** * 入机日期 */ @Column(index = 6, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE) private Date makeDate; /** * 入机时间 */ @Getter @Setter @Column(index = 7, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING) private String makeTime; /** * 最后一次修改操作员 */ @Getter @Setter @Column(index = 8, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING) private String modifyOperator; /** * 最后一次修改日期 */ @Column(index = 9, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; /** * 最后一次修改时间 */ @Getter @Setter @Column(index = 10, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; public static final int FIELDNUM = 11; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPPrintInfoSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LPPrintInfoSchema cloned = (LPPrintInfoSchema) super.clone(); cloned.fDate = (FDate) fDate.clone(); cloned.mErrors = (CErrors) mErrors.clone(); SchemaHelper.cloneDate(cloned, this, this.getClass()); return cloned; } @Override public String[] getPK() { return SchemaHelper.getPK(this.getClass()); } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPPrintInfoSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPPrintInfoSchema 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 LPPrintInfoSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPPrintInfoSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } @Override public LPPrintInfoSchema setSchema(LPPrintInfoSchema aLPPrintInfoSchema) { SchemaHelper.setSchema(aLPPrintInfoSchema, this); return this; } @Override public LPPrintInfoSchema getSchema() { LPPrintInfoSchema aLPPrintInfoSchema = new LPPrintInfoSchema(); aLPPrintInfoSchema.setSchema(this); return aLPPrintInfoSchema; } @Override public String encode() { return SchemaHelper.encode(this); } @Override public boolean decode(String strMessage) { return SchemaHelper.decode(this, strMessage); } @Override public String getV(String FCode) { return SchemaHelper.getV(this, FCode); } @Override public String getV(int nFieldIndex) { return SchemaHelper.getV(this, nFieldIndex); } @Override public boolean setV(String FCode, String FValue) { return SchemaHelper.setV(this, FCode, FValue); } @Override public int getFieldCount() { return FIELDNUM; } @Override public int getFieldIndex(String strFieldName) { return SchemaHelper.getFieldIndex(this.getClass(), strFieldName); } @Override public String getFieldName(int nFieldIndex) { return SchemaHelper.getFieldName(this.getClass(), nFieldIndex); } @Override public int getFieldType(String strFieldName) { return SchemaHelper.getFieldType(this.getClass(), strFieldName); } @Override public int getFieldType(int nFieldIndex) { return SchemaHelper.getFieldType(this.getClass(), nFieldIndex); } }