/** * 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: LSQuotEngineeringSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* @Database Schema2 * @author Makerx2 * @CreateDatetime 2019-03-16 16:05:15 775 */ @Table(name = "LSQuotEngineering") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LSQuotEngineeringSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "QuotNo", desc = "询价号", type = Schema.TYPE_STRING) private String quotNo; @Getter @Id @Column(index = 1, name = "QuotBatNo", desc = "询价批次号", type = Schema.TYPE_INT) private int quotBatNo; @Getter @Setter @Id @Column(index = 2, name = "SysPlanCode", desc = "系统方案编码", type = Schema.TYPE_STRING) private String sysPlanCode; @Getter @Setter @Id @Column(index = 3, name = "PlanCode", desc = "方案编码", type = Schema.TYPE_STRING) private String planCode; @Getter @Setter @Column(index = 4, name = "EnginName", desc = "工程名称", type = Schema.TYPE_STRING) private String enginName; @Getter @Setter @Column(index = 5, name = "EnginType", desc = "工程类型", type = Schema.TYPE_STRING) private String enginType; @Getter @Column(index = 6, name = "EnginArea", desc = "最高工程面积", type = Schema.TYPE_DOUBLE) private double enginArea; @Getter @Column(index = 7, name = "EnginCost", desc = "最高工程造价", type = Schema.TYPE_DOUBLE) private double enginCost; @Getter @Setter @Column(index = 8, name = "EnginPlace", desc = "工程地点", type = Schema.TYPE_STRING) private String enginPlace; @Column(index = 9, name = "EnginStartDate", desc = "工程起期", type = Schema.TYPE_DATE) private Date enginStartDate; @Column(index = 10, name = "EnginEndDate", desc = "工程止期", type = Schema.TYPE_DATE) private Date enginEndDate; @Getter @Setter @Column(index = 11, name = "InsurerName", desc = "承包方名称", type = Schema.TYPE_STRING) private String insurerName; @Getter @Setter @Column(index = 12, name = "InsurerType", desc = "承包方资质", type = Schema.TYPE_STRING) private String insurerType; @Getter @Setter @Column(index = 13, name = "ContractorName", desc = "施工方名称", type = Schema.TYPE_STRING) private String contractorName; @Getter @Setter @Column(index = 14, name = "ContractorType", desc = "施工方资质", type = Schema.TYPE_STRING) private String contractorType; @Getter @Setter @Column(index = 15, name = "EnginDesc", desc = "工程概述", type = Schema.TYPE_STRING) private String enginDesc; @Getter @Setter @Column(index = 16, name = "EnginCondition", desc = "工程状况说明", type = Schema.TYPE_STRING) private String enginCondition; @Getter @Setter @Column(index = 17, name = "Remark", desc = "备注", type = Schema.TYPE_STRING) private String remark; @Getter @Setter @Column(index = 18, name = "MakeOperator", desc = "入机操作员", type = Schema.TYPE_STRING) private String makeOperator; @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; @Getter @Setter @Column(index = 21, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING) private String modifyOperator; @Column(index = 22, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; @Getter @Setter @Column(index = 23, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; @Getter @Setter @Column(index = 24, name = "EnginDays", desc = "施工天数", type = Schema.TYPE_STRING) private String enginDays; @Getter @Column(index = 25, name = "MinEnginArea", desc = "最低工程面积", type = Schema.TYPE_DOUBLE) private double minEnginArea; @Getter @Column(index = 26, name = "MinEnginCost", desc = "最低工程造价", type = Schema.TYPE_DOUBLE) private double minEnginCost; public static final int FIELDNUM = 27; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LSQuotEngineeringSchema() { mErrors = new CErrors(); } // @Method public Object clone() throws CloneNotSupportedException { LSQuotEngineeringSchema cloned = (LSQuotEngineeringSchema) 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 LSQuotEngineeringSchema setQuotBatNo(int aQuotBatNo) { quotBatNo = aQuotBatNo; return this; } public LSQuotEngineeringSchema setQuotBatNo(String aQuotBatNo) { if (aQuotBatNo != null && !aQuotBatNo.equals("") && !aQuotBatNo.equals("null")) { quotBatNo = new Integer(aQuotBatNo); } return this; } public LSQuotEngineeringSchema setEnginArea(double aEnginArea) { enginArea = aEnginArea; return this; } public LSQuotEngineeringSchema setEnginArea(String aEnginArea) { if (aEnginArea != null && !aEnginArea.equals("") && !aEnginArea.equals("null")) { enginArea = new Double(aEnginArea); } return this; } public LSQuotEngineeringSchema setEnginCost(double aEnginCost) { enginCost = aEnginCost; return this; } public LSQuotEngineeringSchema setEnginCost(String aEnginCost) { if (aEnginCost != null && !aEnginCost.equals("") && !aEnginCost.equals("null")) { enginCost = new Double(aEnginCost); } return this; } public String getEnginStartDate() { if (enginStartDate != null) return fDate.getString(enginStartDate); else return null; } public LSQuotEngineeringSchema setEnginStartDate(Date aEnginStartDate) { enginStartDate = aEnginStartDate; return this; } public LSQuotEngineeringSchema setEnginStartDate(String aEnginStartDate) { if (aEnginStartDate != null && !aEnginStartDate.equals("") && !aEnginStartDate.equals("null")) { enginStartDate = fDate.getDate(aEnginStartDate); } else { enginStartDate = null; } return this; } public String getEnginEndDate() { if (enginEndDate != null) return fDate.getString(enginEndDate); else return null; } public LSQuotEngineeringSchema setEnginEndDate(Date aEnginEndDate) { enginEndDate = aEnginEndDate; return this; } public LSQuotEngineeringSchema setEnginEndDate(String aEnginEndDate) { if (aEnginEndDate != null && !aEnginEndDate.equals("") && !aEnginEndDate.equals("null")) { enginEndDate = fDate.getDate(aEnginEndDate); } else { enginEndDate = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LSQuotEngineeringSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LSQuotEngineeringSchema 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 LSQuotEngineeringSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LSQuotEngineeringSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LSQuotEngineeringSchema setMinEnginArea(double aMinEnginArea) { minEnginArea = aMinEnginArea; return this; } public LSQuotEngineeringSchema setMinEnginArea(String aMinEnginArea) { if (aMinEnginArea != null && !aMinEnginArea.equals("") && !aMinEnginArea.equals("null")) { minEnginArea = new Double(aMinEnginArea); } return this; } public LSQuotEngineeringSchema setMinEnginCost(double aMinEnginCost) { minEnginCost = aMinEnginCost; return this; } public LSQuotEngineeringSchema setMinEnginCost(String aMinEnginCost) { if (aMinEnginCost != null && !aMinEnginCost.equals("") && !aMinEnginCost.equals("null")) { minEnginCost = new Double(aMinEnginCost); } return this; } public LSQuotEngineeringSchema setSchema(LSQuotEngineeringSchema aLSQuotEngineeringSchema) { SchemaHelper.setSchema(aLSQuotEngineeringSchema, this); return this; } public LSQuotEngineeringSchema getSchema() { LSQuotEngineeringSchema aLSQuotEngineeringSchema = new LSQuotEngineeringSchema(); aLSQuotEngineeringSchema.setSchema(this); return aLSQuotEngineeringSchema; } 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); } }