Java 类ims.core.vo.lookups.MedicationTimesOfAdministration 实例源码

项目:AvoinApotti    文件:Logic.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:AvoinApotti    文件:MedicationDosesDynamicGridPopulation.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openMAXIMS    文件:MedicationDosesDynamicGridPopulation.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openMAXIMS    文件:MedicationDosesDynamicGridPopulation.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:openmaxims-linux    文件:MedicationDosesDynamicGridPopulation.java   
private String createTimesString(MedicationTimesOfAdministrationCollection voTimesColl) 
{
    StringBuffer sb = new StringBuffer();
    for(int i = 0 ; i < voTimesColl.size() ; i++)
    {
        MedicationTimesOfAdministration lkpTime = voTimesColl.get(i);
        sb.append(lkpTime.toString());
        if (i < voTimesColl.size() - 1)
            sb.append(", ");
    }
    return sb.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void newMedicationDoseInstance() 
{
    DynamicGridRow doseRow = form.ctnDetails().dyngrdDoses().getRows().newRow();


    DynamicGridCell cell1 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSE), DynamicCellType.STRING);

    cell1.setStringMaxLength(255);
    cell1.setValidationMessage("This text is restricted to 255 characters");
    cell1.setReadOnly(false);
    cell1.setTooltip("Please select a Dose");
    cell1.setWidth(120);

    DynamicGridCell cell2= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
    cell2.setReadOnly(false);
    bindCellToLookup(cell2, MedicationRoute.class);
    cell2.setTooltip("Please select a Route");
    cell2.setWidth(120);

    DynamicGridCell cell3 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_TIMES), DynamicCellType.MULTISELECT);
    cell3.setReadOnly(false);
    bindCellToLookup(cell3, MedicationTimesOfAdministration.class);
    cell3.setTooltip("Please select Times");
    cell3.setWidth(140);

    DynamicGridCell cell6= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY_TYPE), DynamicCellType.ENUMERATION);
    cell6.setReadOnly(false);
    bindCellToLookup(cell6, MedciationCommencedDiscontinuedType.class);
    cell6.setValue(MedciationCommencedDiscontinuedType.MOS);
    cell6.setTooltip("Please select a Commenced by Type");
    cell6.setAutoPostBack(true);
    cell6.setWidth(140);


    DynamicGridCell cell4 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.QUERYCOMBOBOX);
    Hcp hcp = (Hcp) domain.getHcpUser();
    if(hcp != null)
    {
        cell4.getItems().newItem(hcp);
        cell4.setValue(hcp);
    }
    cell4.setReadOnly(false);
    cell4.setAutoPostBack(true);
    cell4.setTooltip("Please select a HCP");
    cell4.setWidth(160);


    DynamicGridCell cell5 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
    cell5.setValue(new Date());
    cell5.setReadOnly(false);
    cell5.setTooltip("Please select a Date");
    cell5.setWidth(-1);

    doseRow.setExpanded(true);

    MedicationDose voNewDose = new MedicationDose();
    voNewDose.setIsCopied(new Boolean(false));
    doseRow.setValue(voNewDose);

    //wdev-1873 form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    //added for WDEV-7307
    if  (!engine.isDialog()){
        form.ctnDetails().dyngrdDoses().resetScrollPosition();
        form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void newMedicationDoseInstance() 
    {
        DynamicGridRow doseRow = form.ctnDetails().dyngrdDoses().getRows().newRow();


        DynamicGridCell cell1 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSE), DynamicCellType.STRING);

        cell1.setStringMaxLength(255);
        cell1.setValidationMessage("This text is restricted to 255 characters");
        cell1.setReadOnly(false);
        cell1.setTooltip("Please select a Dose");
        cell1.setWidth(120);

        DynamicGridCell cell2= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
        cell2.setReadOnly(false);
        bindCellToLookup(cell2, MedicationRoute.class);
        cell2.setTooltip("Please select a Route");
        cell2.setWidth(120);

        DynamicGridCell cell3 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_TIMES), DynamicCellType.MULTISELECT);
        cell3.setReadOnly(false);
        bindCellToLookup(cell3, MedicationTimesOfAdministration.class);
        cell3.setTooltip("Please select Times");
        cell3.setWidth(140);

        DynamicGridCell cell6= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY_TYPE), DynamicCellType.ENUMERATION);
        cell6.setReadOnly(false);
        bindCellToLookup(cell6, MedicationCommencedDiscontinuedType.class);
        cell6.setValue(MedicationCommencedDiscontinuedType.MOS);
        cell6.setTooltip("Please select a Commenced by Type");
        cell6.setAutoPostBack(true);
        cell6.setWidth(140);


        DynamicGridCell cell4 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.QUERYCOMBOBOX);
        Hcp hcp = (Hcp) domain.getHcpUser();
        if(hcp != null)
        {
            cell4.getItems().newItem(hcp);
            cell4.setValue(hcp);
        }
        cell4.setReadOnly(false);
        cell4.setAutoPostBack(true);
        cell4.setTooltip("Please select a HCP");
        cell4.setWidth(160);


        DynamicGridCell cell5 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
        cell5.setValue(new Date());
        cell5.setReadOnly(false);
        cell5.setTooltip("Please select a Date");
        //WDEV-20591
