public DataTable inbenhan(BENHANdto p)
 {
     int thamso = 1;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0] = "@maba";
     values[0] = p.Maba;
     return kn.laydulieu("inbenhan", name, values, thamso);
 }
 public int insert_ba(BENHANdto p)
 {
     int thamso = 20;
     string[] name = new string[thamso];
     object[] values = new object[thamso];
     name[0]="@maba";
     name[1]="@ngaybd";
     name[2]="@ngaykt";
     name[3]="@maphieunv";
     name[4]="@qtbenhly";
     name[5]="@ghichu";
     name[6]="@nguyennhantuvong";
     name[7]="@thoigiantuvong";
     name[8]="@tinhhinhtuvong";
     name[9]="@ketluan";
     name[10]="@noidungkham";
     name[11]="@tomtatba";
     name[12]="@huongdt";
     name[13]="@kqba";
     name[14]="@ttnv";
     name[15]="@ttrv";
     name[16]="@manv";
     name[17]="@benhphu";
     name[18] = "@benhchinh";
     name[19] = "@tuvong";
     values[0] = p.Maba;
     values[1] = p.Ngaybatdau;
     values[2] = p.Ngayketthuc;
     values[3] = p.Maphieunv;
     values[4] = p.Qtbenhly;
     values[5] = p.Ghichu;
     values[6] = p.Nguyennhantuvong;
     values[7] = p.Thoigiantuvong;
     values[8] = p.Tinhhinhtuvong;
     values[9] = p.Ketluan;
     values[10] = p.Noidungkham;
     values[11] = p.Tomtatba;
     values[12] = p.Huongdt;
     values[13] = p.Kqba;
     values[14] = p.Ttnv;
     values[15] = p.Ttrv;
     values[16] = p.Manv;
     values[17] = p.Benhphu;
     values[18] = p.Benhchinh;
     values[19] = p.Tuvong;
     return kn.update("insert_ba", name, values, thamso);
 }
 public DataTable inbenhan(BENHANdto p)
 {
     return ba.inbenhan(p);
 }
 public int insert_ba(BENHANdto p)
 {
     return ba.insert_ba(p);
 }
 public DataTable chitietba(BENHANdto p)
 {
     return ba.chitietba(p);
 }