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

项目:AvoinApotti    文件:Logic.java   
private void setDynamicGridNewMotorAreaFindings(MotorChartAreaDetailVoCollection listMotorCharAreaDetail)
{
    form.dyngrdMotor().getRows().clear();

    if (listMotorCharAreaDetail == null)
        return;

    // Sort collection
    listMotorCharAreaDetail.sort(new FindingsAndMotorChartComparator());

    for (int i = 0; i < listMotorCharAreaDetail.size(); i++)
    {
        MotorChartAreaDetailVo motorChartAreaDetailVo = listMotorCharAreaDetail.get(i);

        if (motorChartAreaDetailVo == null)
            continue;

        if (motorChartAreaDetailVo.getIsActive() != null && motorChartAreaDetailVo.getIsActive() == true)
            setDynamicGridNewMotorAreaRow(form.dyngrdMotor().getRows().newRow(), motorChartAreaDetailVo);
    }
}
项目:AvoinApotti    文件:Logic.java   
public boolean save() throws ims.framework.exceptions.PresentationLogicException
{
    MotorChartAreaDetailVo tempValue = populateDataFromScreen((MotorChartAreaDetailVo) (form.getGlobalContext().ClinicalAdmin.getMotorChartDetails()).clone());

    String[] errors = tempValue.validate();

    if (errors != null && errors.length != 0)
    {
        engine.showErrors(errors);
        return false;
    }

    form.getGlobalContext().ClinicalAdmin.setMotorChartDetails(tempValue);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(MotorChartAreaDetailVo motorChartAreaDetailVo)
{
    clearInstanceControls();

    if (motorChartAreaDetailVo == null)
        return;

    form.richMotorArea().setValue(motorChartAreaDetailVo.getMotorAreaDescription());

    if (motorChartAreaDetailVo.getIsUpperLimbIsNotNull())
        form.chkUppLimb().setValue(motorChartAreaDetailVo.getIsUpperLimb());

    if (motorChartAreaDetailVo.getIsLowerLimbIsNotNull())
        form.chkLowLimb().setValue(motorChartAreaDetailVo.getIsLowerLimb());

    if (motorChartAreaDetailVo.getIsActiveIsNotNull())
        form.chkActive().setValue(motorChartAreaDetailVo.getIsActive());
}
项目:AvoinApotti    文件:Logic.java   
private void moveRowDown(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == form.dyngrdMotorArea().getRows().size() - 1)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index + 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:AvoinApotti    文件:Logic.java   
private void moveRowUp(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == 0)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index - 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:AvoinApotti    文件:Logic.java   
private MotorChartAreaDetailVoCollection getMotorChartAreaValue()
{
    MotorChartAreaDetailVoCollection tempCollection = new MotorChartAreaDetailVoCollection();

    for (int i = 0; i < form.dyngrdMotorArea().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdMotorArea().getRows().get(i);

        if (row == null || row.getValue() == null)
            continue;

        MotorChartAreaDetailVo rowValue = (MotorChartAreaDetailVo) row.getValue();
        rowValue.setOrderNo(i);

        tempCollection.add(rowValue);
    }

    return tempCollection;
}
项目:AvoinApotti    文件:Logic.java   
private void setMotorChartArea(MotorChartAreaDetailVoCollection motorChartAreaDetailVoCollection)
{
    // Clear Motor Area
    form.dyngrdMotorArea().getRows().clear();

    // Sort collection by order
    motorChartAreaDetailVoCollection.sort(new MotorChartComparator());

    // Check for null
    if (motorChartAreaDetailVoCollection == null)
        return;

    // Iterate through the collection
    for (int i = 0; i < motorChartAreaDetailVoCollection.size(); i++)
    {
        MotorChartAreaDetailVo motorChartDetails = motorChartAreaDetailVoCollection.get(i);

        // Add non-null variables to grid
        if (motorChartDetails != null)
        {
            setMotorChartDetailsRow(form.dyngrdMotorArea().getRows().newRow(), motorChartDetails);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDynamicGridNewMotorAreaFindings(MotorChartAreaDetailVoCollection listMotorCharAreaDetail)
{
    form.dyngrdMotor().getRows().clear();

    if (listMotorCharAreaDetail == null)
        return;

    // Sort collection
    listMotorCharAreaDetail.sort(new FindingsAndMotorChartComparator());

    for (int i = 0; i < listMotorCharAreaDetail.size(); i++)
    {
        MotorChartAreaDetailVo motorChartAreaDetailVo = listMotorCharAreaDetail.get(i);

        if (motorChartAreaDetailVo == null)
            continue;

        if (motorChartAreaDetailVo.getIsActive() != null && motorChartAreaDetailVo.getIsActive() == true)
            setDynamicGridNewMotorAreaRow(form.dyngrdMotor().getRows().newRow(), motorChartAreaDetailVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
public boolean save() throws ims.framework.exceptions.PresentationLogicException
{
    MotorChartAreaDetailVo tempValue = populateDataFromScreen((MotorChartAreaDetailVo) (form.getGlobalContext().ClinicalAdmin.getMotorChartDetails()).clone());

    String[] errors = tempValue.validate();

    if (errors != null && errors.length != 0)
    {
        engine.showErrors(errors);
        return false;
    }

    form.getGlobalContext().ClinicalAdmin.setMotorChartDetails(tempValue);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(MotorChartAreaDetailVo motorChartAreaDetailVo)
{
    clearInstanceControls();

    if (motorChartAreaDetailVo == null)
        return;

    form.richMotorArea().setValue(motorChartAreaDetailVo.getMotorAreaDescription());

    if (motorChartAreaDetailVo.getIsUpperLimbIsNotNull())
        form.chkUppLimb().setValue(motorChartAreaDetailVo.getIsUpperLimb());

    if (motorChartAreaDetailVo.getIsLowerLimbIsNotNull())
        form.chkLowLimb().setValue(motorChartAreaDetailVo.getIsLowerLimb());

    if (motorChartAreaDetailVo.getIsActiveIsNotNull())
        form.chkActive().setValue(motorChartAreaDetailVo.getIsActive());
}
项目:openMAXIMS    文件:Logic.java   
private void moveRowDown(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == form.dyngrdMotorArea().getRows().size() - 1)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index + 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openMAXIMS    文件:Logic.java   
private void moveRowUp(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == 0)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index - 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openMAXIMS    文件:Logic.java   
private MotorChartAreaDetailVoCollection getMotorChartAreaValue()
{
    MotorChartAreaDetailVoCollection tempCollection = new MotorChartAreaDetailVoCollection();

    for (int i = 0; i < form.dyngrdMotorArea().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdMotorArea().getRows().get(i);

        if (row == null || row.getValue() == null)
            continue;

        MotorChartAreaDetailVo rowValue = (MotorChartAreaDetailVo) row.getValue();
        rowValue.setOrderNo(i);

        tempCollection.add(rowValue);
    }

    return tempCollection;
}
项目:openMAXIMS    文件:Logic.java   
private void setMotorChartArea(MotorChartAreaDetailVoCollection motorChartAreaDetailVoCollection)
{
    // Clear Motor Area
    form.dyngrdMotorArea().getRows().clear();

    // Sort collection by order
    motorChartAreaDetailVoCollection.sort(new MotorChartComparator());

    // Check for null
    if (motorChartAreaDetailVoCollection == null)
        return;

    // Iterate through the collection
    for (int i = 0; i < motorChartAreaDetailVoCollection.size(); i++)
    {
        MotorChartAreaDetailVo motorChartDetails = motorChartAreaDetailVoCollection.get(i);

        // Add non-null variables to grid
        if (motorChartDetails != null)
        {
            setMotorChartDetailsRow(form.dyngrdMotorArea().getRows().newRow(), motorChartDetails);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDynamicGridNewMotorAreaFindings(MotorChartAreaDetailVoCollection listMotorCharAreaDetail)
{
    form.dyngrdMotor().getRows().clear();

    if (listMotorCharAreaDetail == null)
        return;

    // Sort collection
    listMotorCharAreaDetail.sort(new FindingsAndMotorChartComparator());

    for (int i = 0; i < listMotorCharAreaDetail.size(); i++)
    {
        MotorChartAreaDetailVo motorChartAreaDetailVo = listMotorCharAreaDetail.get(i);

        if (motorChartAreaDetailVo == null)
            continue;

        if (motorChartAreaDetailVo.getIsActive() != null && motorChartAreaDetailVo.getIsActive() == true)
            setDynamicGridNewMotorAreaRow(form.dyngrdMotor().getRows().newRow(), motorChartAreaDetailVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
public boolean save() throws ims.framework.exceptions.PresentationLogicException
{
    MotorChartAreaDetailVo tempValue = populateDataFromScreen((MotorChartAreaDetailVo) (form.getGlobalContext().ClinicalAdmin.getMotorChartDetails()).clone());

    String[] errors = tempValue.validate();

    if (errors != null && errors.length != 0)
    {
        engine.showErrors(errors);
        return false;
    }

    form.getGlobalContext().ClinicalAdmin.setMotorChartDetails(tempValue);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(MotorChartAreaDetailVo motorChartAreaDetailVo)
{
    clearInstanceControls();

    if (motorChartAreaDetailVo == null)
        return;

    form.richMotorArea().setValue(motorChartAreaDetailVo.getMotorAreaDescription());

    if (motorChartAreaDetailVo.getIsUpperLimbIsNotNull())
        form.chkUppLimb().setValue(motorChartAreaDetailVo.getIsUpperLimb());

    if (motorChartAreaDetailVo.getIsLowerLimbIsNotNull())
        form.chkLowLimb().setValue(motorChartAreaDetailVo.getIsLowerLimb());

    if (motorChartAreaDetailVo.getIsActiveIsNotNull())
        form.chkActive().setValue(motorChartAreaDetailVo.getIsActive());
}
项目:openMAXIMS    文件:Logic.java   
private void moveRowDown(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == form.dyngrdMotorArea().getRows().size() - 1)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index + 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openMAXIMS    文件:Logic.java   
private void moveRowUp(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == 0)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index - 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openMAXIMS    文件:Logic.java   
private MotorChartAreaDetailVoCollection getMotorChartAreaValue()
{
    MotorChartAreaDetailVoCollection tempCollection = new MotorChartAreaDetailVoCollection();

    for (int i = 0; i < form.dyngrdMotorArea().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdMotorArea().getRows().get(i);

        if (row == null || row.getValue() == null)
            continue;

        MotorChartAreaDetailVo rowValue = (MotorChartAreaDetailVo) row.getValue();
        rowValue.setOrderNo(i);

        tempCollection.add(rowValue);
    }

    return tempCollection;
}
项目:openMAXIMS    文件:Logic.java   
private void setMotorChartArea(MotorChartAreaDetailVoCollection motorChartAreaDetailVoCollection)
{
    // Clear Motor Area
    form.dyngrdMotorArea().getRows().clear();

    // Sort collection by order
    motorChartAreaDetailVoCollection.sort(new MotorChartComparator());

    // Check for null
    if (motorChartAreaDetailVoCollection == null)
        return;

    // Iterate through the collection
    for (int i = 0; i < motorChartAreaDetailVoCollection.size(); i++)
    {
        MotorChartAreaDetailVo motorChartDetails = motorChartAreaDetailVoCollection.get(i);

        // Add non-null variables to grid
        if (motorChartDetails != null)
        {
            setMotorChartDetailsRow(form.dyngrdMotorArea().getRows().newRow(), motorChartDetails);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setDynamicGridNewMotorAreaFindings(MotorChartAreaDetailVoCollection listMotorCharAreaDetail)
{
    form.dyngrdMotor().getRows().clear();

    if (listMotorCharAreaDetail == null)
        return;

    // Sort collection
    listMotorCharAreaDetail.sort(new FindingsAndMotorChartComparator());

    for (int i = 0; i < listMotorCharAreaDetail.size(); i++)
    {
        MotorChartAreaDetailVo motorChartAreaDetailVo = listMotorCharAreaDetail.get(i);

        if (motorChartAreaDetailVo == null)
            continue;

        if (motorChartAreaDetailVo.getIsActive() != null && motorChartAreaDetailVo.getIsActive() == true)
            setDynamicGridNewMotorAreaRow(form.dyngrdMotor().getRows().newRow(), motorChartAreaDetailVo);
    }
}
项目:openmaxims-linux    文件:Logic.java   
public boolean save() throws ims.framework.exceptions.PresentationLogicException
{
    MotorChartAreaDetailVo tempValue = populateDataFromScreen((MotorChartAreaDetailVo) (form.getGlobalContext().ClinicalAdmin.getMotorChartDetails()).clone());

    String[] errors = tempValue.validate();

    if (errors != null && errors.length != 0)
    {
        engine.showErrors(errors);
        return false;
    }

    form.getGlobalContext().ClinicalAdmin.setMotorChartDetails(tempValue);

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(MotorChartAreaDetailVo motorChartAreaDetailVo)
{
    clearInstanceControls();

    if (motorChartAreaDetailVo == null)
        return;

    form.richMotorArea().setValue(motorChartAreaDetailVo.getMotorAreaDescription());

    if (motorChartAreaDetailVo.getIsUpperLimbIsNotNull())
        form.chkUppLimb().setValue(motorChartAreaDetailVo.getIsUpperLimb());

    if (motorChartAreaDetailVo.getIsLowerLimbIsNotNull())
        form.chkLowLimb().setValue(motorChartAreaDetailVo.getIsLowerLimb());

    if (motorChartAreaDetailVo.getIsActiveIsNotNull())
        form.chkActive().setValue(motorChartAreaDetailVo.getIsActive());
}
项目:openmaxims-linux    文件:Logic.java   
private void moveRowDown(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == form.dyngrdMotorArea().getRows().size() - 1)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index + 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openmaxims-linux    文件:Logic.java   
private void moveRowUp(DynamicGridRow selectedRow)
{
    int index = form.dyngrdMotorArea().getRows().indexOf(selectedRow);

    if (index == 0)
        return;

    DynamicGridRow targetRow = form.dyngrdMotorArea().getRows().get(index - 1);

    if (!(targetRow.getValue() instanceof MotorChartAreaDetailVo) || !(selectedRow.getValue() instanceof MotorChartAreaDetailVo))
    {
        throw new CodingRuntimeException("Logical Error - the dynamic grid rows are supposed to keep only MotorChartAreaDetailVo as value");
    }

    MotorChartAreaDetailVo tempValue = (MotorChartAreaDetailVo) ((MotorChartAreaDetailVo) targetRow.getValue()).clone();
    MotorChartAreaDetailVo value = (MotorChartAreaDetailVo) selectedRow.getValue();

    setMotorChartDetailsRow(targetRow, value);
    setMotorChartDetailsRow(selectedRow, tempValue);

    form.dyngrdMotorArea().setValue(value);
}
项目:openmaxims-linux    文件:Logic.java   
private MotorChartAreaDetailVoCollection getMotorChartAreaValue()
{
    MotorChartAreaDetailVoCollection tempCollection = new MotorChartAreaDetailVoCollection();

    for (int i = 0; i < form.dyngrdMotorArea().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdMotorArea().getRows().get(i);

        if (row == null || row.getValue() == null)
            continue;

        MotorChartAreaDetailVo rowValue = (MotorChartAreaDetailVo) row.getValue();
        rowValue.setOrderNo(i);

        tempCollection.add(rowValue);
    }

    return tempCollection;
}
项目:openmaxims-linux    文件:Logic.java   
private void setMotorChartArea(MotorChartAreaDetailVoCollection motorChartAreaDetailVoCollection)
{
    // Clear Motor Area
    form.dyngrdMotorArea().getRows().clear();

    // Sort collection by order
    motorChartAreaDetailVoCollection.sort(new MotorChartComparator());

    // Check for null
    if (motorChartAreaDetailVoCollection == null)
        return;

    // Iterate through the collection
    for (int i = 0; i < motorChartAreaDetailVoCollection.size(); i++)
    {
        MotorChartAreaDetailVo motorChartDetails = motorChartAreaDetailVoCollection.get(i);

        // Add non-null variables to grid
        if (motorChartDetails != null)
        {
            setMotorChartDetailsRow(form.dyngrdMotorArea().getRows().newRow(), motorChartDetails);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo)arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo)arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo)arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo)arg1).getOrderNo());
    }

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
private void setDynamicGridNewMotorAreaRow(DynamicGridRow row, MotorChartAreaDetailVo motorChartAreaDetail)
{
    if (motorChartAreaDetail == null)
        return;

    if (row == null)
        throw new CodingRuntimeException("Major Logical Error - Can not add a finding to a null row");

    // Set the row
    DynamicGridColumn column;
    DynamicGridCell cell;

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_MOTOR_AREA);
    cell = row.getCells().newCell(column, DynamicCellType.HTMLVIEW);
    cell.setValue(motorChartAreaDetail.getMotorAreaDescription());
    cell.setIdentifier(motorChartAreaDetail);
    cell.setReadOnly(true);

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_RIGHT);
    cell = row.getCells().newCell(column, DynamicCellType.STRING);
    cell.setValue(null);
    cell.setWidth(STANDARD_COLUMN_WIDTH);
    cell.setReadOnly(false);
    cell.setAutoPostBack(true);

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_LEFT);
    cell = row.getCells().newCell(column, DynamicCellType.STRING);
    cell.setValue(null);
    cell.setReadOnly(false);
    cell.setAutoPostBack(true);

    // Build row value
    NeuroMotorAreaFindingVo motorAreaFindingVo = new NeuroMotorAreaFindingVo();
    motorAreaFindingVo.setMotorArea(motorChartAreaDetail);

    row.setValue(motorAreaFindingVo);
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo) arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo) arg1).getOrderNo());
    }

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo)arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo)arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo)arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo)arg1).getOrderNo());
    }

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onDyngrdMotorAreaRowSelectionChanged(ims.framework.controls.DynamicGridRow row)
{
    // Update local context
    form.getLocalContext().setTempSelection((MotorChartAreaDetailVo) form.dyngrdMotorArea().getValue());

    // Update controls state
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void setMotorChartDetailsRow(DynamicGridRow row, MotorChartAreaDetailVo motorChartDetails)
{
    if (motorChartDetails == null)
        return;

    if (row == null)
        throw new CodingRuntimeException("Major Logical Error - Can not populate a null row with value");

    // Set the row (setup the cells and cells values)
    DynamicGridColumn column;
    DynamicGridCell cell;

    // Create the first cell (stage)
    column = form.dyngrdMotorArea().getColumns().getByIdentifier(COL_MOTOR_AREA_DESCRIPTION);
    cell = row.getCells().newCell(column, DynamicCellType.HTMLVIEW);
    cell.setValue(motorChartDetails.getMotorAreaDescription());

    // Create the second cell
    column = form.dyngrdMotorArea().getColumns().getByIdentifier(COL_MOTOR_AREA_UPPER_LIMB);
    cell = row.getCells().newCell(column, DynamicCellType.BOOL);
    cell.setValue(motorChartDetails.getIsUpperLimb());

    // Create the third cell
    column = form.dyngrdMotorArea().getColumns().getByIdentifier(COL_MOTOR_AREA_LOWER_LIMB);
    cell = row.getCells().newCell(column, DynamicCellType.BOOL);
    cell.setValue(motorChartDetails.getIsLowerLimb());

    //Create the fourth cell
    column = form.dyngrdMotorArea().getColumns().getByIdentifier(COL_MOTOR_AREA_ACTIVE);
    cell = row.getCells().newCell(column, DynamicCellType.BOOL);
    cell.setValue(motorChartDetails.getIsActive());

    // Set row value
    row.setValue(motorChartDetails);
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        return (((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo) arg1).getOrderNo()));
    }

    return 0;
}
项目:AvoinApotti    文件:MotorChartConfigurationImpl.java   
public MotorChartAreaDetailVo getMotorChartArea(MotorChartAreaDetailRefVo motorChartArea) throws DomainInterfaceException
{
    if (motorChartArea == null || !motorChartArea.getID_MotorChartAreaDetailIsNotNull())
        return null;

    return MotorChartAreaDetailVoAssembler.create((MotorChartAreaDetail) getDomainFactory().getDomainObject(MotorChartAreaDetail.class, motorChartArea.getID_MotorChartAreaDetail()));
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo)arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo)arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo)arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo)arg1).getOrderNo());
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void setDynamicGridNewMotorAreaRow(DynamicGridRow row, MotorChartAreaDetailVo motorChartAreaDetail)
{
    if (motorChartAreaDetail == null)
        return;

    if (row == null)
        throw new CodingRuntimeException("Major Logical Error - Can not add a finding to a null row");

    // Set the row
    DynamicGridColumn column;
    DynamicGridCell cell;

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_MOTOR_AREA);
    cell = row.getCells().newCell(column, DynamicCellType.HTMLVIEW);
    cell.setValue(motorChartAreaDetail.getMotorAreaDescription());
    cell.setIdentifier(motorChartAreaDetail);
    cell.setReadOnly(true);

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_RIGHT);
    cell = row.getCells().newCell(column, DynamicCellType.STRING);
    cell.setValue(null);
    cell.setWidth(STANDARD_COLUMN_WIDTH);
    cell.setReadOnly(false);
    cell.setAutoPostBack(true);

    column = form.dyngrdMotor().getColumns().getByIdentifier(COL_LEFT);
    cell = row.getCells().newCell(column, DynamicCellType.STRING);
    cell.setValue(null);
    cell.setReadOnly(false);
    cell.setAutoPostBack(true);

    // Build row value
    NeuroMotorAreaFindingVo motorAreaFindingVo = new NeuroMotorAreaFindingVo();
    motorAreaFindingVo.setMotorArea(motorChartAreaDetail);

    row.setValue(motorAreaFindingVo);
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo) arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo) arg1).getOrderNo());
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object arg0, Object arg1)
{
    if (arg0 instanceof NeuroMotorRootValueVo && arg1 instanceof NeuroMotorRootValueVo)
    {
        if (!((NeuroMotorRootValueVo) arg0).getRootValueIsNotNull() || !((NeuroMotorRootValueVo)arg1).getRootValueIsNotNull())
            return 0;

        if (!((NeuroMotorRootValueVo) arg0).getRootValue().getOrderNoIsNotNull() || !((NeuroMotorRootValueVo) arg1).getRootValueIsNotNull())
            return 0;

        return ((NeuroMotorRootValueVo)arg0).getRootValue().getOrderNo().compareTo(((NeuroMotorRootValueVo)arg1).getRootValue().getOrderNo());
    }

    if (arg0 instanceof NeuroMotorAreaFindingVo && arg1 instanceof NeuroMotorAreaFindingVo)
    {
        if (!((NeuroMotorAreaFindingVo) arg0).getMotorAreaIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorAreaIsNotNull())
            return 0;

        if (!((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNoIsNotNull() || !((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNoIsNotNull())
            return 0;

        return ((NeuroMotorAreaFindingVo) arg0).getMotorArea().getOrderNo().compareTo(((NeuroMotorAreaFindingVo) arg1).getMotorArea().getOrderNo());
    }

    if (arg0 instanceof MotorChartAreaDetailVo && arg1 instanceof MotorChartAreaDetailVo)
    {
        if (!((MotorChartAreaDetailVo) arg0).getOrderNoIsNotNull() || !((MotorChartAreaDetailVo) arg1).getOrderNoIsNotNull())
            return 0;

        return ((MotorChartAreaDetailVo) arg0).getOrderNo().compareTo(((MotorChartAreaDetailVo)arg1).getOrderNo());
    }

    return 0;
}