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(); }
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(); }
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(); } }
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(); } }
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(); } }