private void bbiInTem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string tenTiem = bbiTenTiem.EditValue == null ? "" : bbiTenTiem.EditValue.ToString();
            string diaChi = bbiDiaChi.EditValue == null ? "" : bbiDiaChi.EditValue.ToString();
            string tenCongCOM = bbiCongCOM.EditValue == null ? "" : bbiCongCOM.EditValue.ToString();
            string tenMayIn = bbiMayIn.EditValue == null ? "" : bbiMayIn.EditValue.ToString();
            string duongDanFileExcel = bbiChonFileDuLieu.EditValue == null ? "" : bbiChonFileDuLieu.EditValue.ToString();

            var _frmIntem = new frmInTem(tenTiem, diaChi, tenCongCOM, duongDanFileExcel, tenMayIn);
            _frmIntem.Xem += () =>
            {
                bbiXem_ItemClick(this, null);
            };
            _frmIntem.ShowDialog();
        }
        private void rptLinkInTem_Click(object sender, EventArgs e)
        {
            string maVach = gbList.GetFocusedRowCellValue(colMaVach).ToString();
            string tenHang = gbList.GetFocusedRowCellValue(colTenHang).ToString();

            decimal tongTrongLuong = 0;
            Decimal.TryParse(gbList.GetFocusedRowCellValue(colTongTrongLuong).ToString(), out tongTrongLuong);

            decimal trongLuong = 0;
            Decimal.TryParse(gbList.GetFocusedRowCellValue(colTrongLuong).ToString(), out trongLuong);

            decimal hot = 0;
            Decimal.TryParse(gbList.GetFocusedRowCellValue(colHot).ToString(), out hot);

            decimal tienCong = 0;
            Decimal.TryParse(gbList.GetFocusedRowCellValue(colTienCong).ToString(), out tienCong);

            string nhaCungCap = gbList.GetFocusedRowCellValue(colNhaCungCap).ToString();
            string hamLuongPho = gbList.GetFocusedRowCellValue(colHamLuongPho).ToString();

            int soLuongTem = 0;
            Int32.TryParse(gbList.GetFocusedRowCellValue(colSoLuongTem).ToString(), out soLuongTem);

            string tenTiem = gbList.GetFocusedRowCellValue(colTenTiem).ToString();
            string diaChi = gbList.GetFocusedRowCellValue(colDiaChi).ToString();

            //string tenTiem = bbiTenTiem.EditValue == null ? "" : bbiTenTiem.EditValue.ToString();
            //string diaChi = bbiDiaChi.EditValue == null ? "" : bbiDiaChi.EditValue.ToString();

            string tenCongCOM = bbiCongCOM.EditValue == null ? "" : bbiCongCOM.EditValue.ToString();
            string tenMayIn = bbiMayIn.EditValue == null ? "" : bbiMayIn.EditValue.ToString();
            string duongDanFileExcel = bbiChonFileDuLieu.EditValue == null ? "" : bbiChonFileDuLieu.EditValue.ToString();

            var _frmIntem = new frmInTem(tenTiem, diaChi, tenCongCOM, tenMayIn, duongDanFileExcel, maVach, tenHang, tongTrongLuong, trongLuong, hot, tienCong, nhaCungCap, hamLuongPho, soLuongTem);
            _frmIntem.Xem += () =>
            {
                bbiXem_ItemClick(this, null);
            };
            _frmIntem.ShowDialog();
        }