Java 类ims.clinical.vo.GoalPlanningShortVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateGrid(GoalPlanningShortVoCollection collGoalPlanningVo) 
{
    if (collGoalPlanningVo != null)
    {
        form.grdSummary().getRows().clear();
        GenForm.grdSummaryRow tempRow;
            for (int i=0; i<collGoalPlanningVo.size(); i++)
        {
                GoalPlanningShortVo voGoalPlanning = collGoalPlanningVo.get(i);
            tempRow = form.grdSummary().getRows().newRow();
            tempRow.setValue(voGoalPlanning);
            if(voGoalPlanning.getGoalPlanningDateIsNotNull())
                tempRow.setColDateCC(voGoalPlanning.getGoalPlanningDate().toString());
            if(voGoalPlanning.getGoalPlanningOutcomeIsNotNull())
                tempRow.setColOutcome(voGoalPlanning.getGoalPlanningOutcome().getText());
            if(voGoalPlanning.getCommentsIsNotNull()){
                tempRow.setColComments(voGoalPlanning.getComments());
                tempRow.setTooltipForColComments(voGoalPlanning.getComments());
            }
        }
    }
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningShortVoCollection listGoalPlanningShortVo(CareContextRefVo careContext) 
{
    if (careContext == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(careContext.getID_CareContext());            
    andStr = " and ";

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningShortVoAssembler.createGoalPlanningShortVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(GoalPlanningShortVoCollection collGoalPlanningVo) 
{
    if (collGoalPlanningVo != null)
    {
        form.grdSummary().getRows().clear();
        GenForm.grdSummaryRow tempRow;
            for (int i=0; i<collGoalPlanningVo.size(); i++)
        {
                GoalPlanningShortVo voGoalPlanning = collGoalPlanningVo.get(i);
            tempRow = form.grdSummary().getRows().newRow();
            tempRow.setValue(voGoalPlanning);
            if(voGoalPlanning.getGoalPlanningDateIsNotNull())
                tempRow.setColDateCC(voGoalPlanning.getGoalPlanningDate().toString());
            if(voGoalPlanning.getGoalPlanningOutcomeIsNotNull())
                tempRow.setColOutcome(voGoalPlanning.getGoalPlanningOutcome().getText());
            if(voGoalPlanning.getCommentsIsNotNull()){
                tempRow.setColComments(voGoalPlanning.getComments());
                tempRow.setTooltipForColComments(voGoalPlanning.getComments());
            }
        }
    }
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningShortVoCollection listGoalPlanningShortVo(CareContextRefVo careContext) 
{
    if (careContext == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(careContext.getID_CareContext());            
    andStr = " and ";

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningShortVoAssembler.createGoalPlanningShortVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(GoalPlanningShortVoCollection collGoalPlanningVo) 
{
    if (collGoalPlanningVo != null)
    {
        form.grdSummary().getRows().clear();
        GenForm.grdSummaryRow tempRow;
            for (int i=0; i<collGoalPlanningVo.size(); i++)
        {
                GoalPlanningShortVo voGoalPlanning = collGoalPlanningVo.get(i);
            tempRow = form.grdSummary().getRows().newRow();
            tempRow.setValue(voGoalPlanning);
            if(voGoalPlanning.getGoalPlanningDateIsNotNull())
                tempRow.setColDateCC(voGoalPlanning.getGoalPlanningDate().toString());
            if(voGoalPlanning.getGoalPlanningOutcomeIsNotNull())
                tempRow.setColOutcome(voGoalPlanning.getGoalPlanningOutcome().getText());
            if(voGoalPlanning.getCommentsIsNotNull()){
                tempRow.setColComments(voGoalPlanning.getComments());
                tempRow.setTooltipForColComments(voGoalPlanning.getComments());
            }
        }
    }
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningShortVoCollection listGoalPlanningShortVo(CareContextRefVo careContext) 
{
    if (careContext == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(careContext.getID_CareContext());            
    andStr = " and ";

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningShortVoAssembler.createGoalPlanningShortVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(GoalPlanningShortVoCollection collGoalPlanningVo) 
{
    if (collGoalPlanningVo != null)
    {
        form.grdSummary().getRows().clear();
        GenForm.grdSummaryRow tempRow;
            for (int i=0; i<collGoalPlanningVo.size(); i++)
        {
                GoalPlanningShortVo voGoalPlanning = collGoalPlanningVo.get(i);
            tempRow = form.grdSummary().getRows().newRow();
            tempRow.setValue(voGoalPlanning);
            if(voGoalPlanning.getGoalPlanningDateIsNotNull())
                tempRow.setColDateCC(voGoalPlanning.getGoalPlanningDate().toString());
            if(voGoalPlanning.getGoalPlanningOutcomeIsNotNull())
                tempRow.setColOutcome(voGoalPlanning.getGoalPlanningOutcome().getText());
            if(voGoalPlanning.getCommentsIsNotNull()){
                tempRow.setColComments(voGoalPlanning.getComments());
                tempRow.setTooltipForColComments(voGoalPlanning.getComments());
            }
        }
    }
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningShortVoCollection listGoalPlanningShortVo(CareContextRefVo careContext) 
{
    if (careContext == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(careContext.getID_CareContext());            
    andStr = " and ";

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningShortVoAssembler.createGoalPlanningShortVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:AvoinApotti    文件:Logic.java   
private void open() 
{
    initialiseInviteesGrid();
    setScreenToView();
    GoalPlanningShortVoCollection collGoalPlanningShortVo = domain.listGoalPlanningShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateGrid(collGoalPlanningShortVo);
    form.getLocalContext().setGoalPlanningVo(null);
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    initialiseInviteesGrid();
    setScreenToView();
    GoalPlanningShortVoCollection collGoalPlanningShortVo = domain.listGoalPlanningShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateGrid(collGoalPlanningShortVo);
    form.getLocalContext().setGoalPlanningVo(null);
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    initialiseInviteesGrid();
    setScreenToView();
    GoalPlanningShortVoCollection collGoalPlanningShortVo = domain.listGoalPlanningShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateGrid(collGoalPlanningShortVo);
    form.getLocalContext().setGoalPlanningVo(null);
}
项目:openmaxims-linux    文件:Logic.java   
private void open() 
{
    initialiseInviteesGrid();
    setScreenToView();
    GoalPlanningShortVoCollection collGoalPlanningShortVo = domain.listGoalPlanningShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateGrid(collGoalPlanningShortVo);
    form.getLocalContext().setGoalPlanningVo(null);
}