This commit is contained in:
mzr 2024-12-14 10:22:49 +08:00
parent 8f21607ce7
commit f612a706a4
2 changed files with 0 additions and 644 deletions

View File

@ -1,225 +0,0 @@
package nc.vo.cm.meascostcontrast;
import java.util.HashMap;
import java.util.Map;
import nc.bd.framework.base.CMStringUtil;
import nc.vo.pub.BeanHelper;
import nc.vo.pub.SuperVO;
import nc.vo.pub.lang.UFDouble;
/**
* 单位成本对比表-界面显示的数据VO
*
* @since 6.0
* @version 2011-7-14 下午05:04:12
* @author wanghjd
*/
public class MeasCostItemVO extends SuperVO {
private static final long serialVersionUID = 50098708851615159L;
/**
* 产品规格
*/
private String materialspec;
private String materialtype;
/**
* 产品计量单位
*/
private String pk_measdoc;
/**
* 成本中心编码
*/
private String cccode;
/**
* 成本中心名称
*/
private String ccname;
/**
* 产品编码
*/
private String vcostobjcode;
/**
* 产品名称
*/
private String vcostobjname;
/**
* 产品名称默认主语言下的名称
*/
private String vcostobjname0;
/**
* 产量
*/
private UFDouble nnum;
/**
* 项目编码
*/
private String projectcode;
/**
* 项目名称
*/
private String projectname;
// 保存动态属性的值
private Map<String, Object> factorMap = new HashMap<String, Object>();
public Map<String, Object> getFactorMap() {
return this.factorMap;
}
public void setFactorMap(Map<String, Object> factorMap) {
this.factorMap = factorMap;
}
@Override
public void setAttributeValue(String name, Object value) {
this.factorMap.put(name, value);
this.setFactorMap(this.factorMap);
}
@Override
public Object getAttributeValue(String name) {
if (!this.getFactorMap().containsKey(name)) {
Object value = BeanHelper.getProperty(this, name);
if (value instanceof UFDouble) {
// 如果金额是0那么返回空
if (UFDouble.ZERO_DBL.equals(value)) {
return null;
}
}
return value;
}
Object value = this.getFactorMap().get(name);
if (value instanceof UFDouble) {
if (UFDouble.ZERO_DBL.equals(value)) {
return null;
}
}
return value;
}
@Override
public boolean equals(Object o) {
if (o == null || !(o instanceof MeasCostItemVO)) {
return false;
}
MeasCostItemVO vo = (MeasCostItemVO) o;
if (this.getVcostobjcode().equals(vo.getVcostobjcode())) {
return true;
}
return false;
}
@Override
public int hashCode() {
return super.hashCode();
}
public String getCccode() {
return this.cccode;
}
public void setCccode(String vcostcentercode) {
this.cccode = vcostcentercode;
}
public String getCcname() {
return this.ccname;
}
public void setCcname(String vcostcentername) {
this.ccname = vcostcentername;
}
public String getVcostobjcode() {
return this.vcostobjcode;
}
public void setVcostobjcode(String vcostobjcode) {
this.vcostobjcode = vcostobjcode;
}
public String getVcostobjname() {
if (CMStringUtil.isNotEmpty(this.vcostobjname)) {
return this.vcostobjname;
}
return this.vcostobjname0;
}
public void setVcostobjname(String vcostobjname) {
this.vcostobjname = vcostobjname;
}
public String getVcostobjname0() {
return this.vcostobjname0;
}
public void setVcostobjname0(String vcostobjname0) {
this.vcostobjname0 = vcostobjname0;
}
public UFDouble getNnum() {
return this.nnum;
}
public void setNnum(UFDouble nnum) {
this.nnum = nnum;
}
public String getProjectcode() {
return this.projectcode;
}
public void setProjectcode(String projectcode) {
this.projectcode = projectcode;
}
public String getProjectname() {
return this.projectname;
}
public void setProjectname(String projectname) {
this.projectname = projectname;
}
public void setAttrbuteByRule(String groupItemCode, String subItemCode, Object value) {
String code = MeasCostUtil.getItemCodeByRule(groupItemCode, subItemCode);
this.setAttributeValue(code, value);
}
public String getMaterialspec() {
return this.materialspec;
}
public void setMaterialspec(String materialspec) {
this.materialspec = materialspec;
}
public String getPk_measdoc() {
return this.pk_measdoc;
}
public void setPk_measdoc(String pk_measdoc) {
this.pk_measdoc = pk_measdoc;
}
public String getMaterialtype() {
return materialtype;
}
public void setMaterialtype(String materialtype) {
this.materialtype = materialtype;
}
}

