Java 类ims.clinical.vo.lookups.AttendanceStatusCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void adStatusAndNoteCells(DynamicGridRow row)
{
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for (int k = 0; k < collAttendStatus.size(); k++)
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
    cellNote.setStringMaxLength(255);

}
项目:openMAXIMS    文件:Logic.java   
private void adStatusAndNoteCells(DynamicGridRow row)
{
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for (int k = 0; k < collAttendStatus.size(); k++)
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
    cellNote.setStringMaxLength(255);

}
项目:openMAXIMS    文件:Logic.java   
private void adStatusAndNoteCells(DynamicGridRow row)
{
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for (int k = 0; k < collAttendStatus.size(); k++)
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
    cellNote.setStringMaxLength(255);

}
项目:openmaxims-linux    文件:Logic.java   
private void adStatusAndNoteCells(DynamicGridRow row)
{
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for (int k = 0; k < collAttendStatus.size(); k++)
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
    cellNote.setStringMaxLength(255);

}
项目:AvoinApotti    文件:Logic.java   
private void addOtherRowTodyngrdReportTo()
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
    cellInvitee.setWidth(100);
    cellInvitee.setTooltip("Please enter a Family Member Name");
    cellInvitee.setReadOnly(false);
    cellInvitee.setIdentifier(DynamicCellType.STRING);
    cellInvitee.setStringMaxLength(55);

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");
    cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setTooltip("Please enter a Note here");
    cellNote.setReadOnly(false);
    cellNote.setStringMaxLength(255);
    cellInvitee.setIdentifier(DynamicCellType.STRING);

    row.setValue(DynamicCellType.STRING);
    row.setIdentifier(DynamicCellType.STRING);
}
项目:AvoinApotti    文件:Logic.java   
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
    cellReportTo.setWidth(100);
    cellReportTo.setAutoPostBack(true);
    cellReportTo.setReadOnly(false);
    cellReportTo.setIdentifier(classType);
    if (classType.equals(HcpLiteVo.class))
        cellReportTo.setTooltip("Please search for a Member Of Staff");
    else
        cellReportTo.setTooltip("Please search for a GP");

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setStringMaxLength(255);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
}
项目:openMAXIMS    文件:Logic.java   
private void addOtherRowTodyngrdReportTo()
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
    cellInvitee.setWidth(100);
    cellInvitee.setTooltip("Please enter a Family Member Name");
    cellInvitee.setReadOnly(false);
    cellInvitee.setIdentifier(DynamicCellType.STRING);
    cellInvitee.setStringMaxLength(55);

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");
    cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setTooltip("Please enter a Note here");
    cellNote.setReadOnly(false);
    cellNote.setStringMaxLength(255);
    cellInvitee.setIdentifier(DynamicCellType.STRING);

    row.setValue(DynamicCellType.STRING);
    row.setIdentifier(DynamicCellType.STRING);
}
项目:openMAXIMS    文件:Logic.java   
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
    cellReportTo.setWidth(100);
    cellReportTo.setAutoPostBack(true);
    cellReportTo.setReadOnly(false);
    cellReportTo.setIdentifier(classType);
    if (classType.equals(HcpLiteVo.class))
        cellReportTo.setTooltip("Please search for a Member Of Staff");
    else
        cellReportTo.setTooltip("Please search for a GP");

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setStringMaxLength(255);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
}
项目:openMAXIMS    文件:Logic.java   
private void addOtherRowTodyngrdReportTo()
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
    cellInvitee.setWidth(100);
    cellInvitee.setTooltip("Please enter a Family Member Name");
    cellInvitee.setReadOnly(false);
    cellInvitee.setIdentifier(DynamicCellType.STRING);
    cellInvitee.setStringMaxLength(55);

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");
    cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setTooltip("Please enter a Note here");
    cellNote.setReadOnly(false);
    cellNote.setStringMaxLength(255);
    cellInvitee.setIdentifier(DynamicCellType.STRING);

    row.setValue(DynamicCellType.STRING);
    row.setIdentifier(DynamicCellType.STRING);
}
项目:openMAXIMS    文件:Logic.java   
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
    cellReportTo.setWidth(100);
    cellReportTo.setAutoPostBack(true);
    cellReportTo.setReadOnly(false);
    cellReportTo.setIdentifier(classType);
    if (classType.equals(HcpLiteVo.class))
        cellReportTo.setTooltip("Please search for a Member Of Staff");
    else
        cellReportTo.setTooltip("Please search for a GP");

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setStringMaxLength(255);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
}
项目:openmaxims-linux    文件:Logic.java   
private void addOtherRowTodyngrdReportTo()
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
    cellInvitee.setWidth(100);
    cellInvitee.setTooltip("Please enter a Family Member Name");
    cellInvitee.setReadOnly(false);
    cellInvitee.setIdentifier(DynamicCellType.STRING);
    cellInvitee.setStringMaxLength(55);

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");
    cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setTooltip("Please enter a Note here");
    cellNote.setReadOnly(false);
    cellNote.setStringMaxLength(255);
    cellInvitee.setIdentifier(DynamicCellType.STRING);

    row.setValue(DynamicCellType.STRING);
    row.setIdentifier(DynamicCellType.STRING);
}
项目:openmaxims-linux    文件:Logic.java   
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
    DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
    DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
    cellReportTo.setWidth(100);
    cellReportTo.setAutoPostBack(true);
    cellReportTo.setReadOnly(false);
    cellReportTo.setIdentifier(classType);
    if (classType.equals(HcpLiteVo.class))
        cellReportTo.setTooltip("Please search for a Member Of Staff");
    else
        cellReportTo.setTooltip("Please search for a GP");

    //Show a Label cell
    DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
    cellStatus.setReadOnly(false);
    cellStatus.setWidth(100);
    cellStatus.setTooltip("Please select a status");

    AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
    for(int k = 0 ; k < collAttendStatus.size() ; k++) 
        cellStatus.getItems().newItem(collAttendStatus.get(k));

    DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
    cellNote.setWidth(-1);
    cellNote.setStringMaxLength(255);
    cellNote.setReadOnly(false);
    cellNote.setTooltip("Please add a note");
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
        if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if (voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                    cellInvitee.setStringMaxLength(55);
                }

                // Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for (int k = 0; k < collAttendStatus.size(); k++)
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");
                cellNote.setStringMaxLength(255);

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
        if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if(voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                }

                //Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for(int k = 0 ; k < collAttendStatus.size() ; k++) 
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setStringMaxLength(255);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
        form.ctnDetails().dyngrdInvitees().setValue(null);
        form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
        if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if (voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                    cellInvitee.setStringMaxLength(55);
                }

                // Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for (int k = 0; k < collAttendStatus.size(); k++)
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");
                cellNote.setStringMaxLength(255);

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
        if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if(voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                }

                //Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for(int k = 0 ; k < collAttendStatus.size() ; k++) 
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setStringMaxLength(255);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
        form.ctnDetails().dyngrdInvitees().setValue(null);
        form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
        if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if (voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                    cellInvitee.setStringMaxLength(55);
                }

                // Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for (int k = 0; k < collAttendStatus.size(); k++)
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");
                cellNote.setStringMaxLength(255);

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
        if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if(voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                }

                //Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for(int k = 0 ; k < collAttendStatus.size() ; k++) 
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setStringMaxLength(255);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
        form.ctnDetails().dyngrdInvitees().setValue(null);
        form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
        if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if (voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                    cellInvitee.setStringMaxLength(55);
                }

                // Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for (int k = 0; k < collAttendStatus.size(); k++)
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");
                cellNote.setStringMaxLength(255);

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
    if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
    {
        ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
        if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
            return;

        for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
        {
            if(voClinicalTeamMemberColl.get(x) != null)
            {
                DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

                if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
                {
                    DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
                    cellInvitee.setWidth(100);
                    cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
                    cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
                    cellInvitee.setReadOnly(true);
                    cellInvitee.setIdentifier(HcpLiteVo.class);
                }

                //Show a Label cell
                DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
                cellStatus.setReadOnly(false);
                cellStatus.setWidth(100);
                cellStatus.setTooltip("Please select a status");

                AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
                for(int k = 0 ; k < collAttendStatus.size() ; k++) 
                    cellStatus.getItems().newItem(collAttendStatus.get(k));

                DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
                cellNote.setWidth(-1);
                cellNote.setStringMaxLength(255);
                cellNote.setReadOnly(false);
                cellNote.setTooltip("Please add a note");

                row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
            }
        }
        form.ctnDetails().dyngrdInvitees().setValue(null);
        form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
    }
}