Java 类ims.ocrr.vo.ChemotherapyDetailsShortVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setChemotherapyRow(grdChemotherapyRow row, ChemotherapyDetailsShortVo chemotherapy)
{
    if (row == null)
        throw new CodingRuntimeException("Fatal Error - Can not populate chemotherapy to null row");

    if (chemotherapy == null)
        throw new CodingRuntimeException("Major logical error - Can not populate a null value to row");

    row.setcolStartDate(chemotherapy.getStartDate());
    row.setcolRegime(chemotherapy.getRegimenAcronymIsNotNull() ? chemotherapy.getRegimenAcronym().getText() : null);
    row.setcolConsultant(chemotherapy.getTreatingConsultantIsNotNull() ? chemotherapy.getTreatingConsultant().getName().toString() : null);
    row.setcolIntent(chemotherapy.getCancerTreatementIntentIsNotNull() ? chemotherapy.getCancerTreatementIntent().getText() : null);
    row.setcolResponse(chemotherapy.getTreatmentResponseIsNotNull() ? chemotherapy.getTreatmentResponse().getText() : null);


    row.setValue(chemotherapy);
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    Date date1 = null;
    Date date2 = null;
    if(ob1 instanceof ChemotherapyDetailsShortVo )
    {
        ChemotherapyDetailsShortVo ps1 = (ChemotherapyDetailsShortVo)ob1;
        date1 = ps1.getStartDate();
    }
    if(ob2 instanceof ChemotherapyDetailsShortVo)
    {
        ChemotherapyDetailsShortVo ps2 = (ChemotherapyDetailsShortVo)ob2;
        date2 = ps2.getStartDate();
    }
    if(date1 != null )
        return  date1.compareTo(date2)*direction;
    if(date2 != null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setChemotherapyRow(grdChemotherapyRow row, ChemotherapyDetailsShortVo chemotherapy)
{
    if (row == null)
        throw new CodingRuntimeException("Fatal Error - Can not populate chemotherapy to null row");

    if (chemotherapy == null)
        throw new CodingRuntimeException("Major logical error - Can not populate a null value to row");

    row.setcolStartDate(chemotherapy.getStartDate());
    row.setcolRegime(chemotherapy.getRegimenAcronymIsNotNull() ? chemotherapy.getRegimenAcronym().getText() : null);
    row.setcolConsultant(chemotherapy.getTreatingConsultantIsNotNull() ? chemotherapy.getTreatingConsultant().getName().toString() : null);
    row.setcolIntent(chemotherapy.getCancerTreatementIntentIsNotNull() ? chemotherapy.getCancerTreatementIntent().getText() : null);
    row.setcolResponse(chemotherapy.getTreatmentResponseIsNotNull() ? chemotherapy.getTreatmentResponse().getText() : null);


    row.setValue(chemotherapy);
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    Date date1 = null;
    Date date2 = null;
    if(ob1 instanceof ChemotherapyDetailsShortVo )
    {
        ChemotherapyDetailsShortVo ps1 = (ChemotherapyDetailsShortVo)ob1;
        date1 = ps1.getStartDate();
    }
    if(ob2 instanceof ChemotherapyDetailsShortVo)
    {
        ChemotherapyDetailsShortVo ps2 = (ChemotherapyDetailsShortVo)ob2;
        date2 = ps2.getStartDate();
    }
    if(date1 != null )
        return  date1.compareTo(date2)*direction;
    if(date2 != null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setChemotherapyRow(grdChemotherapyRow row, ChemotherapyDetailsShortVo chemotherapy)
{
    if (row == null)
        throw new CodingRuntimeException("Fatal Error - Can not populate chemotherapy to null row");

    if (chemotherapy == null)
        throw new CodingRuntimeException("Major logical error - Can not populate a null value to row");

    row.setcolStartDate(chemotherapy.getStartDate());
    row.setcolRegime(chemotherapy.getRegimenAcronymIsNotNull() ? chemotherapy.getRegimenAcronym().getText() : null);
    row.setcolConsultant(chemotherapy.getTreatingConsultantIsNotNull() ? chemotherapy.getTreatingConsultant().getName().toString() : null);
    row.setcolIntent(chemotherapy.getCancerTreatementIntentIsNotNull() ? chemotherapy.getCancerTreatementIntent().getText() : null);
    row.setcolResponse(chemotherapy.getTreatmentResponseIsNotNull() ? chemotherapy.getTreatmentResponse().getText() : null);


    row.setValue(chemotherapy);
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    Date date1 = null;
    Date date2 = null;
    if(ob1 instanceof ChemotherapyDetailsShortVo )
    {
        ChemotherapyDetailsShortVo ps1 = (ChemotherapyDetailsShortVo)ob1;
        date1 = ps1.getStartDate();
    }
    if(ob2 instanceof ChemotherapyDetailsShortVo)
    {
        ChemotherapyDetailsShortVo ps2 = (ChemotherapyDetailsShortVo)ob2;
        date2 = ps2.getStartDate();
    }
    if(date1 != null )
        return  date1.compareTo(date2)*direction;
    if(date2 != null)
        return (-1)*direction;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChemotherapyGrid(ChemotherapyDetailsShortVoCollection listChemotherapies)
{
    // Clear grid results
    form.grdChemotherapy().getRows().clear();

    if (listChemotherapies == null)
        return;

    listChemotherapies.sort(new StartDateComparator(SortOrder.ASCENDING));  //wdev-12819
    for (ChemotherapyDetailsShortVo chemotherapy : listChemotherapies)
    {
        // Skip null chemotherapy
        if (chemotherapy == null)
            continue;

        /*if (form.GroupFilter().getValue().equals(GroupFilterEnumeration.rdoFilterActive)
            && chemotherapy.getStatusIsNotNull()
            &&  ! chemotherapy.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
            continue;*/ //wdev-12819

        setChemotherapyRow(form.grdChemotherapy().getRows().newRow(), chemotherapy);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setChemotherapyRow(grdChemotherapyRow row, ChemotherapyDetailsShortVo chemotherapy)
{
    if (row == null)
        throw new CodingRuntimeException("Fatal Error - Can not populate chemotherapy to null row");

    if (chemotherapy == null)
        throw new CodingRuntimeException("Major logical error - Can not populate a null value to row");

    row.setcolStartDate(chemotherapy.getStartDate());
    row.setcolRegime(chemotherapy.getRegimenAcronymIsNotNull() ? chemotherapy.getRegimenAcronym().getText() : null);
    row.setcolConsultant(chemotherapy.getTreatingConsultantIsNotNull() ? chemotherapy.getTreatingConsultant().getName().toString() : null);
    row.setcolIntent(chemotherapy.getCancerTreatementIntentIsNotNull() ? chemotherapy.getCancerTreatementIntent().getText() : null);
    row.setcolResponse(chemotherapy.getTreatmentResponseIsNotNull() ? chemotherapy.getTreatmentResponse().getText() : null);


    row.setValue(chemotherapy);
}
项目:openmaxims-linux    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    Date date1 = null;
    Date date2 = null;
    if(ob1 instanceof ChemotherapyDetailsShortVo )
    {
        ChemotherapyDetailsShortVo ps1 = (ChemotherapyDetailsShortVo)ob1;
        date1 = ps1.getStartDate();
    }
    if(ob2 instanceof ChemotherapyDetailsShortVo)
    {
        ChemotherapyDetailsShortVo ps2 = (ChemotherapyDetailsShortVo)ob2;
        date2 = ps2.getStartDate();
    }
    if(date1 != null )
        return  date1.compareTo(date2)*direction;
    if(date2 != null)
        return (-1)*direction;

    return 0;
}