public ArrayList GetPharmacyPendingPrescriptions() { PatientEncounterLogic patientEncounter = new PatientEncounterLogic(); DataTable theDT = patientEncounter.getPharmacyPendingPrescriptions(Session["ExistingRecordPatientMasterVisitID"].ToString() == "0" ? Session["PatientMasterVisitID"].ToString() : Session["ExistingRecordPatientMasterVisitID"].ToString(), Session["PatientPK"].ToString()); ArrayList rows = new ArrayList(); foreach (DataRow row in theDT.Rows) { string[] i = new string[7] { row["PatientMasterVisitID"].ToString(), row["Ptn_pk"].ToString(), row["identifiervalue"].ToString(), row["FirstName"].ToString(), row["MidName"].ToString(), row["LastName"].ToString(), row["prescribedBy"].ToString() }; rows.Add(i); } return(rows); }