示例#1
0
 public TreatmentCycle(System.Data.SqlClient.SqlDataReader value)
 {
     if (value.HasColumn("cycle") && value.HasColumn("Id"))
     {
         TreatmentCycleName = value["cycle"].ToString();
         TreatmentCycleId   = Convert.ToInt32(value["id"]);
     }
     else
     {
         TreatmentCycleName = value["name"].ToString();
         TreatmentCycleId   = Convert.ToInt32(value["id"]);
     }
 }