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

项目:AvoinApotti    文件:Logic.java   
private boolean populateGoalPlanningVo() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();
    if(populateMeetingAttendeeData())
        return true;

    populateDataFromTheScreen();
    voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voGoalPlanning.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voGoalPlanning.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateGoalPlanningVo() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();
    if(populateMeetingAttendeeData())
        return true;

    populateDataFromTheScreen();
    voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voGoalPlanning.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voGoalPlanning.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateGoalPlanningVo() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();
    if(populateMeetingAttendeeData())
        return true;

    populateDataFromTheScreen();
    voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voGoalPlanning.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voGoalPlanning.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean populateGoalPlanningVo() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();
    if(populateMeetingAttendeeData())
        return true;

    populateDataFromTheScreen();
    voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        voGoalPlanning.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voGoalPlanning.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdSummarySelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    GoalPlanningVo voGoalPlanning = domain.getGoalPlanningVo(form.grdSummary().getRows().get(form.grdSummary().getSelectedRowIndex()).getValue());
    if(voGoalPlanning == null)
        return;

    clearDetails();
    populateScreen(voGoalPlanning);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
    form.btnUpdate().setEnabled(true);
    form.ctnDetails().setCollapsed(false);
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdSummarySelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    GoalPlanningVo voGoalPlanning = domain.getGoalPlanningVo(form.grdSummary().getRows().get(form.grdSummary().getSelectedRowIndex()).getValue());
    if(voGoalPlanning == null)
        return;

    clearDetails();
    populateScreen(voGoalPlanning);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
    form.btnUpdate().setEnabled(true);
    form.ctnDetails().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromTheScreen() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    AuthoringInformationVo  voAuthInfo = form.getLocalContext().getGoalPlanningVo().getAuthoringInformation();
    if(voAuthInfo == null)
        voAuthInfo = new AuthoringInformationVo();

    voAuthInfo.setAuthoringDateTime(form.ctnDetails().customControlAuthor().getValue().getAuthoringDateTime());
    voAuthInfo.setAuthoringHcp(form.ctnDetails().customControlAuthor().getValue().getAuthoringHcp());

    voGoalPlanning.setAuthoringInformation(voAuthInfo);

    //WDEV-10606 avoid crash for old dates
    Date date = new Date();
    date.setDay(01);
    date.setMonth(01);
    date.setYear(1900);
    if(form.ctnDetails().dteDateGP().getValue() != null && form.ctnDetails().dteDateGP().getValue().isLessOrEqualThan(date))
        form.ctnDetails().dteDateGP().setValue(date);
    voGoalPlanning.setGoalPlanningDate(form.ctnDetails().dteDateGP().getValue());
    voGoalPlanning.setPredicatedDischargeDate(form.ctnDetails().pdtPredDiscDte().getValue());
    voGoalPlanning.setGoalPlanningOutcome(form.ctnDetails().cmbOutcome().getValue());
    voGoalPlanning.setPrimeCancelReason(form.ctnDetails().cmbCancReason().getValue());
    voGoalPlanning.setPredictedNextGoalPlanning(form.ctnDetails().pdtPredNextGPDte().getValue());
    voGoalPlanning.setDischargeDelayValue(form.ctnDetails().intDischDelayValue().getValue());
    voGoalPlanning.setDischargeDelayUnit(form.ctnDetails().cmbDischDelayUnit().getValue());
    if(voGoalPlanning.getDischargeDelayValue()==null)
        voGoalPlanning.setDischargeDelayUnit(null);
    if(form.ctnDetails().chkDischargeGP().getValue() == false)
        voGoalPlanning.setIsGoalPlanningConf(Boolean.FALSE);
    else
        voGoalPlanning.setIsGoalPlanningConf(Boolean.TRUE);

    voGoalPlanning.setMinutes(form.ctnDetails().txtMinutes().getValue());
    voGoalPlanning.setComments(form.ctnDetails().txtComments().getValue());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdSummarySelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    GoalPlanningVo voGoalPlanning = domain.getGoalPlanningVo(form.grdSummary().getRows().get(form.grdSummary().getSelectedRowIndex()).getValue());
    if(voGoalPlanning == null)
        return;

    clearDetails();
    populateScreen(voGoalPlanning);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
    form.btnUpdate().setEnabled(true);
    form.ctnDetails().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromTheScreen() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    AuthoringInformationVo  voAuthInfo = form.getLocalContext().getGoalPlanningVo().getAuthoringInformation();
    if(voAuthInfo == null)
        voAuthInfo = new AuthoringInformationVo();

    voAuthInfo.setAuthoringDateTime(form.ctnDetails().customControlAuthor().getValue().getAuthoringDateTime());
    voAuthInfo.setAuthoringHcp(form.ctnDetails().customControlAuthor().getValue().getAuthoringHcp());

    voGoalPlanning.setAuthoringInformation(voAuthInfo);

    //WDEV-10606 avoid crash for old dates
    Date date = new Date();
    date.setDay(01);
    date.setMonth(01);
    date.setYear(1900);
    if(form.ctnDetails().dteDateGP().getValue() != null && form.ctnDetails().dteDateGP().getValue().isLessOrEqualThan(date))
        form.ctnDetails().dteDateGP().setValue(date);
    voGoalPlanning.setGoalPlanningDate(form.ctnDetails().dteDateGP().getValue());
    voGoalPlanning.setPredicatedDischargeDate(form.ctnDetails().pdtPredDiscDte().getValue());
    voGoalPlanning.setGoalPlanningOutcome(form.ctnDetails().cmbOutcome().getValue());
    voGoalPlanning.setPrimeCancelReason(form.ctnDetails().cmbCancReason().getValue());
    voGoalPlanning.setPredictedNextGoalPlanning(form.ctnDetails().pdtPredNextGPDte().getValue());
    voGoalPlanning.setDischargeDelayValue(form.ctnDetails().intDischDelayValue().getValue());
    voGoalPlanning.setDischargeDelayUnit(form.ctnDetails().cmbDischDelayUnit().getValue());
    if(voGoalPlanning.getDischargeDelayValue()==null)
        voGoalPlanning.setDischargeDelayUnit(null);
    if(form.ctnDetails().chkDischargeGP().getValue() == false)
        voGoalPlanning.setIsGoalPlanningConf(Boolean.FALSE);
    else
        voGoalPlanning.setIsGoalPlanningConf(Boolean.TRUE);

    voGoalPlanning.setMinutes(form.ctnDetails().txtMinutes().getValue());
    voGoalPlanning.setComments(form.ctnDetails().txtComments().getValue());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdSummarySelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
    GoalPlanningVo voGoalPlanning = domain.getGoalPlanningVo(form.grdSummary().getRows().get(form.grdSummary().getSelectedRowIndex()).getValue());
    if(voGoalPlanning == null)
        return;

    clearDetails();
    populateScreen(voGoalPlanning);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
    form.btnUpdate().setEnabled(true);
    form.ctnDetails().setCollapsed(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDataFromTheScreen() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    AuthoringInformationVo  voAuthInfo = form.getLocalContext().getGoalPlanningVo().getAuthoringInformation();
    if(voAuthInfo == null)
        voAuthInfo = new AuthoringInformationVo();

    voAuthInfo.setAuthoringDateTime(form.ctnDetails().customControlAuthor().getValue().getAuthoringDateTime());
    voAuthInfo.setAuthoringHcp(form.ctnDetails().customControlAuthor().getValue().getAuthoringHcp());

    voGoalPlanning.setAuthoringInformation(voAuthInfo);

    //WDEV-10606 avoid crash for old dates
    Date date = new Date();
    date.setDay(01);
    date.setMonth(01);
    date.setYear(1900);
    if(form.ctnDetails().dteDateGP().getValue() != null && form.ctnDetails().dteDateGP().getValue().isLessOrEqualThan(date))
        form.ctnDetails().dteDateGP().setValue(date);
    voGoalPlanning.setGoalPlanningDate(form.ctnDetails().dteDateGP().getValue());
    voGoalPlanning.setPredicatedDischargeDate(form.ctnDetails().pdtPredDiscDte().getValue());
    voGoalPlanning.setGoalPlanningOutcome(form.ctnDetails().cmbOutcome().getValue());
    voGoalPlanning.setPrimeCancelReason(form.ctnDetails().cmbCancReason().getValue());
    voGoalPlanning.setPredictedNextGoalPlanning(form.ctnDetails().pdtPredNextGPDte().getValue());
    voGoalPlanning.setDischargeDelayValue(form.ctnDetails().intDischDelayValue().getValue());
    voGoalPlanning.setDischargeDelayUnit(form.ctnDetails().cmbDischDelayUnit().getValue());
    if(voGoalPlanning.getDischargeDelayValue()==null)
        voGoalPlanning.setDischargeDelayUnit(null);
    if(form.ctnDetails().chkDischargeGP().getValue() == false)
        voGoalPlanning.setIsGoalPlanningConf(Boolean.FALSE);
    else
        voGoalPlanning.setIsGoalPlanningConf(Boolean.TRUE);

    voGoalPlanning.setMinutes(form.ctnDetails().txtMinutes().getValue());
    voGoalPlanning.setComments(form.ctnDetails().txtComments().getValue());

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateMeetingAttendeeData() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    GoalPlanningMeetingAttendeeVoCollection collMeetingAttendeeVo = new GoalPlanningMeetingAttendeeVoCollection();

    DynamicGridRowCollection rows = form.ctnDetails().dyngrdInvitees().getRows();
    for(int i=0; i< rows.size(); i++)
    {
        GoalPlanningMeetingAttendeeVo voGoalPlanningMeetingAttendee = new GoalPlanningMeetingAttendeeVo();
        DynamicGridRow row = rows.get(i);

        if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() == null)
        {

            engine.showMessage("There is a entry missing in the invitees list please complete the entry to allow the record to be saved");


            return true;

        }


        if (row.getCells().get(
                form.ctnDetails().dyngrdInvitees().getColumns()
                        .getByIdentifier(INVITEE_COLUMN)).getIdentifier()
                .equals(HcpLiteVo.class))
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setHcp((HcpLiteVo) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        else if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getIdentifier().equals(DynamicCellType.STRING)) 
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setFamilyMember((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setStatus((AttendanceStatus) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue());
        else
        {
            engine.showMessage("Status data has not been provided. Please provide a status for an Invitee before proceeding.");
            return true;
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setNote((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue());

        collMeetingAttendeeVo.add(voGoalPlanningMeetingAttendee);
    }
    voGoalPlanning.setInvitees(collMeetingAttendeeVo);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateMeetingAttendeeData() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    GoalPlanningMeetingAttendeeVoCollection collMeetingAttendeeVo = new GoalPlanningMeetingAttendeeVoCollection();

    DynamicGridRowCollection rows = form.ctnDetails().dyngrdInvitees().getRows();
    for(int i=0; i< rows.size(); i++)
    {
        GoalPlanningMeetingAttendeeVo voGoalPlanningMeetingAttendee = new GoalPlanningMeetingAttendeeVo();
        DynamicGridRow row = rows.get(i);

        if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() == null)
        {

            engine.showMessage("There is a entry missing in the invitees list please complete the entry to allow the record to be saved");


            return true;

        }


        if (row.getCells().get(
                form.ctnDetails().dyngrdInvitees().getColumns()
                        .getByIdentifier(INVITEE_COLUMN)).getIdentifier()
                .equals(HcpLiteVo.class))
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setHcp((HcpLiteVo) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        else if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getIdentifier().equals(DynamicCellType.STRING)) 
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setFamilyMember((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setStatus((AttendanceStatus) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue());
        else
        {
            engine.showMessage("Status data has not been provided. Please provide a status for an Invitee before proceeding.");
            return true;
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setNote((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue());

        collMeetingAttendeeVo.add(voGoalPlanningMeetingAttendee);
    }
    voGoalPlanning.setInvitees(collMeetingAttendeeVo);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateMeetingAttendeeData() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    GoalPlanningMeetingAttendeeVoCollection collMeetingAttendeeVo = new GoalPlanningMeetingAttendeeVoCollection();

    DynamicGridRowCollection rows = form.ctnDetails().dyngrdInvitees().getRows();
    for(int i=0; i< rows.size(); i++)
    {
        GoalPlanningMeetingAttendeeVo voGoalPlanningMeetingAttendee = new GoalPlanningMeetingAttendeeVo();
        DynamicGridRow row = rows.get(i);

        if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() == null)
        {

            engine.showMessage("There is a entry missing in the invitees list please complete the entry to allow the record to be saved");


            return true;

        }


        if (row.getCells().get(
                form.ctnDetails().dyngrdInvitees().getColumns()
                        .getByIdentifier(INVITEE_COLUMN)).getIdentifier()
                .equals(HcpLiteVo.class))
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setHcp((HcpLiteVo) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        else if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getIdentifier().equals(DynamicCellType.STRING)) 
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setFamilyMember((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setStatus((AttendanceStatus) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue());
        else
        {
            engine.showMessage("Status data has not been provided. Please provide a status for an Invitee before proceeding.");
            return true;
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setNote((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue());

        collMeetingAttendeeVo.add(voGoalPlanningMeetingAttendee);
    }
    voGoalPlanning.setInvitees(collMeetingAttendeeVo);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean populateMeetingAttendeeData() 
{
    GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo();

    GoalPlanningMeetingAttendeeVoCollection collMeetingAttendeeVo = new GoalPlanningMeetingAttendeeVoCollection();

    DynamicGridRowCollection rows = form.ctnDetails().dyngrdInvitees().getRows();
    for(int i=0; i< rows.size(); i++)
    {
        GoalPlanningMeetingAttendeeVo voGoalPlanningMeetingAttendee = new GoalPlanningMeetingAttendeeVo();
        DynamicGridRow row = rows.get(i);

        if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() == null)
        {

            engine.showMessage("There is a entry missing in the invitees list please complete the entry to allow the record to be saved");


            return true;

        }


        if (row.getCells().get(
                form.ctnDetails().dyngrdInvitees().getColumns()
                        .getByIdentifier(INVITEE_COLUMN)).getIdentifier()
                .equals(HcpLiteVo.class))
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setHcp((HcpLiteVo) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        else if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getIdentifier().equals(DynamicCellType.STRING)) 
        {
            if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null)
                voGoalPlanningMeetingAttendee.setFamilyMember((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue());
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setStatus((AttendanceStatus) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue());
        else
        {
            engine.showMessage("Status data has not been provided. Please provide a status for an Invitee before proceeding.");
            return true;
        }
        if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue() != null)
            voGoalPlanningMeetingAttendee.setNote((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue());

        collMeetingAttendeeVo.add(voGoalPlanningMeetingAttendee);
    }
    voGoalPlanning.setInvitees(collMeetingAttendeeVo);

    form.getLocalContext().setGoalPlanningVo(voGoalPlanning);
    return false;
}