Java 类ims.admin.vo.AppointmentOutcomeConfigVo 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdAppOutcomeConfigSelectionChanged()
{
    if (form.grdAppOutcomeConfig().getValue() instanceof AppointmentOutcomeConfigVo)
    {
        form.getLocalContext().setSelectedRecord((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getValue());
        form.getLocalContext().setSelectedLookup(form.getLocalContext().getSelectedRecord()!=null ? form.getLocalContext().getSelectedRecord().getAppointmentOutcome() : null);
        populateInstanceControls(form.getLocalContext().getSelectedLookup()!=null ? domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup()) : null);
    }
    else if (form.grdAppOutcomeConfig().getValue() instanceof ApptOutcome)
    {
        form.getLocalContext().setSelectedRecord(null);
        form.getLocalContext().setSelectedLookup((ApptOutcome) form.grdAppOutcomeConfig().getValue());
        clearInstanceControls();
        form.ctnDetails().htmAppointmentOutcomeValue().setHTML(form.getLocalContext().getSelectedLookup()!=null ? "<b>" + form.getLocalContext().getSelectedLookup().getText() + "</b>": null); 
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControls(AppointmentOutcomeConfigVo apptOutome)
{
    clearInstanceControls();

    if (apptOutome==null)
        return;

    form.ctnDetails().htmAppointmentOutcomeValue().setHTML("<b>" + apptOutome.getAppointmentOutcome().getText() + "</b>");
    populateGridAppOutcomeReason(apptOutome.getAppointmentOutcomeReasons());
    form.ctnDetails().qmbFirstDefinitiveTreatment().newRow(apptOutome.getFirstDefinitiveTreatmentEvent(),apptOutome.getFirstDefinitiveTreatmentEvent()!=null ?  apptOutome.getFirstDefinitiveTreatmentEvent().getName(): null);
    form.ctnDetails().qmbFirstDefinitiveTreatment().setValue(apptOutome.getFirstDefinitiveTreatmentEvent());
    form.ctnDetails().chkFirst().setValue(apptOutome.getShowFirstDefinitiveTreatment());
    form.ctnDetails().chkWaiting().setValue(apptOutome.getCanAddtoWaitingList());
    form.ctnDetails().chkBooked().setValue(apptOutome.getCanAddtoBookedList());
    form.ctnDetails().chkPlanned().setValue(apptOutome.getCanAddtoPlannedList());
    form.ctnDetails().chkAppointment().setValue(apptOutome.getCanMakeAppointment());
    form.ctnDetails().chkOnward().setValue(apptOutome.getCanMakeOnwardReferral());
    form.ctnDetails().chkTransfer().setValue(apptOutome.getCanTransfer());


}
项目:AvoinApotti    文件:Logic.java   
private void populateGridAppointmentOutcomeConfig(boolean active)
{
    AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig = domain.listAppointmentsOutcomeConfig(null);

    for (int i=0;i<form.grdAppOutcomeConfig().getRows().size();i++)
    {
        AppointmentOutcomeConfigVo apptOutcomeConfig=null;
        if (form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof ApptOutcome)
        {
            apptOutcomeConfig=getApptOutcomeConfig((ApptOutcome)form.grdAppOutcomeConfig().getRows().get(i).getValue(),collAppointmentOutcomeConfig);
        }
        else if(form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof AppointmentOutcomeConfigVo)
        {
            apptOutcomeConfig=getApptOutcomeConfig(((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getRows().get(i).getValue()).getAppointmentOutcome(),collAppointmentOutcomeConfig);
        }

        if (apptOutcomeConfig!=null)
        {
            updateApptOutcomeConfigRow(form.grdAppOutcomeConfig().getRows().get(i),apptOutcomeConfig);  
        }

    }

    form.grdAppOutcomeConfig().setValue(form.getLocalContext().getSelectedRecord());
    populateInstanceControls(form.getLocalContext().getSelectedRecord());
}
项目:AvoinApotti    文件:Logic.java   
private void updateApptOutcomeConfigRow(grdAppOutcomeConfigRow row, AppointmentOutcomeConfigVo apptOutcomeConfig)
{
    if (apptOutcomeConfig==null)
        return;

    row.setColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setTooltipForColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setColFirst(apptOutcomeConfig.getShowFirstDefinitiveTreatment());
    row.setColWaiting(apptOutcomeConfig.getCanAddtoWaitingList());
    row.setColBooked(apptOutcomeConfig.getCanAddtoBookedList());
    row.setColPlanned(apptOutcomeConfig.getCanAddtoPlannedList());
    row.setColAppointment(apptOutcomeConfig.getCanMakeAppointment());
    row.setColOnward(apptOutcomeConfig.getCanMakeOnwardReferral());
    row.setColTransfer(apptOutcomeConfig.getCanTransfer());
    row.setValue(apptOutcomeConfig);

}
项目:openMAXIMS    文件:Logic.java   
private void bindAppointmentOutcomes(Status_Reason status)
{
    AppointmentOutcomeConfigVoCollection appointmentOutcomes = domain.listAppointmentOutcomeByAppointmentStatus(status);

    form.cmbOutcome().clear();

    if (appointmentOutcomes == null)
    {
        updateOutcomeSelection(null);
        return;
    }

    for (AppointmentOutcomeConfigVo outcome : appointmentOutcomes)
    {
        form.cmbOutcome().newRow(outcome.getAppointmentOutcome(), outcome.getAppointmentOutcome().getText());
    }

    if (appointmentOutcomes.size() == 1)
    {
        form.cmbOutcome().setValue(appointmentOutcomes.get(0).getAppointmentOutcome());
        updateOutcomeSelection(form.cmbOutcome().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate the 'Appointment Outcomes' configured for the selected appointment status (DNA, Not Seen, Seen)
 * @param status
 * @param rttStatusPoint 
 */
private void bindAppointmentOutcomes(Status_Reason status, RTTStatusPointRefVo rttStatusPoint)
{
    // TEST: WDEV-20332 - Check if the appointment outcome values retrieved now correspond to the initial issue and configuration
    AppointmentOutcomeConfigVoCollection appointmentOutcomes = domain.listAppointmentOutcomeByAppointmentStatusAndRTTSTatus(status, rttStatusPoint);

    form.cmbOutcome().clear();

    if (appointmentOutcomes == null)
    {
        updateOutcomeSelection(null);
        return;
    }

    for (AppointmentOutcomeConfigVo outcome : appointmentOutcomes)
    {
        form.cmbOutcome().newRow(outcome.getAppointmentOutcome(), outcome.getAppointmentOutcome().getText());
    }

    if (appointmentOutcomes.size() == 1)
    {
        form.cmbOutcome().setValue(appointmentOutcomes.get(0).getAppointmentOutcome());
        updateOutcomeSelection(form.cmbOutcome().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdAppOutcomeConfigSelectionChanged()
{
    if (form.grdAppOutcomeConfig().getValue() instanceof AppointmentOutcomeConfigVo)
    {
        form.getLocalContext().setSelectedRecord((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getValue());
        form.getLocalContext().setSelectedLookup(form.getLocalContext().getSelectedRecord()!=null ? form.getLocalContext().getSelectedRecord().getAppointmentOutcome() : null);
        populateInstanceControls(form.getLocalContext().getSelectedLookup()!=null ? domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup()) : null);
    }
    else if (form.grdAppOutcomeConfig().getValue() instanceof ApptOutcome)
    {
        form.getLocalContext().setSelectedRecord(null);
        form.getLocalContext().setSelectedLookup((ApptOutcome) form.grdAppOutcomeConfig().getValue());
        clearInstanceControls();
        form.ctnDetails().setCaption(form.getLocalContext().getSelectedLookup()!=null ? "Appointment Outcome: " + form.getLocalContext().getSelectedLookup().getText(): null);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(AppointmentOutcomeConfigVo apptOutome)
{
    clearInstanceControls();

    if (apptOutome==null)
        return;

    form.ctnDetails().setCaption(form.getLocalContext().getSelectedLookup()!=null ? "Appointment Outcome: " + form.getLocalContext().getSelectedLookup().getText(): null); //WDEV-19635 
    populateGridAppOutcomeReason(apptOutome.getAppointmentOutcomeReasons());
    form.ctnDetails().chkFirst().setValue(apptOutome.getShowFirstDefinitiveTreatment());
    form.ctnDetails().chkWaiting().setValue(apptOutome.getCanAddtoWaitingList());
    form.ctnDetails().chkPlanned().setValue(apptOutome.getCanAddtoPlannedList());
    form.ctnDetails().chkAppointment().setValue(apptOutome.getCanMakeAppointment());
    form.ctnDetails().chkTransfer().setValue(apptOutome.getCanTransfer());

    //WDEV-20319
    form.ctnDetails().chkAddRequestForService().setValue(apptOutome.getCanAddRequestForService());
    form.ctnDetails().chkTransferOfCare().setValue(apptOutome.getCanTransferOfCare());

    //WDEV-19635 
    form.ctnDetails().chkSeen().setValue(apptOutome.getUsedForSeen());
    form.ctnDetails().chkNotSeen().setValue(apptOutome.getUsedForNotSeen());
    form.ctnDetails().chkDNA().setValue(apptOutome.getUsedForDNA());    
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridAppointmentOutcomeConfig(boolean active)
{
    AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig = domain.listAppointmentsOutcomeConfig(null);

    for (int i=0;i<form.grdAppOutcomeConfig().getRows().size();i++)
    {
        AppointmentOutcomeConfigVo apptOutcomeConfig=null;
        if (form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof ApptOutcome)
        {
            apptOutcomeConfig=getApptOutcomeConfig((ApptOutcome)form.grdAppOutcomeConfig().getRows().get(i).getValue(),collAppointmentOutcomeConfig);
        }
        else if(form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof AppointmentOutcomeConfigVo)
        {
            apptOutcomeConfig=getApptOutcomeConfig(((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getRows().get(i).getValue()).getAppointmentOutcome(),collAppointmentOutcomeConfig);
        }

        if (apptOutcomeConfig!=null)
        {
            updateApptOutcomeConfigRow(form.grdAppOutcomeConfig().getRows().get(i),apptOutcomeConfig);  
        }

    }

    form.grdAppOutcomeConfig().setValue(form.getLocalContext().getSelectedRecord());
    populateInstanceControls(form.getLocalContext().getSelectedRecord());
}
项目:openMAXIMS    文件:Logic.java   
private void updateApptOutcomeConfigRow(grdAppOutcomeConfigRow row, AppointmentOutcomeConfigVo apptOutcomeConfig)
{
    if (apptOutcomeConfig==null)
        return;

    //WDEV-19635 
    row.setColAppointmentOutcome("<b>" + row.getColAppointmentOutcome() + "</b>");
    row.setCellColAppointmentOutcomeTooltip(row.getColAppointmentOutcome());

    row.setColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setTooltipForColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setColFirst(apptOutcomeConfig.getShowFirstDefinitiveTreatment());
    row.setColWaiting(apptOutcomeConfig.getCanAddtoWaitingList());
    row.setColPlanned(apptOutcomeConfig.getCanAddtoPlannedList());
    row.setColAppointment(apptOutcomeConfig.getCanMakeAppointment());
    row.setColTransfer(apptOutcomeConfig.getCanTransfer());
    row.setColStatus(getApptStatuses(apptOutcomeConfig));
    row.setCellColStatusTooltip(row.getColStatus());

    //WDEV-20319
    row.setColRequest(apptOutcomeConfig.getCanAddRequestForService());
    row.setColTransferCare(apptOutcomeConfig.getCanTransferOfCare());

    row.setValue(apptOutcomeConfig);
}
项目:openMAXIMS    文件:Logic.java   
private String getApptStatuses(AppointmentOutcomeConfigVo apptOutcomeConfig)
{
    if (apptOutcomeConfig == null)
        return null;

    String apptStatus = "";
    String comma = "";
    if (Boolean.TRUE.equals(apptOutcomeConfig.getUsedForSeen()))
    {
        apptStatus = apptStatus + "Seen" + comma;
        comma = ", ";
    }
    if (Boolean.TRUE.equals(apptOutcomeConfig.getUsedForNotSeen()))
    {
        apptStatus =apptStatus + comma + "Not Seen" ;
        comma = ", ";
    }
    if (Boolean.TRUE.equals(apptOutcomeConfig.getUsedForDNA()))
    {
        apptStatus =apptStatus + comma + "DNA";
    }

    return apptStatus;
}
项目:openMAXIMS    文件:Logic.java   
private void filterAppointmentOutcomeGridRecords(boolean seen, boolean notSeen, boolean dna)
{
    for (int i = 0; i< form.grdAppOutcomeConfig().getRows().size(); i++)
    {
        if (form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof AppointmentOutcomeConfigVo)
        {   
            AppointmentOutcomeConfigVo item = (AppointmentOutcomeConfigVo) form.grdAppOutcomeConfig().getRows().get(i).getValue();
            if ((Boolean.TRUE.equals(seen) && !Boolean.TRUE.equals(item.getUsedForSeen())) ||
                (Boolean.TRUE.equals(notSeen) && !Boolean.TRUE.equals(item.getUsedForNotSeen()) ||
                (Boolean.TRUE.equals(dna) && !Boolean.TRUE.equals(item.getUsedForDNA()))))
            {
                form.grdAppOutcomeConfig().getRows().remove(i);
                i--;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdAppOutcomeConfigSelectionChanged()
{
    if (form.grdAppOutcomeConfig().getValue() instanceof AppointmentOutcomeConfigVo)
    {
        form.getLocalContext().setSelectedRecord((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getValue());
        form.getLocalContext().setSelectedLookup(form.getLocalContext().getSelectedRecord()!=null ? form.getLocalContext().getSelectedRecord().getAppointmentOutcome() : null);
        populateInstanceControls(form.getLocalContext().getSelectedLookup()!=null ? domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup()) : null);
    }
    else if (form.grdAppOutcomeConfig().getValue() instanceof ApptOutcome)
    {
        form.getLocalContext().setSelectedRecord(null);
        form.getLocalContext().setSelectedLookup((ApptOutcome) form.grdAppOutcomeConfig().getValue());
        clearInstanceControls();
        form.ctnDetails().htmAppointmentOutcomeValue().setHTML(form.getLocalContext().getSelectedLookup()!=null ? "<b>" + form.getLocalContext().getSelectedLookup().getText() + "</b>": null); 
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(AppointmentOutcomeConfigVo apptOutome)
{
    clearInstanceControls();

    if (apptOutome==null)
        return;

    form.ctnDetails().htmAppointmentOutcomeValue().setHTML("<b>" + apptOutome.getAppointmentOutcome().getText() + "</b>");
    populateGridAppOutcomeReason(apptOutome.getAppointmentOutcomeReasons());
    form.ctnDetails().qmbFirstDefinitiveTreatment().newRow(apptOutome.getFirstDefinitiveTreatmentEvent(),apptOutome.getFirstDefinitiveTreatmentEvent()!=null ?  apptOutome.getFirstDefinitiveTreatmentEvent().getName(): null);
    form.ctnDetails().qmbFirstDefinitiveTreatment().setValue(apptOutome.getFirstDefinitiveTreatmentEvent());
    form.ctnDetails().chkFirst().setValue(apptOutome.getShowFirstDefinitiveTreatment());
    form.ctnDetails().chkWaiting().setValue(apptOutome.getCanAddtoWaitingList());
    form.ctnDetails().chkBooked().setValue(apptOutome.getCanAddtoBookedList());
    form.ctnDetails().chkPlanned().setValue(apptOutome.getCanAddtoPlannedList());
    form.ctnDetails().chkAppointment().setValue(apptOutome.getCanMakeAppointment());
    form.ctnDetails().chkOnward().setValue(apptOutome.getCanMakeOnwardReferral());
    form.ctnDetails().chkTransfer().setValue(apptOutome.getCanTransfer());


}
项目:openMAXIMS    文件:Logic.java   
private void populateGridAppointmentOutcomeConfig(boolean active)
{
    AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig = domain.listAppointmentsOutcomeConfig(null);

    for (int i=0;i<form.grdAppOutcomeConfig().getRows().size();i++)
    {
        AppointmentOutcomeConfigVo apptOutcomeConfig=null;
        if (form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof ApptOutcome)
        {
            apptOutcomeConfig=getApptOutcomeConfig((ApptOutcome)form.grdAppOutcomeConfig().getRows().get(i).getValue(),collAppointmentOutcomeConfig);
        }
        else if(form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof AppointmentOutcomeConfigVo)
        {
            apptOutcomeConfig=getApptOutcomeConfig(((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getRows().get(i).getValue()).getAppointmentOutcome(),collAppointmentOutcomeConfig);
        }

        if (apptOutcomeConfig!=null)
        {
            updateApptOutcomeConfigRow(form.grdAppOutcomeConfig().getRows().get(i),apptOutcomeConfig);  
        }

    }

    form.grdAppOutcomeConfig().setValue(form.getLocalContext().getSelectedRecord());
    populateInstanceControls(form.getLocalContext().getSelectedRecord());
}
项目:openMAXIMS    文件:Logic.java   
private void updateApptOutcomeConfigRow(grdAppOutcomeConfigRow row, AppointmentOutcomeConfigVo apptOutcomeConfig)
{
    if (apptOutcomeConfig==null)
        return;

    row.setColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setTooltipForColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setColFirst(apptOutcomeConfig.getShowFirstDefinitiveTreatment());
    row.setColWaiting(apptOutcomeConfig.getCanAddtoWaitingList());
    row.setColBooked(apptOutcomeConfig.getCanAddtoBookedList());
    row.setColPlanned(apptOutcomeConfig.getCanAddtoPlannedList());
    row.setColAppointment(apptOutcomeConfig.getCanMakeAppointment());
    row.setColOnward(apptOutcomeConfig.getCanMakeOnwardReferral());
    row.setColTransfer(apptOutcomeConfig.getCanTransfer());
    row.setValue(apptOutcomeConfig);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdAppOutcomeConfigSelectionChanged()
{
    if (form.grdAppOutcomeConfig().getValue() instanceof AppointmentOutcomeConfigVo)
    {
        form.getLocalContext().setSelectedRecord((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getValue());
        form.getLocalContext().setSelectedLookup(form.getLocalContext().getSelectedRecord()!=null ? form.getLocalContext().getSelectedRecord().getAppointmentOutcome() : null);
        populateInstanceControls(form.getLocalContext().getSelectedLookup()!=null ? domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup()) : null);
    }
    else if (form.grdAppOutcomeConfig().getValue() instanceof ApptOutcome)
    {
        form.getLocalContext().setSelectedRecord(null);
        form.getLocalContext().setSelectedLookup((ApptOutcome) form.grdAppOutcomeConfig().getValue());
        clearInstanceControls();
        form.ctnDetails().htmAppointmentOutcomeValue().setHTML(form.getLocalContext().getSelectedLookup()!=null ? "<b>" + form.getLocalContext().getSelectedLookup().getText() + "</b>": null); 
    }

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceControls(AppointmentOutcomeConfigVo apptOutome)
{
    clearInstanceControls();

    if (apptOutome==null)
        return;

    form.ctnDetails().htmAppointmentOutcomeValue().setHTML("<b>" + apptOutome.getAppointmentOutcome().getText() + "</b>");
    populateGridAppOutcomeReason(apptOutome.getAppointmentOutcomeReasons());
    form.ctnDetails().qmbFirstDefinitiveTreatment().newRow(apptOutome.getFirstDefinitiveTreatmentEvent(),apptOutome.getFirstDefinitiveTreatmentEvent()!=null ?  apptOutome.getFirstDefinitiveTreatmentEvent().getName(): null);
    form.ctnDetails().qmbFirstDefinitiveTreatment().setValue(apptOutome.getFirstDefinitiveTreatmentEvent());
    form.ctnDetails().chkFirst().setValue(apptOutome.getShowFirstDefinitiveTreatment());
    form.ctnDetails().chkWaiting().setValue(apptOutome.getCanAddtoWaitingList());
    form.ctnDetails().chkBooked().setValue(apptOutome.getCanAddtoBookedList());
    form.ctnDetails().chkPlanned().setValue(apptOutome.getCanAddtoPlannedList());
    form.ctnDetails().chkAppointment().setValue(apptOutome.getCanMakeAppointment());
    form.ctnDetails().chkOnward().setValue(apptOutome.getCanMakeOnwardReferral());
    form.ctnDetails().chkTransfer().setValue(apptOutome.getCanTransfer());


}
项目:openmaxims-linux    文件:Logic.java   
private void populateGridAppointmentOutcomeConfig(boolean active)
{
    AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig = domain.listAppointmentsOutcomeConfig(null);

    for (int i=0;i<form.grdAppOutcomeConfig().getRows().size();i++)
    {
        AppointmentOutcomeConfigVo apptOutcomeConfig=null;
        if (form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof ApptOutcome)
        {
            apptOutcomeConfig=getApptOutcomeConfig((ApptOutcome)form.grdAppOutcomeConfig().getRows().get(i).getValue(),collAppointmentOutcomeConfig);
        }
        else if(form.grdAppOutcomeConfig().getRows().get(i).getValue() instanceof AppointmentOutcomeConfigVo)
        {
            apptOutcomeConfig=getApptOutcomeConfig(((AppointmentOutcomeConfigVo)form.grdAppOutcomeConfig().getRows().get(i).getValue()).getAppointmentOutcome(),collAppointmentOutcomeConfig);
        }

        if (apptOutcomeConfig!=null)
        {
            updateApptOutcomeConfigRow(form.grdAppOutcomeConfig().getRows().get(i),apptOutcomeConfig);  
        }

    }

    form.grdAppOutcomeConfig().setValue(form.getLocalContext().getSelectedRecord());
    populateInstanceControls(form.getLocalContext().getSelectedRecord());
}
项目:openmaxims-linux    文件:Logic.java   
private void updateApptOutcomeConfigRow(grdAppOutcomeConfigRow row, AppointmentOutcomeConfigVo apptOutcomeConfig)
{
    if (apptOutcomeConfig==null)
        return;

    row.setColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setTooltipForColAppointmentOutcomeReason(getAppOutcomeReasons(apptOutcomeConfig.getAppointmentOutcomeReasons()));
    row.setColFirst(apptOutcomeConfig.getShowFirstDefinitiveTreatment());
    row.setColWaiting(apptOutcomeConfig.getCanAddtoWaitingList());
    row.setColBooked(apptOutcomeConfig.getCanAddtoBookedList());
    row.setColPlanned(apptOutcomeConfig.getCanAddtoPlannedList());
    row.setColAppointment(apptOutcomeConfig.getCanMakeAppointment());
    row.setColOnward(apptOutcomeConfig.getCanMakeOnwardReferral());
    row.setColTransfer(apptOutcomeConfig.getCanTransfer());
    row.setValue(apptOutcomeConfig);

}
项目:AvoinApotti    文件:AppointmentOutcomeDialogImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    if(apptOutcomeLookup == null)
        return null;

    AppointmentOutcomeConfig impl = (AppointmentOutcomeConfig) getDomainImpl(AppointmentOutcomeConfigImpl.class);
    return impl.getAppointmentOutcomeConfigByApptOutcomeLookup(apptOutcomeLookup);
}
项目:AvoinApotti    文件:Logic.java   
private AppointmentOutcomeConfigVo getApptOutcomeConfig(ApptOutcome value, AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig)
{
    if (collAppointmentOutcomeConfig==null || collAppointmentOutcomeConfig.size()==0)
        return null;

    for (int i=0;i<collAppointmentOutcomeConfig.size();i++)
    {
        if (collAppointmentOutcomeConfig.get(i).getAppointmentOutcome().getID()==value.getID())
            return collAppointmentOutcomeConfig.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean save()
{
    AppointmentOutcomeConfigVo apptOutcomeConfigToSave=populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    if (apptOutcomeConfigToSave.getID_AppointmentOutcomeConfig()==null && form.getLocalContext().getSelectedLookup()!=null && domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup())!=null)
    {
        engine.showMessage("An Appointment Outcome Configuration for '"+ form.getLocalContext().getSelectedLookup().getText() + "' already exist. The screen will be refreshed! ");
        open();
        return false;
    }
    String[] errors = apptOutcomeConfigToSave.validate();

    if (errors != null && errors.length>0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        form.getLocalContext().setSelectedRecord(domain.save(apptOutcomeConfigToSave));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;

}
项目:AvoinApotti    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfig(AppointmentOutcomeConfigRefVo appOutcomeConfigRef)
{
    if (appOutcomeConfigRef==null ||appOutcomeConfigRef.getID_AppointmentOutcomeConfig()==null)
    {
        throw new CodingRuntimeException("Cannot get AppointmentOutcomeConfigVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = (ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig) factory.getDomainObject(ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig.class,appOutcomeConfigRef.getID_AppointmentOutcomeConfig());

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:AvoinApotti    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo save(AppointmentOutcomeConfigVo appOutcomeConfigToSave) throws StaleObjectException
{
    if (appOutcomeConfigToSave == null)
    {
        throw new CodingRuntimeException("Cannot save null AppointmentOutcomeConfig");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = AppointmentOutcomeConfigVoAssembler.extractAppointmentOutcomeConfig(factory, appOutcomeConfigToSave);
    factory.save(domainApptOutcomeConfig);

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:AvoinApotti    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    StringBuilder hqlBuilder = new StringBuilder("select appOutcomeConfig from AppointmentOutcomeConfig as appOutcomeConfig left join appOutcomeConfig.appointmentOutcome as appOutcome where appOutcome.id= :AppOutcomeID ");

    List <?> list = getDomainFactory().find(hqlBuilder.toString(),new String[] {"AppOutcomeID"},new Object[] {apptOutcomeLookup.getID()});

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

    return AppointmentOutcomeConfigVoAssembler.create((AppointmentOutcomeConfig) list.get(0));
}
项目:openMAXIMS    文件:AppointmentOutcomeDialogImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    if(apptOutcomeLookup == null)
        return null;

    AppointmentOutcomeConfig impl = (AppointmentOutcomeConfig) getDomainImpl(AppointmentOutcomeConfigImpl.class);
    return impl.getAppointmentOutcomeConfigByApptOutcomeLookup(apptOutcomeLookup);
}
项目:openMAXIMS    文件:Logic.java   
private AppointmentOutcomeConfigVo getApptOutcomeConfig(ApptOutcome value, AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig)
{
    if (collAppointmentOutcomeConfig==null || collAppointmentOutcomeConfig.size()==0)
        return null;

    for (int i=0;i<collAppointmentOutcomeConfig.size();i++)
    {
        if (collAppointmentOutcomeConfig.get(i).getAppointmentOutcome().getID()==value.getID())
            return collAppointmentOutcomeConfig.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save()
{
    AppointmentOutcomeConfigVo apptOutcomeConfigToSave=populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    if (apptOutcomeConfigToSave.getID_AppointmentOutcomeConfig()==null && form.getLocalContext().getSelectedLookup()!=null && domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup())!=null)
    {
        engine.showMessage("An Appointment Outcome Configuration for '"+ form.getLocalContext().getSelectedLookup().getText() + "' already exist. The screen will be refreshed! ");
        open();
        return false;
    }
    String[] errors = apptOutcomeConfigToSave.validate();

    if (errors != null && errors.length>0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        form.getLocalContext().setSelectedRecord(domain.save(apptOutcomeConfigToSave));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;

}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfig(AppointmentOutcomeConfigRefVo appOutcomeConfigRef)
{
    if (appOutcomeConfigRef==null ||appOutcomeConfigRef.getID_AppointmentOutcomeConfig()==null)
    {
        throw new CodingRuntimeException("Cannot get AppointmentOutcomeConfigVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = (ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig) factory.getDomainObject(ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig.class,appOutcomeConfigRef.getID_AppointmentOutcomeConfig());

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo save(AppointmentOutcomeConfigVo appOutcomeConfigToSave) throws StaleObjectException
{
    if (appOutcomeConfigToSave == null)
    {
        throw new CodingRuntimeException("Cannot save null AppointmentOutcomeConfig");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = AppointmentOutcomeConfigVoAssembler.extractAppointmentOutcomeConfig(factory, appOutcomeConfigToSave);
    factory.save(domainApptOutcomeConfig);

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    StringBuilder hqlBuilder = new StringBuilder("select appOutcomeConfig from AppointmentOutcomeConfig as appOutcomeConfig left join appOutcomeConfig.appointmentOutcome as appOutcome where appOutcome.id= :AppOutcomeID ");

    List <?> list = getDomainFactory().find(hqlBuilder.toString(),new String[] {"AppOutcomeID"},new Object[] {apptOutcomeLookup.getID()});

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

    return AppointmentOutcomeConfigVoAssembler.create((AppointmentOutcomeConfig) list.get(0));
}
项目:openMAXIMS    文件:AppointmentOutcomeDialogImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    if(apptOutcomeLookup == null)
        return null;

    AppointmentOutcomeConfig impl = (AppointmentOutcomeConfig) getDomainImpl(AppointmentOutcomeConfigImpl.class);
    return impl.getAppointmentOutcomeConfigByApptOutcomeLookup(apptOutcomeLookup);
}
项目:openMAXIMS    文件:Logic.java   
private AppointmentOutcomeConfigVo getApptOutcomeConfig(ApptOutcome value, AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig)
{
    if (collAppointmentOutcomeConfig==null || collAppointmentOutcomeConfig.size()==0)
        return null;

    for (int i=0;i<collAppointmentOutcomeConfig.size();i++)
    {
        if (collAppointmentOutcomeConfig.get(i).getAppointmentOutcome().getID()==value.getID())
            return collAppointmentOutcomeConfig.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean save()
{
    AppointmentOutcomeConfigVo apptOutcomeConfigToSave=populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    if (apptOutcomeConfigToSave.getID_AppointmentOutcomeConfig()==null && form.getLocalContext().getSelectedLookup()!=null && domain.getAppointmentOutcomeConfigByApptOutcomeLookup(form.getLocalContext().getSelectedLookup())!=null)
    {
        engine.showMessage("An Appointment Outcome Configuration for '"+ form.getLocalContext().getSelectedLookup().getText() + "' already exist. The screen will be refreshed! ");
        open();
        return false;
    }
    String[] errors = apptOutcomeConfigToSave.validate();

    if (errors != null && errors.length>0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        form.getLocalContext().setSelectedRecord(domain.save(apptOutcomeConfigToSave));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;

}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfig(AppointmentOutcomeConfigRefVo appOutcomeConfigRef)
{
    if (appOutcomeConfigRef==null ||appOutcomeConfigRef.getID_AppointmentOutcomeConfig()==null)
    {
        throw new CodingRuntimeException("Cannot get AppointmentOutcomeConfigVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = (ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig) factory.getDomainObject(ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig.class,appOutcomeConfigRef.getID_AppointmentOutcomeConfig());

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo save(AppointmentOutcomeConfigVo appOutcomeConfigToSave) throws StaleObjectException
{
    if (appOutcomeConfigToSave == null)
    {
        throw new CodingRuntimeException("Cannot save null AppointmentOutcomeConfig");
    }

    DomainFactory factory = getDomainFactory();

    ims.pathways.configuration.domain.objects.AppointmentOutcomeConfig domainApptOutcomeConfig = AppointmentOutcomeConfigVoAssembler.extractAppointmentOutcomeConfig(factory, appOutcomeConfigToSave);
    factory.save(domainApptOutcomeConfig);

    return AppointmentOutcomeConfigVoAssembler.create(domainApptOutcomeConfig);
}
项目:openMAXIMS    文件:AppointmentOutcomeConfigImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    StringBuilder hqlBuilder = new StringBuilder("select appOutcomeConfig from AppointmentOutcomeConfig as appOutcomeConfig left join appOutcomeConfig.appointmentOutcome as appOutcome where appOutcome.id= :AppOutcomeID ");

    List <?> list = getDomainFactory().find(hqlBuilder.toString(),new String[] {"AppOutcomeID"},new Object[] {apptOutcomeLookup.getID()});

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

    return AppointmentOutcomeConfigVoAssembler.create((AppointmentOutcomeConfig) list.get(0));
}
项目:openmaxims-linux    文件:AppointmentOutcomeDialogImpl.java   
public AppointmentOutcomeConfigVo getAppointmentOutcomeConfigByApptOutcomeLookup(ApptOutcome apptOutcomeLookup)
{
    if(apptOutcomeLookup == null)
        return null;

    AppointmentOutcomeConfig impl = (AppointmentOutcomeConfig) getDomainImpl(AppointmentOutcomeConfigImpl.class);
    return impl.getAppointmentOutcomeConfigByApptOutcomeLookup(apptOutcomeLookup);
}
项目:openmaxims-linux    文件:Logic.java   
private AppointmentOutcomeConfigVo getApptOutcomeConfig(ApptOutcome value, AppointmentOutcomeConfigVoCollection collAppointmentOutcomeConfig)
{
    if (collAppointmentOutcomeConfig==null || collAppointmentOutcomeConfig.size()==0)
        return null;

    for (int i=0;i<collAppointmentOutcomeConfig.size();i++)
    {
        if (collAppointmentOutcomeConfig.get(i).getAppointmentOutcome().getID()==value.getID())
            return collAppointmentOutcomeConfig.get(i);
    }

    return null;
}