Java 类ims.core.vo.PatientApptDiaryVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private String createChosenOPAppointmentString(PatientApptDiaryVo voDiary, boolean bUseDomainCall) 
{
    if (voDiary == null)
        return "";

    StringBuffer sb = new StringBuffer();
    sb.append("Date: ");
    sb.append(voDiary.getApptDateIsNotNull() ? voDiary.getApptDate().toString() : "" );
    sb.append(" Time: ");
    sb.append(voDiary.getStartTimeIsNotNull() ? voDiary.getStartTime().toString() : "" );
    sb.append(" Clinic: ");
    sb.append(voDiary.getClinicNameIsNotNull() ? voDiary.getClinicName() : "");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String createChosenOPAppointmentString(PatientApptDiaryVo voDiary, boolean bUseDomainCall) 
{
    if (voDiary == null)
        return "";

    StringBuffer sb = new StringBuffer();
    sb.append("Date: ");
    sb.append(voDiary.getApptDateIsNotNull() ? voDiary.getApptDate().toString() : "" );
    sb.append(" Time: ");
    sb.append(voDiary.getStartTimeIsNotNull() ? voDiary.getStartTime().toString() : "" );
    sb.append(" Clinic: ");
    sb.append(voDiary.getClinicNameIsNotNull() ? voDiary.getClinicName() : "");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13756 - Display all other appointments for this patient
 * @param apptRecord 
 */
private void DisplayRelatedAppointments(Sd_appt_dtsRecord apptRecord)
{
    form.htmRelatedAppointment().setHTML("");

    //WDEV-15170
    PatientApptDiaryVoCollection appts = domain.listPatientAppts(form.getGlobalContext().Core.getPatientShort(), form.Date().getValue(), form.Date().getValue(), true);

    PatientApptDiaryVo appt;
    StringBuffer sb = new StringBuffer();
    for (int i = 0; appts != null && i < appts.size(); ++i)
    {
        //ICCO935 2) - Related appointments should not show the current appointment 
        //exclude appt_id and appt_head_id matches
        appt = appts.get(i);
        if (appt.getAppointHeaderIdIsNotNull() && appt.getAppointmentIdIsNotNull() 
                && appt.getAppointHeaderId().equals(Integer.valueOf(apptRecord.Appt_head_id)) 
                && appt.getAppointmentId().equals(Integer.valueOf(apptRecord.Appt_id)))
                continue;
        //End fix

    /*  sb.append("*Clinic Name:* " + appt.getClinicName());
        sb.append(NL);
        sb.append("*Appt. Time: *"  + appt.getStartTime());
        sb.append(NL);
        sb.append("*Status: *" + appt.getStatus()); */

        sb.append("*Clinic:* " + appt.getClinicName() + "&nbsp; *Time:* " + appt.getStartTime() + "&nbsp; *Status:* " + appt.getStatus());
        sb.append(NL);
        sb.append(NL);
    }

    form.htmRelatedAppointment().setHTML(new Textile().process(sb.toString()));
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object x, Object y) 
{
    PatientApptDiaryVo x1 = (PatientApptDiaryVo)x;
    PatientApptDiaryVo y1 = (PatientApptDiaryVo)y;

    return y1.getStartTime().compareTo(x1.getStartTime());
}
项目:openMAXIMS    文件:Logic.java   
private String createChosenOPAppointmentString(PatientApptDiaryVo voDiary, boolean bUseDomainCall) 
{
    if (voDiary == null)
        return "";

    StringBuffer sb = new StringBuffer();
    sb.append("Date: ");
    sb.append(voDiary.getApptDateIsNotNull() ? voDiary.getApptDate().toString() : "" );
    sb.append(" Time: ");
    sb.append(voDiary.getStartTimeIsNotNull() ? voDiary.getStartTime().toString() : "" );
    sb.append(" Clinic: ");
    sb.append(voDiary.getClinicNameIsNotNull() ? voDiary.getClinicName() : "");

    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String createChosenOPAppointmentString(PatientApptDiaryVo voDiary, boolean bUseDomainCall) 
{
    if (voDiary == null)
        return "";

    StringBuffer sb = new StringBuffer();
    sb.append("Date: ");
    sb.append(voDiary.getApptDateIsNotNull() ? voDiary.getApptDate().toString() : "" );
    sb.append(" Time: ");
    sb.append(voDiary.getStartTimeIsNotNull() ? voDiary.getStartTime().toString() : "" );
    sb.append(" Clinic: ");
    sb.append(voDiary.getClinicNameIsNotNull() ? voDiary.getClinicName() : "");

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
protected void onListAppointmentsClick()
    {
        if(checkMandatory() == false)
            return;

        //WDEV-14655
        if (form.StartDate().getValue().isGreaterThan(form.EndDate().getValue()))
        {
            engine.showMessage("Start Date cannot be greater than End Date .");
            return;
        }

        form.AppointmentsGrid().getRows().clear();  

        PatientApptDiaryVoCollection appts = domain.listPatientAppts(form.getGlobalContext().Core.getPatientShort(), form.StartDate().getValue(), form.EndDate().getValue(), form.chkActiveOnly().getValue());
        if (appts == null || appts.size() == 0)
        {
            engine.showMessage("No Appointments found");
            return;
        }

        //Sort the results
//      ArrayList apptArray = new ArrayList();
//      for(int i=0; i<appts.size(); i++)
//          apptArray.add(appts.get(i));
//      Collections.sort(apptArray, new ApptComparer());

        for (int i = 0; i < appts.size(); i++)
        {
            PatientApptDiaryVo record = (PatientApptDiaryVo)appts.get(i);

            GenForm.AppointmentsGridRow row = form.AppointmentsGrid().getRows().newRow();

            row.setValue(record);
            row.setDate(record.getApptDate());
            if (record.getStartTimeIsNotNull())
                row.setFrom(record.getStartTime().toString());
            if (record.getEndTimeIsNotNull())
                row.setTo(record.getEndTime().toString());
            //ICCO672 - Clinic Name 
            row.setMachineLocation(record.getClinicName());
            row.setTooltipForMachineLocation(record.getClinicName());
            row.setSource(record.getSource());
            row.setAppointmentType(record.getApptType());
            row.setTooltipForAppointmentType(record.getApptType());

            row.setStatus(record.getStatus());
            row.setTooltipForStatus(record.getStatus());

            row.setStatusDate(record.getStatusDate().getDate());
            row.setHCP(record.getBookedBy());
            row.setTooltipForHCP(record.getBookedBy());

            row.setBookedDate(record.getBookedDate().getDate());
        }
    }