示例#1
0
 public Client(int ClientID)
 {
     this.clientID = ClientID;
     ClientService cs=new ClientService();
     DataSet ds = cs.GetClientDetailsByID(ClientID);
     this.cityID = Convert.ToInt32(ds.Tables[0].Rows[0]["CityID"]);
     this.email = ds.Tables[0].Rows[0]["Email"].ToString();
     this.address = ds.Tables[0].Rows[0]["Address"].ToString();
     this.phone = ds.Tables[0].Rows[0]["Phone"].ToString() ;
 }