コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public int themhoadon(HOADONdto p)
 {
     return hd.themhoadon(p);
 }
コード例 #5
0
 public int suahoadon(HOADONdto p)
 {
     return hd.suahoadon(p);
 }
コード例 #6
0
 public DataTable laysohd(HOADONdto p)
 {
     return hd.laysohd(p);
 }