Example #1
0
 private void btnXoaItemCTHD_Click(object sender, EventArgs e)
 {
     btnXoaItemCTHD.Enabled = false;
     bllBanHang.DeleteChiTietHoaDon(maCTHD);
     bllBanHang.UpdateCongSoLuongNguyenLieu(maDoUong, soLuongMua);
     UpdateTongTienForHoaDon(lblMaHoaDon.Text);
     lblTongTien.Text = GetTongTien(lblMaHoaDon.Text);
     LoadChiTietHoaDon(lblMaHoaDon.Text);
     if (grvChiTietHoaDon.FocusedRowHandle < 0)
     {
         btnDongBan.Visible = true;
     }
 }