private void btSave_Click(object sender, RoutedEventArgs e)
        {
            // save in database
            //insert InventoryExport
            BUS_InventoryExport export = new BUS_InventoryExport();
            String newExportID         = export.Create(tbEmployeeName.Text, tbDate.Text, tbDescription.Text);

            //MessageBox.Show(newImportID);
            //insert InventoryImportdetails
            if (newExportID == null)
            {
                return;
            }
            List <String> sqlString = new List <string>();

            if (list.Count.Equals(0))
            {
                MessageBox.Show($"Danh sách nguyên vật liệu, thiết bị không được để trống!");
                return;
            }
            foreach (InventoryExportDetailObject obj in list)
            {
                int amountInExport;
                int temp1 = -1, temp2 = -1;
                if (int.TryParse(obj.amount, out amountInExport))
                {
                    if (mapNameAmountInStock[obj.name] < amountInExport)
                    {
                        MessageBox.Show($"Số lượng của {obj.name} trong kho chỉ còn {mapNameAmountInStock[obj.name]}!");
                        export.Delete(newExportID);
                        return;
                    }
                }
                if (!int.TryParse(obj.amount, out temp2) || temp2 <= 0)
                {
                    MessageBox.Show($"Số lượng của {obj.name} không hợp lệ!");
                    export.Delete(newExportID);
                    return;
                }
                //if (tbDescription.Text.Length ==0)
                //{
                //    MessageBox.Show($"Vui lòng nhập lí do !");
                //    export.Delete(newExportID);
                //    return;
                //}

                string temp = $"insert into InventoryExportDetail values ('{newExportID}','{obj.id}','{obj.amount}')";
                sqlString.Add(temp);
            }
            BUS_InventoryExportDetail detail = new BUS_InventoryExportDetail();

            detail.ImportList(sqlString);
            var screen = new InventoryExport(_context);

            if (screen != null)
            {
                this._context.StackPanelMain.Children.Clear();
                this._context.StackPanelMain.Children.Add(screen);
            }
        }
        private void btExit_Click(object sender, RoutedEventArgs e)
        {
            var screen = new InventoryExport(_context);

            if (screen != null)
            {
                this._context.StackPanelMain.Children.Clear();
                this._context.StackPanelMain.Children.Add(screen);
            }
        }