public DataTable laysohd(HOADONdto p)
 {
     int thamso = 2;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@ngayhd";
     name[1] = "@loai";
     values[0] = p.Ngayhoadon;
     values[1] = p.Loai;
     return ketnoi.laydulieu("laysohd", name, values, thamso);
 }
 public int themhoadon(HOADONdto p)
 {
     int thamso = 4;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@ngayhd";
     name[1] = "@manv";
     name[2] = "@loai";
     name[3] = "@mahd";
     values[0] = p.Ngayhoadon;
     values[1] = p.Manhanvien;
     values[2] = p.Loai;
     values[3] = p.Mahoadon;
     return ketnoi.update("themhoadon", name, values, thamso);
 }
 public int suahoadon(HOADONdto p)
 {
     int thamso = 6;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@ngayhd";
     name[1] = "@manv";
     name[2] = "@loai";
     name[3] = "@mahd";
     name[4] = "@diachi";
     name[5] = "@tenbn";
     values[0] = p.Ngayhoadon;
     values[1] = p.Manhanvien;
     values[2] = p.Loai;
     values[3] = p.Mahoadon;
     values[4] = p.Diachi;
     values[5] = p.Tenbn;
     return ketnoi.update("suahoadon", name, values, thamso);
 }
 public int themhoadon(HOADONdto p)
 {
     return hd.themhoadon(p);
 }
 public int suahoadon(HOADONdto p)
 {
     return hd.suahoadon(p);
 }
 public DataTable laysohd(HOADONdto p)
 {
     return hd.laysohd(p);
 }