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

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

    VSPulse voPulse = new VSPulse();

    voPulse.setPulseRateRadial(form.intPulseRadial().getValue());
    voPulse.setPulseRateApex(form.intPulseApex().getValue());
    voPulse.setIsIrregular(new Boolean(form.chkIrregularPulse().getValue()));

    voVitalSign.setPulse(voPulse);

    String[] arrErrors = voVitalSign.validate();

    if (arrErrors == null)
    {
        try
        {
            domain.modifyPulse(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);
    listPulse();
    dateIntervalStatus();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSPulse voPulse = new VSPulse();

    voPulse.setPulseRateRadial(form.intPulseRadial().getValue());
    voPulse.setPulseRateApex(form.intPulseApex().getValue());
    voPulse.setIsIrregular(new Boolean(form.chkIrregularPulse().getValue()));

    voVitalSign.setPulse(voPulse);

    String[] arrErrors = voVitalSign.validate();

    if (arrErrors == null)
    {
        try
        {
            domain.modifyPulse(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);
    listPulse();
    dateIntervalStatus();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSPulse voPulse = new VSPulse();

    voPulse.setPulseRateRadial(form.intPulseRadial().getValue());
    voPulse.setPulseRateApex(form.intPulseApex().getValue());
    voPulse.setIsIrregular(new Boolean(form.chkIrregularPulse().getValue()));

    voVitalSign.setPulse(voPulse);

    String[] arrErrors = voVitalSign.validate();

    if (arrErrors == null)
    {
        try
        {
            domain.modifyPulse(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);
    listPulse();
    dateIntervalStatus();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException
{
    VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();

    VSPulse voPulse = new VSPulse();

    voPulse.setPulseRateRadial(form.intPulseRadial().getValue());
    voPulse.setPulseRateApex(form.intPulseApex().getValue());
    voPulse.setIsIrregular(new Boolean(form.chkIrregularPulse().getValue()));

    voVitalSign.setPulse(voPulse);

    String[] arrErrors = voVitalSign.validate();

    if (arrErrors == null)
    {
        try
        {
            domain.modifyPulse(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);
    listPulse();
    dateIntervalStatus();
}