|
@@ -55,7 +55,6 @@ public class PushOtherInAction extends AbstractAction{
|
|
|
throw new ValidationException("非审批态单据不允许生成其他入库单");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
String pk_corp = headvo.getPk_corp();
|
|
|
String pk_order = headvo.getPk_order();
|
|
|
String prjcode = headvo.getProjectid();//项目主键
|
|
@@ -140,7 +139,7 @@ public class PushOtherInAction extends AbstractAction{
|
|
|
itemvo.setBtransasset(UFBoolean.FALSE);
|
|
|
itemvo.setBzgflag(UFBoolean.FALSE);
|
|
|
itemvo.setCbodybilltypecode("4A");
|
|
|
- //itemvo.setCbodywarehouseid("1001V5100000000003A1");
|
|
|
+ // itemvo.setCbodywarehouseid("1001V5100000000003A1");
|
|
|
//仓库ID
|
|
|
if("工装".equals(billtype)) {
|
|
|
icheadvo.setCwarehouseid(GetBaseDAOUtil.getstordocpk("GZ001"));//仓库必填
|
|
@@ -167,16 +166,18 @@ public class PushOtherInAction extends AbstractAction{
|
|
|
itemvo.setNinassistnum (invo.getNastnum());//实入辅数量
|
|
|
itemvo.setNshouldinnum(invo.getNum());//应入数量
|
|
|
itemvo.setNneedinassistnum(invo.getNastnum());//应入辅数量
|
|
|
- itemvo.setCastunitid(invo.getCastunitid());//辅计量单位ID
|
|
|
+ String pkdw=getpkmeasdoc(invo.getCastunitid());
|
|
|
+ itemvo.setCastunitid(pkdw);//辅计量单位ID
|
|
|
itemvo.setHsl(new UFDouble(invo.getBdef6()));//换算率
|
|
|
itemvo.setAttributeValue("processcost", invo.getNmny());
|
|
|
itemvo.setPk_calbody(icheadvo.getPk_calbody());
|
|
|
- itemvo.setVbatchcode(invo.getVbatchcode()==null?"":invo.getVbatchcode());
|
|
|
+ String vbatcode=invo.getVbatchcode()==null?"":invo.getVbatchcode();
|
|
|
+ itemvo.setVbatchcode(vbatcode);
|
|
|
itemvo.setVfirstbillcode(headvo.getVbillno());
|
|
|
- itemvo.setVfree1(invo.getColor());
|
|
|
- itemvo.setVfree2(invo.getSizing());
|
|
|
- itemvo.setVfree3(invo.getAlloy());
|
|
|
- itemvo.setVfree4(invo.getStandard());
|
|
|
+ itemvo.setVfree1(invo.getColor());//颜色
|
|
|
+ itemvo.setVfree2(invo.getAlloy());//合金
|
|
|
+ itemvo.setVfree3(invo.getSizing());//定尺
|
|
|
+ itemvo.setVfree4(invo.getStandard());//标准
|
|
|
itemvo.setVsourcebillcode(headvo.getVbillno());
|
|
|
itemvo.setAttributeValue("pk_defdoc1", invo.getBdef11());//楼号楼层
|
|
|
itemvo.setAttributeValue("pk_defdoc2", invo.getBdef12());//樘数(数量)
|
|
@@ -288,5 +289,17 @@ public class PushOtherInAction extends AbstractAction{
|
|
|
return pk_rdcl;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ //计量单位
|
|
|
+ private String getpkmeasdoc(String measname ) throws BusinessException {
|
|
|
+ String sql="select pk_measdoc from bd_measdoc where measname='"+measname+"' ";
|
|
|
+ IUAPQueryBS iuap=(IUAPQueryBS) NCLocator.getInstance().lookup(IUAPQueryBS.class.getName());
|
|
|
+ String pk_measdoc = (String) iuap.executeQuery(sql, new ColumnProcessor());
|
|
|
+ if (pk_measdoc == null) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return pk_measdoc;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|