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

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

    VSVisualAcuity voVisual = new VSVisualAcuity();

    voVisual.setLeftValue(String.valueOf(form.cmbLeft().getValue().getID()));
    voVisual.setRightValue(String.valueOf(form.cmbRight().getValue().getID()));

    voVitalSign.setVisualAcuity(voVisual);

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

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

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

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

    VSVisualAcuity voVisual = new VSVisualAcuity();

    voVisual.setLeftValue(String.valueOf(form.cmbLeft().getValue().getID()));
    voVisual.setRightValue(String.valueOf(form.cmbRight().getValue().getID()));

    voVitalSign.setVisualAcuity(voVisual);

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

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

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

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

    VSVisualAcuity voVisual = new VSVisualAcuity();

    voVisual.setLeftValue(String.valueOf(form.cmbLeft().getValue().getID()));
    voVisual.setRightValue(String.valueOf(form.cmbRight().getValue().getID()));

    voVitalSign.setVisualAcuity(voVisual);

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

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

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

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

    VSVisualAcuity voVisual = new VSVisualAcuity();

    voVisual.setLeftValue(String.valueOf(form.cmbLeft().getValue().getID()));
    voVisual.setRightValue(String.valueOf(form.cmbRight().getValue().getID()));

    voVitalSign.setVisualAcuity(voVisual);

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

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

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

    dateIntervalStatus();       
}