View File

@ -1,419 +0,0 @@
package nc.vo.cm.meascostcontrast;
import nc.bd.framework.base.CMStringUtil;
import nc.vo.pub.SuperVO;
import nc.vo.pub.lang.UFDouble;
/**
* 单位成本对比表-查询结果VO
*
* @since 6.0
* @version 2011-7-14 下午05:09:49
* @author wanghjd
*/
public class MeasCostQueryResultVO extends SuperVO {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 产品规格
*/
private String materialspec;
/**
* 产品规格
*/
private String materialtype;
/**
* 产品计量单位
*/
private String pk_measdoc;
/**
* 成本中心编码
*/
private String cccode;
/**
* 成本中心名称
*/
private String ccname;
/**
* 产品编码
*/
private String vcostobjcode;
/**
* 产品名称
*/
private String vcostobjname;
/**
* 产品名称:默认主语言下的名称
*/
private String vcostobjname0;
/**
* 产量
*/
private UFDouble nnum;
/**
* 单位成本
*/
private UFDouble nmeascost;
/**
* 合计
*/
private UFDouble nsum;
/**
* 核算要素编码
*/
private String factorcode;
/**
* 核算要素名称
*/
private String factorname;
/**
* 核算要素名称默认主语言下的名称
*/
private String factorname0;
/**
* 核算要素总成本
*/
private UFDouble factorNsum;
/**
* 是否本下阶
*/
private String bsubtype;
/**
* 是否来源于其他成本中心
*/
private String bfromcostcenter;
/**
* 单位成本-标准成本
*/
private UFDouble nstdcostNmeascost;
/**
* 单位成本-耗量差异
*/
private UFDouble nnumdiffNmeascost;
/**
* 单位成本-价格差异
*/
private UFDouble npricediffNmeascost;
/**
* 合计-标准成本
*/
private UFDouble nstdcostNsum;
/**
* 合计-耗量差异
*/
private UFDouble nnumdiffNsum;
/**
* 合计-价格差异
*/
private UFDouble npricediffNsum;
/**
* 核算要素-标准成本
*/
private UFDouble nstdcostFactor;
/**
* 核算要素-耗量差异
*/
private UFDouble nnumdiffFactor;
/**
* 核算要素-价格差异
*/
private UFDouble npricediffFactor;
/**
* 核算要素级次
*/
private String factorLev;
/**
* 核算要素主键:resa_factorasoa.pk_factorasoa=cm_costobject.ccostobjectid
*/
private String pk_factorasoa;
/**
* 项目编码
*/
private String projectcode;
/**
* 项目名称
*/
private String projectname;
public String getPK_factorasoa() {
return this.pk_factorasoa;
}
public void setPK_factorasoa(String pk_factorasoa) {
this.pk_factorasoa = pk_factorasoa;
}
public String getFactorLev() {
return this.factorLev;
}
public String getMaterialspec() {
return this.materialspec;
}
public void setMaterialspec(String materialspec) {
this.materialspec = materialspec;
}
public String getPk_measdoc() {
return this.pk_measdoc;
}
public void setPk_measdoc(String pk_measdoc) {
this.pk_measdoc = pk_measdoc;
}
public void setFactorLev(String factorLev) {
this.factorLev = factorLev;
}
public String getCccode() {
return this.cccode;
}
public void setCccode(String vcostcentercode) {
this.cccode = vcostcentercode;
}
public String getCcname() {
return this.ccname;
}
public void setCcname(String vcostcentername) {
this.ccname = vcostcentername;
}
public String getVcostobjcode() {
return this.vcostobjcode;
}
public void setVcostobjcode(String vcostobjcode) {
this.vcostobjcode = vcostobjcode;
}
public String getVcostobjname() {
if (CMStringUtil.isNotEmpty(this.vcostobjname)) {
return this.vcostobjname;
} else {
return this.vcostobjname0;
}
}
public void setVcostobjname(String vcostobjname) {
this.vcostobjname = vcostobjname;
}
public String getVcostobjname0() {
return this.vcostobjname0;
}
public void setVcostobjname0(String vcostobjname0) {
this.vcostobjname0 = vcostobjname0;
}
public UFDouble getNnum() {
return this.nnum;
}
public void setNnum(UFDouble nnum) {
this.nnum = nnum;
}
public UFDouble getNmeascost() {
return this.nmeascost;
}
public void setNmeascost(UFDouble nmeascost) {
this.nmeascost = nmeascost;
}
public UFDouble getNsum() {
return this.nsum;
}
public void setNsum(UFDouble nsum) {
this.nsum = nsum;
}
public String getFactorcode() {
return this.factorcode;
}
public void setFactorcode(String factorcode) {
this.factorcode = factorcode;
}
public String getFactorname() {
if (CMStringUtil.isNotEmpty(this.factorname)) {
return this.factorname;
} else {
return this.factorname0;
}
}
public void setFactorname(String factorname) {
this.factorname = factorname;
}
public String getFactorname0() {
return this.factorname0;
}
public void setFactorname0(String factorname0) {
this.factorname0 = factorname0;
}
public UFDouble getFactorNsum() {
return this.factorNsum;
}
public void setFactorNsum(UFDouble factorNsum) {
this.factorNsum = factorNsum;
}
public String getBsubtype() {
return this.bsubtype;
}
public void setBsubtype(String bsubtype) {
this.bsubtype = bsubtype;
}
public String getBfromcostcenter() {
return this.bfromcostcenter;
}
public void setBfromcostcenter(String bfromcostcenter) {
this.bfromcostcenter = bfromcostcenter;
}
public UFDouble getNstdcostNmeascost() {
return this.nstdcostNmeascost;
}
public void setNstdcostNmeascost(UFDouble nstdcostNmeascost) {
this.nstdcostNmeascost = nstdcostNmeascost;
}
public UFDouble getNnumdiffNmeascost() {
return this.nnumdiffNmeascost;
}
public void setNnumdiffNmeascost(UFDouble nnumdiffNmeascost) {
this.nnumdiffNmeascost = nnumdiffNmeascost;
}
public UFDouble getNpricediffNmeascost() {
return this.npricediffNmeascost;
}
public void setNpricediffNmeascost(UFDouble npricediffNmeascost) {
this.npricediffNmeascost = npricediffNmeascost;
}
public UFDouble getNstdcostNsum() {
return this.nstdcostNsum;
}
public void setNstdcostNsum(UFDouble nstdcostNsum) {
this.nstdcostNsum = nstdcostNsum;
}
public UFDouble getNnumdiffNsum() {
return this.nnumdiffNsum;
}
public void setNnumdiffNsum(UFDouble nnumdiffNsum) {
this.nnumdiffNsum = nnumdiffNsum;
}
public UFDouble getNpricediffNsum() {
return this.npricediffNsum;
}
public void setNpricediffNsum(UFDouble npricediffNsum) {
this.npricediffNsum = npricediffNsum;
}
public UFDouble getNstdcostFactor() {
return this.nstdcostFactor;
}
public void setNstdcostFactor(UFDouble nstdcostFactor) {
this.nstdcostFactor = nstdcostFactor;
}
public UFDouble getNnumdiffFactor() {
return this.nnumdiffFactor;
}
public void setNnumdiffFactor(UFDouble nnumdiffFactor) {
this.nnumdiffFactor = nnumdiffFactor;
}
public UFDouble getNpricediffFactor() {
return this.npricediffFactor;
}
public void setNpricediffFactor(UFDouble npricediffFactor) {
this.npricediffFactor = npricediffFactor;
}
public String getMaterialtype() {
return materialtype;
}
public void setMaterialtype(String materialtype) {
this.materialtype = materialtype;
}
public String getProjectcode() {
return this.projectcode;
}
public void setProjectcode(String projectcode) {
this.projectcode = projectcode;
}
public String getProjectname() {
return this.projectname;
}
public void setProjectname(String projectname) {
this.projectname = projectname;
}
}