Ejemplo n.º 1
0
        private void btnCapNhat_Click(object sender, EventArgs e)
        {
            FormNhapHang fQLNhapHang = new FormNhapHang();

            fQLNhapHang.MaPhieuNhap = dataGridView_TraCuuNhapHang.CurrentRow.Cells["clMaPhieuNhap"].Value.ToString();
            fQLNhapHang.Status      = 4;
            fQLNhapHang.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnXemChiTiet_Click(object sender, EventArgs e)
        {
            FormNhapHang fQLNhapHang = new FormNhapHang();

            fQLNhapHang.MaPhieuNhap = dataGridView_TraCuuNhapHang.CurrentRow.Cells[clMaPhieuNhap.Index].Value.ToString();
            fQLNhapHang.Status      = 3;//Xem Dialog
            fQLNhapHang.ShowDialog();
        }
Ejemplo n.º 3
0
        private void nhapHangToolStripMenuItemNhapHang_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormNhapHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.MdiParent = this;
                fNhapHang.Show();
            }
        }
Ejemplo n.º 4
0
        private void NhapHangMoi_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormNhapHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.MdiParent = this;
                fNhapHang.Show();
            }
        }
Ejemplo n.º 5
0
        private void btnTaoMoi_Click(object sender, EventArgs e)
        {
            FormNhapHang frm = (FormNhapHang)ThongTin.KiemTraTonTai(typeof(FormNhapHang), this.ParentForm);

            if (frm != null)
            {
                frm.taoMoi = true;
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.taoMoi    = true;
                fNhapHang.MdiParent = this.ParentForm;
                fNhapHang.Show();
            }
        }