private void btnListXLK_Click(object sender, EventArgs e) { try { if (grvChiTiet.FocusedRowHandle == null) { throw new ManagedException("Xin hãy chọn dữ liệu !"); } SanXuatLenhInfo sx = (SanXuatLenhInfo)grvChiTiet.GetRow(grvChiTiet.FocusedRowHandle); frmDanhSachXuatLinhKien frm = new frmDanhSachXuatLinhKien(sx.MaLenh, TransactionType.XUAT_DOIMA); frm.ShowDialog(); } catch (ManagedException ex) { MessageBox.Show(ex.Message); } catch (Exception ex) { EventLogProvider.Instance.WriteOfflineLog(ex.ToString(), this.Name); #if DEBUG MessageBox.Show(ex.ToString()); #else MessageBox.Show(ex.Message); #endif } }
private void btnListXLK_Click(object sender, EventArgs e) { if (grvChiTiet.FocusedRowHandle == null) { throw new ManagedException("Xin hãy chọn dữ liệu !"); } SanXuatLenhInfo sx = (SanXuatLenhInfo)grvChiTiet.GetRow(grvChiTiet.FocusedRowHandle); frmDanhSachXuatLinhKien frm = new frmDanhSachXuatLinhKien(sx.MaLenh, TransactionType.XUAT_COMBO); frm.ShowDialog(); }