Java 类ims.emergency.vo.TriageKPIUnboundDBVo 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    if(args != null && args.length == 1 && args[0] != null && args[0] instanceof String)
    {
        form.lblKPI().setValue((String) args[0]);
    }

    //WDEV-16991
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();

    form.lblDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.lblDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));   

    open();
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    if(args != null && args.length == 1 && args[0] != null && args[0] instanceof String)
    {
        form.lblKPI().setValue((String) args[0]);
    }

    //WDEV-16991
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();

    form.lblDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.lblDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));   

    open();
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    if(args != null && args.length == 1 && args[0] != null && args[0] instanceof String)
    {
        form.lblKPI().setValue((String) args[0]);
    }

    //WDEV-16991
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();

    form.lblDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.lblDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));   

    open();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    if(args != null && args.length == 1 && args[0] != null && args[0] instanceof String)
    {
        form.lblKPI().setValue((String) args[0]);
    }

    //WDEV-16991
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();

    form.lblDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultRowColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.lblDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));
    form.cmbDefaultFontColour().setVisible(tempVO!=null && (tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE)));   

    open();
}
项目:AvoinApotti    文件:Logic.java   
private void editInstance()
{
    TriageKPIUnboundDBVo tempVO  = new TriageKPIUnboundDBVo();
    DynamicGridRow row = form.dyngrdKPI().getSelectedRow();

    DynamicGridCell cell = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    tempVO.setBreachWarning(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    tempVO.setBreachWarningTextColour((Color) cell.getValue());             //wdev-16138
    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    tempVO.setBreachWarningFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    tempVO.setBreachWarningBackgroundColour((Color) cell.getValue());               
    //------------
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    tempVO.setBreachedKPI(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));     //wdev-16138
    tempVO.setBreachedKPITextColour((Color) cell.getValue());

    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    tempVO.setBreachedKPIFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    tempVO.setBreachedKPIBackgroundColour((Color) cell.getValue());

    //WDEV-16991
    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    tempVO.setDefaultRowColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    tempVO.setDefaultFontColour((Color) cell.getValue());

    FlashingKPITextCoulourVo tempKpiVo = (FlashingKPITextCoulourVo) row.getIdentifier();
    if( tempKpiVo != null && tempKpiVo instanceof FlashingKPITextCoulourVo)
    {
        if( tempKpiVo != null)
        {
            tempVO.setBreachWarningFlashingText(tempKpiVo.getBreachWarningFlashingTest());
            tempVO.setBreachedKPIFlashingText(tempKpiVo.getBreachedKPIFlashingText());
        }
    }
    else
    {
        tempVO.setBreachWarningFlashingText(null);
        tempVO.setBreachedKPIFlashingText(null);
    }
    //--------------
    tempVO.setTypeRow((String) form.dyngrdKPI().getSelectedRow().getValue());
    form.getGlobalContext().Emergency.setTriageKPI(tempVO);
    engine.open(form.getForms().Emergency.KPIDataEntryDialog, new Object[]{new String((String) form.dyngrdKPI().getSelectedRow().getValue())});     
}
项目:AvoinApotti    文件:Logic.java   
private void pupulateRowDynGrid(TriageKPIUnboundDBVo tempVo,DynamicGridRow row)
{

    DynamicGridCell Breach = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    Breach.setValue(tempVo.getBreachWarningIsNotNull() ? tempVo.getBreachWarning().toString():null);

    //wdev-16138
    DynamicGridCell BreachTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    if( tempVo.getBreachWarningTextColour() != null)
        BreachTextColour.getItems().newItem(tempVo.getBreachWarningTextColour(), tempVo.getBreachWarningTextColour().getName(), tempVo.getBreachWarningTextColour().getImage());
    BreachTextColour.setValue(tempVo.getBreachWarningTextColour());

    DynamicGridCell BreachFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachWarningFlashingTextColour() != null)
        BreachFlashingTextColour.getItems().newItem(tempVo.getBreachWarningFlashingTextColour(), tempVo.getBreachWarningFlashingTextColour().getName(), tempVo.getBreachWarningFlashingTextColour().getImage());
    BreachFlashingTextColour.setValue(tempVo.getBreachWarningFlashingTextColour());


    DynamicGridCell BreachBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    if( tempVo.getBreachWarningBackgroundColour() != null)
        BreachBacgroundColour.getItems().newItem(tempVo.getBreachWarningBackgroundColour(), tempVo.getBreachWarningBackgroundColour().getName(), tempVo.getBreachWarningBackgroundColour().getImage());
    BreachBacgroundColour.setValue(tempVo.getBreachWarningBackgroundColour());

    //------------------
    DynamicGridCell Breached = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    Breached.setValue(tempVo.getBreachedKPIIsNotNull()? tempVo.getBreachedKPI().toString():null);

    //wdev-16138
    DynamicGridCell BreachedTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));
    if( tempVo.getBreachedKPITextColour() != null)
        BreachedTextColour.getItems().newItem(tempVo.getBreachedKPITextColour(), tempVo.getBreachedKPITextColour().getName(), tempVo.getBreachedKPITextColour().getImage());
    BreachedTextColour.setValue(tempVo.getBreachedKPITextColour());

    DynamicGridCell BreachedFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachedKPIFlashingTextColour() != null)
        BreachedFlashingTextColour.getItems().newItem(tempVo.getBreachedKPIFlashingTextColour(), tempVo.getBreachedKPIFlashingTextColour().getName(), tempVo.getBreachedKPIFlashingTextColour().getImage());
    BreachedFlashingTextColour.setValue(tempVo.getBreachedKPIFlashingTextColour());

    DynamicGridCell BreachedBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    if( tempVo.getBreachedKPIBackgroundColour() != null)
        BreachedBacgroundColour.getItems().newItem(tempVo.getBreachedKPIBackgroundColour(), tempVo.getBreachedKPIBackgroundColour().getName(), tempVo.getBreachedKPIBackgroundColour().getImage());
    BreachedBacgroundColour.setValue(tempVo.getBreachedKPIBackgroundColour());

    //WDEV-16991
    DynamicGridCell DefaultRowColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    if( tempVo.getDefaultRowColour() != null)
        DefaultRowColour.getItems().newItem(tempVo.getDefaultRowColour(), tempVo.getDefaultRowColour().getName(), tempVo.getDefaultRowColour().getImage());
    DefaultRowColour.setValue(tempVo.getDefaultRowColour());

    DynamicGridCell DefaultFontColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    if( tempVo.getDefaultFontColour() != null)
        DefaultFontColour.getItems().newItem(tempVo.getDefaultFontColour(), tempVo.getDefaultFontColour().getName(), tempVo.getDefaultFontColour().getImage());
    DefaultFontColour.setValue(tempVo.getDefaultFontColour());


    FlashingKPITextCoulourVo tempKpiVo = new FlashingKPITextCoulourVo();
    tempKpiVo.setBreachWarningFlashingTest(tempVo.getBreachWarningFlashingText());
    tempKpiVo.setBreachedKPIFlashingText(tempVo.getBreachedKPIFlashingText());
    row.setIdentifier(tempKpiVo);
    //-------------------------
}
项目:AvoinApotti    文件:Logic.java   
private void removeValues()
{
    TriageKPIUnboundDBVo tempVo = new TriageKPIUnboundDBVo();
    pupulateRowDynGrid(tempVo,form.dyngrdKPI().getSelectedRow());
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    prePopulateBreachColorCmb();
    prePopulateBreachedColorCmb();
    prePopulateDefaultColorCmb();//WDEV-16991

    clearInstanceControls();
    if(form.getGlobalContext().Emergency.getTriageKPIIsNotNull())
    {

        TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
        form.intBreachWaring().setValue(tempVO.getBreachWarning());
        form.intBreachedKPI().setValue(tempVO.getBreachedKPI());
        //form.cmbBreach().setValue(tempVO.getBreachColor());
        //form.cmbBreached().setValue(tempVO.getBreachedColor());
        //wdev-16138

        form.GroupBreachWarningFlashingText().setValue(tempVO.getBreachWarningFlashingTextIsNotNull() ? ( tempVO.getBreachWarningFlashingText().equals(YesNo.YES) ? GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo) : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo );
        form.cmbBreachWarningTextColour().setValue(tempVO.getBreachWarningTextColour());
        form.cmbBreachWarningFlashingTextColour().setValue(tempVO.getBreachWarningFlashingTextColour());
        form.cmbBreachWarningBackgroundColour().setValue(tempVO.getBreachWarningBackgroundColour());
        radioButtonGroupBreachWarningFlashingTextValueChanged();

        form.GroupBreachedKPIFlashingText().setValue(tempVO.getBreachedKPIFlashingTextIsNotNull() ? ( tempVO.getBreachedKPIFlashingText().equals(YesNo.YES) ? GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo)  : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo);
        form.cmbBreachedKPITextColour().setValue(tempVO.getBreachedKPITextColour());            
        form.cmbBreachedKPIFlashingTextColour().setValue(tempVO.getBreachedKPIFlashingTextColour());
        form.cmbBreachedKPIBackgroundColour().setValue(tempVO.getBreachedKPIBackgroundColour());
        radioButtonGroupBreachedKPIFlashingTextValueChanged();
        //-------

        form.intBreachedKPI().setRequired(false);
        //form.cmbBreached().setRequired(false);
        if(tempVO.getTypeRowIsNotNull())
        {
            if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
            {
                form.intBreachedKPI().setRequired(true);
                form.intBreachWaring().setRequired(true);
                //form.cmbBreached().setRequired(true);
            }

        }

        //WDEV-16991
        form.cmbDefaultFontColour().setValue(tempVO.getDefaultFontColour());
        form.cmbDefaultRowColour().setValue(tempVO.getDefaultRowColour());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void radioButtonGroupBreachedKPIFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(true);
                form.cmbBreachedKPIBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(false);
                form.cmbBreachedKPIBackgroundColour().setRequired(false);
            }

            form.cmbBreachedKPITextColour().setRequired(true);
        }
    }
    if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(true);
        form.cmbBreachedKPIFlashingTextColour().setVisible(true);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(false);
        form.cmbBreachedKPIFlashingTextColour().setVisible(false);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);

    }

}
项目:AvoinApotti    文件:Logic.java   
private void radioButtonGroupBreachWarningFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(true);
                form.cmbBreachWarningBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(false);
                form.cmbBreachWarningBackgroundColour().setRequired(false);
            }

            form.cmbBreachWarningTextColour().setRequired(true);
        }
    }
    if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(true);
        form.cmbBreachWarningFlashingTextColour().setVisible(true);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(false);
        form.cmbBreachWarningFlashingTextColour().setVisible(false);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }


}
项目:openMAXIMS    文件:Logic.java   
private void editInstance()
{
    TriageKPIUnboundDBVo tempVO  = new TriageKPIUnboundDBVo();
    DynamicGridRow row = form.dyngrdKPI().getSelectedRow();

    DynamicGridCell cell = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    tempVO.setBreachWarning(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    tempVO.setBreachWarningTextColour((Color) cell.getValue());             //wdev-16138
    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    tempVO.setBreachWarningFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    tempVO.setBreachWarningBackgroundColour((Color) cell.getValue());               
    //------------
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    tempVO.setBreachedKPI(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));     //wdev-16138
    tempVO.setBreachedKPITextColour((Color) cell.getValue());

    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    tempVO.setBreachedKPIFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    tempVO.setBreachedKPIBackgroundColour((Color) cell.getValue());

    //WDEV-16991
    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    tempVO.setDefaultRowColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    tempVO.setDefaultFontColour((Color) cell.getValue());

    FlashingKPITextCoulourVo tempKpiVo = (FlashingKPITextCoulourVo) row.getIdentifier();
    if( tempKpiVo != null && tempKpiVo instanceof FlashingKPITextCoulourVo)
    {
        if( tempKpiVo != null)
        {
            tempVO.setBreachWarningFlashingText(tempKpiVo.getBreachWarningFlashingTest());
            tempVO.setBreachedKPIFlashingText(tempKpiVo.getBreachedKPIFlashingText());
        }
    }
    else
    {
        tempVO.setBreachWarningFlashingText(null);
        tempVO.setBreachedKPIFlashingText(null);
    }
    //--------------
    tempVO.setTypeRow((String) form.dyngrdKPI().getSelectedRow().getValue());
    form.getGlobalContext().Emergency.setTriageKPI(tempVO);
    engine.open(form.getForms().Emergency.KPIDataEntryDialog, new Object[]{new String((String) form.dyngrdKPI().getSelectedRow().getValue())});     
}
项目:openMAXIMS    文件:Logic.java   
private void pupulateRowDynGrid(TriageKPIUnboundDBVo tempVo,DynamicGridRow row)
{

    DynamicGridCell Breach = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    Breach.setValue(tempVo.getBreachWarningIsNotNull() ? tempVo.getBreachWarning().toString():null);

    //wdev-16138
    DynamicGridCell BreachTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    if( tempVo.getBreachWarningTextColour() != null)
        BreachTextColour.getItems().newItem(tempVo.getBreachWarningTextColour(), tempVo.getBreachWarningTextColour().getName(), tempVo.getBreachWarningTextColour().getImage());
    BreachTextColour.setValue(tempVo.getBreachWarningTextColour());

    DynamicGridCell BreachFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachWarningFlashingTextColour() != null)
        BreachFlashingTextColour.getItems().newItem(tempVo.getBreachWarningFlashingTextColour(), tempVo.getBreachWarningFlashingTextColour().getName(), tempVo.getBreachWarningFlashingTextColour().getImage());
    BreachFlashingTextColour.setValue(tempVo.getBreachWarningFlashingTextColour());


    DynamicGridCell BreachBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    if( tempVo.getBreachWarningBackgroundColour() != null)
        BreachBacgroundColour.getItems().newItem(tempVo.getBreachWarningBackgroundColour(), tempVo.getBreachWarningBackgroundColour().getName(), tempVo.getBreachWarningBackgroundColour().getImage());
    BreachBacgroundColour.setValue(tempVo.getBreachWarningBackgroundColour());

    //------------------
    DynamicGridCell Breached = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    Breached.setValue(tempVo.getBreachedKPIIsNotNull()? tempVo.getBreachedKPI().toString():null);

    //wdev-16138
    DynamicGridCell BreachedTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));
    if( tempVo.getBreachedKPITextColour() != null)
        BreachedTextColour.getItems().newItem(tempVo.getBreachedKPITextColour(), tempVo.getBreachedKPITextColour().getName(), tempVo.getBreachedKPITextColour().getImage());
    BreachedTextColour.setValue(tempVo.getBreachedKPITextColour());

    DynamicGridCell BreachedFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachedKPIFlashingTextColour() != null)
        BreachedFlashingTextColour.getItems().newItem(tempVo.getBreachedKPIFlashingTextColour(), tempVo.getBreachedKPIFlashingTextColour().getName(), tempVo.getBreachedKPIFlashingTextColour().getImage());
    BreachedFlashingTextColour.setValue(tempVo.getBreachedKPIFlashingTextColour());

    DynamicGridCell BreachedBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    if( tempVo.getBreachedKPIBackgroundColour() != null)
        BreachedBacgroundColour.getItems().newItem(tempVo.getBreachedKPIBackgroundColour(), tempVo.getBreachedKPIBackgroundColour().getName(), tempVo.getBreachedKPIBackgroundColour().getImage());
    BreachedBacgroundColour.setValue(tempVo.getBreachedKPIBackgroundColour());

    //WDEV-16991
    DynamicGridCell DefaultRowColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    if( tempVo.getDefaultRowColour() != null)
        DefaultRowColour.getItems().newItem(tempVo.getDefaultRowColour(), tempVo.getDefaultRowColour().getName(), tempVo.getDefaultRowColour().getImage());
    DefaultRowColour.setValue(tempVo.getDefaultRowColour());

    DynamicGridCell DefaultFontColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    if( tempVo.getDefaultFontColour() != null)
        DefaultFontColour.getItems().newItem(tempVo.getDefaultFontColour(), tempVo.getDefaultFontColour().getName(), tempVo.getDefaultFontColour().getImage());
    DefaultFontColour.setValue(tempVo.getDefaultFontColour());


    FlashingKPITextCoulourVo tempKpiVo = new FlashingKPITextCoulourVo();
    tempKpiVo.setBreachWarningFlashingTest(tempVo.getBreachWarningFlashingText());
    tempKpiVo.setBreachedKPIFlashingText(tempVo.getBreachedKPIFlashingText());
    row.setIdentifier(tempKpiVo);
    //-------------------------
}
项目:openMAXIMS    文件:Logic.java   
private void removeValues()
{
    TriageKPIUnboundDBVo tempVo = new TriageKPIUnboundDBVo();
    pupulateRowDynGrid(tempVo,form.dyngrdKPI().getSelectedRow());
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    prePopulateBreachColorCmb();
    prePopulateBreachedColorCmb();
    prePopulateDefaultColorCmb();//WDEV-16991

    clearInstanceControls();
    if(form.getGlobalContext().Emergency.getTriageKPIIsNotNull())
    {

        TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
        form.intBreachWaring().setValue(tempVO.getBreachWarning());
        form.intBreachedKPI().setValue(tempVO.getBreachedKPI());
        //form.cmbBreach().setValue(tempVO.getBreachColor());
        //form.cmbBreached().setValue(tempVO.getBreachedColor());
        //wdev-16138

        form.GroupBreachWarningFlashingText().setValue(tempVO.getBreachWarningFlashingTextIsNotNull() ? ( tempVO.getBreachWarningFlashingText().equals(YesNo.YES) ? GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo) : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo );
        form.cmbBreachWarningTextColour().setValue(tempVO.getBreachWarningTextColour());
        form.cmbBreachWarningFlashingTextColour().setValue(tempVO.getBreachWarningFlashingTextColour());
        form.cmbBreachWarningBackgroundColour().setValue(tempVO.getBreachWarningBackgroundColour());
        radioButtonGroupBreachWarningFlashingTextValueChanged();

        form.GroupBreachedKPIFlashingText().setValue(tempVO.getBreachedKPIFlashingTextIsNotNull() ? ( tempVO.getBreachedKPIFlashingText().equals(YesNo.YES) ? GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo)  : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo);
        form.cmbBreachedKPITextColour().setValue(tempVO.getBreachedKPITextColour());            
        form.cmbBreachedKPIFlashingTextColour().setValue(tempVO.getBreachedKPIFlashingTextColour());
        form.cmbBreachedKPIBackgroundColour().setValue(tempVO.getBreachedKPIBackgroundColour());
        radioButtonGroupBreachedKPIFlashingTextValueChanged();
        //-------

        form.intBreachedKPI().setRequired(false);
        //form.cmbBreached().setRequired(false);
        if(tempVO.getTypeRowIsNotNull())
        {
            if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
            {
                form.intBreachedKPI().setRequired(true);
                form.intBreachWaring().setRequired(true);
                //form.cmbBreached().setRequired(true);
            }

        }

        //WDEV-16991
        form.cmbDefaultFontColour().setValue(tempVO.getDefaultFontColour());
        form.cmbDefaultRowColour().setValue(tempVO.getDefaultRowColour());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void radioButtonGroupBreachedKPIFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(true);
                form.cmbBreachedKPIBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(false);
                form.cmbBreachedKPIBackgroundColour().setRequired(false);
            }

            form.cmbBreachedKPITextColour().setRequired(true);
        }
    }
    if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(true);
        form.cmbBreachedKPIFlashingTextColour().setVisible(true);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(false);
        form.cmbBreachedKPIFlashingTextColour().setVisible(false);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);

    }

}
项目:openMAXIMS    文件:Logic.java   
private void radioButtonGroupBreachWarningFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(true);
                form.cmbBreachWarningBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(false);
                form.cmbBreachWarningBackgroundColour().setRequired(false);
            }

            form.cmbBreachWarningTextColour().setRequired(true);
        }
    }
    if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(true);
        form.cmbBreachWarningFlashingTextColour().setVisible(true);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(false);
        form.cmbBreachWarningFlashingTextColour().setVisible(false);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }


}
项目:openMAXIMS    文件:Logic.java   
private void editInstance()
{
    TriageKPIUnboundDBVo tempVO  = new TriageKPIUnboundDBVo();
    DynamicGridRow row = form.dyngrdKPI().getSelectedRow();

    DynamicGridCell cell = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    tempVO.setBreachWarning(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    tempVO.setBreachWarningTextColour((Color) cell.getValue());             //wdev-16138
    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    tempVO.setBreachWarningFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    tempVO.setBreachWarningBackgroundColour((Color) cell.getValue());               
    //------------
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    tempVO.setBreachedKPI(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));     //wdev-16138
    tempVO.setBreachedKPITextColour((Color) cell.getValue());

    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    tempVO.setBreachedKPIFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    tempVO.setBreachedKPIBackgroundColour((Color) cell.getValue());

    //WDEV-16991
    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    tempVO.setDefaultRowColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    tempVO.setDefaultFontColour((Color) cell.getValue());

    FlashingKPITextCoulourVo tempKpiVo = (FlashingKPITextCoulourVo) row.getIdentifier();
    if( tempKpiVo != null && tempKpiVo instanceof FlashingKPITextCoulourVo)
    {
        if( tempKpiVo != null)
        {
            tempVO.setBreachWarningFlashingText(tempKpiVo.getBreachWarningFlashingTest());
            tempVO.setBreachedKPIFlashingText(tempKpiVo.getBreachedKPIFlashingText());
        }
    }
    else
    {
        tempVO.setBreachWarningFlashingText(null);
        tempVO.setBreachedKPIFlashingText(null);
    }
    //--------------
    tempVO.setTypeRow((String) form.dyngrdKPI().getSelectedRow().getValue());
    form.getGlobalContext().Emergency.setTriageKPI(tempVO);
    engine.open(form.getForms().Emergency.KPIDataEntryDialog, new Object[]{new String((String) form.dyngrdKPI().getSelectedRow().getValue())});     
}
项目:openMAXIMS    文件:Logic.java   
private void pupulateRowDynGrid(TriageKPIUnboundDBVo tempVo,DynamicGridRow row)
{

    DynamicGridCell Breach = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    Breach.setValue(tempVo.getBreachWarningIsNotNull() ? tempVo.getBreachWarning().toString():null);

    //wdev-16138
    DynamicGridCell BreachTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    if( tempVo.getBreachWarningTextColour() != null)
        BreachTextColour.getItems().newItem(tempVo.getBreachWarningTextColour(), tempVo.getBreachWarningTextColour().getName(), tempVo.getBreachWarningTextColour().getImage());
    BreachTextColour.setValue(tempVo.getBreachWarningTextColour());

    DynamicGridCell BreachFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachWarningFlashingTextColour() != null)
        BreachFlashingTextColour.getItems().newItem(tempVo.getBreachWarningFlashingTextColour(), tempVo.getBreachWarningFlashingTextColour().getName(), tempVo.getBreachWarningFlashingTextColour().getImage());
    BreachFlashingTextColour.setValue(tempVo.getBreachWarningFlashingTextColour());


    DynamicGridCell BreachBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    if( tempVo.getBreachWarningBackgroundColour() != null)
        BreachBacgroundColour.getItems().newItem(tempVo.getBreachWarningBackgroundColour(), tempVo.getBreachWarningBackgroundColour().getName(), tempVo.getBreachWarningBackgroundColour().getImage());
    BreachBacgroundColour.setValue(tempVo.getBreachWarningBackgroundColour());

    //------------------
    DynamicGridCell Breached = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    Breached.setValue(tempVo.getBreachedKPIIsNotNull()? tempVo.getBreachedKPI().toString():null);

    //wdev-16138
    DynamicGridCell BreachedTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));
    if( tempVo.getBreachedKPITextColour() != null)
        BreachedTextColour.getItems().newItem(tempVo.getBreachedKPITextColour(), tempVo.getBreachedKPITextColour().getName(), tempVo.getBreachedKPITextColour().getImage());
    BreachedTextColour.setValue(tempVo.getBreachedKPITextColour());

    DynamicGridCell BreachedFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachedKPIFlashingTextColour() != null)
        BreachedFlashingTextColour.getItems().newItem(tempVo.getBreachedKPIFlashingTextColour(), tempVo.getBreachedKPIFlashingTextColour().getName(), tempVo.getBreachedKPIFlashingTextColour().getImage());
    BreachedFlashingTextColour.setValue(tempVo.getBreachedKPIFlashingTextColour());

    DynamicGridCell BreachedBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    if( tempVo.getBreachedKPIBackgroundColour() != null)
        BreachedBacgroundColour.getItems().newItem(tempVo.getBreachedKPIBackgroundColour(), tempVo.getBreachedKPIBackgroundColour().getName(), tempVo.getBreachedKPIBackgroundColour().getImage());
    BreachedBacgroundColour.setValue(tempVo.getBreachedKPIBackgroundColour());

    //WDEV-16991
    DynamicGridCell DefaultRowColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    if( tempVo.getDefaultRowColour() != null)
        DefaultRowColour.getItems().newItem(tempVo.getDefaultRowColour(), tempVo.getDefaultRowColour().getName(), tempVo.getDefaultRowColour().getImage());
    DefaultRowColour.setValue(tempVo.getDefaultRowColour());

    DynamicGridCell DefaultFontColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    if( tempVo.getDefaultFontColour() != null)
        DefaultFontColour.getItems().newItem(tempVo.getDefaultFontColour(), tempVo.getDefaultFontColour().getName(), tempVo.getDefaultFontColour().getImage());
    DefaultFontColour.setValue(tempVo.getDefaultFontColour());


    FlashingKPITextCoulourVo tempKpiVo = new FlashingKPITextCoulourVo();
    tempKpiVo.setBreachWarningFlashingTest(tempVo.getBreachWarningFlashingText());
    tempKpiVo.setBreachedKPIFlashingText(tempVo.getBreachedKPIFlashingText());
    row.setIdentifier(tempKpiVo);
    //-------------------------
}
项目:openMAXIMS    文件:Logic.java   
private void removeValues()
{
    TriageKPIUnboundDBVo tempVo = new TriageKPIUnboundDBVo();
    pupulateRowDynGrid(tempVo,form.dyngrdKPI().getSelectedRow());
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    prePopulateBreachColorCmb();
    prePopulateBreachedColorCmb();
    prePopulateDefaultColorCmb();//WDEV-16991

    clearInstanceControls();
    if(form.getGlobalContext().Emergency.getTriageKPIIsNotNull())
    {

        TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
        form.intBreachWaring().setValue(tempVO.getBreachWarning());
        form.intBreachedKPI().setValue(tempVO.getBreachedKPI());
        //form.cmbBreach().setValue(tempVO.getBreachColor());
        //form.cmbBreached().setValue(tempVO.getBreachedColor());
        //wdev-16138

        form.GroupBreachWarningFlashingText().setValue(tempVO.getBreachWarningFlashingTextIsNotNull() ? ( tempVO.getBreachWarningFlashingText().equals(YesNo.YES) ? GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo) : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo );
        form.cmbBreachWarningTextColour().setValue(tempVO.getBreachWarningTextColour());
        form.cmbBreachWarningFlashingTextColour().setValue(tempVO.getBreachWarningFlashingTextColour());
        form.cmbBreachWarningBackgroundColour().setValue(tempVO.getBreachWarningBackgroundColour());
        radioButtonGroupBreachWarningFlashingTextValueChanged();

        form.GroupBreachedKPIFlashingText().setValue(tempVO.getBreachedKPIFlashingTextIsNotNull() ? ( tempVO.getBreachedKPIFlashingText().equals(YesNo.YES) ? GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo)  : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo);
        form.cmbBreachedKPITextColour().setValue(tempVO.getBreachedKPITextColour());            
        form.cmbBreachedKPIFlashingTextColour().setValue(tempVO.getBreachedKPIFlashingTextColour());
        form.cmbBreachedKPIBackgroundColour().setValue(tempVO.getBreachedKPIBackgroundColour());
        radioButtonGroupBreachedKPIFlashingTextValueChanged();
        //-------

        form.intBreachedKPI().setRequired(false);
        //form.cmbBreached().setRequired(false);
        if(tempVO.getTypeRowIsNotNull())
        {
            if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
            {
                form.intBreachedKPI().setRequired(true);
                form.intBreachWaring().setRequired(true);
                //form.cmbBreached().setRequired(true);
            }

        }

        //WDEV-16991
        form.cmbDefaultFontColour().setValue(tempVO.getDefaultFontColour());
        form.cmbDefaultRowColour().setValue(tempVO.getDefaultRowColour());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void radioButtonGroupBreachedKPIFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(true);
                form.cmbBreachedKPIBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(false);
                form.cmbBreachedKPIBackgroundColour().setRequired(false);
            }

            form.cmbBreachedKPITextColour().setRequired(true);
        }
    }
    if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(true);
        form.cmbBreachedKPIFlashingTextColour().setVisible(true);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(false);
        form.cmbBreachedKPIFlashingTextColour().setVisible(false);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);

    }

}
项目:openMAXIMS    文件:Logic.java   
private void radioButtonGroupBreachWarningFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(true);
                form.cmbBreachWarningBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(false);
                form.cmbBreachWarningBackgroundColour().setRequired(false);
            }

            form.cmbBreachWarningTextColour().setRequired(true);
        }
    }
    if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(true);
        form.cmbBreachWarningFlashingTextColour().setVisible(true);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(false);
        form.cmbBreachWarningFlashingTextColour().setVisible(false);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }


}
项目:openmaxims-linux    文件:Logic.java   
private void editInstance()
{
    TriageKPIUnboundDBVo tempVO  = new TriageKPIUnboundDBVo();
    DynamicGridRow row = form.dyngrdKPI().getSelectedRow();

    DynamicGridCell cell = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    tempVO.setBreachWarning(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    tempVO.setBreachWarningTextColour((Color) cell.getValue());             //wdev-16138
    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    tempVO.setBreachWarningFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    tempVO.setBreachWarningBackgroundColour((Color) cell.getValue());               
    //------------
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    tempVO.setBreachedKPI(cell.getValue() != null ? Integer.parseInt((String) cell.getValue()):null);

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));     //wdev-16138
    tempVO.setBreachedKPITextColour((Color) cell.getValue());

    //wdev-16138
    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    tempVO.setBreachedKPIFlashingTextColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    tempVO.setBreachedKPIBackgroundColour((Color) cell.getValue());

    //WDEV-16991
    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    tempVO.setDefaultRowColour((Color) cell.getValue());

    cell = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    tempVO.setDefaultFontColour((Color) cell.getValue());

    FlashingKPITextCoulourVo tempKpiVo = (FlashingKPITextCoulourVo) row.getIdentifier();
    if( tempKpiVo != null && tempKpiVo instanceof FlashingKPITextCoulourVo)
    {
        if( tempKpiVo != null)
        {
            tempVO.setBreachWarningFlashingText(tempKpiVo.getBreachWarningFlashingTest());
            tempVO.setBreachedKPIFlashingText(tempKpiVo.getBreachedKPIFlashingText());
        }
    }
    else
    {
        tempVO.setBreachWarningFlashingText(null);
        tempVO.setBreachedKPIFlashingText(null);
    }
    //--------------
    tempVO.setTypeRow((String) form.dyngrdKPI().getSelectedRow().getValue());
    form.getGlobalContext().Emergency.setTriageKPI(tempVO);
    engine.open(form.getForms().Emergency.KPIDataEntryDialog, new Object[]{new String((String) form.dyngrdKPI().getSelectedRow().getValue())});     
}
项目:openmaxims-linux    文件:Logic.java   
private void pupulateRowDynGrid(TriageKPIUnboundDBVo tempVo,DynamicGridRow row)
{

    DynamicGridCell Breach = row.getCells().get(getColumnKPI(COLUMN_BREACHWARNING));
    Breach.setValue(tempVo.getBreachWarningIsNotNull() ? tempVo.getBreachWarning().toString():null);

    //wdev-16138
    DynamicGridCell BreachTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHTEXTCOLOUR));
    if( tempVo.getBreachWarningTextColour() != null)
        BreachTextColour.getItems().newItem(tempVo.getBreachWarningTextColour(), tempVo.getBreachWarningTextColour().getName(), tempVo.getBreachWarningTextColour().getImage());
    BreachTextColour.setValue(tempVo.getBreachWarningTextColour());

    DynamicGridCell BreachFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachWarningFlashingTextColour() != null)
        BreachFlashingTextColour.getItems().newItem(tempVo.getBreachWarningFlashingTextColour(), tempVo.getBreachWarningFlashingTextColour().getName(), tempVo.getBreachWarningFlashingTextColour().getImage());
    BreachFlashingTextColour.setValue(tempVo.getBreachWarningFlashingTextColour());


    DynamicGridCell BreachBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHBACGROUNDCOLOUR));
    if( tempVo.getBreachWarningBackgroundColour() != null)
        BreachBacgroundColour.getItems().newItem(tempVo.getBreachWarningBackgroundColour(), tempVo.getBreachWarningBackgroundColour().getName(), tempVo.getBreachWarningBackgroundColour().getImage());
    BreachBacgroundColour.setValue(tempVo.getBreachWarningBackgroundColour());

    //------------------
    DynamicGridCell Breached = row.getCells().get(getColumnKPI(COLUMN_BREACHED));
    Breached.setValue(tempVo.getBreachedKPIIsNotNull()? tempVo.getBreachedKPI().toString():null);

    //wdev-16138
    DynamicGridCell BreachedTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDTEXTCOLOUR));
    if( tempVo.getBreachedKPITextColour() != null)
        BreachedTextColour.getItems().newItem(tempVo.getBreachedKPITextColour(), tempVo.getBreachedKPITextColour().getName(), tempVo.getBreachedKPITextColour().getImage());
    BreachedTextColour.setValue(tempVo.getBreachedKPITextColour());

    DynamicGridCell BreachedFlashingTextColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDFLASHINGTEXTCOLOUR));
    if( tempVo.getBreachedKPIFlashingTextColour() != null)
        BreachedFlashingTextColour.getItems().newItem(tempVo.getBreachedKPIFlashingTextColour(), tempVo.getBreachedKPIFlashingTextColour().getName(), tempVo.getBreachedKPIFlashingTextColour().getImage());
    BreachedFlashingTextColour.setValue(tempVo.getBreachedKPIFlashingTextColour());

    DynamicGridCell BreachedBacgroundColour = row.getCells().get(getColumnKPI(COLUMN_BREACHEDBACKGROUNDCOLOUR));
    if( tempVo.getBreachedKPIBackgroundColour() != null)
        BreachedBacgroundColour.getItems().newItem(tempVo.getBreachedKPIBackgroundColour(), tempVo.getBreachedKPIBackgroundColour().getName(), tempVo.getBreachedKPIBackgroundColour().getImage());
    BreachedBacgroundColour.setValue(tempVo.getBreachedKPIBackgroundColour());

    //WDEV-16991
    DynamicGridCell DefaultRowColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_ROW_COLOUR));
    if( tempVo.getDefaultRowColour() != null)
        DefaultRowColour.getItems().newItem(tempVo.getDefaultRowColour(), tempVo.getDefaultRowColour().getName(), tempVo.getDefaultRowColour().getImage());
    DefaultRowColour.setValue(tempVo.getDefaultRowColour());

    DynamicGridCell DefaultFontColour = row.getCells().get(getColumnKPI(COLUMN_DEFAULT_FONT_COLOUR));
    if( tempVo.getDefaultFontColour() != null)
        DefaultFontColour.getItems().newItem(tempVo.getDefaultFontColour(), tempVo.getDefaultFontColour().getName(), tempVo.getDefaultFontColour().getImage());
    DefaultFontColour.setValue(tempVo.getDefaultFontColour());


    FlashingKPITextCoulourVo tempKpiVo = new FlashingKPITextCoulourVo();
    tempKpiVo.setBreachWarningFlashingTest(tempVo.getBreachWarningFlashingText());
    tempKpiVo.setBreachedKPIFlashingText(tempVo.getBreachedKPIFlashingText());
    row.setIdentifier(tempKpiVo);
    //-------------------------
}
项目:openmaxims-linux    文件:Logic.java   
private void removeValues()
{
    TriageKPIUnboundDBVo tempVo = new TriageKPIUnboundDBVo();
    pupulateRowDynGrid(tempVo,form.dyngrdKPI().getSelectedRow());
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    prePopulateBreachColorCmb();
    prePopulateBreachedColorCmb();
    prePopulateDefaultColorCmb();//WDEV-16991

    clearInstanceControls();
    if(form.getGlobalContext().Emergency.getTriageKPIIsNotNull())
    {

        TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
        form.intBreachWaring().setValue(tempVO.getBreachWarning());
        form.intBreachedKPI().setValue(tempVO.getBreachedKPI());
        //form.cmbBreach().setValue(tempVO.getBreachColor());
        //form.cmbBreached().setValue(tempVO.getBreachedColor());
        //wdev-16138

        form.GroupBreachWarningFlashingText().setValue(tempVO.getBreachWarningFlashingTextIsNotNull() ? ( tempVO.getBreachWarningFlashingText().equals(YesNo.YES) ? GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo) : GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextNo );
        form.cmbBreachWarningTextColour().setValue(tempVO.getBreachWarningTextColour());
        form.cmbBreachWarningFlashingTextColour().setValue(tempVO.getBreachWarningFlashingTextColour());
        form.cmbBreachWarningBackgroundColour().setValue(tempVO.getBreachWarningBackgroundColour());
        radioButtonGroupBreachWarningFlashingTextValueChanged();

        form.GroupBreachedKPIFlashingText().setValue(tempVO.getBreachedKPIFlashingTextIsNotNull() ? ( tempVO.getBreachedKPIFlashingText().equals(YesNo.YES) ? GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo)  : GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextNo);
        form.cmbBreachedKPITextColour().setValue(tempVO.getBreachedKPITextColour());            
        form.cmbBreachedKPIFlashingTextColour().setValue(tempVO.getBreachedKPIFlashingTextColour());
        form.cmbBreachedKPIBackgroundColour().setValue(tempVO.getBreachedKPIBackgroundColour());
        radioButtonGroupBreachedKPIFlashingTextValueChanged();
        //-------

        form.intBreachedKPI().setRequired(false);
        //form.cmbBreached().setRequired(false);
        if(tempVO.getTypeRowIsNotNull())
        {
            if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
            {
                form.intBreachedKPI().setRequired(true);
                form.intBreachWaring().setRequired(true);
                //form.cmbBreached().setRequired(true);
            }

        }

        //WDEV-16991
        form.cmbDefaultFontColour().setValue(tempVO.getDefaultFontColour());
        form.cmbDefaultRowColour().setValue(tempVO.getDefaultRowColour());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void radioButtonGroupBreachedKPIFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5) || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(true);
                form.cmbBreachedKPIBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachedKPIFlashingTextColour().setRequired(false);
                form.cmbBreachedKPIBackgroundColour().setRequired(false);
            }

            form.cmbBreachedKPITextColour().setRequired(true);
        }
    }
    if( form.GroupBreachedKPIFlashingText().getValue() != null && form.GroupBreachedKPIFlashingText().getValue().equals(GroupBreachedKPIFlashingTextEnumeration.rdoBreachedKPIFlashingTextYes))
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(true);
        form.cmbBreachedKPIFlashingTextColour().setVisible(true);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachedKPITextColour().setVisible(true);
        form.cmbBreachedKPITextColour().setVisible(true);
        form.lblBreachedKPIFlashingTextColour().setVisible(false);
        form.cmbBreachedKPIFlashingTextColour().setVisible(false);
        form.lblBreachedKPIBackgroundColour().setVisible(true);
        form.cmbBreachedKPIBackgroundColour().setVisible(true);

    }

}
项目:openmaxims-linux    文件:Logic.java   
private void radioButtonGroupBreachWarningFlashingTextValueChanged()
{
    TriageKPIUnboundDBVo tempVO = form.getGlobalContext().Emergency.getTriageKPI();
    if( tempVO != null )
    {
        if(tempVO.getTypeRow().equals(ROW_PRIORITY1) || tempVO.getTypeRow().equals(ROW_PRIORITY2) || tempVO.getTypeRow().equals(ROW_PRIORITY3) || tempVO.getTypeRow().equals(ROW_PRIORITY4) || tempVO.getTypeRow().equals(ROW_PRIORITY5)  || tempVO.getTypeRow().equals(ROW_SKIPPEDTRIAGE))
        {
            if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(true);
                form.cmbBreachWarningBackgroundColour().setRequired(true);
            }
            else
            {
                form.cmbBreachWarningFlashingTextColour().setRequired(false);
                form.cmbBreachWarningBackgroundColour().setRequired(false);
            }

            form.cmbBreachWarningTextColour().setRequired(true);
        }
    }
    if( form.GroupBreachWarningFlashingText().getValue() != null && form.GroupBreachWarningFlashingText().getValue().equals(GroupBreachWarningFlashingTextEnumeration.rdoBreachWarningFlashingTextYes))
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(true);
        form.cmbBreachWarningFlashingTextColour().setVisible(true);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }
    else
    {
        form.lblBreachWarningTextColour().setVisible(true);
        form.cmbBreachWarningTextColour().setVisible(true);
        form.lblBreachWarningFlashingTextColour().setVisible(false);
        form.cmbBreachWarningFlashingTextColour().setVisible(false);
        form.lblBreachWarningBackgroundColour().setVisible(true);
        form.cmbBreachWarningBackgroundColour().setVisible(true);
    }


}