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

项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initialize();
    //wdev-13392
    form.setMode(FormMode.VIEW);
    form.dyngrdSecs().setSelectable(true);
    populateParameterCombo(null);
    SECSVoCollection tempVoCol =  domain.getSecsColection();
    SECSVo tempVo = null;
    if(tempVoCol != null && tempVoCol.size() > 0)
    {
        tempVo = tempVoCol.get(0);
        if(tempVoCol.size() > 1)
            engine.showMessage("There are more than one SECS Configuration records in database");
    }
    populateScreenFromData(tempVo);
    //-------------------
    //open();       
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(SECSVo secs)
{
    clear();

    if(secs != null)
    {
        form.getLocalContext().setSelectedInstance(secs);
        form.intTotalScore().setValue(secs.getEWSTriggerScore());
        if(secs.getEWSProtocolIsNotNull())
            form.txtProtocol().setValue(secs.getEWSProtocol().getName());

        populateGridFromData(secs.getConfiguration());

        form.btnNew().setEnabled(false);
        form.btnUpdate().setEnabled(true);
    }
    else
    {
        form.btnNew().setEnabled(true);
        form.btnUpdate().setEnabled(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initialize();
    //wdev-13392
    form.setMode(FormMode.VIEW);
    form.dyngrdSecs().setSelectable(true);
    populateParameterCombo(null);
    SECSVoCollection tempVoCol =  domain.getSecsColection();
    SECSVo tempVo = null;
    if(tempVoCol != null && tempVoCol.size() > 0)
    {
        tempVo = tempVoCol.get(0);
        if(tempVoCol.size() > 1)
            engine.showMessage("There are more than one SECS Configuration records in database");
    }
    populateScreenFromData(tempVo);
    //-------------------
    //open();       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(SECSVo secs)
{
    clear();

    if(secs != null)
    {
        form.getLocalContext().setSelectedInstance(secs);

        form.cmbOBSProtocolType().setValue(secs.getOBSProtocolType());//WDEV-20237
        form.lblTotalScore().setValue("Score which triggers " + form.cmbOBSProtocolType().getValue()!=null ? form.cmbOBSProtocolType().getValue().getText() : "MEWS" + " Protocol:");//WDEV-20237

        form.intTotalScore().setValue(secs.getEWSTriggerScore());
        if(secs.getEWSProtocolIsNotNull())
            form.txtProtocol().setValue(secs.getEWSProtocol().getName());

        populateGridFromData(secs.getConfiguration());

        form.btnNew().setEnabled(false);
        form.btnUpdate().setEnabled(true);
    }
    else
    {
        form.btnNew().setEnabled(true);
        form.btnUpdate().setEnabled(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initialize();
    //wdev-13392
    form.setMode(FormMode.VIEW);
    form.dyngrdSecs().setSelectable(true);
    populateParameterCombo(null);
    SECSVoCollection tempVoCol =  domain.getSecsColection();
    SECSVo tempVo = null;
    if(tempVoCol != null && tempVoCol.size() > 0)
    {
        tempVo = tempVoCol.get(0);
        if(tempVoCol.size() > 1)
            engine.showMessage("There are more than one SECS Configuration records in database");
    }
    populateScreenFromData(tempVo);
    //-------------------
    //open();       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(SECSVo secs)
{
    clear();

    if(secs != null)
    {
        form.getLocalContext().setSelectedInstance(secs);
        form.intTotalScore().setValue(secs.getEWSTriggerScore());
        if(secs.getEWSProtocolIsNotNull())
            form.txtProtocol().setValue(secs.getEWSProtocol().getName());

        populateGridFromData(secs.getConfiguration());

        form.btnNew().setEnabled(false);
        form.btnUpdate().setEnabled(true);
    }
    else
    {
        form.btnNew().setEnabled(true);
        form.btnUpdate().setEnabled(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initialize();
    //wdev-13392
    form.setMode(FormMode.VIEW);
    form.dyngrdSecs().setSelectable(true);
    populateParameterCombo(null);
    SECSVoCollection tempVoCol =  domain.getSecsColection();
    SECSVo tempVo = null;
    if(tempVoCol != null && tempVoCol.size() > 0)
    {
        tempVo = tempVoCol.get(0);
        if(tempVoCol.size() > 1)
            engine.showMessage("There are more than one SECS Configuration records in database");
    }
    populateScreenFromData(tempVo);
    //-------------------
    //open();       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(SECSVo secs)
{
    clear();

    if(secs != null)
    {
        form.getLocalContext().setSelectedInstance(secs);
        form.intTotalScore().setValue(secs.getEWSTriggerScore());
        if(secs.getEWSProtocolIsNotNull())
            form.txtProtocol().setValue(secs.getEWSProtocol().getName());

        populateGridFromData(secs.getConfiguration());

        form.btnNew().setEnabled(false);
        form.btnUpdate().setEnabled(true);
    }
    else
    {
        form.btnNew().setEnabled(true);
        form.btnUpdate().setEnabled(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
public void newInstance() throws ims.framework.exceptions.PresentationLogicException
{
    if (allowNew())
    {
        form.getLocalContext().setSelectedInstance(new SECSVo());
        form.intTotalScore().setValue(null);
        form.txtProtocol().setValue(null);
        clearConfigInstanceControls();
        form.dyngrdSecs().setValue(null);
        form.setMode(FormMode.EDIT);
    }
}
项目:AvoinApotti    文件:SECSConfigImpl.java   
/**
 * There will only be one secs record
 */
public SECSVo getSecs()             //wdev-13392
{
    List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc ");
    SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392
    if(secsVoColl != null && secsVoColl.size() > 0)
        return secsVoColl.get(0);
    return null;
}
项目:AvoinApotti    文件:SECSConfigImpl.java   
public SECSVo saveSECS(SECSVo voSecs) throws StaleObjectException,UniqueKeyViolationException
{
    if(voSecs == null)
        throw new CodingRuntimeException("voSecs parameter is null in method saveSECS");
    if(!voSecs.isValidated())
        throw new CodingRuntimeException("voSecs has not been validated");


    DomainFactory factory = getDomainFactory();
    //wdev-13392
    if(voSecs.getID_SECS() == null)
    {

        SECSVoCollection list = getSecsConfiguration();
        if(list != null && list.size() > 0)
        {
            throw new UniqueKeyViolationException("A SECS Configuration already exists.");

        }

    }
    //---------------

    SECS doSecs = SECSVoAssembler.extractSECS(factory, voSecs);
    factory.save(doSecs);

    return SECSVoAssembler.create(doSecs);
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance() throws ims.framework.exceptions.PresentationLogicException
{
    if (allowNew())
    {
        form.getLocalContext().setSelectedInstance(new SECSVo());
        form.intTotalScore().setValue(null);
        form.txtProtocol().setValue(null);
        clearConfigInstanceControls();
        form.dyngrdSecs().setValue(null);
        form.setMode(FormMode.EDIT);

        form.cmbOBSProtocolType().setValue(OBSProtocolType.MEWS); //WDEV-20237
    }
}
项目:openMAXIMS    文件:VitalSignsObservationProtocolImpl.java   
public SECSVo getSecs()             //wdev-13392
{
    List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc ");
    SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392
    if(secsVoColl != null && secsVoColl.size() > 0)
        return secsVoColl.get(0);
    return null;
}
项目:openMAXIMS    文件:VitalSignsObservationProtocolImpl.java   
public SECSVo saveSECS(SECSVo voSecs) throws StaleObjectException,UniqueKeyViolationException
{
    if(voSecs == null)
        throw new CodingRuntimeException("voSecs parameter is null in method saveSECS");
    if(!voSecs.isValidated())
        throw new CodingRuntimeException("voSecs has not been validated");


    DomainFactory factory = getDomainFactory();
    //wdev-13392
    if(voSecs.getID_SECS() == null)
    {

        SECSVoCollection list = getSecsConfiguration();
        if(list != null && list.size() > 0)
        {
            throw new UniqueKeyViolationException("A SECS Configuration already exists.");

        }

    }
    //---------------

    SECS doSecs = SECSVoAssembler.extractSECS(factory, voSecs);
    factory.save(doSecs);

    return SECSVoAssembler.create(doSecs);
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance() throws ims.framework.exceptions.PresentationLogicException
{
    if (allowNew())
    {
        form.getLocalContext().setSelectedInstance(new SECSVo());
        form.intTotalScore().setValue(null);
        form.txtProtocol().setValue(null);
        clearConfigInstanceControls();
        form.dyngrdSecs().setValue(null);
        form.setMode(FormMode.EDIT);
    }
}
项目:openMAXIMS    文件:SECSConfigImpl.java   
/**
 * There will only be one secs record
 */
public SECSVo getSecs()             //wdev-13392
{
    List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc ");
    SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392
    if(secsVoColl != null && secsVoColl.size() > 0)
        return secsVoColl.get(0);
    return null;
}
项目:openMAXIMS    文件:SECSConfigImpl.java   
public SECSVo saveSECS(SECSVo voSecs) throws StaleObjectException,UniqueKeyViolationException
{
    if(voSecs == null)
        throw new CodingRuntimeException("voSecs parameter is null in method saveSECS");
    if(!voSecs.isValidated())
        throw new CodingRuntimeException("voSecs has not been validated");


    DomainFactory factory = getDomainFactory();
    //wdev-13392
    if(voSecs.getID_SECS() == null)
    {

        SECSVoCollection list = getSecsConfiguration();
        if(list != null && list.size() > 0)
        {
            throw new UniqueKeyViolationException("A SECS Configuration already exists.");

        }

    }
    //---------------

    SECS doSecs = SECSVoAssembler.extractSECS(factory, voSecs);
    factory.save(doSecs);

    return SECSVoAssembler.create(doSecs);
}
项目:openmaxims-linux    文件:Logic.java   
public void newInstance() throws ims.framework.exceptions.PresentationLogicException
{
    if (allowNew())
    {
        form.getLocalContext().setSelectedInstance(new SECSVo());
        form.intTotalScore().setValue(null);
        form.txtProtocol().setValue(null);
        clearConfigInstanceControls();
        form.dyngrdSecs().setValue(null);
        form.setMode(FormMode.EDIT);
    }
}
项目:openmaxims-linux    文件:SECSConfigImpl.java   
/**
 * There will only be one secs record
 */
public SECSVo getSecs()             //wdev-13392
{
    List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc ");
    SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392
    if(secsVoColl != null && secsVoColl.size() > 0)
        return secsVoColl.get(0);
    return null;
}
项目:openmaxims-linux    文件:SECSConfigImpl.java   
public SECSVo saveSECS(SECSVo voSecs) throws StaleObjectException,UniqueKeyViolationException
{
    if(voSecs == null)
        throw new CodingRuntimeException("voSecs parameter is null in method saveSECS");
    if(!voSecs.isValidated())
        throw new CodingRuntimeException("voSecs has not been validated");


    DomainFactory factory = getDomainFactory();
    //wdev-13392
    if(voSecs.getID_SECS() == null)
    {

        SECSVoCollection list = getSecsConfiguration();
        if(list != null && list.size() > 0)
        {
            throw new UniqueKeyViolationException("A SECS Configuration already exists.");

        }

    }
    //---------------

    SECS doSecs = SECSVoAssembler.extractSECS(factory, voSecs);
    factory.save(doSecs);

    return SECSVoAssembler.create(doSecs);
}
项目:AvoinApotti    文件:Logic.java   
private void populateDataFromScreen(SECSVo voSecs)
{
    voSecs.setEWSTriggerScore(form.intTotalScore().getValue());
    voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration()));
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:AvoinApotti    文件:VitalSignsBaselineAndAllImpl.java   
public ims.clinical.vo.SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromScreen(SECSVo voSecs)
{
    voSecs.setOBSProtocolType(form.cmbOBSProtocolType().getValue()); //WDEV-20237
    voSecs.setEWSTriggerScore(form.intTotalScore().getValue());
    voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration()));
}
项目:openMAXIMS    文件:VitalSignsImpl.java   
public SECSVo getSecs()
{
    VitalSignsObservationProtocol impl = (VitalSignsObservationProtocol) getDomainImpl(VitalSignsObservationProtocolImpl.class);//WDEV-20237
    return impl.getSecs();
}
项目:openMAXIMS    文件:TrackingImpl.java   
public SECSVo getSECS()
{
    VitalSignsAll vs = (VitalSignsAll)getDomainImpl(VitalSignsImpl.class);
    return vs.getSecs();
}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromScreen(SECSVo voSecs)
{
    voSecs.setEWSTriggerScore(form.intTotalScore().getValue());
    voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration()));
}
项目:openMAXIMS    文件:VitalSignsImpl.java   
public SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
public ims.clinical.vo.SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDataFromScreen(SECSVo voSecs)
{
    voSecs.setEWSTriggerScore(form.intTotalScore().getValue());
    voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration()));
}
项目:openmaxims-linux    文件:VitalSignsImpl.java   
public SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:openmaxims-linux    文件:VitalSignsBaselineAndAllImpl.java   
public ims.clinical.vo.SECSVo getSecs()
{
    SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class);
    return impl.getSecs();
}
项目:openMAXIMS    文件:SECSImpl.java   
/** private InpatientEpisode getCurrentInpatientEpisode(DomainFactory factory, CareContext careContext)
{
    if (careContext == null || careContext.getPasEvent() == null)
        return null;
    String hql = "select inpat from InpatientEpisode inpat left join inpat.pasEvent as pevent where pevent.id = :PAS_EVENT";

    DomainObject inpatDO = factory.findFirst(hql, "PAS_EVENT", careContext.getPasEvent().getId());

    return inpatDO instanceof InpatientEpisode ? (InpatientEpisode) inpatDO : null;
}*/

//WDEV-20311
public SECSVo getSECSConfig()
{
    VitalSignsObservationProtocol impl = (VitalSignsObservationProtocol) getDomainImpl(VitalSignsObservationProtocolImpl.class);//WDEV-20237
    return impl.getSecs();
}