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

项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSTemperature voTemp = new VSTemperature();

    //voTemp.setRecordingSite(form.cmbSite().getValue());
    //voTemp.setInstrument(form.cmbInstrument().getValue());
    voTemp.setTemperature(form.decTemperature().getValue());

    voVitalSign.setTemperature(voTemp);

    String[] arrErrors = voVitalSign.validate();
    if(arrErrors == null)
    {
        try 
        {
            domain.modifyTemperature(voVitalSign);
        } catch (StaleObjectException e) {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            refresh();
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    form.getGlobalContext().Core.setVitalSign(voVitalSign);

    form.setMode(FormMode.VIEW);

    listTemperatures();

    dateIntervalStatus();

    //form.btnUpdate().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSTemperature voTemp = new VSTemperature();

    //voTemp.setRecordingSite(form.cmbSite().getValue());
    //voTemp.setInstrument(form.cmbInstrument().getValue());
    voTemp.setTemperature(form.decTemperature().getValue());

    voVitalSign.setTemperature(voTemp);

    String[] arrErrors = voVitalSign.validate();
    if(arrErrors == null)
    {
        try 
        {
            domain.modifyTemperature(voVitalSign);
        } catch (StaleObjectException e) {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            refresh();
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    form.getGlobalContext().Core.setVitalSign(voVitalSign);

    form.setMode(FormMode.VIEW);

    listTemperatures();

    dateIntervalStatus();

    //form.btnUpdate().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSTemperature voTemp = new VSTemperature();

    //voTemp.setRecordingSite(form.cmbSite().getValue());
    //voTemp.setInstrument(form.cmbInstrument().getValue());
    voTemp.setTemperature(form.decTemperature().getValue());

    voVitalSign.setTemperature(voTemp);

    String[] arrErrors = voVitalSign.validate();
    if(arrErrors == null)
    {
        try 
        {
            domain.modifyTemperature(voVitalSign);
        } catch (StaleObjectException e) {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            refresh();
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    form.getGlobalContext().Core.setVitalSign(voVitalSign);

    form.setMode(FormMode.VIEW);

    listTemperatures();

    dateIntervalStatus();

    //form.btnUpdate().setEnabled(false);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSTemperature voTemp = new VSTemperature();

    //voTemp.setRecordingSite(form.cmbSite().getValue());
    //voTemp.setInstrument(form.cmbInstrument().getValue());
    voTemp.setTemperature(form.decTemperature().getValue());

    voVitalSign.setTemperature(voTemp);

    String[] arrErrors = voVitalSign.validate();
    if(arrErrors == null)
    {
        try 
        {
            domain.modifyTemperature(voVitalSign);
        } catch (StaleObjectException e) {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            refresh();
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    form.getGlobalContext().Core.setVitalSign(voVitalSign);

    form.setMode(FormMode.VIEW);

    listTemperatures();

    dateIntervalStatus();

    //form.btnUpdate().setEnabled(false);
}