Ejemplo n.º 1
0
        public medicine loadMed(string idVisit)
        {
            medicine med = new medicine();

            try
            {
                command.CommandText = "select [medicament],[medicamentUsing] from [visit] where [Код] = " + idVisit;
                using (OleDbDataReader reader = command.ExecuteReader())
                {
                    reader.Read();
                    med.Title      = reader.GetValue(0).ToString().Trim();
                    med.Way_to_use = reader.GetValue(1).ToString().Trim();
                }
            }
            catch { }
            return(med);
        }
Ejemplo n.º 2
0
 public recommendation()
 {
     meds = new medicine();
 }