eas of obtaining documents Encoding Rules

// Get document coding rule  
/ **
* @Title: the getNumber
* @Description: the TODO (Get document coding rule)
* <P>
* @date 2010-11-12
* @param DatabaseInfo model.put ( "Number", JCBillUtil .getNumber (Model, null));
* @return
* /  
public static String the getNumber (IObjectValue The objectValue, String companyId)  
{  
// set the encoding rules  
IF (companyId == null)  
{  
    .. companyId = getCurCompanyOrgUnit () getId () toString ();  
}  
the try  
{  
    ICodingRuleManager rule CodingRuleManagerFactory.getRemoteInstance = ();  
    IF (rule.isExist (The objectValue, companyId))  
    {  
        return rule.getNumber (The objectValue, companyId);  
    }  
}catch(Exception e)  
{  
    e.printStackTrace();  
    return null;  
}  
return null;  
}

Guess you like

Origin www.cnblogs.com/luojiabao/p/10964405.html
EAS