1 public static String getNumberByCodingRule(Context ctx, IObjectValue info, String orgUnitId) 2 throws Exception 3 { 4 ICodingRuleManager iCodingRuleManager = null; 5 if(ctx == null) 6 iCodingRuleManager = CodingRuleManagerFactory.getRemoteInstance(); 7 else 8 iCodingRuleManager = CodingRuleManagerFactory.getLocalInstance(ctx); 9 if(iCodingRuleManager.isExist(info, orgUnitId)) 10 return iCodingRuleManager.getNumber(info, orgUnitId); 11 else 12 return null; 13 }