示例#1
0
 public Hospital getHospital(int id)
 {
     Hospital result = null;
     DataRow row = dataset.Tables["Hospitals"].Rows.Find(id);
     if (row != null)
         result = new Hospital(row, this);
     return result;
 }
示例#2
0
 public Hospital getHospitalByName(string name)
 {
     Hospital result = null;
     DataRow[] rows = dataset.Tables["Hospitals"].Select("Name = '" + name + "'");
     foreach (DataRow row in rows)
     {
         result = new Hospital(row, this);
     }
     return result;
 }