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

项目:AvoinApotti    文件:Logic.java   
private boolean save()
{
    Urinalysis urinalysisTosave = populateDataFromScreen(form.getLocalContext().getSelectedUrinalysis());

    String[] errors = urinalysisTosave.validate(getUIErrors());

    if (errors != null)
    {
        engine.showErrors("Validation Errors", errors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedUrinalysis(domain.save(urinalysisTosave));
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save()
{
    Urinalysis urinalysisTosave = populateDataFromScreen(form.getLocalContext().getSelectedUrinalysis());

    String[] errors = urinalysisTosave.validate(getUIErrors());

    if (errors != null)
    {
        engine.showErrors("Validation Errors", errors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedUrinalysis(domain.save(urinalysisTosave));
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save()
{
    Urinalysis urinalysisTosave = populateDataFromScreen(form.getLocalContext().getSelectedUrinalysis());

    String[] errors = urinalysisTosave.validate(getUIErrors());

    if (errors != null)
    {
        engine.showErrors("Validation Errors", errors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedUrinalysis(domain.save(urinalysisTosave));
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }
    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean save()
{
    Urinalysis urinalysisTosave = populateDataFromScreen(form.getLocalContext().getSelectedUrinalysis());

    String[] errors = urinalysisTosave.validate(getUIErrors());

    if (errors != null)
    {
        engine.showErrors("Validation Errors", errors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedUrinalysis(domain.save(urinalysisTosave));
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }
    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser()
{
    form.recbrAllRecords().clear();

    if (form.getGlobalContext().Core.getCurrentCareContext() == null)
        return;

    UrinalysisCollection collUrinalysis = domain.listUrinalysisByCareContext(form.getGlobalContext().Core.getCurrentCareContext(), form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive) ? true : false);

    if (collUrinalysis == null || collUrinalysis.size()==0)
    {
        form.getLocalContext().setSelectedUrinalysis(null);
        return;
    }

    for (int i = 0; i < collUrinalysis.size(); i++)
    {
        Urinalysis urinalysis = collUrinalysis.get(i);

        form.recbrAllRecords().newRow(urinalysis, (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringDateTime() != null ? urinalysis.getAuthoringInformation().getAuthoringDateTime().toString() : "") + " - " + (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringHcp() != null ? urinalysis.getAuthoringInformation().getAuthoringHcp().toString() : ""));
    }

    if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysis() == null)
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }
    else if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysisIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getSelectedUrinalysis().getIsActive()))
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }

    form.recbrAllRecords().setValue(form.getLocalContext().getSelectedUrinalysis());
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    form.recbrAllRecords().clear();

    if (form.getGlobalContext().Core.getCurrentCareContext() == null)
        return;

    UrinalysisCollection collUrinalysis = domain.listUrinalysisByCareContext(form.getGlobalContext().Core.getCurrentCareContext(), form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive) ? true : false);

    if (collUrinalysis == null || collUrinalysis.size()==0)
    {
        form.getLocalContext().setSelectedUrinalysis(null);
        return;
    }

    for (int i = 0; i < collUrinalysis.size(); i++)
    {
        Urinalysis urinalysis = collUrinalysis.get(i);

        form.recbrAllRecords().newRow(urinalysis, (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringDateTime() != null ? urinalysis.getAuthoringInformation().getAuthoringDateTime().toString() : "") + " - " + (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringHcp() != null ? urinalysis.getAuthoringInformation().getAuthoringHcp().toString() : ""));
    }

    if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysis() == null)
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }
    else if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysisIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getSelectedUrinalysis().getIsActive()))
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }

    form.recbrAllRecords().setValue(form.getLocalContext().getSelectedUrinalysis());
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    form.recbrAllRecords().clear();

    if (form.getGlobalContext().Core.getCurrentCareContext() == null)
        return;

    UrinalysisCollection collUrinalysis = domain.listUrinalysisByCareContext(form.getGlobalContext().Core.getCurrentCareContext(), form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive) ? true : false);

    if (collUrinalysis == null || collUrinalysis.size()==0)
    {
        form.getLocalContext().setSelectedUrinalysis(null);
        return;
    }

    for (int i = 0; i < collUrinalysis.size(); i++)
    {
        Urinalysis urinalysis = collUrinalysis.get(i);

        form.recbrAllRecords().newRow(urinalysis, (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringDateTime() != null ? urinalysis.getAuthoringInformation().getAuthoringDateTime().toString() : "") + " - " + (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringHcp() != null ? urinalysis.getAuthoringInformation().getAuthoringHcp().toString() : ""));
    }

    if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysis() == null)
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }
    else if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysisIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getSelectedUrinalysis().getIsActive()))
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }

    form.recbrAllRecords().setValue(form.getLocalContext().getSelectedUrinalysis());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser()
{
    form.recbrAllRecords().clear();

    if (form.getGlobalContext().Core.getCurrentCareContext() == null)
        return;

    UrinalysisCollection collUrinalysis = domain.listUrinalysisByCareContext(form.getGlobalContext().Core.getCurrentCareContext(), form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive) ? true : false);

    if (collUrinalysis == null || collUrinalysis.size()==0)
    {
        form.getLocalContext().setSelectedUrinalysis(null);
        return;
    }

    for (int i = 0; i < collUrinalysis.size(); i++)
    {
        Urinalysis urinalysis = collUrinalysis.get(i);

        form.recbrAllRecords().newRow(urinalysis, (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringDateTime() != null ? urinalysis.getAuthoringInformation().getAuthoringDateTime().toString() : "") + " - " + (urinalysis.getAuthoringInformationIsNotNull() && urinalysis.getAuthoringInformation().getAuthoringHcp() != null ? urinalysis.getAuthoringInformation().getAuthoringHcp().toString() : ""));
    }

    if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysis() == null)
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }
    else if (collUrinalysis.size() > 0 && form.getLocalContext().getSelectedUrinalysisIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getSelectedUrinalysis().getIsActive()))
    {
        form.getLocalContext().setSelectedUrinalysis(collUrinalysis.get(0));
    }

    form.recbrAllRecords().setValue(form.getLocalContext().getSelectedUrinalysis());
}
项目:AvoinApotti    文件:Logic.java   
private void open() 
{
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    UrinalysisCollection voCollUrinanalysis = new UrinalysisCollection();

    Urinalysis voUrinalysis = new Urinalysis();
    voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (form.grpFilterBy().getValue() != null && form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
        voUrinalysis.setIsActive(Boolean.TRUE);

    try 
    {
        voCollUrinanalysis = domain.listUrinanalysis(voUrinalysis); 
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("DomainInterfaceException occurred listing Urinanalysis " + e.getMessage());
        return;
    }


    form.btnUpdate().setEnabled(false);

    if (voCollUrinanalysis == null)
        return;

    int nCount = voCollUrinanalysis.size();

    if(form.getLocalContext().getIndex() == null)
        form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        return;
    }

    if (nCount > form.getLocalContext().getIndex().intValue())
    {
        populateScreen(voCollUrinanalysis.get(form.getLocalContext().getIndex().intValue()));   
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
    }
    else
    {
        populateScreen(voCollUrinanalysis.get(nCount - 1));
        setPrevNextBtnStatus(nCount, nCount - 1);
    }


    form.getLocalContext().setVoCollUrinanalysis(voCollUrinanalysis);
    form.btnUpdate().setEnabled(true);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreen(Urinalysis voUrinalysis)
{
    //WDEV-15285
    clearDetails();
    form.chkNoSample().setValue(null);

    form.getLocalContext().setVoUrinanalysis(voUrinalysis);

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));     
    form.cmbPH().setValue(voUrinalysis.getPH());
    if(voUrinalysis.getNoAbnormalityDetected() != null)
        form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());
    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());
    if(voUrinalysis.getNoSample()!= null)
        form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());
    if(voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);  
    form.dtimRecordingDateTime().setValue(null);
    if(voUrinalysis.getRecordingInformationIsNotNull()){
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if(mos!=null){
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);   
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

    DateTime datim = voUrinalysis.getSysInfo().getCreationDateTime();

    if (datim != null)
    {
        Date date = datim.getDate();
        Time time = datim.getTime();
        form.dteRecords().setValue(date);
        form.timRecords().setValue(time);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void rdoValueChanged() 
{
    // Keep the selection
    if (GenForm.grpFilterByEnumeration.rdoActive.equals(form.grpFilterBy().getValue()))
    {
        form.getLocalContext().setActiveOnly(Boolean.TRUE);
    }
    else
    {
        form.getLocalContext().setActiveOnly(Boolean.FALSE);
    }

    //List the Urinalysis records based on the filter selected
    UrinalysisCollection voUrinalysisColl;

    try {
        Urinalysis voUrinalysis= new Urinalysis();
        voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
        voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        if (form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
            voUrinalysis.setIsActive(Boolean.TRUE);
        else
            voUrinalysis.setIsActive(null);

        voUrinalysisColl = domain.listUrinanalysis(voUrinalysis);
    } catch (DomainInterfaceException e) {
        engine.showMessage("DomainInterfaceException occurred listing referrals " + e.getMessage());
        return;
    }
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    int nCount = voUrinalysisColl.size();
    form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        form.btnUpdate().setEnabled(false);
        return;
    }

    populateScreen(voUrinalysisColl.get(0)); 
    setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());

    form.getLocalContext().setVoCollUrinanalysis(voUrinalysisColl);

    form.btnUpdate().setEnabled(true);
    //open();
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControlsFromData(Urinalysis voUrinalysis)
{
    clearScreen();

    if (voUrinalysis == null)
        return;

    voUrinalysis = domain.getUrinalysis(voUrinalysis);

    form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));

    form.cmbPH().setValue(voUrinalysis.getPH());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());

    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());

    if (voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);
    form.dtimRecordingDateTime().setValue(null);

    if (voUrinalysis.getRecordingInformationIsNotNull())
    {
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if (mos != null)
        {
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void setSearchCriteria(Urinalysis urinalysis)
{
    setViewType(urinalysis.getIsActive());      
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    UrinalysisCollection voCollUrinanalysis = new UrinalysisCollection();

    Urinalysis voUrinalysis = new Urinalysis();
    voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (form.grpFilterBy().getValue() != null && form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
        voUrinalysis.setIsActive(Boolean.TRUE);

    try 
    {
        voCollUrinanalysis = domain.listUrinanalysis(voUrinalysis); 
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("DomainInterfaceException occurred listing Urinanalysis " + e.getMessage());
        return;
    }


    form.btnUpdate().setEnabled(false);

    if (voCollUrinanalysis == null)
        return;

    int nCount = voCollUrinanalysis.size();

    if(form.getLocalContext().getIndex() == null)
        form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        return;
    }

    if (nCount > form.getLocalContext().getIndex().intValue())
    {
        populateScreen(voCollUrinanalysis.get(form.getLocalContext().getIndex().intValue()));   
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
    }
    else
    {
        populateScreen(voCollUrinanalysis.get(nCount - 1));
        setPrevNextBtnStatus(nCount, nCount - 1);
    }


    form.getLocalContext().setVoCollUrinanalysis(voCollUrinanalysis);
    form.btnUpdate().setEnabled(true);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(Urinalysis voUrinalysis)
{
    //WDEV-15285
    clearDetails();
    form.chkNoSample().setValue(null);

    form.getLocalContext().setVoUrinanalysis(voUrinalysis);

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));     
    form.cmbPH().setValue(voUrinalysis.getPH());
    if(voUrinalysis.getNoAbnormalityDetected() != null)
        form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());
    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());
    if(voUrinalysis.getNoSample()!= null)
        form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());
    if(voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);  
    form.dtimRecordingDateTime().setValue(null);
    if(voUrinalysis.getRecordingInformationIsNotNull()){
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if(mos!=null){
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);   
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

    DateTime datim = voUrinalysis.getSysInfo().getCreationDateTime();

    if (datim != null)
    {
        Date date = datim.getDate();
        Time time = datim.getTime();
        form.dteRecords().setValue(date);
        form.timRecords().setValue(time);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void rdoValueChanged() 
{
    // Keep the selection
    if (GenForm.grpFilterByEnumeration.rdoActive.equals(form.grpFilterBy().getValue()))
    {
        form.getLocalContext().setActiveOnly(Boolean.TRUE);
    }
    else
    {
        form.getLocalContext().setActiveOnly(Boolean.FALSE);
    }

    //List the Urinalysis records based on the filter selected
    UrinalysisCollection voUrinalysisColl;

    try {
        Urinalysis voUrinalysis= new Urinalysis();
        voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
        voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        if (form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
            voUrinalysis.setIsActive(Boolean.TRUE);
        else
            voUrinalysis.setIsActive(null);

        voUrinalysisColl = domain.listUrinanalysis(voUrinalysis);

        form.getGlobalContext().Core.setUrinalysisSearchCriteria(voUrinalysis); // WDEV-19389 
    } catch (DomainInterfaceException e) {
        engine.showMessage("DomainInterfaceException occurred listing referrals " + e.getMessage());
        return;
    }
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    int nCount = voUrinalysisColl.size();
    form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        form.btnUpdate().setEnabled(false);
        return;
    }

    populateScreen(voUrinalysisColl.get(0)); 
    setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());

    form.getLocalContext().setVoCollUrinanalysis(voUrinalysisColl);

    form.btnUpdate().setEnabled(true);
    //open();
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControlsFromData(Urinalysis voUrinalysis)
{
    clearScreen();

    if (voUrinalysis == null)
        return;

    voUrinalysis = domain.getUrinalysis(voUrinalysis);

    form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));

    form.cmbPH().setValue(voUrinalysis.getPH());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());

    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());

    if (voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);
    form.dtimRecordingDateTime().setValue(null);

    if (voUrinalysis.getRecordingInformationIsNotNull())
    {
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if (mos != null)
        {
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    UrinalysisCollection voCollUrinanalysis = new UrinalysisCollection();

    Urinalysis voUrinalysis = new Urinalysis();
    voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (form.grpFilterBy().getValue() != null && form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
        voUrinalysis.setIsActive(Boolean.TRUE);

    try 
    {
        voCollUrinanalysis = domain.listUrinanalysis(voUrinalysis); 
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("DomainInterfaceException occurred listing Urinanalysis " + e.getMessage());
        return;
    }


    form.btnUpdate().setEnabled(false);

    if (voCollUrinanalysis == null)
        return;

    int nCount = voCollUrinanalysis.size();

    if(form.getLocalContext().getIndex() == null)
        form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        return;
    }

    if (nCount > form.getLocalContext().getIndex().intValue())
    {
        populateScreen(voCollUrinanalysis.get(form.getLocalContext().getIndex().intValue()));   
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
    }
    else
    {
        populateScreen(voCollUrinanalysis.get(nCount - 1));
        setPrevNextBtnStatus(nCount, nCount - 1);
    }


    form.getLocalContext().setVoCollUrinanalysis(voCollUrinanalysis);
    form.btnUpdate().setEnabled(true);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(Urinalysis voUrinalysis)
{
    //WDEV-15285
    clearDetails();
    form.chkNoSample().setValue(null);

    form.getLocalContext().setVoUrinanalysis(voUrinalysis);

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));     
    form.cmbPH().setValue(voUrinalysis.getPH());
    if(voUrinalysis.getNoAbnormalityDetected() != null)
        form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());
    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());
    if(voUrinalysis.getNoSample()!= null)
        form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());
    if(voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);  
    form.dtimRecordingDateTime().setValue(null);
    if(voUrinalysis.getRecordingInformationIsNotNull()){
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if(mos!=null){
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);   
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

    DateTime datim = voUrinalysis.getSysInfo().getCreationDateTime();

    if (datim != null)
    {
        Date date = datim.getDate();
        Time time = datim.getTime();
        form.dteRecords().setValue(date);
        form.timRecords().setValue(time);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void rdoValueChanged() 
{
    // Keep the selection
    if (GenForm.grpFilterByEnumeration.rdoActive.equals(form.grpFilterBy().getValue()))
    {
        form.getLocalContext().setActiveOnly(Boolean.TRUE);
    }
    else
    {
        form.getLocalContext().setActiveOnly(Boolean.FALSE);
    }

    //List the Urinalysis records based on the filter selected
    UrinalysisCollection voUrinalysisColl;

    try {
        Urinalysis voUrinalysis= new Urinalysis();
        voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
        voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        if (form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
            voUrinalysis.setIsActive(Boolean.TRUE);
        else
            voUrinalysis.setIsActive(null);

        voUrinalysisColl = domain.listUrinanalysis(voUrinalysis);
    } catch (DomainInterfaceException e) {
        engine.showMessage("DomainInterfaceException occurred listing referrals " + e.getMessage());
        return;
    }
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    int nCount = voUrinalysisColl.size();
    form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        form.btnUpdate().setEnabled(false);
        return;
    }

    populateScreen(voUrinalysisColl.get(0)); 
    setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());

    form.getLocalContext().setVoCollUrinanalysis(voUrinalysisColl);

    form.btnUpdate().setEnabled(true);
    //open();
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControlsFromData(Urinalysis voUrinalysis)
{
    clearScreen();

    if (voUrinalysis == null)
        return;

    voUrinalysis = domain.getUrinalysis(voUrinalysis);

    form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));

    form.cmbPH().setValue(voUrinalysis.getPH());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());

    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());

    if (voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);
    form.dtimRecordingDateTime().setValue(null);

    if (voUrinalysis.getRecordingInformationIsNotNull())
    {
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if (mos != null)
        {
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void open() 
{
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    UrinalysisCollection voCollUrinanalysis = new UrinalysisCollection();

    Urinalysis voUrinalysis = new Urinalysis();
    voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    if (form.grpFilterBy().getValue() != null && form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
        voUrinalysis.setIsActive(Boolean.TRUE);

    try 
    {
        voCollUrinanalysis = domain.listUrinanalysis(voUrinalysis); 
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("DomainInterfaceException occurred listing Urinanalysis " + e.getMessage());
        return;
    }


    form.btnUpdate().setEnabled(false);

    if (voCollUrinanalysis == null)
        return;

    int nCount = voCollUrinanalysis.size();

    if(form.getLocalContext().getIndex() == null)
        form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        return;
    }

    if (nCount > form.getLocalContext().getIndex().intValue())
    {
        populateScreen(voCollUrinanalysis.get(form.getLocalContext().getIndex().intValue()));   
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
    }
    else
    {
        populateScreen(voCollUrinanalysis.get(nCount - 1));
        setPrevNextBtnStatus(nCount, nCount - 1);
    }


    form.getLocalContext().setVoCollUrinanalysis(voCollUrinanalysis);
    form.btnUpdate().setEnabled(true);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreen(Urinalysis voUrinalysis)
{
    //WDEV-15285
    clearDetails();
    form.chkNoSample().setValue(null);

    form.getLocalContext().setVoUrinanalysis(voUrinalysis);

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));     
    form.cmbPH().setValue(voUrinalysis.getPH());
    if(voUrinalysis.getNoAbnormalityDetected() != null)
        form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());
    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());
    if(voUrinalysis.getNoSample()!= null)
        form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());
    if(voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);  
    form.dtimRecordingDateTime().setValue(null);
    if(voUrinalysis.getRecordingInformationIsNotNull()){
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if(mos!=null){
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);   
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

    DateTime datim = voUrinalysis.getSysInfo().getCreationDateTime();

    if (datim != null)
    {
        Date date = datim.getDate();
        Time time = datim.getTime();
        form.dteRecords().setValue(date);
        form.timRecords().setValue(time);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void rdoValueChanged() 
{
    // Keep the selection
    if (GenForm.grpFilterByEnumeration.rdoActive.equals(form.grpFilterBy().getValue()))
    {
        form.getLocalContext().setActiveOnly(Boolean.TRUE);
    }
    else
    {
        form.getLocalContext().setActiveOnly(Boolean.FALSE);
    }

    //List the Urinalysis records based on the filter selected
    UrinalysisCollection voUrinalysisColl;

    try {
        Urinalysis voUrinalysis= new Urinalysis();
        voUrinalysis.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
        voUrinalysis.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        if (form.grpFilterBy().getValue().equals(GenForm.grpFilterByEnumeration.rdoActive))
            voUrinalysis.setIsActive(Boolean.TRUE);
        else
            voUrinalysis.setIsActive(null);

        voUrinalysisColl = domain.listUrinanalysis(voUrinalysis);
    } catch (DomainInterfaceException e) {
        engine.showMessage("DomainInterfaceException occurred listing referrals " + e.getMessage());
        return;
    }
    form.getLocalContext().setVoUrinanalysis(null);
    clearScreen();
    form.chkNoSample().setValue(false);
    setMode(false);

    int nCount = voUrinalysisColl.size();
    form.getLocalContext().setIndex(new Integer(0));

    if (nCount == 0)
    {
        setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());
        form.btnUpdate().setEnabled(false);
        return;
    }

    populateScreen(voUrinalysisColl.get(0)); 
    setPrevNextBtnStatus(nCount, form.getLocalContext().getIndex().intValue());

    form.getLocalContext().setVoCollUrinanalysis(voUrinalysisColl);

    form.btnUpdate().setEnabled(true);
    //open();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceControlsFromData(Urinalysis voUrinalysis)
{
    clearScreen();

    if (voUrinalysis == null)
        return;

    voUrinalysis = domain.getUrinalysis(voUrinalysis);

    form.chkNoSample().setValue(voUrinalysis.getNoSample().booleanValue());
    form.chkNoAbnormality().setValue(voUrinalysis.getNoAbnormalityDetected().booleanValue());

    form.grpLeucocytes().setValue(populateLeucocytes(voUrinalysis.getLeucocytes()));
    form.grpProtein().setValue(populateProtein(voUrinalysis.getProtein()));
    form.grpBlood().setValue(populateBlood(voUrinalysis.getBlood()));
    form.grpKetones().setValue(populateKetones(voUrinalysis.getKetones()));
    form.grpGlu().setValue(populateGlucose(voUrinalysis.getGlucose()));
    form.grpAscorbic().setValue(populateAscorbicAcid(voUrinalysis.getAscorbicAcid()));
    form.grpBil().setValue(populateBilirubin(voUrinalysis.getBilirubin()));
    form.grpUbg().setValue(populateUrobilinogen(voUrinalysis.getUrobilinogen()));
    form.grpNitrate().setValue(populateNitrate(voUrinalysis.getNitrate()));

    form.cmbPH().setValue(voUrinalysis.getPH());
    form.decSpecificGravity().setValue(voUrinalysis.getSpecificGravity());

    form.chkInactive().setValue(!voUrinalysis.getIsActive().booleanValue());

    if (voUrinalysis.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voUrinalysis.getAuthoringInformation());
    else
        form.customControlAuthoringInfo().setValue(null);

    form.cmbRecordingHCP().setValue(null);
    form.dtimRecordingDateTime().setValue(null);

    if (voUrinalysis.getRecordingInformationIsNotNull())
    {
        MemberOfStaffLiteVo mos = voUrinalysis.getRecordingInformation().getRecordingUser();
        if (mos != null)
        {
            form.cmbRecordingHCP().newRow(mos, mos.toString());
            form.cmbRecordingHCP().setValue(mos);
        }
        form.dtimRecordingDateTime().setValue(voUrinalysis.getRecordingInformation().getRecordingDateTime());
    }

}