eas之关于编码规则
//是否存在编码规则
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);
}
}
承接钉钉定制;网站服务定制;
联系qq:1655119603