备料计划转库存的其它入库-仓库获取调整
This commit is contained in:
parent
de50034ed7
commit
d705484810
|
@ -9,6 +9,7 @@ import nc.jdbc.framework.processor.ColumnProcessor;
|
||||||
import nc.pubitf.para.SysInitQuery;
|
import nc.pubitf.para.SysInitQuery;
|
||||||
import nc.util.mmf.busi.service.PFPubService;
|
import nc.util.mmf.busi.service.PFPubService;
|
||||||
import nc.util.mmf.framework.base.MMValueCheck;
|
import nc.util.mmf.framework.base.MMValueCheck;
|
||||||
|
import nc.vo.bd.stordoc.StordocVO;
|
||||||
import nc.vo.fi.pub.SqlUtils;
|
import nc.vo.fi.pub.SqlUtils;
|
||||||
import nc.vo.ic.m4a.entity.GeneralInBodyVO;
|
import nc.vo.ic.m4a.entity.GeneralInBodyVO;
|
||||||
import nc.vo.ic.m4a.entity.GeneralInHeadVO;
|
import nc.vo.ic.m4a.entity.GeneralInHeadVO;
|
||||||
|
@ -129,14 +130,23 @@ public class PickmToGeneralInAction implements ICommonAction {
|
||||||
}
|
}
|
||||||
String pkOrg = inVOS[0].getParentVO().getPk_org();
|
String pkOrg = inVOS[0].getParentVO().getPk_org();
|
||||||
String typeCode = SysInitQuery.getParaString(pkOrg, "ICIN_TYPE");
|
String typeCode = SysInitQuery.getParaString(pkOrg, "ICIN_TYPE");
|
||||||
String warehouseId = SysInitQuery.getParaString(pkOrg, "ICIN_CK");
|
String warehouseCode = SysInitQuery.getParaString(pkOrg, "ICIN_CK");
|
||||||
if (StringUtils.isEmpty(typeCode) || StringUtils.isEmpty(warehouseId)) {
|
if (StringUtils.isEmpty(typeCode) || StringUtils.isEmpty(warehouseCode)) {
|
||||||
ExceptionUtils.wrapBusinessException("当前组织缺失参数配置,请前往 [业务参数设置-组织] 配置仓库或入库类型参数");
|
ExceptionUtils.wrapBusinessException("当前组织缺失参数配置,请前往 [业务参数设置-组织] 配置仓库或入库类型参数");
|
||||||
}
|
}
|
||||||
for (GeneralInVO inVO : inVOS) {
|
|
||||||
String pk_billtypeid = MyHelper.transferField(BilltypeVO.TABLENAME, BilltypeVO.PK_BILLTYPE_ID, BilltypeVO.PK_BILLTYPECODE, typeCode);
|
String pk_billtypeid = MyHelper.transferField(BilltypeVO.TABLENAME, BilltypeVO.PK_BILLTYPE_ID, BilltypeVO.PK_BILLTYPECODE, typeCode);
|
||||||
// String code = MyHelper.transferField(StordocVO.getDefaultTableName(),
|
SqlBuilder sqlBuilder = new SqlBuilder();
|
||||||
// StordocVO.CODE, StordocVO.PK_STORDOC, "");
|
sqlBuilder.append(" select " + StordocVO.PK_STORDOC);
|
||||||
|
sqlBuilder.append(" from " + StordocVO.getDefaultTableName());
|
||||||
|
sqlBuilder.append(" where dr = 0");
|
||||||
|
sqlBuilder.append(" and ");
|
||||||
|
sqlBuilder.append(StordocVO.CODE, warehouseCode);
|
||||||
|
sqlBuilder.append(" and ");
|
||||||
|
sqlBuilder.append(StordocVO.PK_ORG, pkOrg);
|
||||||
|
// NCCForUAPLogger.debug("sqlBuilder = " + sqlBuilder);
|
||||||
|
String warehouseId = (String) getDao().executeQuery(sqlBuilder.toString(), new ColumnProcessor());
|
||||||
|
// NCCForUAPLogger.debug("warehouseId = " + warehouseId);
|
||||||
|
for (GeneralInVO inVO : inVOS) {
|
||||||
// 其它入库单的仓库、交易类型取自【业务参数设置】的默认值
|
// 其它入库单的仓库、交易类型取自【业务参数设置】的默认值
|
||||||
GeneralInHeadVO head = inVO.getHead();
|
GeneralInHeadVO head = inVO.getHead();
|
||||||
// head.setCtrantypeid("0001A110000000001S1E");
|
// head.setCtrantypeid("0001A110000000001S1E");
|
||||||
|
|
Loading…
Reference in New Issue