예제 #1
0
        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
            }
        }
예제 #2
0
        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();
        }