Java 类ims.clinical.vo.enums.SurgicalAuditPreOpChecksEvent 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnNewClick() throws PresentationLogicException
{
    Boolean areNoSurgAuditOpDet = domain.areNoSurgicalAuditOperationDetail(form.getGlobalContext().Core.getCurrentCareContext());
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    form.getLocalContext().setcurrentSurgicalAuditOpDetail(null);

    // Condition to create only one SurgicalAudit Per CareContext
    if (!areNoSurgAuditOpDet && form.getLocalContext().getcurrentSurgicalAuditOpDetail() == null)
    {
        engine.showMessage("An Active Surgical Audit Operation Detail for the selected Care Context already exist. The screen will be refreshed");
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return ;
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnEdit1Click() throws PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcPreOpChecksValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        form.getLocalContext().setselectedSurgicalAuditOpDetail(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getValue());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
        open();
        return;

    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
    }
    FormMode preOpChecksMode = form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getMode();
    form.setMode(preOpChecksMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcPreOpChecksTheatreNurseValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
    }
    FormMode preOpChecksTheatreNurseMode = form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getMode();
    form.setMode(preOpChecksTheatreNurseMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcProcedureDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{

    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) ||SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) )
    {
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
    }
    FormMode procedureDetailsMode = form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getMode();
    form.setMode(procedureDetailsMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcPlannedActualProcValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
    }

    FormMode plannedActualProcMode = form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getMode();
    form.setMode(plannedActualProcMode);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws PresentationLogicException
{
    Boolean areNoSurgAuditOpDet = domain.areNoSurgicalAuditOperationDetail(form.getGlobalContext().Core.getCurrentCareContext());
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    form.getLocalContext().setcurrentSurgicalAuditOpDetail(null);

    // Condition to create only one SurgicalAudit Per CareContext
    if (!areNoSurgAuditOpDet && form.getLocalContext().getcurrentSurgicalAuditOpDetail() == null)
    {
        engine.showMessage("An Active Surgical Audit Operation Detail for the selected Care Context already exist. The screen will be refreshed");
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return ;
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEdit1Click() throws PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);    
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPreOpChecksValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        form.getLocalContext().setselectedSurgicalAuditOpDetail(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getValue());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
        open();
        return;

    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
    }
    FormMode preOpChecksMode = form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getMode();
    form.setMode(preOpChecksMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPreOpChecksTheatreNurseValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
    }
    FormMode preOpChecksTheatreNurseMode = form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getMode();
    form.setMode(preOpChecksTheatreNurseMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcProcedureDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{

    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) ||SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) )
    {
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
    }
    FormMode procedureDetailsMode = form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getMode();
    form.setMode(procedureDetailsMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPlannedActualProcValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
    }

    FormMode plannedActualProcMode = form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getMode();
    form.setMode(plannedActualProcMode);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws PresentationLogicException
{
    Boolean areNoSurgAuditOpDet = domain.areNoSurgicalAuditOperationDetail(form.getGlobalContext().Core.getCurrentCareContext());
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    form.getLocalContext().setcurrentSurgicalAuditOpDetail(null);

    // Condition to create only one SurgicalAudit Per CareContext
    if (!areNoSurgAuditOpDet && form.getLocalContext().getcurrentSurgicalAuditOpDetail() == null)
    {
        engine.showMessage("An Active Surgical Audit Operation Detail for the selected Care Context already exist. The screen will be refreshed");
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return ;
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEdit1Click() throws PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);    
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPreOpChecksValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        form.getLocalContext().setselectedSurgicalAuditOpDetail(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getValue());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
        open();
        return;

    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
    }
    FormMode preOpChecksMode = form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getMode();
    form.setMode(preOpChecksMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPreOpChecksTheatreNurseValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
    }
    FormMode preOpChecksTheatreNurseMode = form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getMode();
    form.setMode(preOpChecksTheatreNurseMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcProcedureDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{

    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) ||SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) )
    {
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
    }
    FormMode procedureDetailsMode = form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getMode();
    form.setMode(procedureDetailsMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcPlannedActualProcValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
    }

    FormMode plannedActualProcMode = form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getMode();
    form.setMode(plannedActualProcMode);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnNewClick() throws PresentationLogicException
{
    Boolean areNoSurgAuditOpDet = domain.areNoSurgicalAuditOperationDetail(form.getGlobalContext().Core.getCurrentCareContext());
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    form.getLocalContext().setcurrentSurgicalAuditOpDetail(null);

    // Condition to create only one SurgicalAudit Per CareContext
    if (!areNoSurgAuditOpDet && form.getLocalContext().getcurrentSurgicalAuditOpDetail() == null)
    {
        engine.showMessage("An Active Surgical Audit Operation Detail for the selected Care Context already exist. The screen will be refreshed");
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return ;
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnEdit1Click() throws PresentationLogicException
{
    Object hcpUser = domain.getHcpLiteUser();
    if (!(hcpUser instanceof HcpLiteVo))
    {
        engine.showMessage("The current user is not an HCP!");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail()))
    {
        form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail()));
        populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail());
    }
    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    HcpLiteVo tempHcp = null;
    if( domain.getHcpLiteUser() instanceof HcpLiteVo)
        tempHcp = (HcpLiteVo) domain.getHcpLiteUser();
    if( tempHcp == null)
    {
        engine.showMessage("The current user is not an HCP");
        return;
    }

    // Check SOE on EDIT
    if (form.getLocalContext().getCurrentSurgicalAuditOperationDetails()!=null && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()))
    {   
        form.getLocalContext().setCurrentSurgicalAuditOperationDetails(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getCurrentSurgicalAuditOperationDetails()));
        clearAll();
        populateScreenFromData(form.getLocalContext().getCurrentSurgicalAuditOperationDetails());
    }

    form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);    
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcPreOpChecksValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        form.getLocalContext().setselectedSurgicalAuditOpDetail(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getValue());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
        open();
        return;

    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().resetSelectedEvent();
    }
    FormMode preOpChecksMode = form.lyrSurgAudit().tabPreOperationChecks().ccPreOpChecks().getMode();
    form.setMode(preOpChecksMode);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcPreOpChecksTheatreNurseValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().resetSelectedEvent();
    }
    FormMode preOpChecksTheatreNurseMode = form.lyrSurgAudit().tabPreOperationChecksTheatreNurse().ccPreOpChecksTheatreNurse().getMode();
    form.setMode(preOpChecksTheatreNurseMode);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcProcedureDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{

    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) ||SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()) )
    {
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().resetSelectedEvent();
    }
    FormMode procedureDetailsMode = form.lyrSurgAudit().tabProcedureDetails().ccProcedureDetails().getMode();
    form.setMode(procedureDetailsMode);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcPlannedActualProcValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (SurgicalAuditPreOpChecksEvent.SAVE.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()) || SurgicalAuditPreOpChecksEvent.CANCEL.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
        open();
        return;
    }
    else if (SurgicalAuditPreOpChecksEvent.EDIT.equals(form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getSelectedEvent()))
    {
        populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext());
        form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().resetSelectedEvent();
    }

    FormMode plannedActualProcMode = form.lyrSurgAudit().tabPlannedActualProcedures().ccPlannedActualProc().getMode();
    form.setMode(plannedActualProcMode);
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        //open();
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        //open();
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        //open();
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        //open();
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        form.getLocalContext().setselectedEvent(SurgicalAuditPreOpChecksEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}