//是否存在编码规则
protected booleana isCodeRuleEnable(IObjectValue objValue)throws EASBizException,BOSException{
String companyId=OrgInnerUtils.getCurCompany();
ICodingRuledManager coldRuleMgr=null;
codeRuleMgr=CodingRuleManagerFactory.getRemoteInstance();
return codeRuleMgr.isExist(objValue.companyId);
}
//得到自动编码
protected String getAutoCode(IObjectValue objValue)throws EASBizException,BOSException{
String companyId=OrgInnerUtils.getCurCompany();
ICodingRuleManager codeRuleMgr=null;

codeRuleMgr=CodingRuleManagerFactory.getRemotInstance();
if(codeRuleMgr.isUseIntermitNumber(objValue,companyId)){
return codeRuleMgr.readNumber(objValue,companyId);
}else{
return codeRuleMgr.getNumber(objValue,companyId);
}
}

相关文章:

  • 2022-02-07
  • 2022-01-22
  • 2021-09-12
  • 2022-03-06
  • 2022-01-10
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-12-31
  • 2021-12-12
相关资源
相似解决方案