示例#1
0
        public ArrayList GetLatestPharmacyPrescriptionDetails()
        {
            PatientEncounterLogic patientEncounter = new PatientEncounterLogic();

            DataTable theDT  = patientEncounter.loadPatientLatestPharmacyPrescription(Session["PatientPK"].ToString(), Session["AppLocationId"].ToString());
            ArrayList rows   = new ArrayList();
            string    remove = "<button type='button' class='btnDelete btn btn-danger fa fa-minus-circle btn-fill' > Remove</button>";

            foreach (DataRow row in theDT.Rows)
            {
                string[] i = new string[13] {
                    row["Drug_Pk"].ToString(), row["batchId"].ToString(),
                    row["FrequencyID"].ToString(), row["abbr"].ToString(), row["DrugName"].ToString(),
                    row["batchName"].ToString(), row["dose"].ToString(), row["freq"].ToString(),
                    row["duration"].ToString(), row["OrderedQuantity"].ToString(), row["DispensedQuantity"].ToString(),
                    row["prophylaxis"].ToString(), remove
                };
                rows.Add(i);
            }
            return(rows);
        }