Exemple #1
0
 public void doCancle(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
     throws Exception {
   CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
   // dao.doCancle(domain);
   dao.checkDelete(domain.getYsyfDjxh(), 1);
   dao.callPHyglCwglSrdjHxcl(domain.getYsyfDjxh(), "1");
   dao.initCwYsJe(domain, userDomain);
 }
Exemple #2
0
  @Override
  protected void doMySave(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
      throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    dao.saveDomain(domain, userDomain);

    dao.callPHyglCwglSrdjHxcl(domain.getSrDjxh(), "0");
  }
Exemple #3
0
 public void getMcList(BaseBusinessDomain baseBusinessDomain) throws Exception {
   CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
   List<CwYsyfSrdjDomain> list;
   if (StringUtils.isNotBlank(domain.getYfjsfDm())) {
     list = dao.getMcList(domain.getSsJgbm(), domain.getYfjsfDm());
   } else {
     list = dao.getMcList(domain.getSsJgbm(), "");
   }
   domain.setYfjsfMcList(list);
 }
Exemple #4
0
  @Override
  protected void doMyDelete(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
      throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    List<String> xhs = domain.getSrDjxhs();
    if (null == xhs || xhs.isEmpty()) return;

    // 删除结算-开票申请-对帐清单
    for (String xh : xhs) {
      dao.checkDelete(xh, 0);
      dao.deleteSrdj(xh);
      dao.callPHyglCwglSrdjHxcl(xh, "0");
    }
  }
Exemple #5
0
 @Override
 protected void doMyDownload(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
     throws Exception {
   CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
   domain.setZgsbm(userDomain.getZgsbm());
   List<BaseBusinessDomain> dataList = dao.downloadList(domain);
   domain.setDataList(dataList);
 }
Exemple #6
0
 @Override
 protected void doMyInit(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
     throws Exception {
   CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
   // 在此添加初始化相应代码
   domain.setYfjsfDmList(dao.getLbList());
   domain.setSsJgbm(userDomain.getGsbm());
 }
Exemple #7
0
  @Override
  protected void doMyInitMx(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
      throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    dao.initDomainMx(domain);

    domain.setJbrCzyDjxh(userDomain.getCzyDjxh());

    domain.setSsJgbm(userDomain.getGsbm());
  }
Exemple #8
0
  // @Transactional(readOnly = true, propagation = Propagation.REQUIRED)
  public void plDj(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain) throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    List<String> ysyfDjxhs = domain.getYsyfDjxhs();
    if (null == ysyfDjxhs || ysyfDjxhs.isEmpty()) return;

    // 删除结算-开票申请-对帐清单
    for (String xh : ysyfDjxhs) {

      CwYsyfSrdjDomain srdjDmain = (CwYsyfSrdjDomain) dao.getYsyfSrdj(xh);
      CwYsyfSrdjDomain srdjDom = new CwYsyfSrdjDomain();

      srdjDom.setYsyfDjxh(srdjDmain.getYsyfDjxh());
      srdjDom.setYfjsfDm(srdjDmain.getYfjsfDm());
      srdjDom.setYfjsfDjxh(srdjDmain.getYfjsfDjxh());
      if (StringUtils.isNotEmpty(srdjDmain.getYfjsfDjmc())) {
        srdjDom.setFkfmc(srdjDmain.getYfjsfDjmc());
      } else {
        srdjDom.setFkfmc(srdjDmain.getYfjsfMc());
      }
      //			String yhCshDjxh = cshDao.getYhCshDjxhWhenXj(userDomain.getGsbm());
      //			if(StringUtils.isBlank(yhCshDjxh)){
      //				throw new DiyServiceException("请先在货币资产初始化中维护现金资产!");
      //			}
      srdjDom.setYhCshDjxh(domain.getYhCshDjxh());
      srdjDom.setRq(domain.getRq());
      srdjDom.setZcflDm(domain.getZcflDm());
      if ("12".equals(domain.getZcflDm())) {
        srdjDom.setZffsDm("2");
      } else if ("11".equals(domain.getZcflDm())) {
        srdjDom.setZffsDm("1");
      } else {
        srdjDom.setZffsDm("3");
      }
      srdjDom.setJe(srdjDmain.getWsfJe());
      srdjDom.setJbrCzyDjxh(userDomain.getCzyDjxh());
      srdjDom.setDjJgbm(userDomain.getBmbm());
      srdjDom.setSsJgbm(userDomain.getGsbm());
      srdjDom.setBz("批量登记产生!");
      dao.saveDomain(srdjDom, userDomain);
      dao.callPHyglCwglSrdjHxcl(srdjDom.getSrDjxh(), "0");
    }
  }
Exemple #9
0
 public void checkZfFs(CwYsyfSrdjDomain domain) throws Exception {
   dao.checkZfFs(domain);
 }