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

项目:AvoinApotti    文件:Logic.java   
private void populateChildRow(DynamicGridRow childRow, HandlingMovementDetailVo voHandlingMovementDetail)
{
    if (voHandlingMovementDetail == null)
        return;

    childRow.setValue(voHandlingMovementDetail);


    DynamicGridCell cellMovement = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(MOVEMENT_COLUMN), DynamicCellType.STRING);
    if(voHandlingMovementDetail.getMovementIsNotNull())
        cellMovement.setValue(voHandlingMovementDetail.getMovement().toString());


    DynamicGridCell cellEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(EQUIPMENT_COLUMN), DynamicCellType.MULTISELECT);

    MechanicalEquipCollection items = voHandlingMovementDetail.getMechanicalEquipment();
    if(items != null)
    {
        for(int y = 0; y < items.size(); y++)
        {
            cellEquipment.getItems().newItem(items.get(y));
            cellEquipment.getItems().get(y).setIdentifier(items.get(y));
            cellEquipment.getItems().get(y).setMarkerColor(items.get(y).getColor());
            cellEquipment.getItems().get(y).setChecked(true);
        }
        //WDEV-2935 
        cellEquipment.setMaxVisibleItemsForMultiSelect(items.size());
    }



    DynamicGridCell cellOtherEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(OTHEREQUIPMENT_COLUMN), DynamicCellType.STRING);
    cellOtherEquipment.setValue(voHandlingMovementDetail.getOtherEquipment());
    cellOtherEquipment.setTooltip(voHandlingMovementDetail.getOtherEquipment());

    DynamicGridCell cellNoOfStaff = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(NOOFSTAFF_COLUMN), DynamicCellType.INT);
    cellNoOfStaff.setValue(voHandlingMovementDetail.getNoOfStaff());

    DynamicGridCell cellDetails = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(DETAILS_COLUMN), DynamicCellType.STRING);
    cellDetails.setValue(voHandlingMovementDetail.getDetails());

    // if not saved then set the colour
    if (voHandlingMovementDetail.getID_HandlingMovementDetail() == null)
        childRow.setTextColor(Color.Red);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildRow(DynamicGridRow childRow, HandlingMovementDetailVo voHandlingMovementDetail)
{
    if (voHandlingMovementDetail == null)
        return;

    childRow.setValue(voHandlingMovementDetail);


    DynamicGridCell cellMovement = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(MOVEMENT_COLUMN), DynamicCellType.STRING);
    if(voHandlingMovementDetail.getMovementIsNotNull())
        cellMovement.setValue(voHandlingMovementDetail.getMovement().toString());


    DynamicGridCell cellEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(EQUIPMENT_COLUMN), DynamicCellType.MULTISELECT);

    MechanicalEquipCollection items = voHandlingMovementDetail.getMechanicalEquipment();
    if(items != null)
    {
        for(int y = 0; y < items.size(); y++)
        {
            cellEquipment.getItems().newItem(items.get(y));
            cellEquipment.getItems().get(y).setIdentifier(items.get(y));
            cellEquipment.getItems().get(y).setMarkerColor(items.get(y).getColor());
            cellEquipment.getItems().get(y).setChecked(true);
        }
        //WDEV-2935 
        cellEquipment.setMaxVisibleItemsForMultiSelect(items.size());
    }



    DynamicGridCell cellOtherEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(OTHEREQUIPMENT_COLUMN), DynamicCellType.STRING);
    cellOtherEquipment.setValue(voHandlingMovementDetail.getOtherEquipment());
    cellOtherEquipment.setTooltip(voHandlingMovementDetail.getOtherEquipment());

    DynamicGridCell cellNoOfStaff = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(NOOFSTAFF_COLUMN), DynamicCellType.INT);
    cellNoOfStaff.setValue(voHandlingMovementDetail.getNoOfStaff());

    DynamicGridCell cellDetails = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(DETAILS_COLUMN), DynamicCellType.STRING);
    cellDetails.setValue(voHandlingMovementDetail.getDetails());

    // if not saved then set the colour
    if (voHandlingMovementDetail.getID_HandlingMovementDetail() == null)
        childRow.setTextColor(Color.Red);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildRow(DynamicGridRow childRow, HandlingMovementDetailVo voHandlingMovementDetail)
{
    if (voHandlingMovementDetail == null)
        return;

    childRow.setValue(voHandlingMovementDetail);


    DynamicGridCell cellMovement = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(MOVEMENT_COLUMN), DynamicCellType.STRING);
    if(voHandlingMovementDetail.getMovementIsNotNull())
        cellMovement.setValue(voHandlingMovementDetail.getMovement().toString());


    DynamicGridCell cellEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(EQUIPMENT_COLUMN), DynamicCellType.MULTISELECT);

    MechanicalEquipCollection items = voHandlingMovementDetail.getMechanicalEquipment();
    if(items != null)
    {
        for(int y = 0; y < items.size(); y++)
        {
            cellEquipment.getItems().newItem(items.get(y));
            cellEquipment.getItems().get(y).setIdentifier(items.get(y));
            cellEquipment.getItems().get(y).setMarkerColor(items.get(y).getColor());
            cellEquipment.getItems().get(y).setChecked(true);
        }
        //WDEV-2935 
        cellEquipment.setMaxVisibleItemsForMultiSelect(items.size());
    }



    DynamicGridCell cellOtherEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(OTHEREQUIPMENT_COLUMN), DynamicCellType.STRING);
    cellOtherEquipment.setValue(voHandlingMovementDetail.getOtherEquipment());
    cellOtherEquipment.setTooltip(voHandlingMovementDetail.getOtherEquipment());

    DynamicGridCell cellNoOfStaff = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(NOOFSTAFF_COLUMN), DynamicCellType.INT);
    cellNoOfStaff.setValue(voHandlingMovementDetail.getNoOfStaff());

    DynamicGridCell cellDetails = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(DETAILS_COLUMN), DynamicCellType.STRING);
    cellDetails.setValue(voHandlingMovementDetail.getDetails());

    // if not saved then set the colour
    if (voHandlingMovementDetail.getID_HandlingMovementDetail() == null)
        childRow.setTextColor(Color.Red);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildRow(DynamicGridRow childRow, HandlingMovementDetailVo voHandlingMovementDetail)
{
    if (voHandlingMovementDetail == null)
        return;

    childRow.setValue(voHandlingMovementDetail);


    DynamicGridCell cellMovement = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(MOVEMENT_COLUMN), DynamicCellType.STRING);
    if(voHandlingMovementDetail.getMovementIsNotNull())
        cellMovement.setValue(voHandlingMovementDetail.getMovement().toString());


    DynamicGridCell cellEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(EQUIPMENT_COLUMN), DynamicCellType.MULTISELECT);

    MechanicalEquipCollection items = voHandlingMovementDetail.getMechanicalEquipment();
    if(items != null)
    {
        for(int y = 0; y < items.size(); y++)
        {
            cellEquipment.getItems().newItem(items.get(y));
            cellEquipment.getItems().get(y).setIdentifier(items.get(y));
            cellEquipment.getItems().get(y).setMarkerColor(items.get(y).getColor());
            cellEquipment.getItems().get(y).setChecked(true);
        }
        //WDEV-2935 
        cellEquipment.setMaxVisibleItemsForMultiSelect(items.size());
    }



    DynamicGridCell cellOtherEquipment = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(OTHEREQUIPMENT_COLUMN), DynamicCellType.STRING);
    cellOtherEquipment.setValue(voHandlingMovementDetail.getOtherEquipment());
    cellOtherEquipment.setTooltip(voHandlingMovementDetail.getOtherEquipment());

    DynamicGridCell cellNoOfStaff = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(NOOFSTAFF_COLUMN), DynamicCellType.INT);
    cellNoOfStaff.setValue(voHandlingMovementDetail.getNoOfStaff());

    DynamicGridCell cellDetails = childRow.getCells().newCell(form.dyngrdDetails().getColumns().getByIdentifier(DETAILS_COLUMN), DynamicCellType.STRING);
    cellDetails.setValue(voHandlingMovementDetail.getDetails());

    // if not saved then set the colour
    if (voHandlingMovementDetail.getID_HandlingMovementDetail() == null)
        childRow.setTextColor(Color.Red);
}