Пример #1
0
 /**
  * 拆分到辅组织汇兑损益应付单-始发地
  *
  * @param objF
  * @return
  */
 private AggExchangeAssistSyfHVO SplitToAssistSyfStart(Object[] objF, Object[] objSYF)
     throws BusinessException {
   AggExchangeAssistSyfHVO aggvo = new AggExchangeAssistSyfHVO();
   ExchangeAssistSyfHVO hvo = InitSyfAssistHVO(objF, objSYF);
   // --差异部分:
   hvo.setPk_org(insertBP.getAssisOrg(objF)); // 组织
   hvo.setDept(insertBP.getAssist_dpm(objF).getPk_dept()); // 组织部门
   hvo.setOriginal_sum(new UFDouble(origin_start));
   hvo.setLocal_sum(new UFDouble(local_start));
   hvo.setBill_org(hvo.getPk_org()); // 单据组织=组织
   hvo.setFinance(insertBP.getFinance(hvo.getBill_org())); // 财务账簿
   // --差异部分
   aggvo.setParent(hvo);
   ExchangeAssistSyfBVO[] bvos = new ExchangeAssistSyfBVO[1];
   bvos[0] = initSyfAssistBVO(objF);
   bvos[0].setProperty(1);
   bvos[0].setBilltype(2);
   bvos[0].setBill_org(hvo.getBill_org());
   bvos[0].setDept(hvo.getDept());
   bvos[0].setOriginal_sum(new UFDouble(origin_start)); // 原币金额
   bvos[0].setLocal_sum(new UFDouble(local_start)); // 本币金额
   bvos[0].setFinance(insertBP.getFinance(hvo.getBill_org())); // 财务账簿
   bvos[0].setTrader(insertBP.getTrader3(objF, 1)); // 客商
   aggvo.setChildren(ExchangeAssistSyfBVO.class, bvos);
   return aggvo;
 }
Пример #2
0
 private ExchangeSyfBVO SplitToSyfStartBVO(Object[] objF, int billtype) throws BusinessException {
   ExchangeSyfBVO bvo = InitSyfBVO(objF);
   bvo.setProperty(1);
   bvo.setOriginal_sum(new UFDouble(origin_start)); // 原币金额
   bvo.setLocal_sum(new UFDouble(local_start)); // 本币金额
   bvo.setBill_org((String) insertBP.getBillOrg(objF, "始发地")); // 单据组织
   bvo.setFinance(insertBP.getFinance(bvo.getBill_org())); // 财务账簿
   bvo.setTrader(insertBP.getTrader3(objF, 1)); // 客商
   bvo.setCustomer(insertBP.getClient(objF)); // 客户
   bvo.setBilltype(billtype); // 单据类型
   bvo.setDept(insertBP.getAssist_dpm(objF).getPk_dept()); // 组织部门
   return bvo;
 }