public DataTable laycthd_thuoc(CHITIETHOADON_THUOCdto p)
 {
     int thamso = 1;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@mahd";
     values[0] = p.Mahd;
     return ketnoi.laydulieu("inhoadon_thuoc", name, values, thamso);
 }
 public int xoacthd(CHITIETHOADON_THUOCdto p)
 {
     int thamso = 2;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@mahd";
     name[1] = "@mathuoc";
     values[0] = p.Mahd;
     values[1] = p.Mathuoc;
     return ketnoi.update("xoacthd", name, values, thamso);
 }
 public int themcthd_thuoc_theodon(CHITIETHOADON_THUOCdto p)
 {
     int thamso = 2;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@mahd";
     name[1] = "@madt";
     values[0] = p.Mahd;
     values[1] = p.Madonthuoc;
     return ketnoi.update("themcthd_thuoc_theodon", name, values, thamso);
 }
 public int themcthd_thuoc(CHITIETHOADON_THUOCdto p)
 {
     int thamso = 3;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@mahd";
     name[1] = "@mathuoc";
     name[2] = "@sl";
     values[0] = p.Mahd;
     values[1] = p.Mathuoc;
     values[2] = p.Soluong;
     return ketnoi.update("themcthd_thuoc", name, values, thamso);
 }
 public int xoa_cthd(CHITIETHOADON_THUOCdto p)
 {
     return hd.xoacthd(p);
 }
 public int themcthd_thuoc_theodon(CHITIETHOADON_THUOCdto p)
 {
     return hd.themcthd_thuoc_theodon(p);
 }
 public DataTable laycthd_thuoc(CHITIETHOADON_THUOCdto p)
 {
     return hd.laycthd_thuoc(p);
 }