//      cell5.setWidth(-1);
        cell5.setWidth(80);

        //WDEV-20591
        DynamicGridCell cell7 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENT), DynamicCellType.STRING);
        cell7.setStringMaxLength(255);
        cell7.setValidationMessage("This text is restricted to 255 characters");
        cell7.setReadOnly(false);
        cell7.setTooltip("Please enter a Comment");
        cell7.setWidth(-1);


        doseRow.setExpanded(true);

        MedicationDose voNewDose = new MedicationDose();
        voNewDose.setIsCopied(new Boolean(false));
        doseRow.setValue(voNewDose);

        //wdev-1873 form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
        //added for WDEV-7307
        if  (!engine.isDialog()){
            form.ctnDetails().dyngrdDoses().resetScrollPosition();
            form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
        }
        updateControlsState();
    }
项目:openMAXIMS    文件:Logic.java   
private void newMedicationDoseInstance() 
    {
        DynamicGridRow doseRow = form.ctnDetails().dyngrdDoses().getRows().newRow();


        DynamicGridCell cell1 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSE), DynamicCellType.STRING);

        cell1.setStringMaxLength(255);
        cell1.setValidationMessage("This text is restricted to 255 characters");
        cell1.setReadOnly(false);
        cell1.setTooltip("Please select a Dose");
//      cell1.setWidth(120);
        cell1.setWidth(60); //WDEV-21114

        DynamicGridCell cell2= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
        cell2.setReadOnly(false);
        bindCellToLookup(cell2, MedicationRoute.class);
        cell2.setTooltip("Please select a Route");
//      cell2.setWidth(120);
        cell2.setWidth(100); //WDEV-21114

        DynamicGridCell cell3 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_TIMES), DynamicCellType.MULTISELECT);
        cell3.setReadOnly(false);
        bindCellToLookup(cell3, MedicationTimesOfAdministration.class);
        cell3.setTooltip("Please select Times");
        cell3.setWidth(140);

        DynamicGridCell cell6= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY_TYPE), DynamicCellType.ENUMERATION);
        cell6.setReadOnly(false);
        bindCellToLookup(cell6, MedicationCommencedDiscontinuedType.class);
        cell6.setValue(MedicationCommencedDiscontinuedType.MOS);
        cell6.setTooltip("Please select a Commenced by Type");
        cell6.setAutoPostBack(true);
        cell6.setWidth(140);


        DynamicGridCell cell4 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.QUERYCOMBOBOX);
        Hcp hcp = (Hcp) domain.getHcpUser();
        if(hcp != null)
        {
            cell4.getItems().newItem(hcp);
            cell4.setValue(hcp);
        }
        cell4.setReadOnly(false);
        cell4.setAutoPostBack(true);
        cell4.setTooltip("Please select a HCP");
        cell4.setWidth(160);


        DynamicGridCell cell5 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
        cell5.setValue(new Date());
        cell5.setReadOnly(false);
        cell5.setTooltip("Please select a Date");
        cell5.setWidth(80);

        DynamicGridCell cell7 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENT), DynamicCellType.STRING);
        cell7.setStringMaxLength(255);
        cell7.setValidationMessage("This text is restricted to 255 characters");
        cell7.setReadOnly(false);
        cell7.setTooltip("Please enter a Comment");
        cell7.setWidth(-1);


        doseRow.setExpanded(true);

        MedicationDose voNewDose = new MedicationDose();
        voNewDose.setIsCopied(new Boolean(false));
        doseRow.setValue(voNewDose);

        if  (!engine.isDialog()){
            form.ctnDetails().dyngrdDoses().resetScrollPosition();
            form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
        }
        updateControlsState();
    }
