コード例 #1
0
 public void ClearXuatKho()
 {
     lst_XuatKho = new List <CT_XuatKho>();
     if (f_xuatKho != null)
     {
         f_xuatKho.Close();
         f_xuatKho.Dispose();
         f_xuatKho = null;
         backgroundWorker1.RunWorkerAsync();
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void btnXuatKho_Click(object sender, EventArgs e)
 {
     f_xuatKho = new frmXuatKho(this);
     f_xuatKho.Show();
     f_xuatKho.ReloadGridview();
 }