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

项目:AvoinApotti    文件:CustomPatientListImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustListRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from PatientCustomList pcl "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(" where pcl.customList.id = :cl");
    markers.add("cl");
    values.add(voCustListRefVo.getID_CustomList()); 

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    PatientCustomListVoCollection voColl = PatientCustomListVoAssembler.createPatientCustomListVoCollectionFromPatientCustomList(factory.find(hql, markers, values));
    if (voColl.size() > 0)
        return voColl.get(0);

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void search() 
{
    form.grdDetails().getRows().clear();
    if (form.cmbCustomLists().getValue() != null)
    {
        PatientCustomListVo voPCL = domain.getPatientCustomList(form.cmbCustomLists().getValue());

        if (voPCL != null)
        {
            voPCL.getListEntry().sort();
            populateGrid(voPCL.getListEntry());

            CustomListSearchCriteriaVo voFilter = form.getGlobalContext().Core.getCustomListSearchCriteriaVo();

            if (voFilter != null && voFilter.getColumnSortOrder() != null)
            {
                setSortOrderForColumn(voFilter.getColumnSortOrder().getColumnId(), voFilter.getColumnSortOrder().getSortOrder());
            }
        }
    }
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustListRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from PatientCustomList pcl "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(" where pcl.customList.id = :cl");
    markers.add("cl");
    values.add(voCustListRefVo.getID_CustomList()); 

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    PatientCustomListVoCollection voColl = PatientCustomListVoAssembler.createPatientCustomListVoCollectionFromPatientCustomList(factory.find(hql, markers, values));
    if (voColl.size() > 0)
        return voColl.get(0);

    return null;
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustListRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from PatientCustomList pcl "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(" where pcl.customList.id = :cl");
    markers.add("cl");
    values.add(voCustListRefVo.getID_CustomList()); 

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    PatientCustomListVoCollection voColl = PatientCustomListVoAssembler.createPatientCustomListVoCollectionFromPatientCustomList(factory.find(hql, markers, values));
    if (voColl.size() > 0)
        return voColl.get(0);

    return null;
}
项目:openmaxims-linux    文件:CustomPatientListImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustListRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from PatientCustomList pcl "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(" where pcl.customList.id = :cl");
    markers.add("cl");
    values.add(voCustListRefVo.getID_CustomList()); 

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    PatientCustomListVoCollection voColl = PatientCustomListVoAssembler.createPatientCustomListVoCollectionFromPatientCustomList(factory.find(hql, markers, values));
    if (voColl.size() > 0)
        return voColl.get(0);

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void search() 
{
    form.grdDetails().getRows().clear();
    if (form.cmbCustomLists().getValue() != null)
    {
        PatientCustomListVo voPCL = domain.getPatientCustomList(form.cmbCustomLists().getValue());

        if (voPCL != null)
        {
            voPCL.getListEntry().sort();
            populateGrid(voPCL.getListEntry());
        }
    }
}
项目:AvoinApotti    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    if (!voCustomList.isValidated())
    {
        throw new DomainRuntimeException("This PatientCustomListVo has not been validated");
    }

    DomainFactory factory = getDomainFactory();         
    PatientCustomList domPCL = PatientCustomListVoAssembler.extractPatientCustomList(factory, voCustomList);
    factory.save(domPCL);

    return PatientCustomListVoAssembler.create(domPCL);
}
项目:AvoinApotti    文件:CustomPatientListImpl.java   
public void deleteCustomList(PatientCustomListVo voPatCustListVo) throws StaleObjectException, ForeignKeyViolationException
{
    if (voPatCustListVo == null)
    {
        throw new DomainRuntimeException("voPatCustListRefVo is null");
    }

    PatientCustomList obj = PatientCustomListVoAssembler.extractPatientCustomList(getDomainFactory(),voPatCustListVo);
    DomainFactory factory = getDomainFactory();
    factory.delete(obj);
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    if (!voCustomList.isValidated())
    {
        throw new DomainRuntimeException("This PatientCustomListVo has not been validated");
    }

    DomainFactory factory = getDomainFactory();         
    PatientCustomList domPCL = PatientCustomListVoAssembler.extractPatientCustomList(factory, voCustomList);
    factory.save(domPCL);

    return PatientCustomListVoAssembler.create(domPCL);
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public void deleteCustomList(PatientCustomListVo voPatCustListVo) throws StaleObjectException, ForeignKeyViolationException
{
    if (voPatCustListVo == null)
    {
        throw new DomainRuntimeException("voPatCustListRefVo is null");
    }

    PatientCustomList obj = PatientCustomListVoAssembler.extractPatientCustomList(getDomainFactory(),voPatCustListVo);
    DomainFactory factory = getDomainFactory();
    factory.delete(obj);
}
项目:openMAXIMS    文件:Logic.java   
private void search() 
{
    form.grdDetails().getRows().clear();
    if (form.cmbCustomLists().getValue() != null)
    {
        PatientCustomListVo voPCL = domain.getPatientCustomList(form.cmbCustomLists().getValue());

        if (voPCL != null)
        {
            voPCL.getListEntry().sort();
            populateGrid(voPCL.getListEntry());
        }
    }
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    if (!voCustomList.isValidated())
    {
        throw new DomainRuntimeException("This PatientCustomListVo has not been validated");
    }

    DomainFactory factory = getDomainFactory();         
    PatientCustomList domPCL = PatientCustomListVoAssembler.extractPatientCustomList(factory, voCustomList);
    factory.save(domPCL);

    return PatientCustomListVoAssembler.create(domPCL);
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public void deleteCustomList(PatientCustomListVo voPatCustListVo) throws StaleObjectException, ForeignKeyViolationException
{
    if (voPatCustListVo == null)
    {
        throw new DomainRuntimeException("voPatCustListRefVo is null");
    }

    PatientCustomList obj = PatientCustomListVoAssembler.extractPatientCustomList(getDomainFactory(),voPatCustListVo);
    DomainFactory factory = getDomainFactory();
    factory.delete(obj);
}
项目:openmaxims-linux    文件:Logic.java   
private void search() 
{
    form.grdDetails().getRows().clear();
    if (form.cmbCustomLists().getValue() != null)
    {
        PatientCustomListVo voPCL = domain.getPatientCustomList(form.cmbCustomLists().getValue());

        if (voPCL != null)
        {
            voPCL.getListEntry().sort();
            populateGrid(voPCL.getListEntry());
        }
    }
}
项目:openmaxims-linux    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    if (!voCustomList.isValidated())
    {
        throw new DomainRuntimeException("This PatientCustomListVo has not been validated");
    }

    DomainFactory factory = getDomainFactory();         
    PatientCustomList domPCL = PatientCustomListVoAssembler.extractPatientCustomList(factory, voCustomList);
    factory.save(domPCL);

    return PatientCustomListVoAssembler.create(domPCL);
}
项目:openmaxims-linux    文件:CustomPatientListImpl.java   
public void deleteCustomList(PatientCustomListVo voPatCustListVo) throws StaleObjectException, ForeignKeyViolationException
{
    if (voPatCustListVo == null)
    {
        throw new DomainRuntimeException("voPatCustListRefVo is null");
    }

    PatientCustomList obj = PatientCustomListVoAssembler.extractPatientCustomList(getDomainFactory(),voPatCustListVo);
    DomainFactory factory = getDomainFactory();
    factory.delete(obj);
}
项目:AvoinApotti    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustomList) 
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.getPatientCustomList(voCustomList);
}
项目:AvoinApotti    文件:CustomPatientListImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    AddToCustomListDialog implCL = (AddToCustomListDialog)getDomainImpl(AddToCustomListDialogImpl.class);
    return implCL.savePatientCustomList(voCustomList);
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustomList) 
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.getPatientCustomList(voCustomList);
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    AddToCustomListDialog implCL = (AddToCustomListDialog)getDomainImpl(AddToCustomListDialogImpl.class);
    return implCL.savePatientCustomList(voCustomList);
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustomList) 
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.getPatientCustomList(voCustomList);
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    AddToCustomListDialog implCL = (AddToCustomListDialog)getDomainImpl(AddToCustomListDialogImpl.class);
    return implCL.savePatientCustomList(voCustomList);
}
项目:openmaxims-linux    文件:AddToCustomListDialogImpl.java   
public PatientCustomListVo getPatientCustomList(CustomListRefVo voCustomList) 
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.getPatientCustomList(voCustomList);
}
项目:openmaxims-linux    文件:CustomPatientListImpl.java   
public PatientCustomListVo savePatientCustomList(PatientCustomListVo voCustomList) throws StaleObjectException 
{
    AddToCustomListDialog implCL = (AddToCustomListDialog)getDomainImpl(AddToCustomListDialogImpl.class);
    return implCL.savePatientCustomList(voCustomList);
}