public FipMessageVO[] setFipMessageVO(AggReceiptMainHVO[] aggreceipt_HVOs, int type)
      throws BusinessException {
    FipMessageVO[] fipMessageVOs = new FipMessageVO[aggreceipt_HVOs.length];
    int i = 0;
    for (AggReceiptMainHVO aggvo : aggreceipt_HVOs) {
      fipRelationInfoVO = new FipRelationInfoVO();
      fipRelationInfoVO.setPk_org(aggvo.getParentVO().getPk_org());
      fipRelationInfoVO.setPk_group(aggvo.getParentVO().getPk_group());
      //			fipRelationInfoVO.setPk_billtype(aggvo.getParentVO().getBill_type());

      //			fipRelationInfoVO.setPk_billtype("0001ZZ1000000000MEQW");
      fipRelationInfoVO.setPk_billtype("SKZD");
      fipRelationInfoVO.setPk_system("CSSB");
      fipRelationInfoVO.setRelationID(aggvo.getParentVO().getBillno());
      fipRelationInfoVO.setPk_operator(InvocationInfoProxy.getInstance().getUserId());

      fipRelationInfoVO.setBusidate(aggvo.getParentVO().getBusiness_date());
      fipRelationInfoVO.setFreedef1(aggvo.getParentVO().getBillno());
      fipRelationInfoVO.setFreedef2(aggvo.getParentVO().getVoucher_note()); // 凭证备注

      fipRelationInfoVO.setFreedef3(aggvo.getParentVO().getLocal_sum().toString()); // 金额
      //			fipRelationInfoVO.setDefdoc1((String) aggvo.getParentVO().getAttributeValue("busitype"));
      fipMessageVO = new FipMessageVO();
      fipMessageVO.setBillVO(aggvo);
      fipMessageVO.setMessageinfo(fipRelationInfoVO);
      fipMessageVO.setMessagetype(type); // type==1为删除单据生成下的数据
      fipMessageVOs[i] = fipMessageVO;
      i++;
    }
    return fipMessageVOs;
  }
Ejemplo n.º 2
0
  public FipMessageVO[] setFipMessageVO(AggCommission[] clientBills, int type)
      throws BusinessException {
    FipMessageVO[] fipMessageVOs = new FipMessageVO[clientBills.length];
    int i = 0;
    for (AggCommission aggvo : clientBills) {
      fipRelationInfoVO = new FipRelationInfoVO();
      fipRelationInfoVO.setPk_org(aggvo.getParentVO().getPk_org());
      fipRelationInfoVO.setPk_group(aggvo.getParentVO().getPk_group());
      //			fipRelationInfoVO.setPk_billtype(aggvo.getParentVO().getBill_type());

      //			fipRelationInfoVO.setPk_billtype("0001ZZ1000000000MEQW");
      fipRelationInfoVO.setPk_billtype("GRTC");
      fipRelationInfoVO.setPk_system("CSSB");
      fipRelationInfoVO.setRelationID(aggvo.getParentVO().getBillno());
      fipRelationInfoVO.setPk_operator(InvocationInfoProxy.getInstance().getUserId());

      //			fipRelationInfoVO.setBusidate(new
      // UFDate(aggvo.getParentVO().getYear()+"-"+aggvo.getParentVO().getMonth()+"-01"));
      fipRelationInfoVO.setBusidate(aggvo.getParentVO().getSplit_date());
      fipRelationInfoVO.setFreedef1(aggvo.getParentVO().getBillno());
      //			fipRelationInfoVO.setFreedef2(aggvo.getParentVO().getVoucher_note());//凭证备注

      fipRelationInfoVO.setFreedef3(aggvo.getParentVO().getLocal_sum().toString()); // 金额
      //			fipRelationInfoVO.setDefdoc1((String) aggvo.getParentVO().getAttributeValue("busitype"));
      fipMessageVO = new FipMessageVO();
      fipMessageVO.setBillVO(aggvo);
      fipMessageVO.setMessageinfo(fipRelationInfoVO);
      fipMessageVO.setMessagetype(type); // type==1为删除单据生成下的数据
      fipMessageVOs[i] = fipMessageVO;
      i++;
    }
    return fipMessageVOs;
  }