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

项目:AvoinApotti    文件:Logic.java   
private void populateScreen(RACPSymptomRiskFactorsVo voRACPSymptomRiskFactors) {

    form.chkCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomIndicator());
    form.chkRiskFactors().setValue(voRACPSymptomRiskFactors.getRiskFactorIndicator());
    form.txtCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomNotes());
    form.txtNotes().setValue(voRACPSymptomRiskFactors.getOtherNotes());
    if(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeekIsNotNull())
        form.cmbAlcohol().setValue(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeek().getUnitsPerWeek());
    intDurationValueChanged();
    cmbDurationValueChanged();
    form.cmbDiabetes().setValue(voRACPSymptomRiskFactors.getDiabetesStatus());
    form.cmbDuration().setValue(voRACPSymptomRiskFactors.getSymptomDuration());
    form.intDuration().setValue(voRACPSymptomRiskFactors.getSymptomDurationUnit());
    if(voRACPSymptomRiskFactors.getSmokingStatusIsNotNull()){
        setSmokingControls(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        form.cmbSmoker().setValue(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        if(voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetailsIsNotNull()){
            SmokingDetailsCollection collSmokingDetails = voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetails();
            if(collSmokingDetails!=null && collSmokingDetails.size()>0){
                SmokingDetails smokingDetails = collSmokingDetails.get(0);
                form.intDailyAmount().setValue(smokingDetails.getAmountPerDay());
                form.intYearsStopped().setValue(collSmokingDetails.get(0).getNumberOfYears());
            }
        }
    }

    if(voRACPSymptomRiskFactors.getSymptomsIsNotNull()){
        RACPSymptomsVoCollection currentSymptomsColl = voRACPSymptomRiskFactors.getSymptoms();
        form.grdSymptoms().getRows().clear();
        for (int i = 0; i < currentSymptomsColl.size(); i++)
        {
            RACPSymptomsVo voRACPSymptoms = currentSymptomsColl.get(i);
            grdSymptomsRow row = form.grdSymptoms().getRows().newRow();
            row.setcolSymp(voRACPSymptoms.getRAPCSymptom());
            row.getcolFinding().newRow(voRACPSymptoms.getRACPCFinding(), voRACPSymptoms.getRACPCFinding().getText());
            row.getcolFinding().setValue(voRACPSymptoms.getRACPCFinding());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(RACPSymptomRiskFactorsVo voRACPSymptomRiskFactors) {

    form.chkCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomIndicator());
    form.chkRiskFactors().setValue(voRACPSymptomRiskFactors.getRiskFactorIndicator());
    form.txtCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomNotes());
    form.txtNotes().setValue(voRACPSymptomRiskFactors.getOtherNotes());
    if(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeekIsNotNull())
        form.cmbAlcohol().setValue(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeek().getUnitsPerWeek());
    intDurationValueChanged();
    cmbDurationValueChanged();
    form.cmbDiabetes().setValue(voRACPSymptomRiskFactors.getDiabetesStatus());
    form.cmbDuration().setValue(voRACPSymptomRiskFactors.getSymptomDuration());
    form.intDuration().setValue(voRACPSymptomRiskFactors.getSymptomDurationUnit());
    if(voRACPSymptomRiskFactors.getSmokingStatusIsNotNull()){
        setSmokingControls(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        form.cmbSmoker().setValue(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        if(voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetailsIsNotNull()){
            SmokingDetailsCollection collSmokingDetails = voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetails();
            if(collSmokingDetails!=null && collSmokingDetails.size()>0){
                SmokingDetails smokingDetails = collSmokingDetails.get(0);
                form.intDailyAmount().setValue(smokingDetails.getAmountPerDay());
                form.intYearsStopped().setValue(collSmokingDetails.get(0).getNumberOfYears());
            }
        }
    }

    if(voRACPSymptomRiskFactors.getSymptomsIsNotNull()){
        RACPSymptomsVoCollection currentSymptomsColl = voRACPSymptomRiskFactors.getSymptoms();
        form.grdSymptoms().getRows().clear();
        for (int i = 0; i < currentSymptomsColl.size(); i++)
        {
            RACPSymptomsVo voRACPSymptoms = currentSymptomsColl.get(i);
            grdSymptomsRow row = form.grdSymptoms().getRows().newRow();
            row.setcolSymp(voRACPSymptoms.getRAPCSymptom());
            row.getcolFinding().newRow(voRACPSymptoms.getRACPCFinding(), voRACPSymptoms.getRACPCFinding().getText());
            row.getcolFinding().setValue(voRACPSymptoms.getRACPCFinding());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(RACPSymptomRiskFactorsVo voRACPSymptomRiskFactors) {

    form.chkCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomIndicator());
    form.chkRiskFactors().setValue(voRACPSymptomRiskFactors.getRiskFactorIndicator());
    form.txtCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomNotes());
    form.txtNotes().setValue(voRACPSymptomRiskFactors.getOtherNotes());
    if(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeekIsNotNull())
        form.cmbAlcohol().setValue(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeek().getUnitsPerWeek());
    intDurationValueChanged();
    cmbDurationValueChanged();
    form.cmbDiabetes().setValue(voRACPSymptomRiskFactors.getDiabetesStatus());
    form.cmbDuration().setValue(voRACPSymptomRiskFactors.getSymptomDuration());
    form.intDuration().setValue(voRACPSymptomRiskFactors.getSymptomDurationUnit());
    if(voRACPSymptomRiskFactors.getSmokingStatusIsNotNull()){
        setSmokingControls(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        form.cmbSmoker().setValue(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        if(voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetailsIsNotNull()){
            SmokingDetailsCollection collSmokingDetails = voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetails();
            if(collSmokingDetails!=null && collSmokingDetails.size()>0){
                SmokingDetails smokingDetails = collSmokingDetails.get(0);
                form.intDailyAmount().setValue(smokingDetails.getAmountPerDay());
                form.intYearsStopped().setValue(collSmokingDetails.get(0).getNumberOfYears());
            }
        }
    }

    if(voRACPSymptomRiskFactors.getSymptomsIsNotNull()){
        RACPSymptomsVoCollection currentSymptomsColl = voRACPSymptomRiskFactors.getSymptoms();
        form.grdSymptoms().getRows().clear();
        for (int i = 0; i < currentSymptomsColl.size(); i++)
        {
            RACPSymptomsVo voRACPSymptoms = currentSymptomsColl.get(i);
            grdSymptomsRow row = form.grdSymptoms().getRows().newRow();
            row.setcolSymp(voRACPSymptoms.getRAPCSymptom());
            row.getcolFinding().newRow(voRACPSymptoms.getRACPCFinding(), voRACPSymptoms.getRACPCFinding().getText());
            row.getcolFinding().setValue(voRACPSymptoms.getRACPCFinding());
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreen(RACPSymptomRiskFactorsVo voRACPSymptomRiskFactors) {

    form.chkCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomIndicator());
    form.chkRiskFactors().setValue(voRACPSymptomRiskFactors.getRiskFactorIndicator());
    form.txtCardiacSymptoms().setValue(voRACPSymptomRiskFactors.getSymptomNotes());
    form.txtNotes().setValue(voRACPSymptomRiskFactors.getOtherNotes());
    if(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeekIsNotNull())
        form.cmbAlcohol().setValue(voRACPSymptomRiskFactors.getAlcoholUnitsPerWeek().getUnitsPerWeek());
    intDurationValueChanged();
    cmbDurationValueChanged();
    form.cmbDiabetes().setValue(voRACPSymptomRiskFactors.getDiabetesStatus());
    form.cmbDuration().setValue(voRACPSymptomRiskFactors.getSymptomDuration());
    form.intDuration().setValue(voRACPSymptomRiskFactors.getSymptomDurationUnit());
    if(voRACPSymptomRiskFactors.getSmokingStatusIsNotNull()){
        setSmokingControls(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        form.cmbSmoker().setValue(voRACPSymptomRiskFactors.getSmokingStatus().getCurrentSmokingStatus());
        if(voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetailsIsNotNull()){
            SmokingDetailsCollection collSmokingDetails = voRACPSymptomRiskFactors.getSmokingStatus().getSmokingDetails();
            if(collSmokingDetails!=null && collSmokingDetails.size()>0){
                SmokingDetails smokingDetails = collSmokingDetails.get(0);
                form.intDailyAmount().setValue(smokingDetails.getAmountPerDay());
                form.intYearsStopped().setValue(collSmokingDetails.get(0).getNumberOfYears());
            }
        }
    }

    if(voRACPSymptomRiskFactors.getSymptomsIsNotNull()){
        RACPSymptomsVoCollection currentSymptomsColl = voRACPSymptomRiskFactors.getSymptoms();
        form.grdSymptoms().getRows().clear();
        for (int i = 0; i < currentSymptomsColl.size(); i++)
        {
            RACPSymptomsVo voRACPSymptoms = currentSymptomsColl.get(i);
            grdSymptomsRow row = form.grdSymptoms().getRows().newRow();
            row.setcolSymp(voRACPSymptoms.getRAPCSymptom());
            row.getcolFinding().newRow(voRACPSymptoms.getRACPCFinding(), voRACPSymptoms.getRACPCFinding().getText());
            row.getcolFinding().setValue(voRACPSymptoms.getRACPCFinding());
        }
    }

}