Java 类ims.clinical.vo.SubProceduresVo 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    IClinicalCodingValue result = form.customControlCodingItem().getValue();        
    String[] errors = validateUIRules();
    if (errors != null && errors.length > 0)
    {
            engine.showErrors(errors);
            return;

    }

    ValueObject vo = result.getIClinicalCodingValue();
    if(vo instanceof ProcedureLiteVo)
    {
        SubProceduresVo voSub = new SubProceduresVo();
        voSub.setProcedure((ProcedureLiteVo) result.getIClinicalCodingValue());
        voSub.setSubProcedureDescription(result.getIClinicalCodingValueDescription());
        form.getGlobalContext().Clinical.setSelectedSubProcedure(voSub);
    }
    else
    {
        throw new CodingRuntimeException("ProcedureLiteVo expected from component");
    }

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    IClinicalCodingValue result = form.customControlCodingItem().getValue();        
    String[] errors = validateUIRules();
    if (errors != null && errors.length > 0)
    {
            engine.showErrors(errors);
            return;

    }

    ValueObject vo = result.getIClinicalCodingValue();
    if(vo instanceof ProcedureLiteVo)
    {
        SubProceduresVo voSub = new SubProceduresVo();
        voSub.setProcedure((ProcedureLiteVo) result.getIClinicalCodingValue());
        voSub.setSubProcedureDescription(result.getIClinicalCodingValueDescription());
        form.getGlobalContext().Clinical.setSelectedSubProcedure(voSub);
    }
    else
    {
        throw new CodingRuntimeException("ProcedureLiteVo expected from component");
    }

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    IClinicalCodingValue result = form.customControlCodingItem().getValue();        
    String[] errors = validateUIRules();
    if (errors != null && errors.length > 0)
    {
            engine.showErrors(errors);
            return;

    }

    ValueObject vo = result.getIClinicalCodingValue();
    if(vo instanceof ProcedureLiteVo)
    {
        SubProceduresVo voSub = new SubProceduresVo();
        voSub.setProcedure((ProcedureLiteVo) result.getIClinicalCodingValue());
        voSub.setSubProcedureDescription(result.getIClinicalCodingValueDescription());
        form.getGlobalContext().Clinical.setSelectedSubProcedure(voSub);
    }
    else
    {
        throw new CodingRuntimeException("ProcedureLiteVo expected from component");
    }

    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    IClinicalCodingValue result = form.customControlCodingItem().getValue();        
    String[] errors = validateUIRules();
    if (errors != null && errors.length > 0)
    {
            engine.showErrors(errors);
            return;

    }

    ValueObject vo = result.getIClinicalCodingValue();
    if(vo instanceof ProcedureLiteVo)
    {
        SubProceduresVo voSub = new SubProceduresVo();
        voSub.setProcedure((ProcedureLiteVo) result.getIClinicalCodingValue());
        voSub.setSubProcedureDescription(result.getIClinicalCodingValueDescription());
        form.getGlobalContext().Clinical.setSelectedSubProcedure(voSub);
    }
    else
    {
        throw new CodingRuntimeException("ProcedureLiteVo expected from component");
    }

    engine.close(DialogResult.OK);
}