Ejemplo n.º 1
0
        private void btnNhapHang_Click_1(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Bạn có chắc chắn muốn thêm phiếu nhập mới?", "Thông báo", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                PhieuNhapBUS.InsertPhieuNhap(MaNhanvien, DateTime.Now);
                maphieu = PhieuNhapBUS.GetMaPN();
                UC_NhapHang nh = new UC_NhapHang(maphieu);
                AddControl(nh);
            }
        }