Java 类ims.core.vo.PatientAlert 实例源码

项目:AvoinApotti    文件:Logic.java   
private String createRowTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(PatientAlert voPatAlert)
{
    super.populateScreenFromData(voPatAlert);


    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voPatAlert.getAuthoringInformation());
    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnDetails().cmbCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnDetails().cmbCategory().setValue(voPatAlert.getAlertType().getParent());
    }
    try 
    {   onCmbCategoryValueChanged();} 
    catch (PresentationLogicException e) {} 

    form.ctnDetails().cmbAlerts().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnDetails().cmbAlerts().setValue(voPatAlert.getAlertType());
    if (form.getMode().equals(FormMode.EDIT))
            alertsValueChanged();

    if(voPatAlert.getIsCurrentlyActiveAlert().booleanValue() == true)
        form.btnInactivate().setVisible(true);
}
项目:AvoinApotti    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:AvoinApotti    文件:Logic.java   
private void setToolBarAlerts(boolean bAlertsExist)
{
    if(bAlertsExist)
    {
        if(form.getGlobalContext().Core.getPatientShort().getHasAlerts() != null 
            && form.getGlobalContext().Core.getPatientShort().getHasAlerts().booleanValue() == true)
        {
            resetPIDBarText();
            return;
        }
        //else
        //{
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        engine.addAlert(new ims.alerts.PatientAlert("The patient has alerts."));                    
        //}
    }
    else
    {
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        form.getGlobalContext().Core.getPatientShort().setHasAlerts(Boolean.FALSE);
    }
    resetPIDBarText();
}
项目:openMAXIMS    文件:Logic.java   
private String createRowTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");
    //WDEV-22977
    sb.append(alert.getSysInfoIsNotNull() && alert.getSysInfo().getLastupdateDateTime() != null && alert.getSysInfo().getLastupdateUser() != null ? "<b>Last updated by : </b>" + alert.getSysInfo().getLastupdateUser().toString() + " - " + alert.getSysInfo().getLastupdateDateTime().toString() : "");
    sb.append("<br>");
    //WDEV-22977 - ends here
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createInactivateTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Inactive Comment : </b>");
    sb.append(alert.getInactivationCommentsIsNotNull() ? alert.getInactivationComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Inactivated Info : </b>");
    sb.append(alert.getInactivationAuthoringInfoIsNotNull() ? alert.getInactivationAuthoringInfo().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");
    //WDEV-22977
    sb.append(alert.getSysInfoIsNotNull() && alert.getSysInfo().getLastupdateDateTime() != null && alert.getSysInfo().getLastupdateUser() != null ? "Last updated by: " + alert.getSysInfo().getLastupdateUser().toString() + " - " + alert.getSysInfo().getLastupdateDateTime().toString() : "");
    sb.append("<br>");
    //WDEV-22977 - ends here
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientAlert voPatAlert)
{
    super.populateScreenFromData(voPatAlert);


    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voPatAlert.getAuthoringInformation());
    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnDetails().cmbCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnDetails().cmbCategory().setValue(voPatAlert.getAlertType().getParent());
    }
    try 
    {   onCmbCategoryValueChanged();} 
    catch (PresentationLogicException e) {} 

    form.ctnDetails().cmbAlerts().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnDetails().cmbAlerts().setValue(voPatAlert.getAlertType());
    if (form.getMode().equals(FormMode.EDIT))
            alertsValueChanged();

    if(voPatAlert.getIsCurrentlyActiveAlert().booleanValue() == true)
        form.btnInactivate().setVisible(true);
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
private void setToolBarAlerts(boolean bAlertsExist)
{
    if(bAlertsExist)
    {
        if(form.getGlobalContext().Core.getPatientShort().getHasAlerts() != null 
            && form.getGlobalContext().Core.getPatientShort().getHasAlerts().booleanValue() == true)
        {
            resetPIDBarText();
            return;
        }
        //else
        //{
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        engine.addAlert(new ims.alerts.PatientAlert("The patient has alerts."));                    
        //}
    }
    else
    {
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        form.getGlobalContext().Core.getPatientShort().setHasAlerts(Boolean.FALSE);
    }
    resetPIDBarText();
}
项目:openMAXIMS    文件:Logic.java   
private String createRowTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(PatientAlert voPatAlert)
{
    super.populateScreenFromData(voPatAlert);


    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voPatAlert.getAuthoringInformation());
    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnDetails().cmbCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnDetails().cmbCategory().setValue(voPatAlert.getAlertType().getParent());
    }
    try 
    {   onCmbCategoryValueChanged();} 
    catch (PresentationLogicException e) {} 

    form.ctnDetails().cmbAlerts().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnDetails().cmbAlerts().setValue(voPatAlert.getAlertType());
    if (form.getMode().equals(FormMode.EDIT))
            alertsValueChanged();

    if(voPatAlert.getIsCurrentlyActiveAlert().booleanValue() == true)
        form.btnInactivate().setVisible(true);
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
private void setToolBarAlerts(boolean bAlertsExist)
{
    if(bAlertsExist)
    {
        if(form.getGlobalContext().Core.getPatientShort().getHasAlerts() != null 
            && form.getGlobalContext().Core.getPatientShort().getHasAlerts().booleanValue() == true)
        {
            resetPIDBarText();
            return;
        }
        //else
        //{
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        engine.addAlert(new ims.alerts.PatientAlert("The patient has alerts."));                    
        //}
    }
    else
    {
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        form.getGlobalContext().Core.getPatientShort().setHasAlerts(Boolean.FALSE);
    }
    resetPIDBarText();
}
项目:openmaxims-linux    文件:Logic.java   
private String createRowTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Comment : </b>");
    sb.append(alert.getCommentsIsNotNull() ? alert.getComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Date Identified : </b>");
    sb.append(alert.getDateIdentifiedIsNotNull() ? alert.getDateIdentified().toString() : "");
    sb.append("<br>");
    sb.append("<b>Authoring Info : </b>");
    sb.append(alert.getAuthoringInformationIsNotNull() ? alert.getAuthoringInformation().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(PatientAlert voPatAlert)
{
    super.populateScreenFromData(voPatAlert);


    if(voPatAlert.getAuthoringInformationIsNotNull())
        form.ctnDetails().customControlAuthoringInfo().setValue(voPatAlert.getAuthoringInformation());
    if(voPatAlert.getAlertType() != null && voPatAlert.getAlertType().getParent() != null && voPatAlert.getAlertType().getParent().getText()!= null)
    {
        form.ctnDetails().cmbCategory().newRow(voPatAlert.getAlertType().getParent(), voPatAlert.getAlertType().getParent().getText());
        form.ctnDetails().cmbCategory().setValue(voPatAlert.getAlertType().getParent());
    }
    try 
    {   onCmbCategoryValueChanged();} 
    catch (PresentationLogicException e) {} 

    form.ctnDetails().cmbAlerts().newRow(voPatAlert.getAlertType(), voPatAlert.getAlertType().getText());
    form.ctnDetails().cmbAlerts().setValue(voPatAlert.getAlertType());
    if (form.getMode().equals(FormMode.EDIT))
            alertsValueChanged();

    if(voPatAlert.getIsCurrentlyActiveAlert().booleanValue() == true)
        form.btnInactivate().setVisible(true);
}
项目:openmaxims-linux    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openmaxims-linux    文件:Logic.java   
private void setToolBarAlerts(boolean bAlertsExist)
{
    if(bAlertsExist)
    {
        if(form.getGlobalContext().Core.getPatientShort().getHasAlerts() != null 
            && form.getGlobalContext().Core.getPatientShort().getHasAlerts().booleanValue() == true)
        {
            resetPIDBarText();
            return;
        }
        //else
        //{
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        engine.addAlert(new ims.alerts.PatientAlert("The patient has alerts."));                    
        //}
    }
    else
    {
        engine.clearAlertsByType(ims.alerts.PatientAlert.class);
        form.getGlobalContext().Core.getPatientShort().setHasAlerts(Boolean.FALSE);
    }
    resetPIDBarText();
}
项目:AvoinApotti    文件:Logic.java   
private String createInactivateTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Inactive Comment : </b>");
    sb.append(alert.getInactivationCommentsIsNotNull() ? alert.getInactivationComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Inactivated Info : </b>");
    sb.append(alert.getInactivationAuthoringInfoIsNotNull() ? alert.getInactivationAuthoringInfo().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:AvoinApotti    文件:AlertsImpl.java   
public PatientAlert getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertAssembler.create(doPA);      
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientAlert getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertAssembler.create(doPA);      
}
项目:openMAXIMS    文件:Logic.java   
private String createInactivateTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Inactive Comment : </b>");
    sb.append(alert.getInactivationCommentsIsNotNull() ? alert.getInactivationComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Inactivated Info : </b>");
    sb.append(alert.getInactivationAuthoringInfoIsNotNull() ? alert.getInactivationAuthoringInfo().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openMAXIMS    文件:AlertsImpl.java   
public PatientAlert getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertAssembler.create(doPA);      
}
项目:openmaxims-linux    文件:Logic.java   
private String createInactivateTooltip(PatientAlert alert)
{
    StringBuffer sb = new StringBuffer();
    sb.append("<b>Inactive Comment : </b>");
    sb.append(alert.getInactivationCommentsIsNotNull() ? alert.getInactivationComments().toString() : "");
    sb.append("<br>");
    sb.append("<b>Inactivated Info : </b>");
    sb.append(alert.getInactivationAuthoringInfoIsNotNull() ? alert.getInactivationAuthoringInfo().toString(" - ") : "");
    sb.append("<br>");
    sb.append("<b>Recording Info : </b>");
    sb.append(alert.getRecordingInformationIsNotNull() ? alert.getRecordingInformation().toString(" - ") : "");
    sb.append("<br>");

    return sb.toString();
}
项目:openmaxims-linux    文件:AlertsImpl.java   
public PatientAlert getPatientAlert(PatientAlertRefVo patientalertRefVo) 
{
    if(patientalertRefVo == null)
        throw new DomainRuntimeException("PatientAlert Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.core.clinical.domain.objects.PatientAlert doPA = (ims.core.clinical.domain.objects.PatientAlert)factory.getDomainObject(ims.core.clinical.domain.objects.PatientAlert.class, patientalertRefVo.getID_PatientAlert());
    return PatientAlertAssembler.create(doPA);      
}
项目:AvoinApotti    文件:Logic.java   
private void selectionChanged(PatientAlertRefVo patientAlertRef) 
{
    PatientAlert voAlert = domain.getPatientAlert(patientAlertRef);//   WDEV-14413
    form.getLocalContext().setAlertRecord(voAlert);
    form.grdAlerts().setValue(form.getLocalContext().getAlertRecord());//WDEV-15656
    if (form.getMode().equals(FormMode.EDIT)) //WDEV-18130  removed Illegal Control State change Warning
    {
        form.ctnDetails().cmbSource().setEnabled(true);
    }   
    if(voAlert != null)
    {
        this.populateScreenFromData(voAlert);

        form.ctnDetails().cmbRecordingHCP().setValue(null); 
        form.ctnDetails().dtimRecordingDateTime().setValue(null);
        if(voAlert.getRecordingInformationIsNotNull()){
            MemberOfStaffLiteVo mos = voAlert.getRecordingInformation().getRecordingUser();
            if(mos!=null){
                form.ctnDetails().cmbRecordingHCP().newRow(mos, mos.toString());
                form.ctnDetails().cmbRecordingHCP().setValue(mos);  
            }
            form.ctnDetails().dtimRecordingDateTime().setValue(voAlert.getRecordingInformation().getRecordingDateTime());
        }

        if(voAlert.getIsCurrentlyActiveAlert() != null)
        {
            if(voAlert.getIsCurrentlyActiveAlert().booleanValue())
            {
                form.btnUpdate().setEnabled(true);  
                form.btnInactivate().setVisible(true);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
            }
            else{
                form.btnUpdate().setEnabled(false); 
                form.btnInactivate().setVisible(false);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
                }
        }

        form.ctnDetails().setCollapsed(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void newAlert() 
{
    form.ctnDetails().cmbSource().setFocus();
    form.setMode(FormMode.EDIT); 

    if( form.grdAlerts().getRows() != null
        && form.grdAlerts().getRows().size() > 0) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo() == null)
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if (form.getLocalContext().getPatientNoAlertInfoVoIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatusIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS)) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus() == null) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if( ! form.getLocalContext().getbActiveAlerts() 
        && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.HASALERTS))
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }

    this.clearCurScreen();

    form.btnUpdate().setEnabled(false);
    form.btnInactivate().setVisible(false);

    enableDetailsControls(true);

    form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    form.ctnDetails().setcustomControlAuthoringInfoEnabled(true);
    form.ctnDetails().customControlAuthoringInfo().setIsRequiredPropertyToControls(Boolean.TRUE);

    Object mos = domain.getMosUser();
    if(mos != null){
        form.ctnDetails().cmbRecordingHCP().newRow((MemberOfStaffLiteVo)mos, mos.toString());
        form.ctnDetails().cmbRecordingHCP().setValue((MemberOfStaffLiteVo)mos);
    }
    form.ctnDetails().dtimRecordingDateTime().setValue(new DateTime());

    form.getLocalContext().setAlertRecord(new PatientAlert());
    form.ctnDetails().setCollapsed(false);

    form.getContextMenus().hideAllGenericGridMenuItems();
}
项目:openMAXIMS    文件:Logic.java   
private void selectionChanged(PatientAlertRefVo patientAlertRef) 
{
    PatientAlert voAlert = domain.getPatientAlert(patientAlertRef);//   WDEV-14413
    form.getLocalContext().setAlertRecord(voAlert);
    form.grdAlerts().setValue(form.getLocalContext().getAlertRecord());//WDEV-15656
    if (form.getMode().equals(FormMode.EDIT)) //WDEV-18130  removed Illegal Control State change Warning
    {
        form.ctnDetails().cmbSource().setEnabled(true); //WDEV-22977
    }   
    if(voAlert != null)
    {
        this.populateScreenFromData(voAlert);

        form.ctnDetails().cmbRecordingHCP().setValue(null); 
        form.ctnDetails().dtimRecordingDateTime().setValue(null);
        if(voAlert.getRecordingInformationIsNotNull()){
            MemberOfStaffLiteVo mos = voAlert.getRecordingInformation().getRecordingUser();
            if(mos!=null){
                form.ctnDetails().cmbRecordingHCP().newRow(mos, mos.toString());
                form.ctnDetails().cmbRecordingHCP().setValue(mos);  
            }
            form.ctnDetails().dtimRecordingDateTime().setValue(voAlert.getRecordingInformation().getRecordingDateTime());
        }

        if(voAlert.getIsCurrentlyActiveAlert() != null)
        {
            if(voAlert.getIsCurrentlyActiveAlert().booleanValue())
            {
                boolean rightToEdit = hasTheUserRightToEditAlert(voAlert.getAlertType());
                form.btnUpdate().setEnabled(rightToEdit);   
                form.btnInactivate().setVisible(rightToEdit);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(rightToEdit);
            }
            else{
                form.btnUpdate().setEnabled(false); 
                form.btnInactivate().setVisible(false);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
                }
        }

        form.ctnDetails().setCollapsed(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newAlert() 
{
    form.getLocalContext().setAlertRecord(new PatientAlert()); //WDEV-22977

    loadCategories(true);

    form.ctnDetails().cmbSource().setFocus();
    form.setMode(FormMode.EDIT); 

    if( form.grdAlerts().getRows() != null
        && form.grdAlerts().getRows().size() > 0) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo() == null)
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if (form.getLocalContext().getPatientNoAlertInfoVoIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatusIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS)) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus() == null) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if( ! form.getLocalContext().getbActiveAlerts() 
        && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.HASALERTS))
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }

    this.clearCurScreen();

    form.btnUpdate().setEnabled(false);
    form.btnInactivate().setVisible(false);

    enableDetailsControls(true);

    form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    form.ctnDetails().setcustomControlAuthoringInfoEnabled(true);
    form.ctnDetails().customControlAuthoringInfo().setIsRequiredPropertyToControls(Boolean.TRUE);

    Object mos = domain.getMosUser();
    if(mos != null){
        form.ctnDetails().cmbRecordingHCP().newRow((MemberOfStaffLiteVo)mos, mos.toString());
        form.ctnDetails().cmbRecordingHCP().setValue((MemberOfStaffLiteVo)mos);
    }
    form.ctnDetails().dtimRecordingDateTime().setValue(new DateTime());

    form.ctnDetails().setCollapsed(false);

    form.getContextMenus().hideAllGenericGridMenuItems();
}
项目:openMAXIMS    文件:Logic.java   
private void selectionChanged(PatientAlertRefVo patientAlertRef) 
{
    PatientAlert voAlert = domain.getPatientAlert(patientAlertRef);//   WDEV-14413
    form.getLocalContext().setAlertRecord(voAlert);
    form.grdAlerts().setValue(form.getLocalContext().getAlertRecord());//WDEV-15656
    if (form.getMode().equals(FormMode.EDIT)) //WDEV-18130  removed Illegal Control State change Warning
    {
        form.ctnDetails().cmbSource().setEnabled(true);
    }   
    if(voAlert != null)
    {
        this.populateScreenFromData(voAlert);

        form.ctnDetails().cmbRecordingHCP().setValue(null); 
        form.ctnDetails().dtimRecordingDateTime().setValue(null);
        if(voAlert.getRecordingInformationIsNotNull()){
            MemberOfStaffLiteVo mos = voAlert.getRecordingInformation().getRecordingUser();
            if(mos!=null){
                form.ctnDetails().cmbRecordingHCP().newRow(mos, mos.toString());
                form.ctnDetails().cmbRecordingHCP().setValue(mos);  
            }
            form.ctnDetails().dtimRecordingDateTime().setValue(voAlert.getRecordingInformation().getRecordingDateTime());
        }

        if(voAlert.getIsCurrentlyActiveAlert() != null)
        {
            if(voAlert.getIsCurrentlyActiveAlert().booleanValue())
            {
                form.btnUpdate().setEnabled(true);  
                form.btnInactivate().setVisible(true);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
            }
            else{
                form.btnUpdate().setEnabled(false); 
                form.btnInactivate().setVisible(false);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
                }
        }

        form.ctnDetails().setCollapsed(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newAlert() 
{
    form.ctnDetails().cmbSource().setFocus();
    form.setMode(FormMode.EDIT); 

    if( form.grdAlerts().getRows() != null
        && form.grdAlerts().getRows().size() > 0) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo() == null)
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if (form.getLocalContext().getPatientNoAlertInfoVoIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatusIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS)) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus() == null) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if( ! form.getLocalContext().getbActiveAlerts() 
        && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.HASALERTS))
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }

    this.clearCurScreen();

    form.btnUpdate().setEnabled(false);
    form.btnInactivate().setVisible(false);

    enableDetailsControls(true);

    form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    form.ctnDetails().setcustomControlAuthoringInfoEnabled(true);
    form.ctnDetails().customControlAuthoringInfo().setIsRequiredPropertyToControls(Boolean.TRUE);

    Object mos = domain.getMosUser();
    if(mos != null){
        form.ctnDetails().cmbRecordingHCP().newRow((MemberOfStaffLiteVo)mos, mos.toString());
        form.ctnDetails().cmbRecordingHCP().setValue((MemberOfStaffLiteVo)mos);
    }
    form.ctnDetails().dtimRecordingDateTime().setValue(new DateTime());

    form.getLocalContext().setAlertRecord(new PatientAlert());
    form.ctnDetails().setCollapsed(false);

    form.getContextMenus().hideAllGenericGridMenuItems();
}
项目:openmaxims-linux    文件:Logic.java   
private void selectionChanged(PatientAlertRefVo patientAlertRef) 
{
    PatientAlert voAlert = domain.getPatientAlert(patientAlertRef);//   WDEV-14413
    form.getLocalContext().setAlertRecord(voAlert);
    form.grdAlerts().setValue(form.getLocalContext().getAlertRecord());//WDEV-15656
    if (form.getMode().equals(FormMode.EDIT)) //WDEV-18130  removed Illegal Control State change Warning
    {
        form.ctnDetails().cmbSource().setEnabled(true);
    }   
    if(voAlert != null)
    {
        this.populateScreenFromData(voAlert);

        form.ctnDetails().cmbRecordingHCP().setValue(null); 
        form.ctnDetails().dtimRecordingDateTime().setValue(null);
        if(voAlert.getRecordingInformationIsNotNull()){
            MemberOfStaffLiteVo mos = voAlert.getRecordingInformation().getRecordingUser();
            if(mos!=null){
                form.ctnDetails().cmbRecordingHCP().newRow(mos, mos.toString());
                form.ctnDetails().cmbRecordingHCP().setValue(mos);  
            }
            form.ctnDetails().dtimRecordingDateTime().setValue(voAlert.getRecordingInformation().getRecordingDateTime());
        }

        if(voAlert.getIsCurrentlyActiveAlert() != null)
        {
            if(voAlert.getIsCurrentlyActiveAlert().booleanValue())
            {
                form.btnUpdate().setEnabled(true);  
                form.btnInactivate().setVisible(true);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(true);
            }
            else{
                form.btnUpdate().setEnabled(false); 
                form.btnInactivate().setVisible(false);
                form.getContextMenus().getGenericGridUpdateItem().setVisible(false);
                }
        }

        form.ctnDetails().setCollapsed(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void newAlert() 
{
    form.ctnDetails().cmbSource().setFocus();
    form.setMode(FormMode.EDIT); 

    if( form.grdAlerts().getRows() != null
        && form.grdAlerts().getRows().size() > 0) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo() == null)
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if (form.getLocalContext().getPatientNoAlertInfoVoIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatusIsNotNull()
            && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.NOKNOWNALERTS)) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if(form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus() == null) 
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else if( ! form.getLocalContext().getbActiveAlerts() 
        && form.getLocalContext().getPatientNoAlertInfoVo().getAlertStatus().equals(PatientAlertStatus.HASALERTS))
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(true);
        form.ctnDetails().chkNoKnownAlerts().setEnabled(true);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }
    else
    {
        form.ctnDetails().chkNoKnownAlerts().setVisible(false);
        form.ctnDetails().chkNoKnownAlerts().setValue(false);
    }

    this.clearCurScreen();

    form.btnUpdate().setEnabled(false);
    form.btnInactivate().setVisible(false);

    enableDetailsControls(true);

    form.ctnDetails().customControlAuthoringInfo().initializeComponent();
    form.ctnDetails().setcustomControlAuthoringInfoEnabled(true);
    form.ctnDetails().customControlAuthoringInfo().setIsRequiredPropertyToControls(Boolean.TRUE);

    Object mos = domain.getMosUser();
    if(mos != null){
        form.ctnDetails().cmbRecordingHCP().newRow((MemberOfStaffLiteVo)mos, mos.toString());
        form.ctnDetails().cmbRecordingHCP().setValue((MemberOfStaffLiteVo)mos);
    }
    form.ctnDetails().dtimRecordingDateTime().setValue(new DateTime());

    form.getLocalContext().setAlertRecord(new PatientAlert());
    form.ctnDetails().setCollapsed(false);

    form.getContextMenus().hideAllGenericGridMenuItems();
}