Java 类ims.nursing.vo.lookups.CarePlanInterventionManOpt 实例源码

项目:AvoinApotti    文件:Logic.java   
private void selectAllFromCarePlanActionGrid() 
{
    for(int i=0; i<form.gridCarePlan().getRows().size(); i++)
    {
        gridCarePlanRow row = form.gridCarePlan().getRows().get(i);

        if(row.getValue() instanceof CarePlanTemplateIntervention && ((row.getValue().getInterventionType() != null && row.getValue().getInterventionType().equals(CarePlanInterventionManOpt.OPTIONAL)) || row.getValue().getInterventionType() == null))
            row.setColSelected(form.chkSelectAll().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectAllFromCarePlanActionGrid() 
{
    for(int i=0; i<form.gridCarePlan().getRows().size(); i++)
    {
        gridCarePlanRow row = form.gridCarePlan().getRows().get(i);

        if(row.getValue() instanceof CarePlanTemplateIntervention && ((row.getValue().getInterventionType() != null && row.getValue().getInterventionType().equals(CarePlanInterventionManOpt.OPTIONAL)) || row.getValue().getInterventionType() == null))
            row.setColSelected(form.chkSelectAll().getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectAllFromCarePlanActionGrid() 
{
    for(int i=0; i<form.gridCarePlan().getRows().size(); i++)
    {
        gridCarePlanRow row = form.gridCarePlan().getRows().get(i);

        if(row.getValue() instanceof CarePlanTemplateIntervention && ((row.getValue().getInterventionType() != null && row.getValue().getInterventionType().equals(CarePlanInterventionManOpt.OPTIONAL)) || row.getValue().getInterventionType() == null))
            row.setColSelected(form.chkSelectAll().getValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void selectAllFromCarePlanActionGrid() 
{
    for(int i=0; i<form.gridCarePlan().getRows().size(); i++)
    {
        gridCarePlanRow row = form.gridCarePlan().getRows().get(i);

        if(row.getValue() instanceof CarePlanTemplateIntervention && ((row.getValue().getInterventionType() != null && row.getValue().getInterventionType().equals(CarePlanInterventionManOpt.OPTIONAL)) || row.getValue().getInterventionType() == null))
            row.setColSelected(form.chkSelectAll().getValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateDynGridRowFromData(DynamicGridRow newRow, CarePlanInterventions inter)
{
    boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
    boolean activeOnly = form.cbFilter().getValue().equals("0");
    DynamicGridColumn column = null;
    DynamicGridCell newCell = null;
    if (!isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(SELECTED_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.BOOL);
        newCell.setValue(inter.getActive());
        newCell.setReadOnly(CarePlanInterventionManOpt.MANDATORY.equals(inter.getInterventionType()));
    }
    column = form.dyngrdActions().getColumns().getByIdentifier(ACTION_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getDescription());
    newCell.setTooltip(inter.getDescription());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTD_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
    newCell.setValue(inter.getStartDate());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTB_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getStartByIsNotNull()?inter.getStartBy().toString():null);
    newCell.setTooltip(inter.getStartByIsNotNull()?inter.getStartBy().toString():null); //wdev-13285
    newCell.setReadOnly(true);

    if (!activeOnly)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(STOPD_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
        newCell.setValue(inter.getStopDate());
        newCell.setReadOnly(true);

        column = form.dyngrdActions().getColumns().getByIdentifier(STOPB_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setValue(inter.getStopByIsNotNull()?inter.getStopBy().toString():null);
        newCell.setTooltip(inter.getStopByIsNotNull()?inter.getStopBy().toString():null); //wdev-13285
        newCell.setReadOnly(true);
    }

    if (isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(NOTES_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setStringMaxLength(100);
        newCell.setValue(inter.getAdditionalInfo());
        newCell.setTooltip(inter.getAdditionalInfo());  //wdev-13285
        newCell.setReadOnly(false);
    }

    if (isCcoSpecific && Boolean.TRUE.equals(inter.getIsRemoved()))
    {
        newRow.setTextColor(Color.Gray);
    }

    newRow.setValue(inter);
}
项目:openMAXIMS    文件:Logic.java   
private void populateDynGridRowFromData(DynamicGridRow newRow, CarePlanInterventions inter)
{
    boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
    boolean activeOnly = form.cbFilter().getValue().equals("0");
    boolean isRemovedOrReinstatedAction = isCcoSpecific && (Boolean.TRUE.equals(inter.getIsRemoved()) || Boolean.FALSE.equals(inter.getIsRemoved())); //WDEV-16795 


    DynamicGridColumn column = null;
    DynamicGridCell newCell = null;
    String addInfo = ""; //WDEV-16795
    String lineDelimiter = "<br/>"; 

    if (isRemovedOrReinstatedAction) //WDEV-16795 
    {
        addInfo = buildRemovedReinstatedActionTooltip (inter);
    }
    if (!isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(SELECTED_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.BOOL);
        newCell.setValue(inter.getActive());
        newCell.setReadOnly(CarePlanInterventionManOpt.MANDATORY.equals(inter.getInterventionType()));
    }
    column = form.dyngrdActions().getColumns().getByIdentifier(ACTION_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getDescription());
    newCell.setTooltip(inter.getDescription() != null ? inter.getDescription() + lineDelimiter + addInfo : addInfo);
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTD_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
    newCell.setValue(inter.getStartDate());
    newCell.setTooltip(inter.getStartDate() != null ? inter.getStartDate() + lineDelimiter +  addInfo : addInfo);
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTB_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getStartByIsNotNull() ? inter.getStartBy().toString():null);
    newCell.setTooltip(inter.getStartByIsNotNull() ? inter.getStartBy().toString() + lineDelimiter + addInfo : addInfo ); //wdev-13285 //WDEV-16795 
    newCell.setReadOnly(true);

    if (!activeOnly)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(STOPD_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
        newCell.setValue(inter.getStopDate());
        newCell.setTooltip(inter.getStopDateIsNotNull() ? inter.getStopDate() + lineDelimiter + addInfo : addInfo);
        newCell.setReadOnly(true);

        column = form.dyngrdActions().getColumns().getByIdentifier(STOPB_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setValue(inter.getStopByIsNotNull()?inter.getStopBy().toString():null);
        newCell.setTooltip(inter.getStopByIsNotNull()  ?inter.getStopBy().toString() + lineDelimiter + addInfo :addInfo) ; //wdev-13285 //WDEV-16795 
        newCell.setReadOnly(true);
    }

    if (isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(NOTES_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setStringMaxLength(100);
        newCell.setValue(inter.getAdditionalInfo());
        newCell.setTooltip(inter.getAdditionalInfoIsNotNull() ? inter.getAdditionalInfo() + lineDelimiter  + addInfo : addInfo);    //wdev-13285 //WDEV-16795 
        newCell.setReadOnly(false);
    }

    if (isCcoSpecific && Boolean.TRUE.equals(inter.getIsRemoved()))
    {
        newRow.setTextColor(Color.Gray);
    }

    newRow.setValue(inter);
}
项目:openMAXIMS    文件:Logic.java   
private void populateDynGridRowFromData(DynamicGridRow newRow, CarePlanInterventions inter)
{
    boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
    boolean activeOnly = form.cbFilter().getValue().equals("0");
    DynamicGridColumn column = null;
    DynamicGridCell newCell = null;
    if (!isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(SELECTED_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.BOOL);
        newCell.setValue(inter.getActive());
        newCell.setReadOnly(CarePlanInterventionManOpt.MANDATORY.equals(inter.getInterventionType()));
    }
    column = form.dyngrdActions().getColumns().getByIdentifier(ACTION_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getDescription());
    newCell.setTooltip(inter.getDescription());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTD_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
    newCell.setValue(inter.getStartDate());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTB_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getStartByIsNotNull()?inter.getStartBy().toString():null);
    newCell.setTooltip(inter.getStartByIsNotNull()?inter.getStartBy().toString():null); //wdev-13285
    newCell.setReadOnly(true);

    if (!activeOnly)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(STOPD_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
        newCell.setValue(inter.getStopDate());
        newCell.setReadOnly(true);

        column = form.dyngrdActions().getColumns().getByIdentifier(STOPB_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setValue(inter.getStopByIsNotNull()?inter.getStopBy().toString():null);
        newCell.setTooltip(inter.getStopByIsNotNull()?inter.getStopBy().toString():null); //wdev-13285
        newCell.setReadOnly(true);
    }

    if (isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(NOTES_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setStringMaxLength(100);
        newCell.setValue(inter.getAdditionalInfo());
        newCell.setTooltip(inter.getAdditionalInfo());  //wdev-13285
        newCell.setReadOnly(false);
    }

    if (isCcoSpecific && Boolean.TRUE.equals(inter.getIsRemoved()))
    {
        newRow.setTextColor(Color.Gray);
    }

    newRow.setValue(inter);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDynGridRowFromData(DynamicGridRow newRow, CarePlanInterventions inter)
{
    boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
    boolean activeOnly = form.cbFilter().getValue().equals("0");
    DynamicGridColumn column = null;
    DynamicGridCell newCell = null;
    if (!isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(SELECTED_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.BOOL);
        newCell.setValue(inter.getActive());
        newCell.setReadOnly(CarePlanInterventionManOpt.MANDATORY.equals(inter.getInterventionType()));
    }
    column = form.dyngrdActions().getColumns().getByIdentifier(ACTION_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getDescription());
    newCell.setTooltip(inter.getDescription());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTD_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
    newCell.setValue(inter.getStartDate());
    newCell.setReadOnly(true);

    column = form.dyngrdActions().getColumns().getByIdentifier(STARTB_COLUMN_INDENTIFIER);
    newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
    newCell.setValue(inter.getStartByIsNotNull()?inter.getStartBy().toString():null);
    newCell.setTooltip(inter.getStartByIsNotNull()?inter.getStartBy().toString():null); //wdev-13285
    newCell.setReadOnly(true);

    if (!activeOnly)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(STOPD_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.DATE);
        newCell.setValue(inter.getStopDate());
        newCell.setReadOnly(true);

        column = form.dyngrdActions().getColumns().getByIdentifier(STOPB_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setValue(inter.getStopByIsNotNull()?inter.getStopBy().toString():null);
        newCell.setTooltip(inter.getStopByIsNotNull()?inter.getStopBy().toString():null); //wdev-13285
        newCell.setReadOnly(true);
    }

    if (isCcoSpecific)
    {
        column = form.dyngrdActions().getColumns().getByIdentifier(NOTES_COLUMN_INDENTIFIER);
        newCell = newRow.getCells().newCell(column, DynamicCellType.STRING);
        newCell.setStringMaxLength(100);
        newCell.setValue(inter.getAdditionalInfo());
        newCell.setTooltip(inter.getAdditionalInfo());  //wdev-13285
        newCell.setReadOnly(false);
    }

    if (isCcoSpecific && Boolean.TRUE.equals(inter.getIsRemoved()))
    {
        newRow.setTextColor(Color.Gray);
    }

    newRow.setValue(inter);
}