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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSelectClick() throws PresentationLogicException
{

    TTAMedicationDetailRefVoCollection result = getListOfSelectedMedications();
    if (result == null || result.size() == 0)
    {
        engine.showMessage("Please select some Medication Details to add");
        return;
    }
    TTAMedicationDetailVoCollection ttaMedicationsDetails = domain.getTTAMedicationsDetails(result);
    for (int i = 0 ; ttaMedicationsDetails!=null && i < ttaMedicationsDetails.size(); i++)
    {
        clearData(ttaMedicationsDetails.get(i));
    }
    form.getGlobalContext().Clinical.setTTAMedications(ttaMedicationsDetails);
    // Return;
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSelectClick() throws PresentationLogicException
{

    TTAMedicationDetailRefVoCollection result = getListOfSelectedMedications();
    if (result == null || result.size() == 0)
    {
        engine.showMessage("Please select some Medication Details to add");
        return;
    }
    TTAMedicationDetailVoCollection ttaMedicationsDetails = domain.getTTAMedicationsDetails(result);
    for (int i = 0 ; ttaMedicationsDetails!=null && i < ttaMedicationsDetails.size(); i++)
    {
        clearData(ttaMedicationsDetails.get(i));
    }
    form.getGlobalContext().Clinical.setTTAMedications(ttaMedicationsDetails);
    // Return;
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSelectClick() throws PresentationLogicException
{

    TTAMedicationDetailRefVoCollection result = getListOfSelectedMedications();
    if (result == null || result.size() == 0)
    {
        engine.showMessage("Please select some Medication Details to add");
        return;
    }
    TTAMedicationDetailVoCollection ttaMedicationsDetails = domain.getTTAMedicationsDetails(result);
    for (int i = 0 ; ttaMedicationsDetails!=null && i < ttaMedicationsDetails.size(); i++)
    {
        clearData(ttaMedicationsDetails.get(i));
    }
    form.getGlobalContext().Clinical.setTTAMedications(ttaMedicationsDetails);
    // Return;
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSelectClick() throws PresentationLogicException
{

    TTAMedicationDetailRefVoCollection result = getListOfSelectedMedications();
    if (result == null || result.size() == 0)
    {
        engine.showMessage("Please select some Medication Details to add");
        return;
    }
    TTAMedicationDetailVoCollection ttaMedicationsDetails = domain.getTTAMedicationsDetails(result);
    for (int i = 0 ; ttaMedicationsDetails!=null && i < ttaMedicationsDetails.size(); i++)
    {
        clearData(ttaMedicationsDetails.get(i));
    }
    form.getGlobalContext().Clinical.setTTAMedications(ttaMedicationsDetails);
    // Return;
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {                               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove((TTAMedicationDetailVo)form.dyngrdMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);                  
            }

            form.dyngrdMedication().getRows().remove(form.dyngrdMedication().getSelectedRow());

            // Update the 'Last Updating Pharmacist' field
            // - will only be updated if the current user is a HCP
            updateLastUpdatingPharmacist();

            updateContextMenuStatus();
        }       
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {               
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true), FormMode.VIEW});
        }
        break;
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove(form.grdOrderDischMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);
            }

            form.grdOrderDischMedication().getRows().remove(form.grdOrderDischMedication().getSelectedRowIndex());
            updateContextMenuStatus();
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.VIEW});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.ViewPrevious://WDEV-11849
        {
            engine.open(form.getForms().Clinical.TTAHistoryDialog,new Object[]{form.getLocalContext().getEditedRecord()});//WDEV-11849
        }
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {                               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove((TTAMedicationDetailVo)form.dyngrdMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);                  
            }

            form.dyngrdMedication().getRows().remove(form.dyngrdMedication().getSelectedRow());

            // Update the 'Last Updating Pharmacist' field
            // - will only be updated if the current user is a HCP
            updateLastUpdatingPharmacist();

            updateContextMenuStatus();
        }       
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {               
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true), FormMode.VIEW});
        }
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove(form.grdOrderDischMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);
            }

            form.grdOrderDischMedication().getRows().remove(form.grdOrderDischMedication().getSelectedRowIndex());
            updateContextMenuStatus();
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.VIEW});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.ViewPrevious://WDEV-11849
        {
            engine.open(form.getForms().Clinical.TTAHistoryDialog,new Object[]{form.getLocalContext().getEditedRecord()});//WDEV-11849
        }
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {                               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove((TTAMedicationDetailVo)form.dyngrdMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);                  
            }

            form.dyngrdMedication().getRows().remove(form.dyngrdMedication().getSelectedRow());

            // Update the 'Last Updating Pharmacist' field
            // - will only be updated if the current user is a HCP
            updateLastUpdatingPharmacist();

            updateContextMenuStatus();
        }       
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {               
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true), FormMode.VIEW});
        }
        break;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove(form.grdOrderDischMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);
            }

            form.grdOrderDischMedication().getRows().remove(form.grdOrderDischMedication().getSelectedRowIndex());
            updateContextMenuStatus();
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.VIEW});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.ViewPrevious://WDEV-11849
        {
            engine.open(form.getForms().Clinical.TTAHistoryDialog,new Object[]{form.getLocalContext().getEditedRecord()});//WDEV-11849
        }
        break;
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true)});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {                               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove((TTAMedicationDetailVo)form.dyngrdMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);                  
            }

            form.dyngrdMedication().getRows().remove(form.dyngrdMedication().getSelectedRow());

            // Update the 'Last Updating Pharmacist' field
            // - will only be updated if the current user is a HCP
            updateLastUpdatingPharmacist();

            updateContextMenuStatus();
        }       
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {               
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(true), FormMode.VIEW});
        }
        break;
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{       
    switch (menuItemID)
    {
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.New:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(null);
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.NEW, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Edit:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.EDIT});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.Remove:
        {               
            TTAMedicationAndPharmacyVo  currentRecord = form.getLocalContext().getEditedRecord();
            if(currentRecord != null && currentRecord.getTTAMedicationsIsNotNull())
            {
                TTAMedicationDetailVoCollection medColl = currentRecord.getTTAMedications();
                medColl.remove(form.grdOrderDischMedication().getSelectedRow().getValue());
                currentRecord.setTTAMedications(medColl);
                form.getLocalContext().setEditedRecord(currentRecord);
            }

            form.grdOrderDischMedication().getRows().remove(form.grdOrderDischMedication().getSelectedRowIndex());
            updateContextMenuStatus();
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.View:
        {
            form.getGlobalContext().Clinical.setEDischargeMeds(form.getLocalContext().getEditedMedicalRecord());
            engine.open(form.getForms().Clinical.EDischargeMedsSthkDialog, new Object[]{EDischargeMedsContextMenu.EDIT, new Boolean(false), FormMode.VIEW});
        }
        break;
        case GenForm.ContextMenus.ClinicalNamespace.EDischargeMedsSthkMenu.ViewPrevious://WDEV-11849
        {
            engine.open(form.getForms().Clinical.TTAHistoryDialog,new Object[]{form.getLocalContext().getEditedRecord()});//WDEV-11849
        }
        break;
    }
}