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

项目:AvoinApotti    文件:Logic.java   
private void loadCombos()
{
    // Level of Injury
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);
    VertebrallevelVo voVertebralItem = null;

    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        form.cmbLevelofInjury().newRow(voVertebralItem, voVertebralItem.getName());
    }

    // Mode of Injury
    InjuryClassModeofInjuryCollection injuryColl = LookupHelper.getInjuryClassModeofInjury(domain.getLookupService());
    TreeNode[] rootNodes = injuryColl.getRootNodes();
    if (rootNodes != null)
    {
        for (int i = 0; i < rootNodes.length; i++)
        {
            InjuryClassModeofInjury lkParent = (InjuryClassModeofInjury) rootNodes[i];
            if (lkParent.isActive())
                form.cmbModeofInjury().newRow(lkParent, lkParent.getText());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void initializeCombos()
{
    form.cmbMotorRight().clear();
    form.cmbMotorLeft().clear();

    VertebrallevelVoCollection listVertebralLevelsCollection = domain.listVertebralLevels();

    for (int i = 0; i < listVertebralLevelsCollection.size(); i++)
    {
        VertebrallevelVo vertebraLlevel = listVertebralLevelsCollection.get(i);

        if (vertebraLlevel == null)
            continue;

        form.cmbMotorLeft().newRow(vertebraLlevel, vertebraLlevel.getName());
        form.cmbMotorRight().newRow(vertebraLlevel, vertebraLlevel.getName());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void listVertebral() 
    {
        form.grdLevel().setValue(null);

        form.grdLevel().getRows().clear();
        VertebrallevelVoCollection voCollVertebral  = domain.listVertebralLevel(new Boolean(form.chkActiveOnly().getValue()));
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row = null;
        for(int i=0;i<voCollVertebral.size();i++)
        {
            voVertebralItem = voCollVertebral.get(i);
            row = form.grdLevel().getRows().newRow();

            row.setcolActive(voVertebralItem.getIsActive().booleanValue());
            row.setcolDescription(voVertebralItem.getDescription());
            row.setcolLevel(voVertebralItem.getName());
            //WDEV-3158 
            row.setcolLevelReadOnly(true);
            // WDEV - 7007
//          row.setcolLowerLimb(voVertebralItem.getIsLLAsiaScore().booleanValue());
//          row.setcolUpperLimb(voVertebralItem.getIsULAsiaScore().booleanValue());
            row.setValue(voVertebralItem);
        }       
    }
项目:openMAXIMS    文件:Logic.java   
private void loadCombos()
{
    // Level of Injury
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);
    VertebrallevelVo voVertebralItem = null;

    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        form.cmbLevelofInjury().newRow(voVertebralItem, voVertebralItem.getName());
    }

    // Mode of Injury
    InjuryClassModeofInjuryCollection injuryColl = LookupHelper.getInjuryClassModeofInjury(domain.getLookupService());
    TreeNode[] rootNodes = injuryColl.getRootNodes();
    if (rootNodes != null)
    {
        for (int i = 0; i < rootNodes.length; i++)
        {
            InjuryClassModeofInjury lkParent = (InjuryClassModeofInjury) rootNodes[i];
            if (lkParent.isActive())
                form.cmbModeofInjury().newRow(lkParent, lkParent.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initializeCombos()
{
    form.cmbMotorRight().clear();
    form.cmbMotorLeft().clear();

    VertebrallevelVoCollection listVertebralLevelsCollection = domain.listVertebralLevels();

    for (int i = 0; i < listVertebralLevelsCollection.size(); i++)
    {
        VertebrallevelVo vertebraLlevel = listVertebralLevelsCollection.get(i);

        if (vertebraLlevel == null)
            continue;

        form.cmbMotorLeft().newRow(vertebraLlevel, vertebraLlevel.getName());
        form.cmbMotorRight().newRow(vertebraLlevel, vertebraLlevel.getName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listVertebral() 
    {
        form.grdLevel().setValue(null);

        form.grdLevel().getRows().clear();
        VertebrallevelVoCollection voCollVertebral  = domain.listVertebralLevel(new Boolean(form.chkActiveOnly().getValue()));
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row = null;
        for(int i=0;i<voCollVertebral.size();i++)
        {
            voVertebralItem = voCollVertebral.get(i);
            row = form.grdLevel().getRows().newRow();

            row.setcolActive(voVertebralItem.getIsActive().booleanValue());
            row.setcolDescription(voVertebralItem.getDescription());
            row.setcolLevel(voVertebralItem.getName());
            //WDEV-3158 
            row.setcolLevelReadOnly(true);
            // WDEV - 7007
//          row.setcolLowerLimb(voVertebralItem.getIsLLAsiaScore().booleanValue());
//          row.setcolUpperLimb(voVertebralItem.getIsULAsiaScore().booleanValue());
            row.setValue(voVertebralItem);
        }       
    }
项目:openMAXIMS    文件:Logic.java   
private void loadCombos()
{
    // Level of Injury
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);
    VertebrallevelVo voVertebralItem = null;

    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        form.cmbLevelofInjury().newRow(voVertebralItem, voVertebralItem.getName());
    }

    // Mode of Injury
    InjuryClassModeofInjuryCollection injuryColl = LookupHelper.getInjuryClassModeofInjury(domain.getLookupService());
    TreeNode[] rootNodes = injuryColl.getRootNodes();
    if (rootNodes != null)
    {
        for (int i = 0; i < rootNodes.length; i++)
        {
            InjuryClassModeofInjury lkParent = (InjuryClassModeofInjury) rootNodes[i];
            if (lkParent.isActive())
                form.cmbModeofInjury().newRow(lkParent, lkParent.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initializeCombos()
{
    form.cmbMotorRight().clear();
    form.cmbMotorLeft().clear();

    VertebrallevelVoCollection listVertebralLevelsCollection = domain.listVertebralLevels();

    for (int i = 0; i < listVertebralLevelsCollection.size(); i++)
    {
        VertebrallevelVo vertebraLlevel = listVertebralLevelsCollection.get(i);

        if (vertebraLlevel == null)
            continue;

        form.cmbMotorLeft().newRow(vertebraLlevel, vertebraLlevel.getName());
        form.cmbMotorRight().newRow(vertebraLlevel, vertebraLlevel.getName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listVertebral() 
    {
        form.grdLevel().setValue(null);

        form.grdLevel().getRows().clear();
        VertebrallevelVoCollection voCollVertebral  = domain.listVertebralLevel(new Boolean(form.chkActiveOnly().getValue()));
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row = null;
        for(int i=0;i<voCollVertebral.size();i++)
        {
            voVertebralItem = voCollVertebral.get(i);
            row = form.grdLevel().getRows().newRow();

            row.setcolActive(voVertebralItem.getIsActive().booleanValue());
            row.setcolDescription(voVertebralItem.getDescription());
            row.setcolLevel(voVertebralItem.getName());
            //WDEV-3158 
            row.setcolLevelReadOnly(true);
            // WDEV - 7007
//          row.setcolLowerLimb(voVertebralItem.getIsLLAsiaScore().booleanValue());
//          row.setcolUpperLimb(voVertebralItem.getIsULAsiaScore().booleanValue());
            row.setValue(voVertebralItem);
        }       
    }
项目:openmaxims-linux    文件:Logic.java   
private void loadCombos()
{
    // Level of Injury
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);
    VertebrallevelVo voVertebralItem = null;

    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        form.cmbLevelofInjury().newRow(voVertebralItem, voVertebralItem.getName());
    }

    // Mode of Injury
    InjuryClassModeofInjuryCollection injuryColl = LookupHelper.getInjuryClassModeofInjury(domain.getLookupService());
    TreeNode[] rootNodes = injuryColl.getRootNodes();
    if (rootNodes != null)
    {
        for (int i = 0; i < rootNodes.length; i++)
        {
            InjuryClassModeofInjury lkParent = (InjuryClassModeofInjury) rootNodes[i];
            if (lkParent.isActive())
                form.cmbModeofInjury().newRow(lkParent, lkParent.getText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initializeCombos()
{
    form.cmbMotorRight().clear();
    form.cmbMotorLeft().clear();

    VertebrallevelVoCollection listVertebralLevelsCollection = domain.listVertebralLevels();

    for (int i = 0; i < listVertebralLevelsCollection.size(); i++)
    {
        VertebrallevelVo vertebraLlevel = listVertebralLevelsCollection.get(i);

        if (vertebraLlevel == null)
            continue;

        form.cmbMotorLeft().newRow(vertebraLlevel, vertebraLlevel.getName());
        form.cmbMotorRight().newRow(vertebraLlevel, vertebraLlevel.getName());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listVertebral() 
    {
        form.grdLevel().setValue(null);

        form.grdLevel().getRows().clear();
        VertebrallevelVoCollection voCollVertebral  = domain.listVertebralLevel(new Boolean(form.chkActiveOnly().getValue()));
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row = null;
        for(int i=0;i<voCollVertebral.size();i++)
        {
            voVertebralItem = voCollVertebral.get(i);
            row = form.grdLevel().getRows().newRow();

            row.setcolActive(voVertebralItem.getIsActive().booleanValue());
            row.setcolDescription(voVertebralItem.getDescription());
            row.setcolLevel(voVertebralItem.getName());
            //WDEV-3158 
            row.setcolLevelReadOnly(true);
            // WDEV - 7007
//          row.setcolLowerLimb(voVertebralItem.getIsLLAsiaScore().booleanValue());
//          row.setcolUpperLimb(voVertebralItem.getIsULAsiaScore().booleanValue());
            row.setValue(voVertebralItem);
        }       
    }
项目:AvoinApotti    文件:Logic.java   
private void loadFindingsGrid()
{
    VertebrallevelVoCollection voCollVertebral = listVertebralLevels();
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdMotorRow row = null;
    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        // WDEV-4411
        if ((voVertebralItem.getIsLLAsiaScore() == null || voVertebralItem.getIsLLAsiaScore().equals(false)) && (voVertebralItem.getIsULAsiaScore() == null || voVertebralItem.getIsULAsiaScore().equals(false)))
            continue;

        row = form.grdMotor().getRows().newRow();
        row.setcolDescription(voVertebralItem.getDescription());
        row.setcoolRootVal(voVertebralItem.getName());
        row.setValue(voVertebralItem);
        row.setIdentifier(null);
    }

    if (voCollVertebral.size() > 0)
    {
        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Upper Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);

        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Lower Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadFindingsGrids() 
{
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);   
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdLightTouchRow lRow = null;
    GenForm.grdPinPrickRow pRow = null;
    for(int i=0; i<voCollVertebral.size();i++)
    {
        voVertebralItem = voCollVertebral.get(i);

        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal(voVertebralItem.getName());
        lRow.setValue(voVertebralItem);
        lRow.setIdentifier(null);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal(voVertebralItem.getName());
        pRow.setValue(voVertebralItem);
        pRow.setIdentifier(null);   
    }

    if(voCollVertebral.size() > 0)
    {
        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal("Total");    
        lRow.setSelectable(false);
        lRow.setReadOnly(true);
        lRow.setBackColor(Color.Beige);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal("Total");    
        pRow.setSelectable(false);
        pRow.setReadOnly(true);
        pRow.setBackColor(Color.Beige);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void newVertebralLevel() {
        GenForm.grdLevelRow row = form.grdLevel().getRows().newRow();
        row.setValue(new VertebrallevelVo());

        row.setcolActive(true);
        // WDEV - 7007
//      row.setcolLowerLimb(false);
//      row.setcolUpperLimb(false);

        form.grdLevel().setValue(null);
        setUpDownBtns();
    }
项目:openMAXIMS    文件:Logic.java   
private void loadFindingsGrid()
{
    VertebrallevelVoCollection voCollVertebral = listVertebralLevels();
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdMotorRow row = null;
    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        // WDEV-4411
        if ((voVertebralItem.getIsLLAsiaScore() == null || voVertebralItem.getIsLLAsiaScore().equals(false)) && (voVertebralItem.getIsULAsiaScore() == null || voVertebralItem.getIsULAsiaScore().equals(false)))
            continue;

        row = form.grdMotor().getRows().newRow();
        row.setcolDescription(voVertebralItem.getDescription());
        row.setcoolRootVal(voVertebralItem.getName());
        row.setValue(voVertebralItem);
        row.setIdentifier(null);
    }

    if (voCollVertebral.size() > 0)
    {
        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Upper Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);

        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Lower Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadFindingsGrids() 
{
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);   
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdLightTouchRow lRow = null;
    GenForm.grdPinPrickRow pRow = null;
    for(int i=0; i<voCollVertebral.size();i++)
    {
        voVertebralItem = voCollVertebral.get(i);

        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal(voVertebralItem.getName());
        lRow.setValue(voVertebralItem);
        lRow.setIdentifier(null);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal(voVertebralItem.getName());
        pRow.setValue(voVertebralItem);
        pRow.setIdentifier(null);   
    }

    if(voCollVertebral.size() > 0)
    {
        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal("Total");    
        lRow.setSelectable(false);
        lRow.setReadOnly(true);
        lRow.setBackColor(Color.Beige);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal("Total");    
        pRow.setSelectable(false);
        pRow.setReadOnly(true);
        pRow.setBackColor(Color.Beige);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newVertebralLevel() {
        GenForm.grdLevelRow row = form.grdLevel().getRows().newRow();
        row.setValue(new VertebrallevelVo());

        row.setcolActive(true);
        // WDEV - 7007
//      row.setcolLowerLimb(false);
//      row.setcolUpperLimb(false);

        form.grdLevel().setValue(null);
        setUpDownBtns();
    }
项目:openMAXIMS    文件:Logic.java   
private void loadFindingsGrid()
{
    VertebrallevelVoCollection voCollVertebral = listVertebralLevels();
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdMotorRow row = null;
    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        // WDEV-4411
        if ((voVertebralItem.getIsLLAsiaScore() == null || voVertebralItem.getIsLLAsiaScore().equals(false)) && (voVertebralItem.getIsULAsiaScore() == null || voVertebralItem.getIsULAsiaScore().equals(false)))
            continue;

        row = form.grdMotor().getRows().newRow();
        row.setcolDescription(voVertebralItem.getDescription());
        row.setcoolRootVal(voVertebralItem.getName());
        row.setValue(voVertebralItem);
        row.setIdentifier(null);
    }

    if (voCollVertebral.size() > 0)
    {
        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Upper Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);

        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Lower Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadFindingsGrids() 
{
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);   
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdLightTouchRow lRow = null;
    GenForm.grdPinPrickRow pRow = null;
    for(int i=0; i<voCollVertebral.size();i++)
    {
        voVertebralItem = voCollVertebral.get(i);

        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal(voVertebralItem.getName());
        lRow.setValue(voVertebralItem);
        lRow.setIdentifier(null);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal(voVertebralItem.getName());
        pRow.setValue(voVertebralItem);
        pRow.setIdentifier(null);   
    }

    if(voCollVertebral.size() > 0)
    {
        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal("Total");    
        lRow.setSelectable(false);
        lRow.setReadOnly(true);
        lRow.setBackColor(Color.Beige);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal("Total");    
        pRow.setSelectable(false);
        pRow.setReadOnly(true);
        pRow.setBackColor(Color.Beige);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void newVertebralLevel() {
        GenForm.grdLevelRow row = form.grdLevel().getRows().newRow();
        row.setValue(new VertebrallevelVo());

        row.setcolActive(true);
        // WDEV - 7007
//      row.setcolLowerLimb(false);
//      row.setcolUpperLimb(false);

        form.grdLevel().setValue(null);
        setUpDownBtns();
    }
项目:openmaxims-linux    文件:Logic.java   
private void loadFindingsGrid()
{
    VertebrallevelVoCollection voCollVertebral = listVertebralLevels();
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdMotorRow row = null;
    for (int i = 0; i < voCollVertebral.size(); i++)
    {
        voVertebralItem = voCollVertebral.get(i);
        // WDEV-4411
        if ((voVertebralItem.getIsLLAsiaScore() == null || voVertebralItem.getIsLLAsiaScore().equals(false)) && (voVertebralItem.getIsULAsiaScore() == null || voVertebralItem.getIsULAsiaScore().equals(false)))
            continue;

        row = form.grdMotor().getRows().newRow();
        row.setcolDescription(voVertebralItem.getDescription());
        row.setcoolRootVal(voVertebralItem.getName());
        row.setValue(voVertebralItem);
        row.setIdentifier(null);
    }

    if (voCollVertebral.size() > 0)
    {
        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Upper Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);

        row = form.grdMotor().getRows().newRow();
        row.setcoolRootVal("Total Lower Limb");
        row.setSelectable(false);
        row.setReadOnly(true);
        row.setBackColor(Color.Beige);
        row.setBold(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadFindingsGrids() 
{
    VertebrallevelVoCollection voCollVertebral = domain.listVertebralLevel(Boolean.TRUE);   
    VertebrallevelVo voVertebralItem = null;
    GenForm.grdLightTouchRow lRow = null;
    GenForm.grdPinPrickRow pRow = null;
    for(int i=0; i<voCollVertebral.size();i++)
    {
        voVertebralItem = voCollVertebral.get(i);

        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal(voVertebralItem.getName());
        lRow.setValue(voVertebralItem);
        lRow.setIdentifier(null);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal(voVertebralItem.getName());
        pRow.setValue(voVertebralItem);
        pRow.setIdentifier(null);   
    }

    if(voCollVertebral.size() > 0)
    {
        lRow = form.grdLightTouch().getRows().newRow();
        lRow.setcolRootVal("Total");    
        lRow.setSelectable(false);
        lRow.setReadOnly(true);
        lRow.setBackColor(Color.Beige);

        pRow = form.grdPinPrick().getRows().newRow();
        pRow.setcolRootVal("Total");    
        pRow.setSelectable(false);
        pRow.setReadOnly(true);
        pRow.setBackColor(Color.Beige);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void newVertebralLevel() {
        GenForm.grdLevelRow row = form.grdLevel().getRows().newRow();
        row.setValue(new VertebrallevelVo());

        row.setcolActive(true);
        // WDEV - 7007
//      row.setcolLowerLimb(false);
//      row.setcolUpperLimb(false);

        form.grdLevel().setValue(null);
        setUpDownBtns();
    }
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        VertebrallevelVoCollection voCollVertebral = new VertebrallevelVoCollection();
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row;
        for(int i=0;i<form.grdLevel().getRows().size();i++)
        {
            row = form.grdLevel().getRows().get(i);
            voVertebralItem = row.getValue();

            //Validation had to be set in code, as VO is used in other forms where it is not mandatory.
            if(row.getcolLevel() == null || row.getcolLevel() == "")
            {
                engine.showMessage("'Level' is a mandatory field");
                return;
            }
            voVertebralItem.setDescription(row.getcolDescription());
            voVertebralItem.setIsActive(new Boolean(row.getcolActive()));
            voVertebralItem.setName(row.getcolLevel());
            // WDEV - 7007
//          voVertebralItem.setIsLLAsiaScore(new Boolean(row.getcolLowerLimb()));
//          voVertebralItem.setIsULAsiaScore(new Boolean(row.getcolUpperLimb()));
            voVertebralItem.setOrderNo(new Integer(i));
            voCollVertebral.add(voVertebralItem);
        }

        String[] arrErrors = voCollVertebral.validate();
        if(arrErrors != null)
        {
            engine.showErrors(arrErrors);
            return;
        }

        try {
            domain.saveVetrebralLevel(voCollVertebral);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        form.setMode(FormMode.VIEW);
        open();
    }
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        VertebrallevelVoCollection voCollVertebral = new VertebrallevelVoCollection();
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row;
        for(int i=0;i<form.grdLevel().getRows().size();i++)
        {
            row = form.grdLevel().getRows().get(i);
            voVertebralItem = row.getValue();

            //Validation had to be set in code, as VO is used in other forms where it is not mandatory.
            if(row.getcolLevel() == null || row.getcolLevel() == "")
            {
                engine.showMessage("'Level' is a mandatory field");
                return;
            }
            voVertebralItem.setDescription(row.getcolDescription());
            voVertebralItem.setIsActive(new Boolean(row.getcolActive()));
            voVertebralItem.setName(row.getcolLevel());
            // WDEV - 7007
//          voVertebralItem.setIsLLAsiaScore(new Boolean(row.getcolLowerLimb()));
//          voVertebralItem.setIsULAsiaScore(new Boolean(row.getcolUpperLimb()));
            voVertebralItem.setOrderNo(new Integer(i));
            voCollVertebral.add(voVertebralItem);
        }

        String[] arrErrors = voCollVertebral.validate();
        if(arrErrors != null)
        {
            engine.showErrors(arrErrors);
            return;
        }

        try {
            domain.saveVetrebralLevel(voCollVertebral);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        form.setMode(FormMode.VIEW);
        open();
    }
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        VertebrallevelVoCollection voCollVertebral = new VertebrallevelVoCollection();
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row;
        for(int i=0;i<form.grdLevel().getRows().size();i++)
        {
            row = form.grdLevel().getRows().get(i);
            voVertebralItem = row.getValue();

            //Validation had to be set in code, as VO is used in other forms where it is not mandatory.
            if(row.getcolLevel() == null || row.getcolLevel() == "")
            {
                engine.showMessage("'Level' is a mandatory field");
                return;
            }
            voVertebralItem.setDescription(row.getcolDescription());
            voVertebralItem.setIsActive(new Boolean(row.getcolActive()));
            voVertebralItem.setName(row.getcolLevel());
            // WDEV - 7007
//          voVertebralItem.setIsLLAsiaScore(new Boolean(row.getcolLowerLimb()));
//          voVertebralItem.setIsULAsiaScore(new Boolean(row.getcolUpperLimb()));
            voVertebralItem.setOrderNo(new Integer(i));
            voCollVertebral.add(voVertebralItem);
        }

        String[] arrErrors = voCollVertebral.validate();
        if(arrErrors != null)
        {
            engine.showErrors(arrErrors);
            return;
        }

        try {
            domain.saveVetrebralLevel(voCollVertebral);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        form.setMode(FormMode.VIEW);
        open();
    }
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
    {
        VertebrallevelVoCollection voCollVertebral = new VertebrallevelVoCollection();
        VertebrallevelVo voVertebralItem;
        GenForm.grdLevelRow row;
        for(int i=0;i<form.grdLevel().getRows().size();i++)
        {
            row = form.grdLevel().getRows().get(i);
            voVertebralItem = row.getValue();

            //Validation had to be set in code, as VO is used in other forms where it is not mandatory.
            if(row.getcolLevel() == null || row.getcolLevel() == "")
            {
                engine.showMessage("'Level' is a mandatory field");
                return;
            }
            voVertebralItem.setDescription(row.getcolDescription());
            voVertebralItem.setIsActive(new Boolean(row.getcolActive()));
            voVertebralItem.setName(row.getcolLevel());
            // WDEV - 7007
//          voVertebralItem.setIsLLAsiaScore(new Boolean(row.getcolLowerLimb()));
//          voVertebralItem.setIsULAsiaScore(new Boolean(row.getcolUpperLimb()));
            voVertebralItem.setOrderNo(new Integer(i));
            voCollVertebral.add(voVertebralItem);
        }

        String[] arrErrors = voCollVertebral.validate();
        if(arrErrors != null)
        {
            engine.showErrors(arrErrors);
            return;
        }

        try {
            domain.saveVetrebralLevel(voCollVertebral);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        form.setMode(FormMode.VIEW);
        open();
    }