Java 类ims.core.vo.AuditVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void showAllObjectXML()
{
    StringBuffer sb = new StringBuffer();
    sb.append("<contents>");
    for (int i = 0; i < form.grdAudit().getRows().size(); i++)
    {
        AuditVo vo = form.grdAudit().getRows().get(i).getValue();
        try
        {
            String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
            sb.append(xml);

        }
        catch (StaleObjectException e)
        {
            engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
            return;
        }
    }       
    sb.append("</contents>");   

    saveObjectXML(sb.toString());
}
项目:AvoinApotti    文件:Logic.java   
private void showObjectXML()
{
    AuditVo vo = form.grdAudit().getValue();
    try
    {
        String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
        saveObjectXML(xml);
    }
    catch (StaleObjectException e)
    {
        engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
        return;
    }


}
项目:openMAXIMS    文件:Logic.java   
private void showAllObjectXML()
{
    StringBuffer sb = new StringBuffer();
    sb.append("<contents>");
    for (int i = 0; i < form.grdAudit().getRows().size(); i++)
    {
        AuditVo vo = form.grdAudit().getRows().get(i).getValue();
        try
        {
            String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
            sb.append(xml);

        }
        catch (StaleObjectException e)
        {
            engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
            return;
        }
    }       
    sb.append("</contents>");   

    saveObjectXML(sb.toString());
}
项目:openMAXIMS    文件:Logic.java   
private void showObjectXML()
{
    AuditVo vo = form.grdAudit().getValue();
    try
    {
        String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
        saveObjectXML(xml);
    }
    catch (StaleObjectException e)
    {
        engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
        return;
    }


}
项目:openMAXIMS    文件:Logic.java   
private void showAllObjectXML()
{
    StringBuffer sb = new StringBuffer();
    sb.append("<contents>");
    for (int i = 0; i < form.grdAudit().getRows().size(); i++)
    {
        AuditVo vo = form.grdAudit().getRows().get(i).getValue();
        try
        {
            String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
            sb.append(xml);

        }
        catch (StaleObjectException e)
        {
            engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
            return;
        }
    }       
    sb.append("</contents>");   

    saveObjectXML(sb.toString());
}
项目:openMAXIMS    文件:Logic.java   
private void showObjectXML()
{
    AuditVo vo = form.grdAudit().getValue();
    try
    {
        String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
        saveObjectXML(xml);
    }
    catch (StaleObjectException e)
    {
        engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
        return;
    }


}
项目:openmaxims-linux    文件:Logic.java   
private void showAllObjectXML()
{
    StringBuffer sb = new StringBuffer();
    sb.append("<contents>");
    for (int i = 0; i < form.grdAudit().getRows().size(); i++)
    {
        AuditVo vo = form.grdAudit().getRows().get(i).getValue();
        try
        {
            String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
            sb.append(xml);

        }
        catch (StaleObjectException e)
        {
            engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
            return;
        }
    }       
    sb.append("</contents>");   

    saveObjectXML(sb.toString());
}
项目:openmaxims-linux    文件:Logic.java   
private void showObjectXML()
{
    AuditVo vo = form.grdAudit().getValue();
    try
    {
        String xml = domain.getObjectXML(vo.getClassName(), vo.getClassIdentifier());
        saveObjectXML(xml);
    }
    catch (StaleObjectException e)
    {
        engine.showMessage("StaleObjectException occurred saving export details - " + e.getMessage());
        return;
    }


}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdAuditSelectionChanged() throws PresentationLogicException 
{
    form.getContextMenus().hideAllRIEViewReasonMenuItems();
    // Populate the text box with the differences that occurred in the last update
    AuditVo audit =form.grdAudit().getValue();
    if (audit.getDiffFieldsIsNotNull())
    {
        formatThis(audit.getDiffFields());
    }
    else
        form.htmDifferences().setHTML("");

    if (audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setEnabled(true);
    }
    if (!audit.getAction().equals("DELETE") && !audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setEnabled(true);
    }
    if (form.cmbAction().getValue() != null && form.cmbAction().getValue().equals("INSERT"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setEnabled(true);           
    }
}
项目: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   
protected void onGrdAuditSelectionChanged() throws PresentationLogicException 
{
    form.getContextMenus().hideAllRIEViewReasonMenuItems();
    // Populate the text box with the differences that occurred in the last update
    AuditVo audit =form.grdAudit().getValue();
    if (audit.getDiffFieldsIsNotNull())
    {
        formatThis(audit.getDiffFields());
    }
    else
        form.htmDifferences().setHTML("");

    if (audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setEnabled(true);
    }
    if (!audit.getAction().equals("DELETE") && !audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setEnabled(true);
    }
    if (form.cmbAction().getValue() != null && form.cmbAction().getValue().equals("INSERT"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setEnabled(true);           
    }
}
项目: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   
protected void onGrdAuditSelectionChanged() throws PresentationLogicException 
{
    form.getContextMenus().hideAllRIEViewReasonMenuItems();
    // Populate the text box with the differences that occurred in the last update
    AuditVo audit =form.grdAudit().getValue();
    if (audit.getDiffFieldsIsNotNull())
    {
        formatThis(audit.getDiffFields());
    }
    else
        form.htmDifferences().setHTML("");

    if (audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setEnabled(true);
    }
    if (!audit.getAction().equals("DELETE") && !audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setEnabled(true);
    }
    if (form.cmbAction().getValue() != null && form.cmbAction().getValue().equals("INSERT"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setEnabled(true);           
    }
}
项目: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   
protected void onGrdAuditSelectionChanged() throws PresentationLogicException 
{
    form.getContextMenus().hideAllRIEViewReasonMenuItems();
    // Populate the text box with the differences that occurred in the last update
    AuditVo audit =form.grdAudit().getValue();
    if (audit.getDiffFieldsIsNotNull())
    {
        formatThis(audit.getDiffFields());
    }
    else
        form.htmDifferences().setHTML("");

    if (audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonVIEW_REASONItem().setEnabled(true);
    }
    if (!audit.getAction().equals("DELETE") && !audit.getAction().equals("RIE"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_TO_FILEItem().setEnabled(true);
    }
    if (form.cmbAction().getValue() != null && form.cmbAction().getValue().equals("INSERT"))
    {
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setVisible(true);
        form.getContextMenus().getRIEViewReasonEXPORT_ALLItem().setEnabled(true);           
    }
}
项目: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());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void search()
{
    form.grdAudit().getRows().clear();
    form.ctnDetails().htmDetails().setHTML("");

    if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
    {
        engine.showMessage("'To' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
    {
        engine.showMessage("'From' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() != null 
            && form.dteTo().getValue() != null
            && form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
    {
            engine.showMessage("'From' date must not be after 'To' date.");
            return;
    }
    CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
    if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
    {
        if (form.cmbCareContext().getValue() != null)
        {
            voCareContextColl.add(form.cmbCareContext().getValue());
        }
        else
        {
            ArrayList arrCareContext = form.cmbCareContext().getValues();
            for (int i=0; i<arrCareContext.size(); i++)
            {
                CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
                voCareContextColl.add(refVo);
            }
        }
    }

    AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());

    // WDEV-18111 
    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No matching records found");
    }

    for (int i=0; i<coll.size(); i++)
    {
        AuditVo audit = coll.get(i);
        grdAuditRow row = form.grdAudit().getRows().newRow();
        row.setValue(audit);

        row.setTooltip(audit.getClassName());
        row.setColumnClass(audit.getClassName());
        row.setColumnIdentifier(audit.getClassIdentifier());
        row.setColumnHost(audit.getHostName());
        if (audit.getAuditDateTime() != null)
        {
            row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
        }
        if (audit.getAuditUser() != null)
            row.setColumnUser(audit.getAuditUser());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    form.grdAudit().getRows().clear();
    form.ctnDetails().htmDetails().setHTML("");

    if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
    {
        engine.showMessage("'To' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
    {
        engine.showMessage("'From' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() != null 
            && form.dteTo().getValue() != null
            && form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
    {
            engine.showMessage("'From' date must not be after 'To' date.");
            return;
    }
    CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
    if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
    {
        if (form.cmbCareContext().getValue() != null)
        {
            voCareContextColl.add(form.cmbCareContext().getValue());
        }
        else
        {
            ArrayList arrCareContext = form.cmbCareContext().getValues();
            for (int i=0; i<arrCareContext.size(); i++)
            {
                CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
                voCareContextColl.add(refVo);
            }
        }
    }

    AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());
    form.getGlobalContext().Admin.setDataViewSearchCriteria(getSearchCriteria());//WDEV-19389 

    // WDEV-18111 
    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No matching records found");
    }

    for (int i=0; i<coll.size(); i++)
    {
        AuditVo audit = coll.get(i);
        grdAuditRow row = form.grdAudit().getRows().newRow();
        row.setValue(audit);

        row.setTooltip(audit.getClassName());
        row.setColumnClass(audit.getClassName());
        row.setColumnIdentifier(audit.getClassIdentifier());
        row.setColumnHost(audit.getHostName());
        if (audit.getAuditDateTime() != null)
        {
            row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
        }
        if (audit.getAuditUser() != null)
            row.setColumnUser(audit.getAuditUser());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    form.grdAudit().getRows().clear();
    form.ctnDetails().htmDetails().setHTML("");

    if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
    {
        engine.showMessage("'To' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
    {
        engine.showMessage("'From' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() != null 
            && form.dteTo().getValue() != null
            && form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
    {
            engine.showMessage("'From' date must not be after 'To' date.");
            return;
    }
    CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
    if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
    {
        if (form.cmbCareContext().getValue() != null)
        {
            voCareContextColl.add(form.cmbCareContext().getValue());
        }
        else
        {
            ArrayList arrCareContext = form.cmbCareContext().getValues();
            for (int i=0; i<arrCareContext.size(); i++)
            {
                CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
                voCareContextColl.add(refVo);
            }
        }
    }

    AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());

    // WDEV-18111 
    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No matching records found");
    }

    for (int i=0; i<coll.size(); i++)
    {
        AuditVo audit = coll.get(i);
        grdAuditRow row = form.grdAudit().getRows().newRow();
        row.setValue(audit);

        row.setTooltip(audit.getClassName());
        row.setColumnClass(audit.getClassName());
        row.setColumnIdentifier(audit.getClassIdentifier());
        row.setColumnHost(audit.getHostName());
        if (audit.getAuditDateTime() != null)
        {
            row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
        }
        if (audit.getAuditUser() != null)
            row.setColumnUser(audit.getAuditUser());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{
    form.grdAudit().getRows().clear();
    form.ctnDetails().htmDetails().setHTML("");

    if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
    {
        engine.showMessage("'To' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
    {
        engine.showMessage("'From' date is mandatory.");
        return;
    }

    if(form.dteStart().getValue() != null 
            && form.dteTo().getValue() != null
            && form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
    {
            engine.showMessage("'From' date must not be after 'To' date.");
            return;
    }
    CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
    if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
    {
        if (form.cmbCareContext().getValue() != null)
        {
            voCareContextColl.add(form.cmbCareContext().getValue());
        }
        else
        {
            ArrayList arrCareContext = form.cmbCareContext().getValues();
            for (int i=0; i<arrCareContext.size(); i++)
            {
                CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
                voCareContextColl.add(refVo);
            }
        }
    }

    AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());

    // WDEV-18111 
    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No matching records found");
    }

    for (int i=0; i<coll.size(); i++)
    {
        AuditVo audit = coll.get(i);
        grdAuditRow row = form.grdAudit().getRows().newRow();
        row.setValue(audit);

        row.setTooltip(audit.getClassName());
        row.setColumnClass(audit.getClassName());
        row.setColumnIdentifier(audit.getClassIdentifier());
        row.setColumnHost(audit.getHostName());
        if (audit.getAuditDateTime() != null)
        {
            row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
        }
        if (audit.getAuditUser() != null)
            row.setColumnUser(audit.getAuditUser());
    }

}