Exemple #1
0
 public void CTPhieuNhap_Insert(ChiTietPhieuNhap ctpn)
 {
     _db.table_Command("INSERT INTO ChiTietPhieuNhap VALUES('" + ctpn.MaPhieuNhap + "','" + ctpn.MaXe + "'," + ctpn.SlNhap + "," + ctpn.DonGiaNhap + "," + ctpn.Thue + "," + ctpn.ThanhTien + ")");
 }
Exemple #2
0
 public void CTPhieuNhap_Update(ChiTietPhieuNhap ctpn)
 {
     _db.table_Command("UPDATE ChiTietPhieuNhap SET MaXe='" + ctpn.MaXe + "',SLNhap = " + ctpn.SlNhap + ",DonGiaNhap = " + ctpn.DonGiaNhap + ",Thue = " + ctpn.Thue + ",ThanhTien = " + ctpn.ThanhTien + " WHERE MaPhieuNhap = '" + ctpn.MaPhieuNhap + "'");
 }
Exemple #3
0
 public void CTPhieuNhap_Delete(ChiTietPhieuNhap ctpn)
 {
     _db.table_Command("DELETE FROM ChiTietPhieuNhap WHERE MaPhieuNhap='" + ctpn.MaPhieuNhap + "'");
 }