Java 类ims.nursing.vo.MRSADailyTreatmentVo 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * @param voDailyTreatment
 * @param creationDateTime
 * @return
 */
private String prepareToolTip(MRSADailyTreatmentVo voDailyTreatment, DateTime creationDateTime)
{
    String strTooltip;
    strTooltip = "<b>Date: </b>" + creationDateTime.getDate() + "<br>" + "<b>Time: </b>" + creationDateTime.getTime();
    if (voDailyTreatment.getHCP() != null)
        strTooltip += "<br><b> Hcp: </b>" + voDailyTreatment.getHCP().toString();
    return strTooltip;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voDailyTreatment
 * @param creationDateTime
 * @return
 */
private String prepareToolTip(MRSADailyTreatmentVo voDailyTreatment, DateTime creationDateTime)
{
    String strTooltip;
    strTooltip = "<b>Date: </b>" + creationDateTime.getDate() + "<br>" + "<b>Time: </b>" + creationDateTime.getTime();
    if (voDailyTreatment.getHCP() != null)
        strTooltip += "<br><b> Hcp: </b>" + voDailyTreatment.getHCP().toString();
    return strTooltip;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voDailyTreatment
 * @param creationDateTime
 * @return
 */
private String prepareToolTip(MRSADailyTreatmentVo voDailyTreatment, DateTime creationDateTime)
{
    String strTooltip;
    strTooltip = "<b>Date: </b>" + creationDateTime.getDate() + "<br>" + "<b>Time: </b>" + creationDateTime.getTime();
    if (voDailyTreatment.getHCP() != null)
        strTooltip += "<br><b> Hcp: </b>" + voDailyTreatment.getHCP().toString();
    return strTooltip;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param voDailyTreatment
 * @param creationDateTime
 * @return
 */
private String prepareToolTip(MRSADailyTreatmentVo voDailyTreatment, DateTime creationDateTime)
{
    String strTooltip;
    strTooltip = "<b>Date: </b>" + creationDateTime.getDate() + "<br>" + "<b>Time: </b>" + creationDateTime.getTime();
    if (voDailyTreatment.getHCP() != null)
        strTooltip += "<br><b> Hcp: </b>" + voDailyTreatment.getHCP().toString();
    return strTooltip;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * @param arrDates
 * @param voTreatmentDetail
 * @param row
 */
private void setGridEditRowData(MRSATreatmentDetailsVo voTreatmentDetail, GenForm.grdEditRow row)
{
    Date[] arrDates = getDateArray();
    String strTooltip;
    row.setValue(voTreatmentDetail);
    for(int t=0; t<voTreatmentDetail.getDailyTreatment().size(); t++)
    {
        MRSADailyTreatmentVo voDailyTreatment = voTreatmentDetail.getDailyTreatment().get(t);
        DateTime creationDateTime = voDailyTreatment.getTreatmentDateTime();
        if (voDailyTreatment.getDay().toString().equals(arrDates[0].toString()))     //equals(arrDates[0])
        {
            row.setColDay1(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay1(strTooltip);
            row.setColDay1_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[1].toString()))
        {
            row.setColDay2(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay2(strTooltip);
            row.setColDay2_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[2].toString()))
        {
            row.setColDay3(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay3(strTooltip);
            row.setColDay3_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[3].toString()))
        {
            row.setColDay4(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay4(strTooltip);
            row.setColDay4_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[4].toString()))
        {
            row.setColDay5(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay5(strTooltip);
            row.setColDay5_Value(voDailyTreatment);
        }

    }
    row.setColDay6("No Tx");
    row.setColDay7("No Tx");
    row.setColDay8("No Tx - Rescreen");
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param arrDates
 * @param voTreatmentDetail
 * @param row
 */
private void setGridEditRowData(MRSATreatmentDetailsVo voTreatmentDetail, GenForm.grdEditRow row)
{
    Date[] arrDates = getDateArray();
    String strTooltip;
    row.setValue(voTreatmentDetail);
    for(int t=0; t<voTreatmentDetail.getDailyTreatment().size(); t++)
    {
        MRSADailyTreatmentVo voDailyTreatment = voTreatmentDetail.getDailyTreatment().get(t);
        DateTime creationDateTime = voDailyTreatment.getTreatmentDateTime();
        if (voDailyTreatment.getDay().toString().equals(arrDates[0].toString()))     //equals(arrDates[0])
        {
            row.setColDay1(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay1(strTooltip);
            row.setColDay1_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[1].toString()))
        {
            row.setColDay2(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay2(strTooltip);
            row.setColDay2_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[2].toString()))
        {
            row.setColDay3(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay3(strTooltip);
            row.setColDay3_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[3].toString()))
        {
            row.setColDay4(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay4(strTooltip);
            row.setColDay4_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[4].toString()))
        {
            row.setColDay5(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay5(strTooltip);
            row.setColDay5_Value(voDailyTreatment);
        }

    }
    row.setColDay6("No Tx");
    row.setColDay7("No Tx");
    row.setColDay8("No Tx - Rescreen");
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param arrDates
 * @param voTreatmentDetail
 * @param row
 */
private void setGridEditRowData(MRSATreatmentDetailsVo voTreatmentDetail, GenForm.grdEditRow row)
{
    Date[] arrDates = getDateArray();
    String strTooltip;
    row.setValue(voTreatmentDetail);
    for(int t=0; t<voTreatmentDetail.getDailyTreatment().size(); t++)
    {
        MRSADailyTreatmentVo voDailyTreatment = voTreatmentDetail.getDailyTreatment().get(t);
        DateTime creationDateTime = voDailyTreatment.getTreatmentDateTime();
        if (voDailyTreatment.getDay().toString().equals(arrDates[0].toString()))     //equals(arrDates[0])
        {
            row.setColDay1(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay1(strTooltip);
            row.setColDay1_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[1].toString()))
        {
            row.setColDay2(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay2(strTooltip);
            row.setColDay2_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[2].toString()))
        {
            row.setColDay3(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay3(strTooltip);
            row.setColDay3_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[3].toString()))
        {
            row.setColDay4(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay4(strTooltip);
            row.setColDay4_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[4].toString()))
        {
            row.setColDay5(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay5(strTooltip);
            row.setColDay5_Value(voDailyTreatment);
        }

    }
    row.setColDay6("No Tx");
    row.setColDay7("No Tx");
    row.setColDay8("No Tx - Rescreen");
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param arrDates
 * @param voTreatmentDetail
 * @param row
 */
private void setGridEditRowData(MRSATreatmentDetailsVo voTreatmentDetail, GenForm.grdEditRow row)
{
    Date[] arrDates = getDateArray();
    String strTooltip;
    row.setValue(voTreatmentDetail);
    for(int t=0; t<voTreatmentDetail.getDailyTreatment().size(); t++)
    {
        MRSADailyTreatmentVo voDailyTreatment = voTreatmentDetail.getDailyTreatment().get(t);
        DateTime creationDateTime = voDailyTreatment.getTreatmentDateTime();
        if (voDailyTreatment.getDay().toString().equals(arrDates[0].toString()))     //equals(arrDates[0])
        {
            row.setColDay1(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay1(strTooltip);
            row.setColDay1_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[1].toString()))
        {
            row.setColDay2(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay2(strTooltip);
            row.setColDay2_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[2].toString()))
        {
            row.setColDay3(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay3(strTooltip);
            row.setColDay3_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[3].toString()))
        {
            row.setColDay4(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay4(strTooltip);
            row.setColDay4_Value(voDailyTreatment);
        }
        if (voDailyTreatment.getDay().toString().equals(arrDates[4].toString()))
        {
            row.setColDay5(true);
            strTooltip = prepareToolTip(voDailyTreatment, creationDateTime);

            row.setTooltipForColDay5(strTooltip);
            row.setColDay5_Value(voDailyTreatment);
        }

    }
    row.setColDay6("No Tx");
    row.setColDay7("No Tx");
    row.setColDay8("No Tx - Rescreen");
}