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

项目:AvoinApotti    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openmaxims-linux    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen(Object[] args) throws PresentationLogicException
{   
    Boolean bShowSave = true;
    if (args != null && args.length == 1)
    {
        if (args[0] instanceof Boolean)
            bShowSave = (Boolean) args[0];
    }

    if (! bShowSave)
        form.btnSave().setText("OK");

    if (form.getGlobalContext().Admin.getSelectedMos() == null)
    {
        throw new FormOpenException("Selected MOS context variable not populated.");

    }
    if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
    {
        form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());
    }

    form.setMode(FormMode.EDIT);
    setNameCaption();
    form.getContextMenus().getMosLocationSetPrimaryLocationItem().setVisible(false);
    populateOrganisationTree();
    displaySetPrimaryLocationMenuOption(form.dyngrdOrganisationLocation().getRows());

    form.dyngrdOrganisationLocation().setCheckBoxesAutoPostBack(true);
}
项目:AvoinApotti    文件:Logic.java   
private void setHcpLocationsInGrid(HcpLocationVoCollection voCollHcpLocations)
{
    for (int j = 0; j < form.dyngrdOrganisationLocation().getRows().size() ; j++) //Go thru top level
    {
        DynamicGridRow row = form.dyngrdOrganisationLocation().getRows().get(j);

        if (row.getRows().size() > 0)
            setHcpLocations(voCollHcpLocations, row);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateMosDetailsForSelectedTreeNode()
{
    MemberOfStaffVo voMos = new MemberOfStaffVo();
    if (form.lyrLHS().tabOrganisation().isHeaderVisible())
    {
        if (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode() != null)
        {
            if ((form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocSiteVo) || (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocMostVo))
            {
                HcpLocationVo voHcpLocation = new HcpLocationVo();
                voHcpLocation.setLocation((LocMostVo) form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue());

                if (voMos.getLocationsIsNotNull())
                {
                    voMos.getLocations().add(voHcpLocation);
                }
                else
                {
                    HcpLocationVoCollection voCollLocations = new HcpLocationVoCollection();
                    voCollLocations.add(voHcpLocation);
                    voMos.setLocations(voCollLocations);
                }

                form.setMode(FormMode.EDIT);
                populateScreenFromMosVo(voMos);
                form.getGlobalContext().Admin.setSelectedMos(voMos);
                form.cmbType().setFocus();
            }
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws PresentationLogicException
{   
    Boolean bShowSave = true;
    if (args != null && args.length == 1)
    {
        if (args[0] instanceof Boolean)
            bShowSave = (Boolean) args[0];
    }

    if (! bShowSave)
        form.btnSave().setText("OK");

    if (form.getGlobalContext().Admin.getSelectedMos() == null)
    {
        throw new FormOpenException("Selected MOS context variable not populated.");

    }
    if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
    {
        form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());
    }

    form.setMode(FormMode.EDIT);
    setNameCaption();
    form.getContextMenus().getMosLocationSetPrimaryLocationItem().setVisible(false);
    populateOrganisationTree();
    displaySetPrimaryLocationMenuOption(form.dyngrdOrganisationLocation().getRows());

    form.dyngrdOrganisationLocation().setCheckBoxesAutoPostBack(true);
}
项目:openMAXIMS    文件:Logic.java   
private void setHcpLocationsInGrid(HcpLocationVoCollection voCollHcpLocations)
{
    for (int j = 0; j < form.dyngrdOrganisationLocation().getRows().size() ; j++) //Go thru top level
    {
        DynamicGridRow row = form.dyngrdOrganisationLocation().getRows().get(j);

        if (row.getRows().size() > 0)
            setHcpLocations(voCollHcpLocations, row);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateMosDetailsForSelectedTreeNode()
{
    MemberOfStaffVo voMos = new MemberOfStaffVo();
    if (form.lyrLHS().tabOrganisation().isHeaderVisible())
    {
        if (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode() != null)
        {
            if ((form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocSiteVo) || (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocMostVo))
            {
                HcpLocationVo voHcpLocation = new HcpLocationVo();
                voHcpLocation.setLocation((LocMostVo) form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue());

                if (voMos.getLocationsIsNotNull())
                {
                    voMos.getLocations().add(voHcpLocation);
                }
                else
                {
                    HcpLocationVoCollection voCollLocations = new HcpLocationVoCollection();
                    voCollLocations.add(voHcpLocation);
                    voMos.setLocations(voCollLocations);
                }

                form.setMode(FormMode.EDIT);
                populateScreenFromMosVo(voMos);
                form.getGlobalContext().Admin.setSelectedMos(voMos);
                form.cmbType().setFocus();
            }
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws PresentationLogicException
{   
    Boolean bShowSave = true;
    if (args != null && args.length == 1)
    {
        if (args[0] instanceof Boolean)
            bShowSave = (Boolean) args[0];
    }

    if (! bShowSave)
        form.btnSave().setText("OK");

    if (form.getGlobalContext().Admin.getSelectedMos() == null)
    {
        throw new FormOpenException("Selected MOS context variable not populated.");

    }
    if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
    {
        form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());
    }

    form.setMode(FormMode.EDIT);
    setNameCaption();
    form.getContextMenus().getMosLocationSetPrimaryLocationItem().setVisible(false);
    populateOrganisationTree();
    displaySetPrimaryLocationMenuOption(form.dyngrdOrganisationLocation().getRows());

    form.dyngrdOrganisationLocation().setCheckBoxesAutoPostBack(true);
}
项目:openMAXIMS    文件:Logic.java   
private void setHcpLocationsInGrid(HcpLocationVoCollection voCollHcpLocations)
{
    for (int j = 0; j < form.dyngrdOrganisationLocation().getRows().size() ; j++) //Go thru top level
    {
        DynamicGridRow row = form.dyngrdOrganisationLocation().getRows().get(j);

        if (row.getRows().size() > 0)
            setHcpLocations(voCollHcpLocations, row);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateMosDetailsForSelectedTreeNode()
{
    MemberOfStaffVo voMos = new MemberOfStaffVo();
    if (form.lyrLHS().tabOrganisation().isHeaderVisible())
    {
        if (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode() != null)
        {
            if ((form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocSiteVo) || (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocMostVo))
            {
                HcpLocationVo voHcpLocation = new HcpLocationVo();
                voHcpLocation.setLocation((LocMostVo) form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue());

                if (voMos.getLocationsIsNotNull())
                {
                    voMos.getLocations().add(voHcpLocation);
                }
                else
                {
                    HcpLocationVoCollection voCollLocations = new HcpLocationVoCollection();
                    voCollLocations.add(voHcpLocation);
                    voMos.setLocations(voCollLocations);
                }

                form.setMode(FormMode.EDIT);
                populateScreenFromMosVo(voMos);
                form.getGlobalContext().Admin.setSelectedMos(voMos);
                form.cmbType().setFocus();
            }
        }

    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen(Object[] args) throws PresentationLogicException
{   
    Boolean bShowSave = true;
    if (args != null && args.length == 1)
    {
        if (args[0] instanceof Boolean)
            bShowSave = (Boolean) args[0];
    }

    if (! bShowSave)
        form.btnSave().setText("OK");

    if (form.getGlobalContext().Admin.getSelectedMos() == null)
    {
        throw new FormOpenException("Selected MOS context variable not populated.");

    }
    if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
    {
        form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());
    }

    form.setMode(FormMode.EDIT);
    setNameCaption();
    form.getContextMenus().getMosLocationSetPrimaryLocationItem().setVisible(false);
    populateOrganisationTree();
    displaySetPrimaryLocationMenuOption(form.dyngrdOrganisationLocation().getRows());

    form.dyngrdOrganisationLocation().setCheckBoxesAutoPostBack(true);
}
项目:openmaxims-linux    文件:Logic.java   
private void setHcpLocationsInGrid(HcpLocationVoCollection voCollHcpLocations)
{
    for (int j = 0; j < form.dyngrdOrganisationLocation().getRows().size() ; j++) //Go thru top level
    {
        DynamicGridRow row = form.dyngrdOrganisationLocation().getRows().get(j);

        if (row.getRows().size() > 0)
            setHcpLocations(voCollHcpLocations, row);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateMosDetailsForSelectedTreeNode()
{
    MemberOfStaffVo voMos = new MemberOfStaffVo();
    if (form.lyrLHS().tabOrganisation().isHeaderVisible())
    {
        if (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode() != null)
        {
            if ((form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocSiteVo) || (form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue() instanceof LocMostVo))
            {
                HcpLocationVo voHcpLocation = new HcpLocationVo();
                voHcpLocation.setLocation((LocMostVo) form.lyrLHS().tabOrganisation().treOrganisation().getSelectedNode().getValue());

                if (voMos.getLocationsIsNotNull())
                {
                    voMos.getLocations().add(voHcpLocation);
                }
                else
                {
                    HcpLocationVoCollection voCollLocations = new HcpLocationVoCollection();
                    voCollLocations.add(voHcpLocation);
                    voMos.setLocations(voCollLocations);
                }

                form.setMode(FormMode.EDIT);
                populateScreenFromMosVo(voMos);
                form.getGlobalContext().Admin.setSelectedMos(voMos);
                form.cmbType().setFocus();
            }
        }

    }
}