Java 类ims.admin.vo.enums.ElectiveListDetails 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if(form.getLocalContext().getSuspensionMessageBoxId() != null && form.getLocalContext().getSuspensionMessageBoxId() == messageBoxId)
    {
        if(DialogResult.YES.equals(result))
        {
            engine.open(form.getForms().RefMan.SuspensionDetails);
        }

        form.getLocalContext().setSuspensionMessageBoxId(null);

        return;
    }

    if (DialogResult.YES.equals(result))
    {
        save(false, true);
        open();
        form.setMode(FormMode.VIEW);
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
    }
    else
        form.chkReasonableOffer().setValue(false);

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_WAITING_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOWAITINGLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_BOOKED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOBOOKEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_PLANNED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOPLANNEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.BOOK_APPOINTMENT:
            engine.open(form.getForms().RefMan.BookAppointmentDialog);
            break;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if(form.getLocalContext().getSuspensionMessageBoxId() != null && form.getLocalContext().getSuspensionMessageBoxId() == messageBoxId)
    {
        if(DialogResult.YES.equals(result))
        {
            engine.open(form.getForms().RefMan.SuspensionDetails);
        }

        form.getLocalContext().setSuspensionMessageBoxId(null);

        return;
    }

    if (DialogResult.YES.equals(result))
    {
        save(false, true);
        open();
        form.setMode(FormMode.VIEW);
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
    }
    else
        form.chkReasonableOffer().setValue(false);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_WAITING_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOWAITINGLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_BOOKED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOBOOKEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_PLANNED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOPLANNEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.BOOK_APPOINTMENT:
            engine.open(form.getForms().RefMan.BookAppointmentDialog);
            break;
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_WAITING_LIST:
            form.getGlobalContext().CareUk.setPatientElectiveListRef(null);
            engine.open(form.getForms().CAREUK.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOWAITINGLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_BOOKED_LIST:
            form.getGlobalContext().CareUk.setPatientElectiveListRef(null);
            engine.open(form.getForms().CAREUK.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOBOOKEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_PLANNED_LIST:
            form.getGlobalContext().CareUk.setPatientElectiveListRef(null);
            engine.open(form.getForms().CAREUK.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOPLANNEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.BOOK_APPOINTMENT:
            engine.open(form.getForms().CAREUK.BookAppointmentDialog);
            break;
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{

    if (args != null && args.length > 0 && args[0] != null && args[0] instanceof ElectiveListDetails)
    {
        form.getLocalContext().setActionPressed((ElectiveListDetails) args[0]);
    }
    else
        return;

    initialise();
    open();
    form.setMode((ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed()) || ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed())) ? FormMode.VIEW : FormMode.EDIT);

    //if cancel TCI, open the CancelTciDialog
    if (ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed()))
    {
        cancelTCI();
    }
    //wdev-18384
    if( ElectiveListDetails.REMOVE_ELECTIVE_LIST.equals(form.getLocalContext().getActionPressed()))
    {
        removeElectiveListEntry();
    }
    //-----------

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed())
            || ElectiveListDetails.NEWEDITEROD.equals(form.getLocalContext().getActionPressed())
            || ElectiveListDetails.NEWEDITTCI.equals(form.getLocalContext().getActionPressed()))
    {
        open();
        form.setMode(FormMode.VIEW);
    }
    else
    {
        //wdev-18320
        if( ElectiveListDetails.REVIEW.equals(form.getLocalContext().getActionPressed()) )
        {

            PatientElectiveListDetailsToSaveVo patientElectiveList = form.getLocalContext().getPatientElectiveList();

            ReviewPatientElectiveListVo tempVo = new ReviewPatientElectiveListVo();
            tempVo.setReviewedDate(new DateTime());
            tempVo.setReviewedBy((MemberOfStaffLiteVo) domain.getMosUser());
            ReviewPatientElectiveListVoCollection tempColl = patientElectiveList.getReviews();
            if( tempColl == null )
                tempColl = new ReviewPatientElectiveListVoCollection();
            tempColl.add(tempVo);
            patientElectiveList.setReviews(tempColl);
            form.getLocalContext().setPatientElectiveList(patientElectiveList);

            save(false,false);

        }
        engine.close(DialogResult.CANCEL);
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save(true, true))
    {
        open();
        //WDEV-18388
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
        form.setMode(FormMode.VIEW);
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnAddTCIClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(ElectiveListDetails.NEWEDITTCI);
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnAddERODClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(ElectiveListDetails.NEWEDITEROD);
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{       
    if (args != null)
    {
        //WDEV-19382
        if (args.length > 0 && args[0] != null && args[0] instanceof ElectiveListDetails)
            form.getLocalContext().setActionPressed((ElectiveListDetails) args[0]);
        if (args.length > 1 && args[1] != null && args[1] instanceof Boolean)
            form.getLocalContext().setbLinkAsCreatingAppointment((Boolean) args[1]);
        //WDEV-19382 --- end
    }
    else
        return;

    initialise();
    open();
    form.setMode((ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed()) || ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed())) ? FormMode.VIEW : FormMode.EDIT);

    //if cancel TCI, open the CancelTciDialog
    if (ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed()))
    {
        cancelTCI();
    }
    //wdev-18384
    if( ElectiveListDetails.REMOVE_ELECTIVE_LIST.equals(form.getLocalContext().getActionPressed()))
    {
        removeElectiveListEntry();
    }
    //-----------
    //wdev-19393
    if( ElectiveListDetails.UNDO_REMOVAL_ELECTIVE_LIST.equals(form.getLocalContext().getActionPressed()))
    {
        undoremoveElectiveListEntry();
    }
    //-----------

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed())
        || ElectiveListDetails.NEWEDITEROD.equals(form.getLocalContext().getActionPressed())
        || ElectiveListDetails.NEWEDITTCI.equals(form.getLocalContext().getActionPressed()))
    {
        open();
        form.getLocalContext().setActionPressed(null);//WDEV-19203
        form.setMode(FormMode.VIEW);
    }
    else
    {
        //wdev-18320
        if( ElectiveListDetails.REVIEW.equals(form.getLocalContext().getActionPressed()) )
        {

            PatientElectiveListDetailsToSaveVo patientElectiveList = form.getLocalContext().getPatientElectiveList();

            ReviewPatientElectiveListVo tempVo = new ReviewPatientElectiveListVo();
            tempVo.setReviewedDate(new DateTime());
            tempVo.setReviewedBy((MemberOfStaffLiteVo) domain.getMosUser());
            ReviewPatientElectiveListVoCollection tempColl = patientElectiveList.getReviews();
            if( tempColl == null )
                tempColl = new ReviewPatientElectiveListVoCollection();
            tempColl.add(tempVo);
            patientElectiveList.setReviews(tempColl);
            form.getLocalContext().setPatientElectiveList(patientElectiveList);

            save(false,false,false, false);

        }
        engine.close(DialogResult.CANCEL);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save(true, true, true, false))
    {
        open();
        //WDEV-18388
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
        form.setMode(FormMode.VIEW);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void updateRTTBreachReasonControlsState(boolean isBreachReasonMandatory, boolean enableBreachReason)
{
    form.cmbBreachReason().setEnabled(enableBreachReason);
    form.imbOtherReason().setEnabled(enableBreachReason);
    boolean isTCIAmend = form.getLocalContext().getPatientElectiveListIsNotNull() && form.getLocalContext().getPatientElectiveList().getTCIDetailsIsNotNull() && ims.admin.vo.enums.ElectiveListDetails.NEWEDITTCI.equals(form.getLocalContext().getActionPressed());
    form.cmbBreachReason().setRequired(isBreachReasonMandatory && isTCIAmend ?  form.getLocalContext().getPatientElectiveList().getTCIDetails().getRTTBreachComment() == null : (form.getGlobalContext().RefMan.getReasonRTTWeekWaitBreach() == null || form.getGlobalContext().RefMan.getReasonRTTWeekWaitBreach().getComment() == null)); //WDEV-19445
}
项目:openMAXIMS    文件:Logic.java   
private void hideTCIDetails(boolean isWaitingListEntry)
{
    boolean isPlannedListEntry = ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType()); //WDEV-19940

    form.pnlTCIDetails().setVisible(!isWaitingListEntry );
    form.dteTCIDate().setVisible(!isWaitingListEntry && !ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) ); //WDEV-19615
    form.lblTCIDate().setVisible(!isWaitingListEntry && !ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) );//WDEV-19615;
    form.lblTCITime().setVisible(!isWaitingListEntry && !ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) ); //WDEV-19615;
    form.timTCITime().setVisible(!isWaitingListEntry && !ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) ); //WDEV-19615;

    //WDEV-19615
    form.lblPlanTciIn().setVisible(ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) && ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())); 
    form.intPlanICIIn().setVisible(ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed())&&  ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())); 
    form.GroupPlanIn().setVisible( ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getActionPressed()) && ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())); 
    form.lblPlannedDate().setVisible(ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())); 
    form.dtePlannedDate().setVisible(ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())); 

    form.lblWard().setVisible(!isWaitingListEntry);
    form.qmbWard().setVisible(!isWaitingListEntry);//WDEV-18388
    form.qmbHospital().setVisible(!isWaitingListEntry);//WDEV-18388
    form.lblBreachReason().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.cmbBreachReason().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.imbOtherReason().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.lblDateOffered().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.dteDateOffered().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.lblTCIOfferedMethod().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.cmbTCIOfferedMethod().setVisible(!isWaitingListEntry && !isPlannedListEntry);//WDEV-19940
    form.grdDateEvent().setVisible(!isWaitingListEntry);
    form.btnCancelTCI().setVisible(!isWaitingListEntry && form.getLocalContext().getPatientElectiveListIsNotNull() && form.getLocalContext().getPatientElectiveList().getTCIDetailsIsNotNull() && form.getLocalContext().getPatientElectiveList().getTCIDetails().getTCIDate()!=null);//WDEV-18388  //WDEV-19615
    form.imbTCIHistory().setVisible(!isWaitingListEntry);//WDEV-18388
    form.lblTCIOutcome().setVisible(!isWaitingListEntry && !isPlannedListEntry); //WDEV-18464 //WDEV-19940
    form.lblTCIOutcomeValue().setVisible(!isWaitingListEntry && !isPlannedListEntry); //WDEV-18464 //WDEV-19940
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnAddTCIClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(form.getMode().equals(FormMode.VIEW) ? ElectiveListDetails.NEWEDITTCI : ElectiveListDetails.NEW_EDIT_TCI_EDIT_MODE);//WDEV-19203
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnAddERODClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(form.getMode().equals(FormMode.VIEW) ? ElectiveListDetails.NEWEDITEROD : ElectiveListDetails.NEW_EDIT_EROD_EDIT_MODE); //WDEV-19203
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{

    if (args != null && args.length > 0 && args[0] != null && args[0] instanceof ElectiveListDetails)
    {
        form.getLocalContext().setActionPressed((ElectiveListDetails) args[0]);
    }
    else
        return;

    initialise();
    open();
    form.setMode((ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed()) || ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed())) ? FormMode.VIEW : FormMode.EDIT);

    //if cancel TCI, open the CancelTciDialog
    if (ElectiveListDetails.CANCELTCI.equals(form.getLocalContext().getActionPressed()))
    {
        cancelTCI();
    }
    //wdev-18384
    if( ElectiveListDetails.REMOVE_ELECTIVE_LIST.equals(form.getLocalContext().getActionPressed()))
    {
        removeElectiveListEntry();
    }
    //-----------

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ElectiveListDetails.VIEWEDIT.equals(form.getLocalContext().getActionPressed())
            || ElectiveListDetails.NEWEDITEROD.equals(form.getLocalContext().getActionPressed())
            || ElectiveListDetails.NEWEDITTCI.equals(form.getLocalContext().getActionPressed()))
    {
        open();
        form.setMode(FormMode.VIEW);
    }
    else
    {
        //wdev-18320
        if( ElectiveListDetails.REVIEW.equals(form.getLocalContext().getActionPressed()) )
        {

            PatientElectiveListDetailsToSaveVo patientElectiveList = form.getLocalContext().getPatientElectiveList();

            ReviewPatientElectiveListVo tempVo = new ReviewPatientElectiveListVo();
            tempVo.setReviewedDate(new DateTime());
            tempVo.setReviewedBy((MemberOfStaffLiteVo) domain.getMosUser());
            ReviewPatientElectiveListVoCollection tempColl = patientElectiveList.getReviews();
            if( tempColl == null )
                tempColl = new ReviewPatientElectiveListVoCollection();
            tempColl.add(tempVo);
            patientElectiveList.setReviews(tempColl);
            form.getLocalContext().setPatientElectiveList(patientElectiveList);

            save(false,false);

        }
        engine.close(DialogResult.CANCEL);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save(true, true))
    {
        open();
        //WDEV-18388
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
        form.setMode(FormMode.VIEW);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnAddTCIClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(ElectiveListDetails.NEWEDITTCI);
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnAddERODClick() throws PresentationLogicException
{
    form.getLocalContext().setActionPressed(ElectiveListDetails.NEWEDITEROD);
    if (form.getMode().equals(FormMode.VIEW))
    {
        form.setMode(FormMode.EDIT);
        return;
    }
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NewReferralWizard :
            launchNewReferralWizard();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDIT_REFERRAL_DETAILS :
            editReferralDetails();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.AtConsultation :
            viewAtColsultation();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.Presentation :
            viewPresentation();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.CALL_ATTEMPTS :
            viewCallAttempts();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWREJECTEDONWARDREFERRAL:
            newRejectedOnwardReferral();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDITREJECTONWARDREFERRALDETAILS:
            editRejectOnWardReferralDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWONWARDREFERRAL:
            newOnwardReferral();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewConsultationDetails:
            viewConsultationDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewReferralDetails:
            viewReferralDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ReAdmitPatient:
            admit();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_PROVIDER_CANCELLATION:
            undoProviderCancellation();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_REFERRAL_REJECTION:
            undoReferralRejection();
            break;


        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEW_WAITING_LIST_ENTRY://WDEV-18083
            engine.open(form.getForms().RefMan.NewElectiveListEntry,new Object[]{1,form.getLocalContext().getSelectedRecord()});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_BOOKED_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[]{ElectiveListDetails.ADDTOBOOKEDLIST});
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_PLANNED_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOPLANNEDLIST});
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_WAITING_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOWAITINGLIST});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_EDIT_ELECTIVE_LIST_DETAILS:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.VIEWEDIT});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_ADMIN_EVENTS:
            engine.open(form.getForms().Pathways.AdminEvent,  new Object[]{FormMode.VIEW});
            break;

        default:
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    if( domain.getMosUser() == null )
    {
        engine.showMessage("The Logged in user is not a Member Of Staff");
        engine.close(DialogResult.CANCEL);
    }


    if (args != null)
    {
        if (args.length >= 3 && args.length > 0 && args[0] != null && args[0] instanceof ElectiveListDetails  )
        {
            form.getLocalContext().setAction((ElectiveListDetails) args[0]);
            if(ElectiveListDetails.ADDTOWAITINGLIST.equals(args[0]))//WDEV-22957
                engine.setCaption("Waiting List Details");


            if( args[1] != null && args[1] instanceof BookingAppointmentOutcomeVo)
                form.getLocalContext().setAppointment((BookingAppointmentOutcomeVo) args[1]);
            else
                form.getLocalContext().setAppointment(null);

            if (args[2] != null && args[2] instanceof PatientElectiveListAddLaterVo)
            {
                form.getLocalContext().setPatientElectiveList((PatientElectiveListAddLaterVo) args[2]);
            }
            else if( args[2] != null && args[2] instanceof PatientElectiveListRefVo)
            {
                form.getLocalContext().setPatientElectiveList(domain.getPatientElectiveList((PatientElectiveListRefVo) args[2]));
            }
            else
            {
                form.getLocalContext().setPatientElectiveList(null);
            }
        }
    }
    else
        return;

    initialise();
    hiddenTabs();
    open();

    if (args != null && args.length >= 4 && args[3] instanceof ElectiveListAddLaterDlgOpenMode )
    {
        form.getLocalContext().setElectiveListAddLaterDlgOpenMode((ElectiveListAddLaterDlgOpenMode) args[3]);
        if( form.getLocalContext().getElectiveListAddLaterDlgOpenMode().equals(ElectiveListAddLaterDlgOpenMode.READ_ONLY) || ElectiveListAddLaterDlgOpenMode.UNDOOUTCOME.equals(form.getLocalContext().getElectiveListAddLaterDlgOpenMode()))
            form.setMode(FormMode.VIEW);
        else if( ElectiveListAddLaterDlgOpenMode.EDIT.equals(form.getLocalContext().getElectiveListAddLaterDlgOpenMode()) )
            form.setMode(FormMode.EDIT);

    }
    else
        form.setMode(FormMode.VIEW);

    //WDEV-22488
    if (args.length>=5 && args[4] != null && args[4] instanceof Boolean)
    {
        form.getLocalContext().setAddEditComments((Boolean)args[4]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientElectiveListAddLaterVo populateDataFromScreen(PatientElectiveListAddLaterVo patientElectiveList)
{

    if (patientElectiveList == null)
        patientElectiveList = new PatientElectiveListAddLaterVo();
    else
        patientElectiveList=(PatientElectiveListAddLaterVo) patientElectiveList.clone();

    CatsReferralforElectiveListDetailsVo currentReferral = form.getLocalContext().getReferral();

    patientElectiveList.setPatient( currentReferral!= null ? currentReferral.getPatient() : null);
    patientElectiveList.setReferral(currentReferral);

    if( form.getLocalContext().getAppointmentIsNotNull())   //wdev-21152
        patientElectiveList.setCreatingAppointment(form.getLocalContext().getAppointment());


    //Elective Admission Type
    if( form.getLocalContext().getActionIsNotNull() )
    {
        if( ims.admin.vo.enums.ElectiveListDetails.ADDTOWAITINGLIST.equals(form.getLocalContext().getAction()))
        {
            patientElectiveList.setElectiveAdmissionType(ElectiveAdmissionType.ELECTIVE_TYPE11);
        }
        else if( ims.admin.vo.enums.ElectiveListDetails.ADDTOBOOKEDLIST.equals(form.getLocalContext().getAction()))
        {
            patientElectiveList.setElectiveAdmissionType(ElectiveAdmissionType.BOOKED_TYPE12);
        }
        if( ims.admin.vo.enums.ElectiveListDetails.ADDTOPLANNEDLIST.equals(form.getLocalContext().getAction()))
        {
            patientElectiveList.setElectiveAdmissionType(ElectiveAdmissionType.PLANNED_TYPE13);
        }

    }

    // Patient Category
    patientElectiveList.setPatientCategory(form.cmbPatientCategory().getValue());

    //wdev-22529
    if(patientElectiveList.getID_PatientElectiveList() == null)
        patientElectiveList.setDateOnList((form.ccAuthoringHCPDT().getValue() != null && form.ccAuthoringHCPDT().getValue().getAuthoringDateTime() != null) ? form.ccAuthoringHCPDT().getValue().getAuthoringDateTime().getDate() : null);

    if( GroupAdmissionTypeEnumeration.rdoSurgical.equals(form.GroupAdmissionType().getValue()))
    {
        patientElectiveList.setAdmissionType(WaitingCardAdmissionType.SURGICAL);
        patientElectiveList = populateDataFromSurgicalTab(patientElectiveList);
    }
    else if( GroupAdmissionTypeEnumeration.rdoMedical.equals(form.GroupAdmissionType().getValue()))
    {
        patientElectiveList.setAdmissionType(WaitingCardAdmissionType.MEDICAL);
        patientElectiveList = populateDataFromMedicalTab(patientElectiveList);
    }
    else if( GroupAdmissionTypeEnumeration.rdoEndoscopy.equals(form.GroupAdmissionType().getValue()))
    {
        patientElectiveList.setAdmissionType(WaitingCardAdmissionType.ENDOSCOPY);
        patientElectiveList = populateDataFromEndoscopyTab(patientElectiveList);
    }


    return patientElectiveList;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NewReferralWizard :
        launchNewReferralWizard();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDIT_REFERRAL_DETAILS :
        editReferralDetails();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.AtConsultation :
        viewAtColsultation();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.Presentation :
        viewPresentation();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.CALL_ATTEMPTS :
        viewCallAttempts();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWREJECTEDONWARDREFERRAL:
        newRejectedOnwardReferral();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDITREJECTONWARDREFERRALDETAILS:
        editRejectOnWardReferralDetails();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWONWARDREFERRAL:
        newOnwardReferral();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewConsultationDetails:
        viewConsultationDetails();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewReferralDetails:
        viewReferralDetails();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ReAdmitPatient:
        admit();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_PROVIDER_CANCELLATION:
        undoProviderCancellation();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_REFERRAL_REJECTION:
        undoReferralRejection();
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_END_OF_CARE://WDEV-21096
        undoEndOfCare();
        break;


    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEW_WAITING_LIST_ENTRY://WDEV-18083
    engine.open(form.getForms().RefMan.NewElectiveListEntry,new Object[]{1,form.getLocalContext().getSelectedRecord()});
    break;

    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_BOOKED_LIST:
        form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
        engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[]{ElectiveListDetails.ADDTOBOOKEDLIST});
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_PLANNED_LIST:
        form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
        engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOPLANNEDLIST});
        break;
    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_WAITING_LIST:
        form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
        engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOWAITINGLIST});
        break;

    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_EDIT_ELECTIVE_LIST_DETAILS:
        engine.open(form.getForms().RefMan.ElectiveListDetails);
        break;

    case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_ADMIN_EVENTS:
        engine.open(form.getForms().Pathways.AdminEvent,  new Object[]{FormMode.VIEW});
        break;

    default:
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setActionPressed(ElectiveListDetails.EDIT_ELECTIVE_LIST); //WDEV-18513 
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if(form.getLocalContext().getSuspensionMessageBoxId() != null && form.getLocalContext().getSuspensionMessageBoxId() == messageBoxId)
    {
        if(DialogResult.YES.equals(result))
        {
            engine.open(form.getForms().RefMan.SuspensionDetails);
        }

        form.getLocalContext().setSuspensionMessageBoxId(null);

        return;
    }

    if (DialogResult.YES.equals(result))
    {
        //wdev-19200
        if( form.getLocalContext().getReasonableDateMessageBoxIdIsNotNull() && form.getLocalContext().getReasonableDateMessageBoxId() == messageBoxId )
        {
            form.chkReasonableOffer().setValue(true);
        }
        save(false, true, true, false);
        open();
        form.setMode(FormMode.VIEW);
        form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
    }
    else
    {
        form.chkReasonableOffer().setValue(false);
        //wdev-19200
        if( form.getLocalContext().getReasonableDateMessageBoxIdIsNotNull() && form.getLocalContext().getReasonableDateMessageBoxId() == messageBoxId && DialogResult.NO.equals(result))
        {

            if( ConfigFlag.DOM.EROD_SAVE_ONLY_REASONABLE_OFFERS.getValue() == false )   
            {
                save(false, true, true, false);
                open();
                form.setMode(FormMode.VIEW);
                form.getLocalContext().setActionPressed(ElectiveListDetails.VIEWEDIT);
            }
        }
    }

    //wdev-19200
    if( form.getLocalContext().getReasonableDateMessageBoxIdIsNotNull() && form.getLocalContext().getReasonableDateMessageBoxId() == messageBoxId )
    {
        form.getLocalContext().setReasonableDateMessageBoxId(null);
    }


}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{

    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_WAITING_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOWAITINGLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_BOOKED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOBOOKEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.ADD_TO_PLANNED_LIST:
            form.getGlobalContext().RefMan.setPatientElectiveListRef(null);
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[] { ElectiveListDetails.ADDTOPLANNEDLIST });
            break;

        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.BOOK_APPOINTMENT:
            form.getGlobalContext().RefMan.setAppointmentSaved(Boolean.FALSE);//WDEV-18517

            // WDEV-20928 - If appointment outcome being managed was today, we set the GC to true to save with the appointment
            form.getGlobalContext().RefMan.setBookedOnDayOfAppointment(Boolean.FALSE);
            OutpatientEpisodeWithICPInfoVo opRecord = (OutpatientEpisodeWithICPInfoVo) form.dynGrdResults().getSelectedRow().getValue();
            if (opRecord != null && opRecord.getAppointmentDateIsNotNull() && opRecord.getAppointmentDate().equals(new ims.framework.utils.Date()))
                form.getGlobalContext().RefMan.setBookedOnDayOfAppointment(Boolean.TRUE);


            engine.open(form.getForms().RefMan.BookAppointmentDialog, false); //WDEV-22308
            break;
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.VIEW_OUTCOME:
            viewOutcome();
            break;
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.FLAG_COMPLETE:
            taskComplete();
            break;
        case GenForm.ContextMenus.ClinicalNamespace.ClinicListActionSummaryMenu.VIEW_REFERRAL:
            viewReferral();
            break;
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NewReferralWizard :
            launchNewReferralWizard();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDIT_REFERRAL_DETAILS :
            editReferralDetails();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.AtConsultation :
            viewAtColsultation();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.Presentation :
            viewPresentation();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.CALL_ATTEMPTS :
            viewCallAttempts();
        break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWREJECTEDONWARDREFERRAL:
            newRejectedOnwardReferral();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.EDITREJECTONWARDREFERRALDETAILS:
            editRejectOnWardReferralDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEWONWARDREFERRAL:
            newOnwardReferral();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewConsultationDetails:
            viewConsultationDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ViewReferralDetails:
            viewReferralDetails();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ReAdmitPatient:
            admit();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_PROVIDER_CANCELLATION:
            undoProviderCancellation();
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.UNDO_REFERRAL_REJECTION:
            undoReferralRejection();
            break;


        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.NEW_WAITING_LIST_ENTRY://WDEV-18083
            engine.open(form.getForms().RefMan.NewElectiveListEntry,new Object[]{1,form.getLocalContext().getSelectedRecord()});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_BOOKED_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog, new Object[]{ElectiveListDetails.ADDTOBOOKEDLIST});
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_PLANNED_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOPLANNEDLIST});
            break;
        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.ADD_TO_WAITING_LIST:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.ADDTOWAITINGLIST});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_EDIT_ELECTIVE_LIST_DETAILS:
            engine.open(form.getForms().RefMan.NewElectiveListTCIErodDialog,  new Object[]{ElectiveListDetails.VIEWEDIT});
            break;

        case GenForm.ContextMenus.RefManNamespace.ReferralStatusListMenu.VIEW_ADMIN_EVENTS:
            engine.open(form.getForms().Pathways.AdminEvent,  new Object[]{FormMode.VIEW});
            break;

        default:
    }
}