Commit ad2a1979 by liuyang

2024-06-28 添加存货类型大类

parent 9463a474
...@@ -59,6 +59,7 @@ public class HGKC001 extends DaoEPBase { ...@@ -59,6 +59,7 @@ public class HGKC001 extends DaoEPBase {
public static final String FIELD_IS_RETURN = "isReturn"; /* 是否退回*/ public static final String FIELD_IS_RETURN = "isReturn"; /* 是否退回*/
public static final String FIELD_PRICE = "price"; /* 单价*/ public static final String FIELD_PRICE = "price"; /* 单价*/
public static final String FIELD_AMOUNT = "amount"; /* 金额*/ public static final String FIELD_AMOUNT = "amount"; /* 金额*/
public static final String FIELD_INVENT_TYPE_DETAIL = "inventTypeDetail"; /*存货类型明细*/
public static final String COL_ID = "ID"; public static final String COL_ID = "ID";
public static final String COL_ACCOUNT_CODE = "ACCOUNT_CODE"; /* 企业编码*/ public static final String COL_ACCOUNT_CODE = "ACCOUNT_CODE"; /* 企业编码*/
...@@ -146,6 +147,7 @@ public class HGKC001 extends DaoEPBase { ...@@ -146,6 +147,7 @@ public class HGKC001 extends DaoEPBase {
private Integer isReturn; /* 是否退回:0:否 1:是*/ private Integer isReturn; /* 是否退回:0:否 1:是*/
private BigDecimal price = new BigDecimal(0.000); /* 单价*/ private BigDecimal price = new BigDecimal(0.000); /* 单价*/
private BigDecimal amount = new BigDecimal(0.000); /* 金额*/ private BigDecimal amount = new BigDecimal(0.000); /* 金额*/
private Integer inventTypeDetail; /*存货类型明细 1:构建 2:零件*/
/** /**
* initialize the metadata. * initialize the metadata.
...@@ -325,6 +327,10 @@ public class HGKC001 extends DaoEPBase { ...@@ -325,6 +327,10 @@ public class HGKC001 extends DaoEPBase {
eiColumn.setFieldLength(12); eiColumn.setFieldLength(12);
eiColumn.setDescName("金额"); eiColumn.setDescName("金额");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_INVENT_TYPE_DETAIL);
eiColumn.setDescName("存货类型明细");
eiMetadata.addMeta(eiColumn);
} }
/** /**
...@@ -887,6 +893,13 @@ public class HGKC001 extends DaoEPBase { ...@@ -887,6 +893,13 @@ public class HGKC001 extends DaoEPBase {
this.amount = amount; this.amount = amount;
} }
public Integer getInventTypeDetail() {
return inventTypeDetail;
}
public void setInventTypeDetail(Integer inventTypeDetail) {
this.inventTypeDetail = inventTypeDetail;
}
/** /**
* get the value from Map. * get the value from Map.
* *
...@@ -932,6 +945,7 @@ public class HGKC001 extends DaoEPBase { ...@@ -932,6 +945,7 @@ public class HGKC001 extends DaoEPBase {
setIsReturn(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_IS_RETURN)), isReturn)); setIsReturn(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_IS_RETURN)), isReturn));
setPrice(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_PRICE)), price)); setPrice(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_PRICE)), price));
setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount)); setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount));
setInventTypeDetail(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_INVENT_TYPE_DETAIL)), inventTypeDetail));
} }
/** /**
...@@ -978,6 +992,7 @@ public class HGKC001 extends DaoEPBase { ...@@ -978,6 +992,7 @@ public class HGKC001 extends DaoEPBase {
map.put(FIELD_IS_RETURN, StringUtils.toString(isReturn, eiMetadata.getMeta(FIELD_IS_RETURN))); map.put(FIELD_IS_RETURN, StringUtils.toString(isReturn, eiMetadata.getMeta(FIELD_IS_RETURN)));
map.put(FIELD_PRICE, StringUtils.toString(price, eiMetadata.getMeta(FIELD_PRICE))); map.put(FIELD_PRICE, StringUtils.toString(price, eiMetadata.getMeta(FIELD_PRICE)));
map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT))); map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT)));
map.put(FIELD_INVENT_TYPE_DETAIL,StringUtils.toString(inventTypeDetail, eiMetadata.getMeta(FIELD_INVENT_TYPE_DETAIL)));
return map; return map;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment