Commit abb92179 by liuyang

2024-07-04 1、原材料成本核算

parent 19022e84
package com.baosight.hggp.hg.kc.domain;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.StringUtils;
import java.util.HashMap;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/7/3
*/
public class HGKC007B extends HGKC007A{
public static final String FIELD_OTHER_OUT_DATE = "otherOutDate"; /* 其他出库日期*/
public static final String FIELD_OTHER_OUT_NO = "otherOutNo"; /* 其他出库单号*/
private String otherOutDate = " "; /* 其他出库日期*/
private String otherOutNo = " "; /* 其他出库单号*/
@Override
public void initMetaData() {
super.initMetaData();
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_OTHER_OUT_DATE);
eiColumn.setDescName("其他出库日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_OTHER_OUT_NO);
eiColumn.setDescName("其他出库单号");
eiMetadata.addMeta(eiColumn);
}
public HGKC007B() {
initMetaData();
}
@Override
public String getOtherOutDate() {
return otherOutDate;
}
@Override
public void setOtherOutDate(String otherOutDate) {
this.otherOutDate = otherOutDate;
}
@Override
public String getOtherOutNo() {
return otherOutNo;
}
@Override
public void setOtherOutNo(String otherOutNo) {
this.otherOutNo = otherOutNo;
}
@Override
public void fromMap(Map map) {
super.fromMap(map);
setOtherOutDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_OTHER_OUT_DATE)), otherOutDate));
setOtherOutNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_OTHER_OUT_NO)), otherOutNo));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = super.toMap();
map.put(FIELD_OTHER_OUT_DATE, StringUtils.toString(otherOutDate, eiMetadata.getMeta(FIELD_OTHER_OUT_DATE)));
map.put(FIELD_OTHER_OUT_NO, StringUtils.toString(otherOutNo, eiMetadata.getMeta(FIELD_OTHER_OUT_NO)));
return map;
}
}
package com.baosight.hggp.hg.kc.domain;
import com.baosight.hggp.util.DateUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.StringUtils;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/7/3
*/
public class HGKC008B extends HGKC008A{
public static final String FIELD_RECEIPT_DATE = "receiptDate"; /* 单据日期*/
public static final String FIELD_APPLY_CODE = "applyCode"; /* 申请单号*/
private String receiptDate = " "; /* 单据日期*/
private String applyCode = " "; /* 申请单号*/
@Override
public void initMetaData() {
super.initMetaData();
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_RECEIPT_DATE);
eiColumn.setDescName("单据日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_APPLY_CODE);
eiColumn.setDescName("申请单号");
eiMetadata.addMeta(eiColumn);
}
public HGKC008B() {
initMetaData();
}
public String getReceiptDate() {
return receiptDate;
}
public void setReceiptDate(String receiptDate) {
this.receiptDate = receiptDate;
}
public String getApplyCode() {
return applyCode;
}
public void setApplyCode(String applyCode) {
this.applyCode = applyCode;
}
@Override
public void fromMap(Map map) {
super.fromMap(map);
setReceiptDate(StringUtils.defaultIfEmpty(StringUtils.toString(DateUtils.formatShort(map.get(FIELD_RECEIPT_DATE))), receiptDate));
setApplyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_APPLY_CODE)), applyCode));
}
@Override
public Map toMap() {
Map map = super.toMap();
map.put(FIELD_RECEIPT_DATE, receiptDate);
map.put(FIELD_APPLY_CODE, applyCode);
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