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

项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{

    form.btnEdit().setVisible(true);
    AuditedClassVoCollection auditedClasses = new AuditedClassVoCollection();
    int size = form.grdObjectList().getRows().size();
    for (int i = 0; i < size; i++)
    {
        String className = form.grdObjectList().getRows().get(i).getValue();
        boolean isAudited = form.grdObjectList().getRows().get(i).getIsAudited();
        AuditedClassVo vo = new AuditedClassVo();
        vo.setClassName(className);
        vo.setIsAudited(new Boolean(isAudited));
        auditedClasses.add(vo);             
    }
    try
    {
        domain.saveAuditConfig(auditedClasses);
        domain.activateAuditConfig();
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    }
    onBtnApplyClick();
    form.setMode(FormMode.VIEW);        
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{

    form.btnEdit().setVisible(true);
    AuditedClassVoCollection auditedClasses = new AuditedClassVoCollection();
    int size = form.grdObjectList().getRows().size();
    for (int i = 0; i < size; i++)
    {
        String className = form.grdObjectList().getRows().get(i).getValue();
        boolean isAudited = form.grdObjectList().getRows().get(i).getIsAudited();
        AuditedClassVo vo = new AuditedClassVo();
        vo.setClassName(className);
        vo.setIsAudited(new Boolean(isAudited));
        auditedClasses.add(vo);             
    }
    try
    {
        domain.saveAuditConfig(auditedClasses);
        domain.activateAuditConfig();
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    }
    onBtnApplyClick();
    form.setMode(FormMode.VIEW);        
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{

    form.btnEdit().setVisible(true);
    AuditedClassVoCollection auditedClasses = new AuditedClassVoCollection();
    int size = form.grdObjectList().getRows().size();
    for (int i = 0; i < size; i++)
    {
        String className = form.grdObjectList().getRows().get(i).getValue();
        boolean isAudited = form.grdObjectList().getRows().get(i).getIsAudited();
        AuditedClassVo vo = new AuditedClassVo();
        vo.setClassName(className);
        vo.setIsAudited(new Boolean(isAudited));
        auditedClasses.add(vo);             
    }
    try
    {
        domain.saveAuditConfig(auditedClasses);
        domain.activateAuditConfig();
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    }
    onBtnApplyClick();
    form.setMode(FormMode.VIEW);        
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{

    form.btnEdit().setVisible(true);
    AuditedClassVoCollection auditedClasses = new AuditedClassVoCollection();
    int size = form.grdObjectList().getRows().size();
    for (int i = 0; i < size; i++)
    {
        String className = form.grdObjectList().getRows().get(i).getValue();
        boolean isAudited = form.grdObjectList().getRows().get(i).getIsAudited();
        AuditedClassVo vo = new AuditedClassVo();
        vo.setClassName(className);
        vo.setIsAudited(new Boolean(isAudited));
        auditedClasses.add(vo);             
    }
    try
    {
        domain.saveAuditConfig(auditedClasses);
        domain.activateAuditConfig();
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    }
    onBtnApplyClick();
    form.setMode(FormMode.VIEW);        
}