EAS判断单据是否存在下游单据

/*
 * 单据是否存在下游单据
 */
    @Override
    protected boolean _isExistDownstreamBill(Context ctx, String id) throws BOSException, EASBizException 
    {
 String sql = "select * from T_BOT_Relation where fsrcobjectid='"+id+"'";
     IRowSet  rowSet = DbUtil.executeQuery(ctx, sql);
     if(rowSet.size()>0)return true;
     else  return false;
    } 
 IBTPManager iBTPManager = BTPManagerFactory.getLocalInstance(ctx);
    String billIdString = billInfo.getId().toString();
    if (iBTPManager.ifHaveDestBills(billIdString))
    {
      throw new SCMBillException(SCMBillException.HASDESTBILL_CANNOTUNAUDIT, new Object[] { billInfo.getNumber() });
    }

    IBTPManager iBTPManager = BTPManagerFactory.getRemoteInstance();
if (iBTPManager.ifHaveDestBills(editData.getId().toString())) {
      MsgBox.showError(this, "该单据已关联生成目标单据,不能反审核!");
SysUtil.abort();
     }
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页