Java 类ims.core.vo.enums.MOSQueryEvent 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.ccConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant();
        }
        else //WDEV-16214
        {
            form.cmbCCOSpecialty().clear();
            form.cmbSpecialty().clear();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.ccConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant();
        }
        else //WDEV-16214
        {
            form.cmbCCOSpecialty().clear();
            form.cmbSpecialty().clear();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.ccConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant();
        }
        else //WDEV-16214
        {
            form.cmbCCOSpecialty().clear();
            form.cmbSpecialty().clear();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcConsultantAcceptingValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getValue(), ACCEPTING_CONSULTANT, null, null);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcInConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getValue(), IN_CONSULTANT, null, null);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcInfantConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getValue(), INFANT_CONSULTANT, null, null);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcOutConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getValue(), OUT_CONSULTANT, null, null);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcCurrentRespClinValueChanged() throws PresentationLogicException
{
    if (MOSQueryEvent.VALUE_CHANGED.equals(form.ccCurrentRespClin().getEventFired()))
    {
        form.chkOutpatientOrders().setValue(false);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcConsultantAcceptingValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getEventFired();

    if (MOSQueryEvent.VALUE_CHANGED.equals(event))
    {
        if (!ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS"))
        {   
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getValue(), ACCEPTING_CONSULTANT, null, null);
        }       
    }       
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcInConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getEventFired();

    if (MOSQueryEvent.VALUE_CHANGED.equals(event))
    {
        if (!ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS"))
        {   
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getValue(), IN_CONSULTANT, null, null);
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcInfantConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getValue(), INFANT_CONSULTANT, null, null);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcOutConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getEventFired();

    if (MOSQueryEvent.VALUE_CHANGED.equals(event))
    {
        if (!ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS"))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getValue(), OUT_CONSULTANT, null, null);
        }                   
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcCurrentRespClinValueChanged() throws PresentationLogicException
{
    if (MOSQueryEvent.VALUE_CHANGED.equals(form.ccCurrentRespClin().getEventFired()))
    {
        form.chkOutpatientOrders().setValue(false);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcConsultantAcceptingValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getValue(), ACCEPTING_CONSULTANT, null, null);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcInConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getValue(), IN_CONSULTANT, null, null);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcInfantConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getValue(), INFANT_CONSULTANT, null, null);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcOutConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getValue(), OUT_CONSULTANT, null, null);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcCurrentRespClinValueChanged() throws PresentationLogicException
{
    if (MOSQueryEvent.VALUE_CHANGED.equals(form.ccCurrentRespClin().getEventFired()))
    {
        form.chkOutpatientOrders().setValue(false);
    }

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcConsultantAcceptingValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().ccConsultantAccepting().getValue(), ACCEPTING_CONSULTANT, null, null);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcInConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().getValue(), IN_CONSULTANT, null, null);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcInfantConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabInfants().lyrInfants().tabInfantTransfer().ccInfantConsultant().getValue(), INFANT_CONSULTANT, null, null);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcOutConsultantValueChanged() throws PresentationLogicException
{
    MOSQueryEvent event = form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getEventFired();
    if(event != null)
    {
        if(event.equals(MOSQueryEvent.VALUE_CHANGED))
        {
            listSpecialtiesForConsultant(form.lyrDetail().tabTransfer().lyrTransfer().tabOut().ccOutConsultant().getValue(), OUT_CONSULTANT, null, null);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcCurrentRespClinValueChanged() throws PresentationLogicException
{
    if (MOSQueryEvent.VALUE_CHANGED.equals(form.ccCurrentRespClin().getEventFired()))
    {
        form.chkOutpatientOrders().setValue(false);
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbMOSTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.TEXT_SUBMITTED);

    if (value == null || (value != null && value.length() < form.getLocalContext().getMinNumChars()))
    {
        engine.showMessage("Please enter at least " + form.getLocalContext().getMinNumChars() + " characters to search upon");
        return;
    }

    //WDEV-15687
    IMos[] mosColl =null;
    if (form.getLocalContext().getMedicGradeIsNotNull())
    {
        mosColl=domain.listMedics(value,form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMedicGrade(), form.getLocalContext().getIsResponsibleHcp());
    }
    else
    {
        mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());   //WDEV-12587 //WDEV-15544  //WDEV-15194
    }
    //IMos[] mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());  //WDEV-12587 //WDEV-15544  //WDEV-15194

    if(mosColl == null)
         return;

    form.qmbMOS().setValue(null);
    form.qmbMOS().clear();

    for(int i=0; i<mosColl.length; i++)
    {
        form.qmbMOS().newRow(mosColl[i], mosColl[i].getIMosName());
    }
    if(mosColl.length == 1)
    {
        form.qmbMOS().setValue(mosColl[0]);
        form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
    }
    if(mosColl.length > 1)
    {
        form.qmbMOS().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbMOSValueChanged() throws PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
}
项目:AvoinApotti    文件:Logic.java   
public MOSQueryEvent getEventFired()
{
    return form.getLocalContext().getEventFired();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbMOSTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.TEXT_SUBMITTED);

    if (value == null || (value != null && value.length() < form.getLocalContext().getMinNumChars()))
    {
        engine.showMessage("Please enter at least " + form.getLocalContext().getMinNumChars() + " characters to search upon");
        return;
    }

    //WDEV-15687
    IMos[] mosColl =null;
    if (form.getLocalContext().getMedicGradeIsNotNull() || Boolean.TRUE.equals(form.getLocalContext().getIsMedic())) //WDEV-21788
    {
        mosColl=domain.listMedics(value,form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMedicGrade(), form.getLocalContext().getIsResponsibleHcp());
    }
    else
    {
        mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultant(),form.getLocalContext().getIsResponsibleHcp(), form.getLocalContext().getService(), form.getLocalContext().getFunction()); //WDEV-12587 //WDEV-15544  //WDEV-15194
    }
    //IMos[] mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());  //WDEV-12587 //WDEV-15544  //WDEV-15194

    if(mosColl == null)
         return;

    form.qmbMOS().setValue(null);
    form.qmbMOS().clear();

    for(int i=0; i<mosColl.length; i++)
    {
        form.qmbMOS().newRow(mosColl[i], mosColl[i].getIMosName());
    }
    if(mosColl.length == 1)
    {
        form.qmbMOS().setValue(mosColl[0]);
        form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
    }
    if(mosColl.length > 1)
    {
        form.qmbMOS().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbMOSValueChanged() throws PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
}
项目:openMAXIMS    文件:Logic.java   
public MOSQueryEvent getEventFired()
{
    return form.getLocalContext().getEventFired();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbMOSTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.TEXT_SUBMITTED);

    if (value == null || (value != null && value.length() < form.getLocalContext().getMinNumChars()))
    {
        engine.showMessage("Please enter at least " + form.getLocalContext().getMinNumChars() + " characters to search upon");
        return;
    }

    //WDEV-15687
    IMos[] mosColl =null;
    if (form.getLocalContext().getMedicGradeIsNotNull())
    {
        mosColl=domain.listMedics(value,form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMedicGrade(), form.getLocalContext().getIsResponsibleHcp());
    }
    else
    {
        mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());   //WDEV-12587 //WDEV-15544  //WDEV-15194
    }
    //IMos[] mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());  //WDEV-12587 //WDEV-15544  //WDEV-15194

    if(mosColl == null)
         return;

    form.qmbMOS().setValue(null);
    form.qmbMOS().clear();

    for(int i=0; i<mosColl.length; i++)
    {
        form.qmbMOS().newRow(mosColl[i], mosColl[i].getIMosName());
    }
    if(mosColl.length == 1)
    {
        form.qmbMOS().setValue(mosColl[0]);
        form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
    }
    if(mosColl.length > 1)
    {
        form.qmbMOS().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbMOSValueChanged() throws PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
}
项目:openMAXIMS    文件:Logic.java   
public MOSQueryEvent getEventFired()
{
    return form.getLocalContext().getEventFired();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbMOSTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.TEXT_SUBMITTED);

    if (value == null || (value != null && value.length() < form.getLocalContext().getMinNumChars()))
    {
        engine.showMessage("Please enter at least " + form.getLocalContext().getMinNumChars() + " characters to search upon");
        return;
    }

    //WDEV-15687
    IMos[] mosColl =null;
    if (form.getLocalContext().getMedicGradeIsNotNull())
    {
        mosColl=domain.listMedics(value,form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMedicGrade(), form.getLocalContext().getIsResponsibleHcp());
    }
    else
    {
        mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());   //WDEV-12587 //WDEV-15544  //WDEV-15194
    }
    //IMos[] mosColl = domain.listMOS(value, form.getLocalContext().getMOSSearchType(), form.getLocalContext().getMosDiscipline(), form.getLocalContext().getMOSLocation(), form.getLocalContext().getCanReferPatient(),form.getLocalContext().getIsALocalConsultanrt(),form.getLocalContext().getIsResponsibleHcp());  //WDEV-12587 //WDEV-15544  //WDEV-15194

    if(mosColl == null)
         return;

    form.qmbMOS().setValue(null);
    form.qmbMOS().clear();

    for(int i=0; i<mosColl.length; i++)
    {
        form.qmbMOS().newRow(mosColl[i], mosColl[i].getIMosName());
    }
    if(mosColl.length == 1)
    {
        form.qmbMOS().setValue(mosColl[0]);
        form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
    }
    if(mosColl.length > 1)
    {
        form.qmbMOS().showOpened();
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onQmbMOSValueChanged() throws PresentationLogicException
{
    form.getLocalContext().setEventFired(MOSQueryEvent.VALUE_CHANGED);
}
项目:openmaxims-linux    文件:Logic.java   
public MOSQueryEvent getEventFired()
{
    return form.getLocalContext().getEventFired();
}