Java 类ims.admin.vo.RecordedInErrorVo 实例源码

项目:AvoinApotti    文件:AuditListImpl.java   
public RecordedInErrorVo getRIEReason(Integer boClassId, String boClassName)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from RecordedInError r where r.boClassId = :classId and r.className = :className";
    List lst = factory.find(hql, new String[]{"classId", "className"}, new Object[]{boClassId, boClassName});
    if (lst != null && lst.size() > 0)
    {
        // Unique per classId and className, so should only be 1 record 
        RecordedInError rie = (RecordedInError) lst.get(0);
        RecordedInErrorVo vo = new RecordedInErrorVo();
        vo.setClassId(new Integer(rie.getBoClassId()));
        vo.setClassName(rie.getClassName());
        vo.setReason(rie.getComment());
        return vo;
    }
    return null;
}
项目:openMAXIMS    文件:AuditListImpl.java   
public RecordedInErrorVo getRIEReason(Integer boClassId, String boClassName)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from RecordedInError r where r.boClassId = :classId and r.className = :className";
    List lst = factory.find(hql, new String[]{"classId", "className"}, new Object[]{boClassId, boClassName});
    if (lst != null && lst.size() > 0)
    {
        // Unique per classId and className, so should only be 1 record 
        RecordedInError rie = (RecordedInError) lst.get(0);
        RecordedInErrorVo vo = new RecordedInErrorVo();
        vo.setClassId(new Integer(rie.getBoClassId()));
        vo.setClassName(rie.getClassName());
        vo.setReason(rie.getComment());
        return vo;
    }
    return null;
}
项目:openMAXIMS    文件:AuditListImpl.java   
public RecordedInErrorVo getRIEReason(Integer boClassId, String boClassName)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from RecordedInError r where r.boClassId = :classId and r.className = :className";
    List lst = factory.find(hql, new String[]{"classId", "className"}, new Object[]{boClassId, boClassName});
    if (lst != null && lst.size() > 0)
    {
        // Unique per classId and className, so should only be 1 record 
        RecordedInError rie = (RecordedInError) lst.get(0);
        RecordedInErrorVo vo = new RecordedInErrorVo();
        vo.setClassId(new Integer(rie.getBoClassId()));
        vo.setClassName(rie.getClassName());
        vo.setReason(rie.getComment());
        return vo;
    }
    return null;
}
项目:openmaxims-linux    文件:AuditListImpl.java   
public RecordedInErrorVo getRIEReason(Integer boClassId, String boClassName)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from RecordedInError r where r.boClassId = :classId and r.className = :className";
    List lst = factory.find(hql, new String[]{"classId", "className"}, new Object[]{boClassId, boClassName});
    if (lst != null && lst.size() > 0)
    {
        // Unique per classId and className, so should only be 1 record 
        RecordedInError rie = (RecordedInError) lst.get(0);
        RecordedInErrorVo vo = new RecordedInErrorVo();
        vo.setClassId(new Integer(rie.getBoClassId()));
        vo.setClassName(rie.getClassName());
        vo.setReason(rie.getComment());
        return vo;
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void getRIEReason()
{
    // Get the current row, if action is RIE, then get the reason from
    // domain
    AuditVo vo = form.grdAudit().getValue();
    if (vo.getAction().equals("RIE"))
    {
        RecordedInErrorVo reason = domain.getRIEReason(vo.getClassIdentifier(), vo.getClassName());
        if (reason != null)
            formatThis(vo.getDiffFields() + "<BR>" + reason.getReason());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void getRIEReason()
{
    // Get the current row, if action is RIE, then get the reason from
    // domain
    AuditVo vo = form.grdAudit().getValue();
    if (vo.getAction().equals("RIE"))
    {
        RecordedInErrorVo reason = domain.getRIEReason(vo.getClassIdentifier(), vo.getClassName());
        if (reason != null)
            formatThis(vo.getDiffFields() + "<BR>" + reason.getReason());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void getRIEReason()
{
    // Get the current row, if action is RIE, then get the reason from
    // domain
    AuditVo vo = form.grdAudit().getValue();
    if (vo.getAction().equals("RIE"))
    {
        RecordedInErrorVo reason = domain.getRIEReason(vo.getClassIdentifier(), vo.getClassName());
        if (reason != null)
            formatThis(vo.getDiffFields() + "<BR>" + reason.getReason());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void getRIEReason()
{
    // Get the current row, if action is RIE, then get the reason from
    // domain
    AuditVo vo = form.grdAudit().getValue();
    if (vo.getAction().equals("RIE"))
    {
        RecordedInErrorVo reason = domain.getRIEReason(vo.getClassIdentifier(), vo.getClassName());
        if (reason != null)
            formatThis(vo.getDiffFields() + "<BR>" + reason.getReason());
    }

}