public frmEdit_XuatKho(CT_XuatKho obj) { InitializeComponent(); ucBaseEdit1.iFormBase = this; mObj = obj; StartPosition = FormStartPosition.CenterScreen; num_SoLuong.Maximum = int.MaxValue; }
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); }
public void RemoveXuatKho(CT_XuatKho ctxuat) { lst_XuatKho.Remove(ctxuat); }