public void ClearXuatKho() { lst_XuatKho = new List <CT_XuatKho>(); if (f_xuatKho != null) { f_xuatKho.Close(); f_xuatKho.Dispose(); f_xuatKho = null; backgroundWorker1.RunWorkerAsync(); } }
public void XuatKho(CT_XuatKho ctxuat) { lst_XuatKho.Add(ctxuat); if (f_xuatKho == null) { f_xuatKho = new frmXuatKho(this); f_xuatKho.Show(); } f_xuatKho.ReloadGridview(); var uc = lstUcViTri.FirstOrDefault(q => q.mLoHang != null && q.mLoHang.MaLoHang == ctxuat.MaLoHang); uc.UpdateValue((ctxuat.SoLuong ?? 0) * -1); }
private void btnXuatKho_Click(object sender, EventArgs e) { f_xuatKho = new frmXuatKho(this); f_xuatKho.Show(); f_xuatKho.ReloadGridview(); }