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

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

    VSOxygenSaturation voOxygen = new VSOxygenSaturation();

    voOxygen.setOxygenSaturationLevel(form.intOSaturation().getValue());
    voOxygen.setFractionRate(form.intFractionRate().getValue());
    voOxygen.setIsOnFiO2(form.chkonFiO2().getValue());
    voVitalSign.setOxygenSaturation(voOxygen);

    String[] arrErrors = voVitalSign.validate(validateUIRules());
    if(arrErrors == null)
    {
        try {
            domain.modifyOxygenSaturation(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.setMode(FormMode.VIEW);

    listOxygenSats();

    form.getLocalContext().setvitalSign(voVitalSign);
    displayRecord(form.getLocalContext().getvitalSign());

    dateIntervalStatus();       
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException 
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSOxygenSaturation voOxygen = new VSOxygenSaturation();

    voOxygen.setOxygenSaturationLevel(form.intOSaturation().getValue());
    voOxygen.setFractionRate(form.intFractionRate().getValue());
    voOxygen.setIsOnFiO2(form.chkonFiO2().getValue());
    voVitalSign.setOxygenSaturation(voOxygen);

    String[] arrErrors = voVitalSign.validate(validateUIRules());
    if(arrErrors == null)
    {
        try {
            domain.modifyOxygenSaturation(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.setMode(FormMode.VIEW);

    listOxygenSats();

    form.getLocalContext().setvitalSign(voVitalSign);
    displayRecord(form.getLocalContext().getvitalSign());

    dateIntervalStatus();       
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException 
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSOxygenSaturation voOxygen = new VSOxygenSaturation();

    voOxygen.setOxygenSaturationLevel(form.intOSaturation().getValue());
    voOxygen.setFractionRate(form.intFractionRate().getValue());
    voOxygen.setIsOnFiO2(form.chkonFiO2().getValue());
    voVitalSign.setOxygenSaturation(voOxygen);

    String[] arrErrors = voVitalSign.validate(validateUIRules());
    if(arrErrors == null)
    {
        try {
            domain.modifyOxygenSaturation(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.setMode(FormMode.VIEW);

    listOxygenSats();

    form.getLocalContext().setvitalSign(voVitalSign);
    displayRecord(form.getLocalContext().getvitalSign());

    dateIntervalStatus();       
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException 
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSOxygenSaturation voOxygen = new VSOxygenSaturation();

    voOxygen.setOxygenSaturationLevel(form.intOSaturation().getValue());
    voOxygen.setFractionRate(form.intFractionRate().getValue());
    voOxygen.setIsOnFiO2(form.chkonFiO2().getValue());
    voVitalSign.setOxygenSaturation(voOxygen);

    String[] arrErrors = voVitalSign.validate(validateUIRules());
    if(arrErrors == null)
    {
        try {
            domain.modifyOxygenSaturation(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.setMode(FormMode.VIEW);

    listOxygenSats();

    form.getLocalContext().setvitalSign(voVitalSign);
    displayRecord(form.getLocalContext().getvitalSign());

    dateIntervalStatus();       
}