public bool UpdateCTHoaDon(string maHoaDon, string maSP, int soLuong, decimal?donGia, int ck) { try { ChiTietHoaDon cthd = context.ChiTietHoaDon.Single(s => s.MaHoaDon.Equals(maHoaDon) && s.MaSP.Equals(maSP)); cthd.SoLuong = soLuong; cthd.DonGia = donGia; cthd.ChietKhau = ck; context.SaveChanges(); return(true); } catch { return(false); } }
public bool InsertCTHoaDon(ref string err, string maHoaDon, string maSP, int soLuong, decimal?donGia, int ck) { try { ChiTietHoaDon cthd = new ChiTietHoaDon { MaHoaDon = maHoaDon, MaSP = maSP, SoLuong = soLuong, DonGia = donGia, ChietKhau = ck }; context.ChiTietHoaDon.Add(cthd); context.SaveChanges(); return(true); } catch (Exception e) { err = e.Message; return(false); } }
public Boolean delete(ChiTietHoaDon chiTietHoaDon) { return(this.chiTietHoaDonDAO.delete(chiTietHoaDon)); }
public Boolean insert(ChiTietHoaDon chiTietHoaDon) { return(this.chiTietHoaDonDAO.insert(chiTietHoaDon)); }
public bool themChiTietHoaDon(ChiTietHoaDon chiTietHoaDon) { return(dal_chiTietHoaDon.themChiTietHoaDon(chiTietHoaDon)); }
public void EditCTHoaDon(ChiTietHoaDon x) { hd.EditCTHoaDon(x); }
public static bool KiemTraTonTaiChiTietHoaDon(ChiTietHoaDon ct) { return(db.KiemTraTonTaiChiTietHoaDon(ct)); }
public static int AddCTHD(ChiTietHoaDon cthd) { return(CTHDDAO.AddCTHD(cthd)); }
public bool xoaCTHD(ChiTietHoaDon chiTietHoaDon) { return(dal_ChiTietHoaDon.xoaCTHD(chiTietHoaDon)); }
public static void ThemChiTietHoaDon(ChiTietHoaDon ct) { db.ThemChiTietHoaDon(ct); }
public bool chinhSuaSoLuongChiTietHoaDon(ChiTietHoaDon chiTietHoaDon) { return(dal_ChiTietHoaDon.chinhSuaSoLuongChiTietHoaDon(chiTietHoaDon)); }
public bool themCTHoaDon(ChiTietHoaDon item) { return(dal_ChiTietHoaDon.themCTHoaDon(item)); }
public bool CthoadonInsert(ChiTietHoaDon chitiethoadon) { return(cthoadon_dal.CthoadonInsert(chitiethoadon)); }
public Boolean update(ChiTietHoaDon chiTietHoaDon) { return(this.chiTietHoaDonDAO.update(chiTietHoaDon)); }
public static int Update(ChiTietHoaDon detail) { return(BillDetailDAO.Update(detail)); }
public bool ThemChiTietHoaDon(ChiTietHoaDon chiTiet) { return(ChiTietHoaDonDAO.Instance.ThemChiTietHoaDon(chiTiet)); }
public static ChiTietHoaDon GetBillDetail(ChiTietHoaDon detail) { return(BillDetailDAO.GetBillDetail(detail)); }
public static int EditCTHD(ChiTietHoaDon cthd) { return(CTHDDAO.EditCTHD(cthd)); }
public static int Insert(ChiTietHoaDon cthd) { return(BillDetailDAO.Insert(cthd)); }
public bool capNhat(ChiTietHoaDon chiTietHoaDon) { return(dal_chiTietHoaDon.capNhat(chiTietHoaDon)); }
public void AddCTHoaDon(ChiTietHoaDon x) { hd.AddCTHoaDon(x); }