Java 类ims.core.vo.lookups.PASSpecialtyCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void loadCCOSpecialties(String pasMapping) 
{
    form.cmbCCOSpecialty().clear();
    if(pasMapping != null)
    {
        PASSpecialtyCollection collSpec = null;
        try
        {
            collSpec = domain.listCCOSpecialtiesFromConSpc( pasMapping );
        }
        catch (DomainInterfaceException e)
        {
            engine.showMessage("PAS Error : " + e.getMessage());
            return;
        }
        for(int i=0; collSpec != null && i<collSpec.size();i++)
        {
            PASSpecialty inst = collSpec.get(i);
            form.cmbCCOSpecialty().newRow(inst, inst.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadCCOSpecialties(String pasMapping) 
{
    form.cmbCCOSpecialty().clear();
    if(pasMapping != null)
    {
        PASSpecialtyCollection collSpec = null;
        try
        {
            collSpec = domain.listCCOSpecialtiesFromConSpc( pasMapping );
        }
        catch (DomainInterfaceException e)
        {
            engine.showMessage("PAS Error : " + e.getMessage());
            return;
        }
        for(int i=0; collSpec != null && i<collSpec.size();i++)
        {
            PASSpecialty inst = collSpec.get(i);
            form.cmbCCOSpecialty().newRow(inst, inst.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadCCOSpecialties(String pasMapping) 
{
    form.cmbCCOSpecialty().clear();
    if(pasMapping != null)
    {
        PASSpecialtyCollection collSpec = null;
        try
        {
            collSpec = domain.listCCOSpecialtiesFromConSpc( pasMapping );
        }
        catch (DomainInterfaceException e)
        {
            engine.showMessage("PAS Error : " + e.getMessage());
            return;
        }
        for(int i=0; collSpec != null && i<collSpec.size();i++)
        {
            PASSpecialty inst = collSpec.get(i);
            form.cmbCCOSpecialty().newRow(inst, inst.getText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadCCOSpecialties(String pasMapping) 
{
    form.cmbCCOSpecialty().clear();
    if(pasMapping != null)
    {
        PASSpecialtyCollection collSpec = null;
        try
        {
            collSpec = domain.listCCOSpecialtiesFromConSpc( pasMapping );
        }
        catch (DomainInterfaceException e)
        {
            engine.showMessage("PAS Error : " + e.getMessage());
            return;
        }
        for(int i=0; collSpec != null && i<collSpec.size();i++)
        {
            PASSpecialty inst = collSpec.get(i);
            form.cmbCCOSpecialty().newRow(inst, inst.getText());
        }
    }
}
项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException
{
    if (consultantMapping == null || consultantMapping.equals(""))
        throw new CodingRuntimeException("consultantMapping cannot be null in method listCCOSpecialtiesFromConSpc");

    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();

    PASSpecialtyCollection specColl = new PASSpecialtyCollection();

    Conspc conspc = (Conspc) getDTOInstance(Conspc.class);
    conspc.Filter.clear();
    conspc.Filter.Cons = consultantMapping;
    conspc.list();

    ConspcRecord rec;
    String recordMappings = "";
    int count = conspc.DataCollection.count();
    for (int i = 0; i < count; i++)
    {
        rec = conspc.DataCollection.get(i);
        recordMappings += "'" + rec.Spcd + "'";
        recordMappings += ((count - (i+1)) > 0 ? "," : "");         
    }

    if(count > 0)
    {
        List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode in (" + recordMappings + ")");
        specColl = constructCCOSpecialtyLookupCollection(specs);
    }
    return specColl;
}
项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
public PASSpecialty getPASSpecialtyMappingFromSpecialty(String szMapping) 
{
    if (szMapping == "")
        return null;

    List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode = '" + szMapping + "'");
    PASSpecialtyCollection specColl = constructCCOSpecialtyLookupCollection(specs);
    return specColl.size() > 0 ? specColl.get(0) : null;
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException
{
    if (consultantMapping == null || consultantMapping.equals(""))
        throw new CodingRuntimeException("consultantMapping cannot be null in method listCCOSpecialtiesFromConSpc");

    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();

    PASSpecialtyCollection specColl = new PASSpecialtyCollection();

    Conspc conspc = (Conspc) getDTOInstance(Conspc.class);
    conspc.Filter.clear();
    conspc.Filter.Cons = consultantMapping;
    conspc.list();

    ConspcRecord rec;
    StringBuilder recordMappings = new StringBuilder("");
    int count = conspc.DataCollection.count();
    for (int i = 0; i < count; i++)
    {
        rec = conspc.DataCollection.get(i);
        recordMappings.append("'").append(rec.Spcd).append("'");
        recordMappings.append(((count - (i+1)) > 0 ? "," : ""));            
    }

    if(count > 0)
    {
        List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode in (" + recordMappings + ")");
        specColl = constructCCOSpecialtyLookupCollection(specs);
    }
    return specColl;
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PASSpecialty getPASSpecialtyMappingFromSpecialty(String szMapping) 
{
    if (szMapping == null || szMapping.equals(""))
        return null;

    List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode = '" + szMapping + "'");
    PASSpecialtyCollection specColl = constructCCOSpecialtyLookupCollection(specs);
    return specColl.size() > 0 ? specColl.get(0) : null;
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException
{
    if (consultantMapping == null || consultantMapping.equals(""))
        throw new CodingRuntimeException("consultantMapping cannot be null in method listCCOSpecialtiesFromConSpc");

    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();

    PASSpecialtyCollection specColl = new PASSpecialtyCollection();

    Conspc conspc = (Conspc) getDTOInstance(Conspc.class);
    conspc.Filter.clear();
    conspc.Filter.Cons = consultantMapping;
    conspc.list();

    ConspcRecord rec;
    String recordMappings = "";
    int count = conspc.DataCollection.count();
    for (int i = 0; i < count; i++)
    {
        rec = conspc.DataCollection.get(i);
        recordMappings += "'" + rec.Spcd + "'";
        recordMappings += ((count - (i+1)) > 0 ? "," : "");         
    }

    if(count > 0)
    {
        List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode in (" + recordMappings + ")");
        specColl = constructCCOSpecialtyLookupCollection(specs);
    }
    return specColl;
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PASSpecialty getPASSpecialtyMappingFromSpecialty(String szMapping) 
{
    if (szMapping == "")
        return null;

    List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode = '" + szMapping + "'");
    PASSpecialtyCollection specColl = constructCCOSpecialtyLookupCollection(specs);
    return specColl.size() > 0 ? specColl.get(0) : null;
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException
{
    if (consultantMapping == null || consultantMapping.equals(""))
        throw new CodingRuntimeException("consultantMapping cannot be null in method listCCOSpecialtiesFromConSpc");

    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    String extSystem = ConfigFlag.DOM.DEMOGRAPHICS_EXT_SYSTEM.getValue();

    PASSpecialtyCollection specColl = new PASSpecialtyCollection();

    Conspc conspc = (Conspc) getDTOInstance(Conspc.class);
    conspc.Filter.clear();
    conspc.Filter.Cons = consultantMapping;
    conspc.list();

    ConspcRecord rec;
    String recordMappings = "";
    int count = conspc.DataCollection.count();
    for (int i = 0; i < count; i++)
    {
        rec = conspc.DataCollection.get(i);
        recordMappings += "'" + rec.Spcd + "'";
        recordMappings += ((count - (i+1)) > 0 ? "," : "");         
    }

    if(count > 0)
    {
        List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode in (" + recordMappings + ")");
        specColl = constructCCOSpecialtyLookupCollection(specs);
    }
    return specColl;
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
public PASSpecialty getPASSpecialtyMappingFromSpecialty(String szMapping) 
{
    if (szMapping == "")
        return null;

    List specs = getDomainFactory().find("from LookupInstance lkp join lkp.mappings as map where type = " + PASSpecialty.TYPE_ID + " and map.extSystem = 'PAS' and map.extCode = '" + szMapping + "'");
    PASSpecialtyCollection specColl = constructCCOSpecialtyLookupCollection(specs);
    return specColl.size() > 0 ? specColl.get(0) : null;
}
项目:AvoinApotti    文件:Logic.java   
private void loadCCOSpecialties(String ccCons, String pasMapping, PASSpecialty pasSpec)
{
    // WDEV-18573
    if (pasMapping == null)
        return;

    PASSpecialtyCollection collSpec = null;
    try
    {
        collSpec = domain.listCCOSpecialtiesFromConSpc(pasMapping);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("PAS Error : " + e.getMessage());
        return;
    }
    //wdev-13927
    if(ccCons.equals(ACCEPTING_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().clear();
    else if(ccCons.equals(IN_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().clear();
    else if(ccCons.equals(OUT_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().clear();

    for(int i=0;i<collSpec.size();i++)
    {
        PASSpecialty inst = collSpec.get(i);

        if(ccCons.equals(ACCEPTING_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(IN_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(OUT_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(inst, inst.getText());
    }
    if (pasSpec != null)
    {
        if(ccCons.equals(ACCEPTING_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(IN_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(OUT_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(pasSpec, pasSpec.getText());
        }
    }
}
项目:AvoinApotti    文件:BedInfoDialogImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException 
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listCCOSpecialtiesFromConSpc(consultantMapping);
}
项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
private PASSpecialtyCollection constructCCOSpecialtyLookupCollection(List specs)
{
    if (specs == null)
        throw new CodingRuntimeException("specs cannot be null in method constructCCOSpecialtyLookupCollection");

    PASSpecialtyCollection collSpec = new PASSpecialtyCollection();
    for(java.util.Iterator iterator = specs.iterator(); iterator.hasNext(); ) 
    {
        ims.framework.utils.ImagePath img = null;
        ims.framework.utils.Color color = null;

        ims.domain.lookups.LookupInstance instance = 
            (ims.domain.lookups.LookupInstance) iterator.next();
        if (instance.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(instance.getImage().getImageId(), instance.getImage().getImagePath());
        }
        else 
        {
            img = null;
        }
        color = instance.getColor();
        if (color != null) 
            color.getValue();


        PASSpecialty voInstance = new PASSpecialty(instance.getId(),instance.getText(), instance.isActive(), null, img, color);
        PASSpecialty parentVoInstance = voInstance;
        ims.domain.lookups.LookupInstance parent = instance.getParent();
        while (parent != null)
        {
            if (parent.getImage() != null) 
            {
                img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath());
            }
            else 
            {
                img = null;
            }
            color = parent.getColor();
            if (color != null) 
                color.getValue();

            parentVoInstance.setParent(new PASSpecialty(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
            parentVoInstance = parentVoInstance.getParent();
            parent = parent.getParent();
        }           

        LookupMappingVoCollection voMapColl = new LookupMappingVoCollection();
        for(java.util.Iterator iteratorMap = instance.getMappings().iterator(); iteratorMap.hasNext(); ) 
        {
            LookupMapping instanceMap = (LookupMapping) iteratorMap.next();

            voMapColl.add(new LookupMappingVo(instanceMap.getExtSystem(), instanceMap.getExtCode()));
        }

        voInstance.setMappings(voMapColl);
        collSpec.add(voInstance);
    }

    return collSpec;
}
项目:openMAXIMS    文件:Logic.java   
private void loadCCOSpecialties(String ccCons, String pasMapping, PASSpecialty pasSpec)
{
    // WDEV-18573
    if (pasMapping == null)
        return;

    PASSpecialtyCollection collSpec = null;
    try
    {
        collSpec = domain.listCCOSpecialtiesFromConSpc(pasMapping);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("PAS Error : " + e.getMessage());
        return;
    }
    //wdev-13927
    if(ccCons.equals(ACCEPTING_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().clear();
    else if(ccCons.equals(IN_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().clear();
    else if(ccCons.equals(OUT_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().clear();

    for(int i=0;i<collSpec.size();i++)
    {
        PASSpecialty inst = collSpec.get(i);

        if(ccCons.equals(ACCEPTING_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(IN_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(OUT_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(inst, inst.getText());
    }
    if (pasSpec != null)
    {
        if(ccCons.equals(ACCEPTING_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(IN_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(OUT_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(pasSpec, pasSpec.getText());
        }
    }
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException 
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listCCOSpecialtiesFromConSpc(consultantMapping);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
private PASSpecialtyCollection constructCCOSpecialtyLookupCollection(List specs)
{
    if (specs == null)
        throw new CodingRuntimeException("specs cannot be null in method constructCCOSpecialtyLookupCollection");

    PASSpecialtyCollection collSpec = new PASSpecialtyCollection();
    for(java.util.Iterator iterator = specs.iterator(); iterator.hasNext(); ) 
    {
        ims.framework.utils.ImagePath img = null;
        ims.framework.utils.Color color = null;

        ims.domain.lookups.LookupInstance instance = 
            (ims.domain.lookups.LookupInstance) iterator.next();
        if (instance.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(instance.getImage().getImageId(), instance.getImage().getImagePath());
        }
        else 
        {
            img = null;
        }
        color = instance.getColor();
        if (color != null) 
            color.getValue();


        PASSpecialty voInstance = new PASSpecialty(instance.getId(),instance.getText(), instance.isActive(), null, img, color);
        PASSpecialty parentVoInstance = voInstance;
        ims.domain.lookups.LookupInstance parent = instance.getParent();
        while (parent != null)
        {
            if (parent.getImage() != null) 
            {
                img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath());
            }
            else 
            {
                img = null;
            }
            color = parent.getColor();
            if (color != null) 
                color.getValue();

            parentVoInstance.setParent(new PASSpecialty(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
            parentVoInstance = parentVoInstance.getParent();
            parent = parent.getParent();
        }           

        LookupMappingVoCollection voMapColl = new LookupMappingVoCollection();
        for(java.util.Iterator iteratorMap = instance.getMappings().iterator(); iteratorMap.hasNext(); ) 
        {
            LookupMapping instanceMap = (LookupMapping) iteratorMap.next();

            voMapColl.add(new LookupMappingVo(instanceMap.getExtSystem(), instanceMap.getExtCode()));
        }

        voInstance.setMappings(voMapColl);
        collSpec.add(voInstance);
    }

    return collSpec;
}
项目:openMAXIMS    文件:Logic.java   
private void loadCCOSpecialties(String ccCons, String pasMapping, PASSpecialty pasSpec)
{
    // WDEV-18573
    if (pasMapping == null)
        return;

    PASSpecialtyCollection collSpec = null;
    try
    {
        collSpec = domain.listCCOSpecialtiesFromConSpc(pasMapping);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("PAS Error : " + e.getMessage());
        return;
    }
    //wdev-13927
    if(ccCons.equals(ACCEPTING_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().clear();
    else if(ccCons.equals(IN_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().clear();
    else if(ccCons.equals(OUT_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().clear();

    for(int i=0;i<collSpec.size();i++)
    {
        PASSpecialty inst = collSpec.get(i);

        if(ccCons.equals(ACCEPTING_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(IN_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(OUT_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(inst, inst.getText());
    }
    if (pasSpec != null)
    {
        if(ccCons.equals(ACCEPTING_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(IN_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(OUT_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(pasSpec, pasSpec.getText());
        }
    }
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException 
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listCCOSpecialtiesFromConSpc(consultantMapping);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
private PASSpecialtyCollection constructCCOSpecialtyLookupCollection(List specs)
{
    if (specs == null)
        throw new CodingRuntimeException("specs cannot be null in method constructCCOSpecialtyLookupCollection");

    PASSpecialtyCollection collSpec = new PASSpecialtyCollection();
    for(java.util.Iterator iterator = specs.iterator(); iterator.hasNext(); ) 
    {
        ims.framework.utils.ImagePath img = null;
        ims.framework.utils.Color color = null;

        ims.domain.lookups.LookupInstance instance = 
            (ims.domain.lookups.LookupInstance) iterator.next();
        if (instance.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(instance.getImage().getImageId(), instance.getImage().getImagePath());
        }
        else 
        {
            img = null;
        }
        color = instance.getColor();
        if (color != null) 
            color.getValue();


        PASSpecialty voInstance = new PASSpecialty(instance.getId(),instance.getText(), instance.isActive(), null, img, color);
        PASSpecialty parentVoInstance = voInstance;
        ims.domain.lookups.LookupInstance parent = instance.getParent();
        while (parent != null)
        {
            if (parent.getImage() != null) 
            {
                img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath());
            }
            else 
            {
                img = null;
            }
            color = parent.getColor();
            if (color != null) 
                color.getValue();

            parentVoInstance.setParent(new PASSpecialty(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
            parentVoInstance = parentVoInstance.getParent();
            parent = parent.getParent();
        }           

        LookupMappingVoCollection voMapColl = new LookupMappingVoCollection();
        for(java.util.Iterator iteratorMap = instance.getMappings().iterator(); iteratorMap.hasNext(); ) 
        {
            LookupMapping instanceMap = (LookupMapping) iteratorMap.next();

            voMapColl.add(new LookupMappingVo(instanceMap.getExtSystem(), instanceMap.getExtCode()));
        }

        voInstance.setMappings(voMapColl);
        collSpec.add(voInstance);
    }

    return collSpec;
}
项目:openmaxims-linux    文件:Logic.java   
private void loadCCOSpecialties(String ccCons, String pasMapping, PASSpecialty pasSpec)
{
    // WDEV-18573
    if (pasMapping == null)
        return;

    PASSpecialtyCollection collSpec = null;
    try
    {
        collSpec = domain.listCCOSpecialtiesFromConSpc(pasMapping);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage("PAS Error : " + e.getMessage());
        return;
    }
    //wdev-13927
    if(ccCons.equals(ACCEPTING_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().clear();
    else if(ccCons.equals(IN_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().clear();
    else if(ccCons.equals(OUT_CONSULTANT))
        form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().clear();

    for(int i=0;i<collSpec.size();i++)
    {
        PASSpecialty inst = collSpec.get(i);

        if(ccCons.equals(ACCEPTING_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(IN_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(inst, inst.getText());
        else if(ccCons.equals(OUT_CONSULTANT))
            form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(inst, inst.getText());
    }
    if (pasSpec != null)
    {
        if(ccCons.equals(ACCEPTING_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().cmbCCOConsultantSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(IN_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabIn().cmbCCOInSpecialty().newRow(pasSpec, pasSpec.getText());
        }
        else if(ccCons.equals(OUT_CONSULTANT))
        {
            if(!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().getValues().contains(pasSpec))
                form.lyrDetail().tabTransfer().lyrTransfer().tabOut().cmbCCOOutSpecialty().newRow(pasSpec, pasSpec.getText());
        }
    }
}
项目:openmaxims-linux    文件:BedInfoDialogImpl.java   
public PASSpecialtyCollection listCCOSpecialtiesFromConSpc(String consultantMapping) throws DomainInterfaceException 
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listCCOSpecialtiesFromConSpc(consultantMapping);
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
private PASSpecialtyCollection constructCCOSpecialtyLookupCollection(List specs)
{
    if (specs == null)
        throw new CodingRuntimeException("specs cannot be null in method constructCCOSpecialtyLookupCollection");

    PASSpecialtyCollection collSpec = new PASSpecialtyCollection();
    for(java.util.Iterator iterator = specs.iterator(); iterator.hasNext(); ) 
    {
        ims.framework.utils.ImagePath img = null;
        ims.framework.utils.Color color = null;

        ims.domain.lookups.LookupInstance instance = 
            (ims.domain.lookups.LookupInstance) iterator.next();
        if (instance.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(instance.getImage().getImageId(), instance.getImage().getImagePath());
        }
        else 
        {
            img = null;
        }
        color = instance.getColor();
        if (color != null) 
            color.getValue();


        PASSpecialty voInstance = new PASSpecialty(instance.getId(),instance.getText(), instance.isActive(), null, img, color);
        PASSpecialty parentVoInstance = voInstance;
        ims.domain.lookups.LookupInstance parent = instance.getParent();
        while (parent != null)
        {
            if (parent.getImage() != null) 
            {
                img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath());
            }
            else 
            {
                img = null;
            }
            color = parent.getColor();
            if (color != null) 
                color.getValue();

            parentVoInstance.setParent(new PASSpecialty(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
            parentVoInstance = parentVoInstance.getParent();
            parent = parent.getParent();
        }           

        LookupMappingVoCollection voMapColl = new LookupMappingVoCollection();
        for(java.util.Iterator iteratorMap = instance.getMappings().iterator(); iteratorMap.hasNext(); ) 
        {
            LookupMapping instanceMap = (LookupMapping) iteratorMap.next();

            voMapColl.add(new LookupMappingVo(instanceMap.getExtSystem(), instanceMap.getExtCode()));
        }

        voInstance.setMappings(voMapColl);
        collSpec.add(voInstance);
    }

    return collSpec;
}