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

项目:AvoinApotti    文件:Logic.java   
private void listCustomLists()
{
    form.cmbCustomLists().clear();
    form.grdDetails().getRows().clear();

    updateMenuState();
    updateButtonState();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo) domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
            form.cmbCustomLists().newRow(voColl.get(i), voColl.get(i).getListName());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadListCombo(CustomListVoCollection collCustomListVo) {
    form.cmbCustomLists().clear();
    if(collCustomListVo!=null)
        for(int i=0;i<collCustomListVo.size();i++)
        {
            CustomListVo voCustomList = collCustomListVo.get(i);
            form.cmbCustomLists().newRow(voCustomList, voCustomList.getListName());
        }
}
项目:AvoinApotti    文件:Logic.java   
private void populateListControl(CustomListVoCollection collCustomListVo) {
    if (collCustomListVo != null)
    {
        if (collCustomListVo.size() == 0)
        {
            engine.showMessage("No matching Custom List entries found.");
            return;
        }

        for (int i = 0; i < collCustomListVo.size(); i++)
        {
            CustomListVo voCustomListType = collCustomListVo.get(i);
            grdPatientsRow row = form.lyrCustomListSearch().tabCustomListSearch().grdPatients().getRows().newRow();

            if(voCustomListType.getListTypeIsNotNull())
                row.setColListType(voCustomListType.getListType().toString());
            if(voCustomListType.getListNameIsNotNull())
                row.setColListName(voCustomListType.getListName());
            if(voCustomListType.getSpecialtyIsNotNull())
                row.setColSpecialty(voCustomListType.getSpecialty().toString());
            if(voCustomListType.getDateIsNotNull())
                row.setColDate(voCustomListType.getDate().toString());
            if(voCustomListType.getListOwnerIsNotNull())
                row.setColListOwner(voCustomListType.getListOwner().toString());
            if(voCustomListType.getIsActiveIsNotNull())
                row.setColStatus(voCustomListType.getIsActive());

            row.setValue(voCustomListType);
        }
    }
    else
        engine.showMessage("No results match search criteria");

}
项目:AvoinApotti    文件:Logic.java   
private void listCustomLists()
{
    form.grdCustomList().getRows().clear();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo)domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
        {
            grdCustomListRow row = form.grdCustomList().getRows().newRow();
            row.setColList(voColl.get(i).getListName());
            row.setValue(voColl.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listCustomLists()
{
    form.cmbCustomLists().clear();
    form.grdDetails().getRows().clear();

    updateMenuState();
    updateButtonState();
    //WDEV-18640
    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo) domain.getMosUser(),true);
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
            form.cmbCustomLists().newRow(voColl.get(i), voColl.get(i).getListName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadListCombo(CustomListVoCollection collCustomListVo) {
    form.cmbCustomLists().clear();
    if(collCustomListVo!=null)
        for(int i=0;i<collCustomListVo.size();i++)
        {
            CustomListVo voCustomList = collCustomListVo.get(i);
            form.cmbCustomLists().newRow(voCustomList, voCustomList.getListName());
        }
}
项目:openMAXIMS    文件:Logic.java   
private void populateListControl(CustomListVoCollection collCustomListVo) {
    if (collCustomListVo != null)
    {
        if (collCustomListVo.size() == 0)
        {
            engine.showMessage("No matching Custom List entries found.");
            return;
        }

        for (int i = 0; i < collCustomListVo.size(); i++)
        {
            CustomListVo voCustomListType = collCustomListVo.get(i);
            grdPatientsRow row = form.lyrCustomListSearch().tabCustomListSearch().grdPatients().getRows().newRow();

            if(voCustomListType.getListTypeIsNotNull())
                row.setColListType(voCustomListType.getListType().toString());
            if(voCustomListType.getListNameIsNotNull())
                row.setColListName(voCustomListType.getListName());
            if(voCustomListType.getSpecialtyIsNotNull())
                row.setColSpecialty(voCustomListType.getSpecialty().toString());
            if(voCustomListType.getDateIsNotNull())
                row.setColDate(voCustomListType.getDate().toString());
            if(voCustomListType.getListOwnerIsNotNull())
                row.setColListOwner(voCustomListType.getListOwner().toString());
            if(voCustomListType.getIsActiveIsNotNull())
                row.setColStatus(voCustomListType.getIsActive());

            row.setValue(voCustomListType);
        }
    }
    else
        engine.showMessage("No results match search criteria");

}
项目:openMAXIMS    文件:Logic.java   
private void listCustomLists()
{
    form.grdCustomList().getRows().clear();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo)domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
        {
            grdCustomListRow row = form.grdCustomList().getRows().newRow();
            row.setColList(voColl.get(i).getListName());
            row.setValue(voColl.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listCustomLists()
{
    form.cmbCustomLists().clear();
    form.grdDetails().getRows().clear();

    updateMenuState();
    updateButtonState();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo) domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
            form.cmbCustomLists().newRow(voColl.get(i), voColl.get(i).getListName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadListCombo(CustomListVoCollection collCustomListVo) {
    form.cmbCustomLists().clear();
    if(collCustomListVo!=null)
        for(int i=0;i<collCustomListVo.size();i++)
        {
            CustomListVo voCustomList = collCustomListVo.get(i);
            form.cmbCustomLists().newRow(voCustomList, voCustomList.getListName());
        }
}
项目:openMAXIMS    文件:Logic.java   
private void populateListControl(CustomListVoCollection collCustomListVo) {
    if (collCustomListVo != null)
    {
        if (collCustomListVo.size() == 0)
        {
            engine.showMessage("No matching Custom List entries found.");
            return;
        }

        for (int i = 0; i < collCustomListVo.size(); i++)
        {
            CustomListVo voCustomListType = collCustomListVo.get(i);
            grdPatientsRow row = form.lyrCustomListSearch().tabCustomListSearch().grdPatients().getRows().newRow();

            if(voCustomListType.getListTypeIsNotNull())
                row.setColListType(voCustomListType.getListType().toString());
            if(voCustomListType.getListNameIsNotNull())
                row.setColListName(voCustomListType.getListName());
            if(voCustomListType.getSpecialtyIsNotNull())
                row.setColSpecialty(voCustomListType.getSpecialty().toString());
            if(voCustomListType.getDateIsNotNull())
                row.setColDate(voCustomListType.getDate().toString());
            if(voCustomListType.getListOwnerIsNotNull())
                row.setColListOwner(voCustomListType.getListOwner().toString());
            if(voCustomListType.getIsActiveIsNotNull())
                row.setColStatus(voCustomListType.getIsActive());

            row.setValue(voCustomListType);
        }
    }
    else
        engine.showMessage("No results match search criteria");

}
项目:openMAXIMS    文件:Logic.java   
private void listCustomLists()
{
    form.grdCustomList().getRows().clear();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo)domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
        {
            grdCustomListRow row = form.grdCustomList().getRows().newRow();
            row.setColList(voColl.get(i).getListName());
            row.setValue(voColl.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listCustomLists()
{
    form.cmbCustomLists().clear();
    form.grdDetails().getRows().clear();

    updateMenuState();
    updateButtonState();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo) domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
            form.cmbCustomLists().newRow(voColl.get(i), voColl.get(i).getListName());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadListCombo(CustomListVoCollection collCustomListVo) {
    form.cmbCustomLists().clear();
    if(collCustomListVo!=null)
        for(int i=0;i<collCustomListVo.size();i++)
        {
            CustomListVo voCustomList = collCustomListVo.get(i);
            form.cmbCustomLists().newRow(voCustomList, voCustomList.getListName());
        }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateListControl(CustomListVoCollection collCustomListVo) {
    if (collCustomListVo != null)
    {
        if (collCustomListVo.size() == 0)
        {
            engine.showMessage("No matching Custom List entries found.");
            return;
        }

        for (int i = 0; i < collCustomListVo.size(); i++)
        {
            CustomListVo voCustomListType = collCustomListVo.get(i);
            grdPatientsRow row = form.lyrCustomListSearch().tabCustomListSearch().grdPatients().getRows().newRow();

            if(voCustomListType.getListTypeIsNotNull())
                row.setColListType(voCustomListType.getListType().toString());
            if(voCustomListType.getListNameIsNotNull())
                row.setColListName(voCustomListType.getListName());
            if(voCustomListType.getSpecialtyIsNotNull())
                row.setColSpecialty(voCustomListType.getSpecialty().toString());
            if(voCustomListType.getDateIsNotNull())
                row.setColDate(voCustomListType.getDate().toString());
            if(voCustomListType.getListOwnerIsNotNull())
                row.setColListOwner(voCustomListType.getListOwner().toString());
            if(voCustomListType.getIsActiveIsNotNull())
                row.setColStatus(voCustomListType.getIsActive());

            row.setValue(voCustomListType);
        }
    }
    else
        engine.showMessage("No results match search criteria");

}
项目:openmaxims-linux    文件:Logic.java   
private void listCustomLists()
{
    form.grdCustomList().getRows().clear();

    CustomListVoCollection voColl = domain.listCustomLists((MemberOfStaffRefVo)domain.getMosUser());
    if (voColl != null && voColl.size() > 0 )
    {
        for (int i = 0 ; i < voColl.size() ; i++)
        {
            grdCustomListRow row = form.grdCustomList().getRows().newRow();
            row.setColList(voColl.get(i).getListName());
            row.setValue(voColl.get(i));
        }
    }
}
项目:AvoinApotti    文件:MDTCustomListImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {
    CustomListMaintenance customListMaintenanceImpl = (CustomListMaintenance)getDomainImpl(CustomListMaintenanceImpl.class);
    filter.setIsActive(true);
    filter.setListType(CustomListType.MDT);
       return customListMaintenanceImpl.listCustomListTypes(filter);
}
项目:AvoinApotti    文件:CustomListMaintenanceImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {

    if(filter == null)
        throw new CodingRuntimeException("null type passed to listCustomListTypes() !");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer(" ");
    String query = "from CustomList as cl ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (filter.getListTypeIsNotNull())
    {
        hql.append(andStr + " cl.listType.id = :ListType");
        markers.add("ListType");
        values.add(filter.getListType().getID());
        andStr = " and ";
    }

    if (filter.getListNameIsNotNull())
    {
        hql.append(andStr + " cl.listName = :ListName");
        markers.add("ListName");
        values.add(filter.getListName());
        andStr = " and ";
    }

    if (filter.getSpecialtyIsNotNull())
    {
        hql.append(andStr + " cl.specialty.id = :Specialty");
        markers.add("Specialty");
        values.add(filter.getSpecialty().getID());
        andStr = " and ";
    }

    if (filter.getDateIsNotNull())
    {
        hql.append(andStr + " cl.date = :Date");
        markers.add("Date");
        values.add(filter.getDate().getDate());
        andStr = " and ";
    }

    if (filter.getListOwnerIsNotNull())
    {
        hql.append(andStr + " cl.listOwner.id = :ListOwner");
        markers.add("ListOwner");
        values.add(filter.getListOwner().getID_MemberOfStaff());
        andStr = " and ";
    }

    if (filter.getIsActiveIsNotNull())
    {
        hql.append(andStr + " cl.isActive = :IsActive");
        markers.add("IsActive");
        values.add(filter.getIsActive());
        andStr = " and ";
    }

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

    query += hql.toString();
    List list = factory.find(query, markers, values);

    if(list.size() == 0)
        return null;

    return CustomListVoAssembler.createCustomListVoCollectionFromCustomList(list).sort();
}
项目:AvoinApotti    文件:AddToCustomListDialogImpl.java   
/**
* list custom lists
*/
public CustomListVoCollection listCustomLists(MemberOfStaffRefVo mosRefVo)
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.listCustomLists(mosRefVo);
}
项目:openMAXIMS    文件:MDTCustomListImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {
    CustomListMaintenance customListMaintenanceImpl = (CustomListMaintenance)getDomainImpl(CustomListMaintenanceImpl.class);
    filter.setIsActive(true);
    filter.setListType(CustomListType.MDT);
       return customListMaintenanceImpl.listCustomListTypes(filter);
}
项目:openMAXIMS    文件:CustomListMaintenanceImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {

    if(filter == null)
        throw new CodingRuntimeException("null type passed to listCustomListTypes() !");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer(" ");
    String query = "from CustomList as cl ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (filter.getListTypeIsNotNull())
    {
        hql.append(andStr + " cl.listType.id = :ListType");
        markers.add("ListType");
        values.add(filter.getListType().getID());
        andStr = " and ";
    }

    if (filter.getListNameIsNotNull())
    {
        hql.append(andStr + " cl.listName = :ListName");
        markers.add("ListName");
        values.add(filter.getListName());
        andStr = " and ";
    }

    if (filter.getSpecialtyIsNotNull())
    {
        hql.append(andStr + " cl.specialty.id = :Specialty");
        markers.add("Specialty");
        values.add(filter.getSpecialty().getID());
        andStr = " and ";
    }

    if (filter.getDateIsNotNull())
    {
        hql.append(andStr + " cl.date = :Date");
        markers.add("Date");
        values.add(filter.getDate().getDate());
        andStr = " and ";
    }

    if (filter.getListOwnerIsNotNull())
    {
        hql.append(andStr + " cl.listOwner.id = :ListOwner");
        markers.add("ListOwner");
        values.add(filter.getListOwner().getID_MemberOfStaff());
        andStr = " and ";
    }

    if (filter.getIsActiveIsNotNull())
    {
        hql.append(andStr + " cl.isActive = :IsActive");
        markers.add("IsActive");
        values.add(filter.getIsActive());
        andStr = " and ";
    }

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

    query += hql.toString();
    List list = factory.find(query, markers, values);

    if(list.size() == 0)
        return null;

    return CustomListVoAssembler.createCustomListVoCollectionFromCustomList(list).sort();
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
/**
* list custom lists
*/
public CustomListVoCollection listCustomLists(MemberOfStaffRefVo mosRefVo)
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.listCustomLists(mosRefVo, false); //WDEV-18640
}
项目:openMAXIMS    文件:CustomPatientListImpl.java   
/**
* list custom lists
*/
public CustomListVoCollection listCustomLists(MemberOfStaffRefVo voMOSRefVo, Boolean showReadOnlyRecords)
{
    DomainFactory factory = getDomainFactory();

    String hql = " from CustomList cl "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

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

    if (voMOSRefVo != null)
    {
        condStr.append(" where (cl.listOwner.id = :idMOS");
        markers.add("idMOS");
        values.add(voMOSRefVo.getID_MemberOfStaff());
        //WDEV-18640
        condStr.append(" or cl.isFullAccess = :isFullAccess");
        markers.add("isFullAccess");
        values.add(Boolean.TRUE);

        if (Boolean.TRUE.equals(showReadOnlyRecords))
        {
            condStr.append(" or cl.isReadOnly = :isReadOnly");  
            markers.add("isReadOnly");
            values.add(Boolean.TRUE);
        }
        condStr.append(")");
        ////WDEV-18640 ---- ends here
        condStr.append(" and cl.isActive = :isActive");
    }
    else
        condStr.append(" where cl.isActive = :isActive");

    markers.add("isActive");
    values.add(Boolean.TRUE);   

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

    hql += condStr.toString();
    return CustomListVoAssembler.createCustomListVoCollectionFromCustomList(factory.find(hql, markers, values)).sort();
}
项目:openMAXIMS    文件:MDTCustomListImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {
    CustomListMaintenance customListMaintenanceImpl = (CustomListMaintenance)getDomainImpl(CustomListMaintenanceImpl.class);
    filter.setIsActive(true);
    filter.setListType(CustomListType.MDT);
       return customListMaintenanceImpl.listCustomListTypes(filter);
}
项目:openMAXIMS    文件:CustomListMaintenanceImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {

    if(filter == null)
        throw new CodingRuntimeException("null type passed to listCustomListTypes() !");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer(" ");
    String query = "from CustomList as cl ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (filter.getListTypeIsNotNull())
    {
        hql.append(andStr + " cl.listType.id = :ListType");
        markers.add("ListType");
        values.add(filter.getListType().getID());
        andStr = " and ";
    }

    if (filter.getListNameIsNotNull())
    {
        hql.append(andStr + " cl.listName = :ListName");
        markers.add("ListName");
        values.add(filter.getListName());
        andStr = " and ";
    }

    if (filter.getSpecialtyIsNotNull())
    {
        hql.append(andStr + " cl.specialty.id = :Specialty");
        markers.add("Specialty");
        values.add(filter.getSpecialty().getID());
        andStr = " and ";
    }

    if (filter.getDateIsNotNull())
    {
        hql.append(andStr + " cl.date = :Date");
        markers.add("Date");
        values.add(filter.getDate().getDate());
        andStr = " and ";
    }

    if (filter.getListOwnerIsNotNull())
    {
        hql.append(andStr + " cl.listOwner.id = :ListOwner");
        markers.add("ListOwner");
        values.add(filter.getListOwner().getID_MemberOfStaff());
        andStr = " and ";
    }

    if (filter.getIsActiveIsNotNull())
    {
        hql.append(andStr + " cl.isActive = :IsActive");
        markers.add("IsActive");
        values.add(filter.getIsActive());
        andStr = " and ";
    }

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

    query += hql.toString();
    List list = factory.find(query, markers, values);

    if(list.size() == 0)
        return null;

    return CustomListVoAssembler.createCustomListVoCollectionFromCustomList(list).sort();
}
项目:openMAXIMS    文件:AddToCustomListDialogImpl.java   
/**
* list custom lists
*/
public CustomListVoCollection listCustomLists(MemberOfStaffRefVo mosRefVo)
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.listCustomLists(mosRefVo);
}
项目:openmaxims-linux    文件:MDTCustomListImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {
    CustomListMaintenance customListMaintenanceImpl = (CustomListMaintenance)getDomainImpl(CustomListMaintenanceImpl.class);
    filter.setIsActive(true);
    filter.setListType(CustomListType.MDT);
       return customListMaintenanceImpl.listCustomListTypes(filter);
}
项目:openmaxims-linux    文件:CustomListMaintenanceImpl.java   
public CustomListVoCollection listCustomListTypes(CustomListVo filter) {

    if(filter == null)
        throw new CodingRuntimeException("null type passed to listCustomListTypes() !");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer(" ");
    String query = "from CustomList as cl ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (filter.getListTypeIsNotNull())
    {
        hql.append(andStr + " cl.listType.id = :ListType");
        markers.add("ListType");
        values.add(filter.getListType().getID());
        andStr = " and ";
    }

    if (filter.getListNameIsNotNull())
    {
        hql.append(andStr + " cl.listName = :ListName");
        markers.add("ListName");
        values.add(filter.getListName());
        andStr = " and ";
    }

    if (filter.getSpecialtyIsNotNull())
    {
        hql.append(andStr + " cl.specialty.id = :Specialty");
        markers.add("Specialty");
        values.add(filter.getSpecialty().getID());
        andStr = " and ";
    }

    if (filter.getDateIsNotNull())
    {
        hql.append(andStr + " cl.date = :Date");
        markers.add("Date");
        values.add(filter.getDate().getDate());
        andStr = " and ";
    }

    if (filter.getListOwnerIsNotNull())
    {
        hql.append(andStr + " cl.listOwner.id = :ListOwner");
        markers.add("ListOwner");
        values.add(filter.getListOwner().getID_MemberOfStaff());
        andStr = " and ";
    }

    if (filter.getIsActiveIsNotNull())
    {
        hql.append(andStr + " cl.isActive = :IsActive");
        markers.add("IsActive");
        values.add(filter.getIsActive());
        andStr = " and ";
    }

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

    query += hql.toString();
    List list = factory.find(query, markers, values);

    if(list.size() == 0)
        return null;

    return CustomListVoAssembler.createCustomListVoCollectionFromCustomList(list).sort();
}
项目:openmaxims-linux    文件:AddToCustomListDialogImpl.java   
/**
* list custom lists
*/
public CustomListVoCollection listCustomLists(MemberOfStaffRefVo mosRefVo)
{
    CustomPatientList implCL = (CustomPatientList)getDomainImpl(CustomPatientListImpl.class);
    return implCL.listCustomLists(mosRefVo);
}