Java 类ims.clinical.vo.MDTNotesVo 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to populate MDT Note instance to controls
 */
private void populateMDTNoteControlsFromData(MDTNotesVo note)
{
    // Clear instance controls
    clearNoteInstanceControls();

    // Check parameter
    if (note == null)
        return;


    // Populate 'MDT Note' controls
    form.ctnDetails().qmbRecHCP().newRow(note.getAuthoringCP(), note.getAuthoringCP().toString());
    form.ctnDetails().qmbRecHCP().setValue(note.getAuthoringCP());

    form.ctnDetails().dtimRecDateTime().setValue(note.getAuthoringDateTime());
    form.ctnDetails().cmbArea().setValue(note.getArea());

    replaceSingleLineBreaks(note);//WDEV-17379

    form.ctnDetails().richNotes().setValue(note.getNotes());
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate MDT Note instance to controls
 */
private void populateMDTNoteControlsFromData(MDTNotesVo note)
{
    // Clear instance controls
    clearNoteInstanceControls();

    // Check parameter
    if (note == null)
        return;


    // Populate 'MDT Note' controls
    form.ctnDetails().qmbRecHCP().newRow(note.getAuthoringCP(), note.getAuthoringCP().toString());
    form.ctnDetails().qmbRecHCP().setValue(note.getAuthoringCP());

    form.ctnDetails().dtimRecDateTime().setValue(note.getAuthoringDateTime());
    form.ctnDetails().cmbArea().setValue(note.getArea());

    replaceSingleLineBreaks(note);//WDEV-17379

    form.ctnDetails().richNotes().setValue(note.getNotes());

}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate MDT Note instance to controls
 */
private void populateMDTNoteControlsFromData(MDTNotesVo note)
{
    // Clear instance controls
    clearNoteInstanceControls();

    // Check parameter
    if (note == null)
        return;


    // Populate 'MDT Note' controls
    form.ctnDetails().qmbRecHCP().newRow(note.getAuthoringCP(), note.getAuthoringCP().toString());
    form.ctnDetails().qmbRecHCP().setValue(note.getAuthoringCP());

    form.ctnDetails().dtimRecDateTime().setValue(note.getAuthoringDateTime());
    form.ctnDetails().cmbArea().setValue(note.getArea());

    replaceSingleLineBreaks(note);//WDEV-17379

    form.ctnDetails().richNotes().setValue(note.getNotes());
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to populate MDT Note instance to controls
 */
private void populateMDTNoteControlsFromData(MDTNotesVo note)
{
    // Clear instance controls
    clearNoteInstanceControls();

    // Check parameter
    if (note == null)
        return;


    // Populate 'MDT Note' controls
    form.ctnDetails().qmbRecHCP().newRow(note.getAuthoringCP(), note.getAuthoringCP().toString());
    form.ctnDetails().qmbRecHCP().setValue(note.getAuthoringCP());

    form.ctnDetails().dtimRecDateTime().setValue(note.getAuthoringDateTime());
    form.ctnDetails().cmbArea().setValue(note.getArea());

    replaceSingleLineBreaks(note);//WDEV-17379

    form.ctnDetails().richNotes().setValue(note.getNotes());
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to update the local context with selected 'MDT Note' record
 * and populate screen based on selected record
 * 
 * @param note - The 'MDT Note' record to be considered selected
 */
private void updateMDTNoteSelection(MDTNotesVo note)
{
    // Set selection in local context
    form.getLocalContext().setCurrentMDTNote(note);
    form.grdNotesSummary().setValue(note);

    // Populate MDT Note controls
    populateMDTNoteControlsFromData(note);
}
项目:AvoinApotti    文件:Logic.java   
private void replaceSingleLineBreaks(MDTNotesVo note)
{
    if (note == null || note.getNotes() == null)
        return;

    if (note.getNotes().contains("<br/>"))
        note.setNotes(note.getNotes().replaceAll("<br/>", "\n"));
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to get (or create) a row for 'MDT Note' record 
 */
private grdNotesSummaryRow getOrCreateNoteRow(MDTNotesVo note)
{
    if (Boolean.TRUE.equals(form.getLocalContext().getNewNote()))
        return form.grdNotesSummary().getRows().newRow();

    if (form.grdNotesSummary().getSelectedRow() != null)
        return form.grdNotesSummary().getSelectedRow();

    // Return a new row
    return form.grdNotesSummary().getRows().newRow();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to update the local context with selected 'MDT Note' record
 * and populate screen based on selected record
 * 
 * @param note - The 'MDT Note' record to be considered selected
 */
private void updateMDTNoteSelection(MDTNotesVo note)
{
    // Set selection in local context
    form.getLocalContext().setCurrentMDTNote(note);
    form.grdNotesSummary().setValue(note);

    // Populate MDT Note controls
    populateMDTNoteControlsFromData(note);
}
项目:openMAXIMS    文件:Logic.java   
private void replaceSingleLineBreaks(MDTNotesVo note)
{
    if (note == null || note.getNotes() == null)
        return;

    if (note.getNotes().contains("<br/>"))
        note.setNotes(note.getNotes().replaceAll("<br/>", "\n"));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to get (or create) a row for 'MDT Note' record 
 */
private grdNotesSummaryRow getOrCreateNoteRow(MDTNotesVo note)
{
    if (Boolean.TRUE.equals(form.getLocalContext().getNewNote()))
        return form.grdNotesSummary().getRows().newRow();

    if (form.grdNotesSummary().getSelectedRow() != null)
        return form.grdNotesSummary().getSelectedRow();

    // Return a new row
    return form.grdNotesSummary().getRows().newRow();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to update the local context with selected 'MDT Note' record
 * and populate screen based on selected record
 * 
 * @param note - The 'MDT Note' record to be considered selected
 */
private void updateMDTNoteSelection(MDTNotesVo note)
{
    // Set selection in local context
    form.getLocalContext().setCurrentMDTNote(note);
    form.grdNotesSummary().setValue(note);

    // Populate MDT Note controls
    populateMDTNoteControlsFromData(note);
}
项目:openMAXIMS    文件:Logic.java   
private void replaceSingleLineBreaks(MDTNotesVo note)
{
    if (note == null || note.getNotes() == null)
        return;

    if (note.getNotes().contains("<br/>"))
        note.setNotes(note.getNotes().replaceAll("<br/>", "\n"));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to get (or create) a row for 'MDT Note' record 
 */
private grdNotesSummaryRow getOrCreateNoteRow(MDTNotesVo note)
{
    if (Boolean.TRUE.equals(form.getLocalContext().getNewNote()))
        return form.grdNotesSummary().getRows().newRow();

    if (form.grdNotesSummary().getSelectedRow() != null)
        return form.grdNotesSummary().getSelectedRow();

    // Return a new row
    return form.grdNotesSummary().getRows().newRow();
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to update the local context with selected 'MDT Note' record
 * and populate screen based on selected record
 * 
 * @param note - The 'MDT Note' record to be considered selected
 */
private void updateMDTNoteSelection(MDTNotesVo note)
{
    // Set selection in local context
    form.getLocalContext().setCurrentMDTNote(note);
    form.grdNotesSummary().setValue(note);

    // Populate MDT Note controls
    populateMDTNoteControlsFromData(note);
}
项目:openmaxims-linux    文件:Logic.java   
private void replaceSingleLineBreaks(MDTNotesVo note)
{
    if (note == null || note.getNotes() == null)
        return;

    if (note.getNotes().contains("<br/>"))
        note.setNotes(note.getNotes().replaceAll("<br/>", "\n"));
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to get (or create) a row for 'MDT Note' record 
 */
private grdNotesSummaryRow getOrCreateNoteRow(MDTNotesVo note)
{
    if (Boolean.TRUE.equals(form.getLocalContext().getNewNote()))
        return form.grdNotesSummary().getRows().newRow();

    if (form.grdNotesSummary().getSelectedRow() != null)
        return form.grdNotesSummary().getSelectedRow();

    // Return a new row
    return form.grdNotesSummary().getRows().newRow();
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to populate a MDT Meeting instance to controls
 * @param mdtMeeting
 */
private void populateInstanceControlsFromData(MDTMeetingVo mdtMeeting)
{
    // Clear instance controls
    clearInstanceControls();

    // Check parameter
    if (mdtMeeting == null)
        return;

    // Populate 'Meeting Date' control
    form.dteMDTMeetingDate().setValue(mdtMeeting.getMDTMeetingDate());

    // Populate MDT List
    if (mdtMeeting.getListPatientisOn() != null)
    {
        form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());

        if (form.cmbListMDT().getValue() == null)
        {
            form.cmbListMDT().newRow(mdtMeeting.getListPatientisOn(), mdtMeeting.getListPatientisOn().getText());
            form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());
        }
    }

    // Populate Key Dates
    if (mdtMeeting.getKeyDates() != null)
    {
        for (KeyDatesVo keyDate : mdtMeeting.getKeyDates())
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            {
                form.pdtNextGoalPlanDate().setValue(keyDate.getDate());
            }

            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            {
                form.pdtProposedDischargedDate().setValue(keyDate.getDate());
            }
        }
    }

    // Populate 'MDT Meeting Notes' to notes grid
    for (MDTNotesVo note : mdtMeeting.getMeetingNotes())
    {
        grdNotesSummaryRow noteRow = form.grdNotesSummary().getRows().newRow();

        noteRow.setColArea(note.getArea().getText());

        replaceSingleLineBreaks(note);//WDEV-17379

        noteRow.setColNotes(note.getNotes());

        noteRow.setValue(note);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate a MDT Meeting instance to controls
 * @param mdtMeeting
 */
private void populateInstanceControlsFromData(MDTMeetingVo mdtMeeting)
{
    // Clear instance controls
    clearInstanceControls();

    // Check parameter
    if (mdtMeeting == null)
        return;

    // Populate 'Meeting Date' control
    form.dteMDTMeetingDate().setValue(mdtMeeting.getMDTMeetingDate());

    // Populate MDT List
    if (mdtMeeting.getListPatientisOn() != null)
    {
        form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());

        if (form.cmbListMDT().getValue() == null)
        {
            form.cmbListMDT().newRow(mdtMeeting.getListPatientisOn(), mdtMeeting.getListPatientisOn().getText());
            form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());
        }
    }

    // Populate Key Dates
    if (mdtMeeting.getKeyDates() != null)
    {
        for (KeyDatesVo keyDate : mdtMeeting.getKeyDates())
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            {
                form.pdtNextGoalPlanDate().setValue(keyDate.getDate());
            }

            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            {
                form.pdtProposedDischargedDate().setValue(keyDate.getDate());
            }
        }
    }

    // Populate 'MDT Meeting Notes' to notes grid
    for (MDTNotesVo note : mdtMeeting.getMeetingNotes())
    {
        grdNotesSummaryRow noteRow = form.grdNotesSummary().getRows().newRow();

        noteRow.setColArea(note.getArea().getText());

        replaceSingleLineBreaks(note);//WDEV-17379

        if(note.getNotes() != null)
            noteRow.setColNotes(replaceImsRichText(note.getNotes().toString())); //WDEV-19893

        noteRow.setValue(note);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate a MDT Meeting instance to controls
 * @param mdtMeeting
 */
private void populateInstanceControlsFromData(MDTMeetingVo mdtMeeting)
{
    // Clear instance controls
    clearInstanceControls();

    // Check parameter
    if (mdtMeeting == null)
        return;

    // Populate 'Meeting Date' control
    form.dteMDTMeetingDate().setValue(mdtMeeting.getMDTMeetingDate());

    // Populate MDT List
    if (mdtMeeting.getListPatientisOn() != null)
    {
        form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());

        if (form.cmbListMDT().getValue() == null)
        {
            form.cmbListMDT().newRow(mdtMeeting.getListPatientisOn(), mdtMeeting.getListPatientisOn().getText());
            form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());
        }
    }

    // Populate Key Dates
    if (mdtMeeting.getKeyDates() != null)
    {
        for (KeyDatesVo keyDate : mdtMeeting.getKeyDates())
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            {
                form.pdtNextGoalPlanDate().setValue(keyDate.getDate());
            }

            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            {
                form.pdtProposedDischargedDate().setValue(keyDate.getDate());
            }
        }
    }

    // Populate 'MDT Meeting Notes' to notes grid
    for (MDTNotesVo note : mdtMeeting.getMeetingNotes())
    {
        grdNotesSummaryRow noteRow = form.grdNotesSummary().getRows().newRow();

        noteRow.setColArea(note.getArea().getText());

        replaceSingleLineBreaks(note);//WDEV-17379

        noteRow.setColNotes(note.getNotes());

        noteRow.setValue(note);
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to populate a MDT Meeting instance to controls
 * @param mdtMeeting
 */
private void populateInstanceControlsFromData(MDTMeetingVo mdtMeeting)
{
    // Clear instance controls
    clearInstanceControls();

    // Check parameter
    if (mdtMeeting == null)
        return;

    // Populate 'Meeting Date' control
    form.dteMDTMeetingDate().setValue(mdtMeeting.getMDTMeetingDate());

    // Populate MDT List
    if (mdtMeeting.getListPatientisOn() != null)
    {
        form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());

        if (form.cmbListMDT().getValue() == null)
        {
            form.cmbListMDT().newRow(mdtMeeting.getListPatientisOn(), mdtMeeting.getListPatientisOn().getText());
            form.cmbListMDT().setValue(mdtMeeting.getListPatientisOn());
        }
    }

    // Populate Key Dates
    if (mdtMeeting.getKeyDates() != null)
    {
        for (KeyDatesVo keyDate : mdtMeeting.getKeyDates())
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            {
                form.pdtNextGoalPlanDate().setValue(keyDate.getDate());
            }

            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            {
                form.pdtProposedDischargedDate().setValue(keyDate.getDate());
            }
        }
    }

    // Populate 'MDT Meeting Notes' to notes grid
    for (MDTNotesVo note : mdtMeeting.getMeetingNotes())
    {
        grdNotesSummaryRow noteRow = form.grdNotesSummary().getRows().newRow();

        noteRow.setColArea(note.getArea().getText());

        replaceSingleLineBreaks(note);//WDEV-17379

        noteRow.setColNotes(note.getNotes());

        noteRow.setValue(note);
    }
}