/*
* 单据是否存在下游单据
*/
@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();
}
EAS判断单据是否存在下游单据
猜你喜欢
转载自blog.csdn.net/moshowgame/article/details/80503890
今日推荐
周排行