public String FullReport(Test t)
    {
        if (t.TestID<=0)
        {
            return "This is an empty test.";
        }
        String temp = "This is a full report of Test # "+PIDtoString(t.TestID)+".\r\n";
        temp+= "=====================================\r\n\r\n";
        temp+= "Patient ID: "+PIDtoString(t.PatientID)+"\t\tPatient Name: ";
        Patient_Controller PC = new Patient_Controller("localhost", DBName, DBAccount, DBPwd);
        ArrayList tempal = PC.SearchPatient(t.PatientID);
        String PName = "";
        if (tempal.size()<=0)
            PName = "Not a patient";
        else 
        {
            PName = ((Patient)tempal.get(0)).FirstName;
            PName += " " + ((Patient)tempal.get(0)).LastName;
        }
        temp+= PName +"\r\n";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
        temp+= "Order Date: "+sdf.format(t.TestDate);
        temp+= "\r\nOrdered by: "+t.DoctorID;
        temp+= "\r\nTest Type: "+t.TestType;
        temp+= "\r\nDescription: "+t.TestDes;
        temp+= "\r\n=====================================\r\n\r\n";
        
        temp+="Last updated by: "+t.LastUpdatedBy;
        temp+="\r\nTest result:\r\n"+t.TestRes;
        temp+="\r\n\r\nTest report:\r\n"+t.Report;
        temp+="\r\n\r\n=====================================";
        
        return temp;
    }