项目:openMAXIMS    文件:Logic.java   
private void newMedicationDoseInstance() 
{
    DynamicGridRow doseRow = form.ctnDetails().dyngrdDoses().getRows().newRow();


    DynamicGridCell cell1 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSE), DynamicCellType.STRING);

    cell1.setStringMaxLength(255);
    cell1.setValidationMessage("This text is restricted to 255 characters");
    cell1.setReadOnly(false);
    cell1.setTooltip("Please select a Dose");
    cell1.setWidth(120);

    DynamicGridCell cell2= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
    cell2.setReadOnly(false);
    bindCellToLookup(cell2, MedicationRoute.class);
    cell2.setTooltip("Please select a Route");
    cell2.setWidth(120);

    DynamicGridCell cell3 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_TIMES), DynamicCellType.MULTISELECT);
    cell3.setReadOnly(false);
    bindCellToLookup(cell3, MedicationTimesOfAdministration.class);
    cell3.setTooltip("Please select Times");
    cell3.setWidth(140);

    DynamicGridCell cell6= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY_TYPE), DynamicCellType.ENUMERATION);
    cell6.setReadOnly(false);
    bindCellToLookup(cell6, MedciationCommencedDiscontinuedType.class);
    cell6.setValue(MedciationCommencedDiscontinuedType.MOS);
    cell6.setTooltip("Please select a Commenced by Type");
    cell6.setAutoPostBack(true);
    cell6.setWidth(140);


    DynamicGridCell cell4 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.QUERYCOMBOBOX);
    Hcp hcp = (Hcp) domain.getHcpUser();
    if(hcp != null)
    {
        cell4.getItems().newItem(hcp);
        cell4.setValue(hcp);
    }
    cell4.setReadOnly(false);
    cell4.setAutoPostBack(true);
    cell4.setTooltip("Please select a HCP");
    cell4.setWidth(160);


    DynamicGridCell cell5 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
    cell5.setValue(new Date());
    cell5.setReadOnly(false);
    cell5.setTooltip("Please select a Date");
    cell5.setWidth(-1);

    doseRow.setExpanded(true);

    MedicationDose voNewDose = new MedicationDose();
    voNewDose.setIsCopied(new Boolean(false));
    doseRow.setValue(voNewDose);

    //wdev-1873 form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    //added for WDEV-7307
    if  (!engine.isDialog()){
        form.ctnDetails().dyngrdDoses().resetScrollPosition();
        form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    }
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void newMedicationDoseInstance() 
{
    DynamicGridRow doseRow = form.ctnDetails().dyngrdDoses().getRows().newRow();


    DynamicGridCell cell1 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSE), DynamicCellType.STRING);

    cell1.setStringMaxLength(255);
    cell1.setValidationMessage("This text is restricted to 255 characters");
    cell1.setReadOnly(false);
    cell1.setTooltip("Please select a Dose");
    cell1.setWidth(120);

    DynamicGridCell cell2= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
    cell2.setReadOnly(false);
    bindCellToLookup(cell2, MedicationRoute.class);
    cell2.setTooltip("Please select a Route");
    cell2.setWidth(120);

    DynamicGridCell cell3 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_TIMES), DynamicCellType.MULTISELECT);
    cell3.setReadOnly(false);
    bindCellToLookup(cell3, MedicationTimesOfAdministration.class);
    cell3.setTooltip("Please select Times");
    cell3.setWidth(140);

    DynamicGridCell cell6= doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY_TYPE), DynamicCellType.ENUMERATION);
    cell6.setReadOnly(false);
    bindCellToLookup(cell6, MedciationCommencedDiscontinuedType.class);
    cell6.setValue(MedciationCommencedDiscontinuedType.MOS);
    cell6.setTooltip("Please select a Commenced by Type");
    cell6.setAutoPostBack(true);
    cell6.setWidth(140);


    DynamicGridCell cell4 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.QUERYCOMBOBOX);
    Hcp hcp = (Hcp) domain.getHcpUser();
    if(hcp != null)
    {
        cell4.getItems().newItem(hcp);
        cell4.setValue(hcp);
    }
    cell4.setReadOnly(false);
    cell4.setAutoPostBack(true);
    cell4.setTooltip("Please select a HCP");
    cell4.setWidth(160);


    DynamicGridCell cell5 = doseRow.getCells().newCell(form.ctnDetails().dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
    cell5.setValue(new Date());
    cell5.setReadOnly(false);
    cell5.setTooltip("Please select a Date");
    cell5.setWidth(-1);

    doseRow.setExpanded(true);

    MedicationDose voNewDose = new MedicationDose();
    voNewDose.setIsCopied(new Boolean(false));
    doseRow.setValue(voNewDose);

    //wdev-1873 form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    //added for WDEV-7307
    if  (!engine.isDialog()){
        form.ctnDetails().dyngrdDoses().resetScrollPosition();
        form.ctnDetails().dyngrdDoses().setSelectedRow(doseRow);
    }
    updateControlsState();
}