예제 #1
0
        private void DataGridView_hdn_DoubleClick(object sender, EventArgs e)
        {
            DAO.OpenConnection();
            string mabinhxoa, sql;
            Double thanhtienxoa, soluongxoa, sl, slcon, tong, tongmoi;

            if ((MessageBox.Show("Bạn có chắc chắn muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes))
            {
                //Xóa sách và cập nhật lại số lượng ga
                mabinhxoa    = DataGridView_hdn.CurrentRow.Cells["Mabinh"].Value.ToString();
                soluongxoa   = Convert.ToDouble(DataGridView_hdn.CurrentRow.Cells["SoLuong"].Value.ToString());
                thanhtienxoa = Convert.ToDouble(DataGridView_hdn.CurrentRow.Cells["Thanhtien"].Value.ToString());
                sql          = "DELETE chi_tiet_hoa_don_nhap WHERE SoHDN =N'" + txtSoHDN.Text + "' AND Mabinh = N'" + mabinhxoa + "'";
                DAO.RunSql(sql);

                // Cập nhật lại số lượng cho các loại bình
                sl    = Convert.ToDouble(DAO.GetFieldValues("SELECT SoLuong FROM DM_binh_ga WHERE Mabinh = N'" + mabinhxoa + "'"));
                slcon = sl - soluongxoa;
                sql   = "UPDATE DM_binh_ga SET SoLuong =" + slcon + " WHERE Mabinh= N'" + mabinhxoa + "'";
                DAO.RunSql(sql);

                // Cập nhật lại tổng tiền cho hóa đơn nhập
                tong    = Convert.ToDouble(DAO.GetFieldValues("SELECT TongTien FROM hoa_don_nhap WHERE SoHDN = N'" + txtSoHDN.Text + "'"));
                tongmoi = tong - thanhtienxoa;
                sql     = "UPDATE hoa_don_nhap SET TongTien =" + tongmoi + " WHERE SoHDN = N'" + txtSoHDN.Text + "'";
                DAO.RunSql(sql);
                txtTongtien.Text = tongmoi.ToString();
                lblBangchu.Text  = "Bằng chữ: " + DAO.ChuyenSoSangChu(tongmoi.ToString());
                LoadDataGridView();
            }
        }
예제 #2
0
        private void buttonxoa_Click(object sender, EventArgs e)
        {
            string sql = "delete from khach_hang where makhach=N'" + textBoxmakh.Text + "'";

            DAO.RunSql(sql);
            loaddata();
        }
예제 #3
0
        private void btnHuy_Click(object sender, EventArgs e)
        {
            double sl, slcon, slxoa;

            if (MessageBox.Show("Bạn có chắc chắn muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                string    sql        = "SELECT Mabinh,SoLuong FROM chi_tiet_hoa_don_nhap WHERE SoHDN = N'" + txtSoHDN.Text + "'";
                DataTable DM_Binh_ga = DAO.GetDataToTable(sql);
                for (int ga = 0; ga <= DM_Binh_ga.Rows.Count - 1; ga++)
                {
                    // Cập nhật lại số lượng cho các loại ga
                    sl    = Convert.ToDouble(DAO.GetFieldValues("SELECT SoLuong FROM DM_Binh_ga WHERE Mabinh = N'" + DM_Binh_ga.Rows[ga][0].ToString() + "'"));
                    slxoa = Convert.ToDouble(DM_Binh_ga.Rows[ga][1].ToString());
                    slcon = sl - slxoa;
                    sql   = "UPDATE DM_Binh_ga SET SoLuong =" + slcon + " WHERE Mabinh= N'" + DM_Binh_ga.Rows[ga][0].ToString() + "'";
                    DAO.RunSql(sql);
                }

                //Xóa chi tiết hóa đơn
                sql = "DELETE Chi_tiet_hoa_don_nhap WHERE SoHDN=N'" + txtSoHDN.Text + "'";
                DAO.RunSqlDel(sql);

                //Xóa hóa đơn
                sql = "DELETE hoa_don_nhap WHERE SoHDN=N'" + txtSoHDN.Text + "'";
                DAO.RunSqlDel(sql);
                ResetValues();
                LoadDataGridView();
            }
        }
예제 #4
0
        //private void CaLam_Load(object sender, EventArgs e)
        private void buttonsua_Click(object sender, EventArgs e)
        {
            string sql = "update ca_lam set tenca=N'" + textBoxtenca.Text + "' where maca=N'" + textBoxmaca.Text + "'";

            DAO.RunSql(sql);
            loaddata();
        }
예제 #5
0
        private void DataGridViewChiTiet_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
        {
            string Mabinhxoa, sql;
            Double ThanhTienxoa, SoLuongxoa, sl, slcon, tong, tongmoi;

            //if ( DM_Binh_ga.Rows.Count == 0)
            //{
            // MessageBox.Show("Không có dữ liệu!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //return;
            //}
            if ((MessageBox.Show("Bạn có chắc chắn muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes))
            {
                //Xóa hàng và cập nhật lại số lượng hàng
                Mabinhxoa    = DataGridViewChiTiet.CurrentRow.Cells["Mabinh"].Value.ToString();
                SoLuongxoa   = Convert.ToDouble(DataGridViewChiTiet.CurrentRow.Cells["SoLuong"].Value.ToString());
                ThanhTienxoa = Convert.ToDouble(DataGridViewChiTiet.CurrentRow.Cells["ThanhTien"].Value.ToString());
                sql          = "DELETE Chi_tiet_hoa_don_ban WHERE SoHDB=N'" + txtSoHDB.Text + "' AND Mabinh = N'" + Mabinhxoa + "'";
                DAO.RunSql(sql);
                // Cập nhật lại số lượng cho các mặt hàng
                sl    = Convert.ToDouble(DAO.GetFieldValues("SELECT Soluong FROM DM_Binh_ga WHERE Mabinh = N'" + Mabinhxoa + "'"));
                slcon = sl + SoLuongxoa;
                sql   = "UPDATE DM_Binh_ga SET Soluong =" + slcon + " WHERE Mabinh= N'" + Mabinhxoa + "'";
                DAO.RunSql(sql);
                // Cập nhật lại tổng tiền cho hóa đơn bán
                tong    = Convert.ToDouble(DAO.GetFieldValues("SELECT TongTien FROM Hoa_don_ban WHERE SoHDB = N'" + txtSoHDB.Text + "'"));
                tongmoi = tong - ThanhTienxoa;
                sql     = "UPDATE Hoa_don_ban SET Tongtien =" + tongmoi + " WHERE SoHDB = N'" + txtSoHDB.Text + "'";
                DAO.RunSql(sql);
                txtTongtien.Text = tongmoi.ToString();
                labelChuyen.Text = "Bằng chữ: " + DAO.ChuyenSoSangChu(tongmoi.ToString());
                txtTongtien.Text = tongmoi.ToString();
                Load_DataGridViewChitiet();
            }
        }
예제 #6
0
        private void btnXoa_Click_1(object sender, EventArgs e)
        {
            double sl, slcon, slxoa;

            if (MessageBox.Show("Bạn có chắc chắn muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                string    sql        = "SELECT Mabinh,Soluong FROM Chi_tiet_hoa_don_ban WHERE SoHDB = N'" + txtSoHDB.Text + "'";
                DataTable DM_Binh_ga = DAO.GetDataToTable(sql);
                for (int hang = 0; hang <= DM_Binh_ga.Rows.Count - 1; hang++)
                {
                    // Cập nhật lại số lượng cho các mặt hàng
                    sl    = Convert.ToDouble(DAO.GetFieldValues("SELECT SoLuong FROM DM_Binh_ga WHERE Mabinh = N'" + DM_Binh_ga.Rows[hang][0].ToString() + "'"));
                    slxoa = Convert.ToDouble(DM_Binh_ga.Rows[hang][1].ToString());
                    slcon = sl + slxoa;
                    sql   = "UPDATE DM_Binh_ga SET Soluong =" + slcon + " WHERE Mabinh= N'" + DM_Binh_ga.Rows[hang][0].ToString() + "'";
                    DAO.RunSql(sql);
                }

                //Xóa chi tiết hóa đơn
                sql = "DELETE Chi_tiet_hoa_don_ban WHERE SoHDB=N'" + txtSoHDB.Text + "'";
                DAO.RunSqlDel(sql);

                //Xóa hóa đơn
                sql = "DELETE Hoa_don_ban WHERE SoHDB=N'" + txtSoHDB.Text + "'";
                DAO.RunSqlDel(sql);
                ResetValues();
                Load_DataGridViewChitiet();
                btnXoa.Enabled = false;
            }
        }
예제 #7
0
        private void buttonxoa_Click(object sender, EventArgs e)
        {
            string sql = "delete from cong_viec where macv=N'" + textBoxmacv.Text + "'";

            DAO.RunSql(sql);
            loaddata();
        }
예제 #8
0
        private void buttonsua_Click_1(object sender, EventArgs e)
        {
            string sql = "update nha_cc set tenncc=N'" + textboxnhacungcap.Text + "',diachi=N'" + textBoxdiachi.Text + "',dienthoai='"
                         + textBoxsodienthoai.Text + "' where mancc=N'" + textBoxmanhacungcap.Text + "'";

            DAO.RunSql(sql);
            loaddata();
        }
예제 #9
0
파일: frmDangKy.cs 프로젝트: lyrua2308/edit
        private void btnLuu_Click(object sender, EventArgs e)
        {
            DAO.OpenConnection();
            String sql="insert into taikhoan Values('"+txtTaiKhoan.Text+"','"+txtMatKhau.Text+"')";
            DAO.RunSql(sql);
            MessageBox.Show("ban da dang ki tai khoan thanh cong");

        }
예제 #10
0
        private void buttonsua_Click(object sender, EventArgs e)
        {
            string sql = "update khach_hang set tenkhach=N'" + textBoxtenkh.Text + "',diachi=N'" + textBoxdiachi.Text + "',dienthoai='"
                         + textBoxsodienthoai.Text + "' where makhach=N'" + textBoxmakh.Text + "'";

            DAO.RunSql(sql);
            loaddata();
        }
예제 #11
0
        private void buttonsua_Click_1(object sender, EventArgs e)
        {
            string sql = "update Nhan_Vien set tennv=N'" + textBoxTenNV.Text + "',diachi=N'" + textBoxdiachi.Text + "',gioitinh=N'" + comboBoxgioitinh.SelectedValue
                         + "',ngaysinh='" + maskedTextBoxngaysinh.Text + "',dienthoai='" + textBoxdienthoai.Text + "',maca='" + comboBoxmaca.SelectedValue + "',macv='"
                         + comboBoxmacongviec.SelectedValue +
                         "' where manv=N'" + textBoxMaNV.Text + "'";

            DAO.RunSql(sql);
            loatdata();
        }
예제 #12
0
        private void GridViewBinhGas_CellClick_1(object sender, DataGridViewCellEventArgs e)
        {
            DAO.OpenConnection();
            if (btnThem.Enabled == false)
            {
                MessageBox.Show("Đang ở chế độ thêm mới!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtMaBinh.Focus();
                return;
            }

            txtMaBinh.Text     = GridViewBinhGas.CurrentRow.Cells["Mabinh"].Value.ToString();
            txtTenBinh.Text    = GridViewBinhGas.CurrentRow.Cells["Tenbinh"].Value.ToString();
            txtSoLuong.Text    = GridViewBinhGas.CurrentRow.Cells["Soluong"].Value.ToString();
            txtDonGiaNhap.Text = GridViewBinhGas.CurrentRow.Cells["Dongianhap"].Value.ToString();
            txtDonGiaBan.Text  = GridViewBinhGas.CurrentRow.Cells["Dongiaban"].Value.ToString();
            txtTGBH.Text       = GridViewBinhGas.CurrentRow.Cells["Thoigianbaohanh"].Value.ToString();
            txtAnh.Text        = GridViewBinhGas.CurrentRow.Cells["Anh"].Value.ToString();
            txtGhichu.Text     = GridViewBinhGas.CurrentRow.Cells["Ghichu"].Value.ToString();
            cmbKhoiLuong.Text  = GridViewBinhGas.CurrentRow.Cells["Makhoiluong"].Value.ToString();
            cmbMau.Text        = GridViewBinhGas.CurrentRow.Cells["Mamau"].Value.ToString();
            cmbLoaiGas.Text    = GridViewBinhGas.CurrentRow.Cells["Maloai"].Value.ToString();
            cmbNuocSX.Text     = GridViewBinhGas.CurrentRow.Cells["manuocSX"].Value.ToString();

            if (!String.IsNullOrEmpty(txtAnh.Text))
            {
                picAnh.Image = Image.FromFile(txtAnh.Text);
            }

            string sql;
            double gianhap, giaban;

            gianhap = Convert.ToDouble(DAO.GetFieldValues("Select Dongianhap from DM_Binh_ga where Mabinh = N'" + txtMaBinh.Text.Trim() + "'"));
            giaban  = (gianhap * 110) / 100;
            sql     = "UPDATE DM_Binh_ga SET Dongiaban =" + giaban + "where Mabinh =N'" + txtMaBinh.Text.Trim() + "'";
            DAO.RunSql(sql);
            txtDonGiaBan.Text = giaban.ToString();

            btnSua.Enabled    = true;
            btnXoa.Enabled    = true;
            txtMaBinh.Enabled = true;
            DAO.CloseConnection();
        }
예제 #13
0
        private void btnLuu_Click(object sender, EventArgs e)
        {
            DAO.OpenConnection();
            string sql;
            double sl, SLcon, tong, Tongmoi;

            sql = "SELECT SoHDN FROM hoa_don_nhap WHERE SoHDN=N'" + txtSoHDN.Text + "'";
            if (!DAO.CheckKey(sql))
            {
                // Số hóa đơn nhập chưa có, tiến hành lưu các thông tin chung
                // SoHDNhap được sinh tự động do đó không có trường hợp trùng khóa
                if (cboManhanvien.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập mã nhân viên", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cboManhanvien.Focus();
                    return;
                }
                if (txtNgaynhap.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập ngày nhập hàng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    txtNgaynhap.Focus();
                    return;
                }
                if (cboMaNCC.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập mã nhà cung cấp", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cboMaNCC.Focus();
                    return;
                }
                sql = "INSERT INTO hoa_don_nhap(SoHDN, MaNV, NgayNhap, MaNCC, TongTien) VALUES (N'" + txtSoHDN.Text.Trim() + "',N'" + cboManhanvien.SelectedValue + "',N'" +
                      DAO.ConvertDateTime(txtNgaynhap.Text.Trim()) + "',N'" +
                      cboMaNCC.SelectedValue + "'," + txtTongtien.Text + ")";

                DAO.RunSql(sql);
            }
            // Lưu thông tin của các mặt hàng
            if (cboMabinh.Text.Trim().Length == 0)
            {
                MessageBox.Show("Bạn phải nhập mã bình", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                cboMabinh.Focus();
                return;
            }
            if ((txtSoluong.Text.Trim().Length == 0) || (txtSoluong.Text == "0"))
            {
                MessageBox.Show("Bạn phải nhập số lượng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtSoluong.Text = "";
                txtSoluong.Focus();
                return;
            }
            if (txtGiamgia.Text.Trim().Length == 0)
            {
                MessageBox.Show("Bạn phải nhập giảm giá", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtGiamgia.Focus();
                return;
            }
            if (txtDongia.Text.Trim().Length == 0)
            {
                MessageBox.Show("Bạn phải nhập đơn giá nhập", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtDongia.Focus();
                return;
            }
            sql = "SELECT Mabinh FROM chi_tiet_hoa_don_nhap WHERE Mabinh=N'" + cboMabinh.SelectedValue + "' AND SoHDN = N'" + txtSoHDN.Text.Trim() + "'";
            if (DAO.CheckKey(sql))
            {
                MessageBox.Show("Mã bình này đã có, bạn phải nhập mã bình khác", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ResetValuesHang();
                cboMabinh.Focus();
                return;
            }
            DAO.OpenConnection();
            sql = "INSERT INTO chi_tiet_hoa_don_nhap VALUES(N'" + txtSoHDN.Text.Trim() + "',N'" + cboMabinh.SelectedValue + "'," + txtSoluong.Text + "," + txtDongia.Text + "," + txtGiamgia.Text + "," + txtThanhtien.Text + ")";

            DAO.RunSql(sql);
            LoadDataGridView();


            //cap nhat

            double dgnhap = Convert.ToDouble(txtDongia.Text); // đơn giá nhập

            sl = Convert.ToDouble(DAO.GetFieldValues("SELECT SoLuong FROM DM_binh_ga WHERE mabinh = N'" + cboMabinh.SelectedValue + "'"));
            double slmoi = Convert.ToDouble(txtSoluong.Text);


            sql = "UPDATE DM_binh_ga SET DonGiaNhap=" + dgnhap + "WHERE Mabinh= N'" + cboMabinh.SelectedValue + "'";
            DAO.RunSql(sql);
            sql = "UPDATE DM_binh_ga SET DonGiaBan=" + dgnhap * 1.1 + "WHERE Mabinh= N'" + cboMabinh.SelectedValue + "'";
            DAO.RunSql(sql);

            // Cập nhật lại số lượng ga vào bảng DM Binh ga
            SLcon = sl + slmoi;
            sql   = "UPDATE DM_binh_ga  SET SoLuong =" + SLcon + " WHERE Mabinh= N'" + cboMabinh.SelectedValue + "'";
            DAO.RunSql(sql);

            //Cập nhật lại tổng tiền cho hóa đơn nhập

            tong = Int32.Parse(DAO.GetFieldValues("SELECT TongTien FROM hoa_don_nhap WHERE SoHDN = N'" + txtSoHDN.Text + "'"));

            Tongmoi = tong + Convert.ToDouble(txtThanhtien.Text);
            sql     = "UPDATE hoa_don_nhap SET TongTien =" + Tongmoi + " WHERE SoHDN = N'" + txtSoHDN.Text + "'";
            DAO.RunSql(sql);


            txtTongtien.Text = Tongmoi.ToString();
            lblBangchu.Text  = "Bằng chữ: " + DAO.ChuyenSoSangChu(Tongmoi.ToString());

            LoadDataGridView();
            DAO.CloseConnection();
        }
예제 #14
0
        private void btnLuu_Click_1(object sender, EventArgs e)
        {
            string sql;
            double sl, SLcon, tong, Tongmoi;

            //double giaban, giabanmoi;
            DAO.OpenConnection();
            sql = "SELECT SoHDB FROM Hoa_don_ban WHERE SoHDB=N'" + txtSoHDB.Text + "'";
            if (!DAO.CheckKey(sql))
            {
                if (txtNgayBan.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập ngày bán", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    txtNgayBan.Focus();
                    return;
                }
                if (cmbMaNV.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập nhân viên", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cmbMaNV.Focus();
                    return;
                }
                if (cmbMaKH.Text.Length == 0)
                {
                    MessageBox.Show("Bạn phải nhập khách hàng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cmbMaKH.Focus();
                    return;
                }
                sql = "INSERT INTO hoa_don_ban(SoHDB, MaNV, Ngayban, makhach, TongTien) VALUES(N'" + txtSoHDB.Text.Trim() + "', N'" + cmbMaNV.SelectedValue + "', N'" +

                      txtNgayBan.Text.Trim() + "',N'" +
                      cmbMaKH.SelectedValue + "'," + txtTongtien.Text + ")";
                //MessageBox.Show(sql);
                DAO.RunSql(sql);
            }
            // Lưu thông tin của các mặt hàng
            if (cmbMabinh.Text.Trim().Length == 0)
            {
                MessageBox.Show("Bạn phải nhập mã hàng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                cmbMabinh.Focus();
                return;
            }
            if ((txtSoluong.Text.Trim().Length == 0) || (txtSoluong.Text == "0"))
            {
                MessageBox.Show("Bạn phải nhập số lượng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtSoluong.Text = "";
                txtSoluong.Focus();
                return;
            }
            if (txtGiamgia.Text.Trim().Length == 0)
            {
                MessageBox.Show("Bạn phải nhập giảm giá", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtGiamgia.Focus();
                return;
            }
            sql = "SELECT Mabinh FROM Chi_tiet_hoa_don_ban WHERE Mabinh=N'" + cmbMabinh.SelectedValue + "' AND SoHDB = N'" + txtSoHDB.Text.Trim() + "'";
            if (DAO.CheckKey(sql))
            {
                MessageBox.Show("Mã hàng này đã có, bạn phải nhập mã khác", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ResetValuesHang();
                cmbMabinh.Focus();
                return;
            }
            // Kiểm tra xem số lượng hàng trong kho còn đủ để cung cấp không?
            sl = Convert.ToDouble(DAO.GetFieldValues("SELECT SoLuong FROM DM_Binh_ga WHERE Mabinh = N'" + cmbMabinh.SelectedValue + "'"));
            if (Convert.ToDouble(txtSoluong.Text) > sl)
            {
                MessageBox.Show("Số lượng mặt hàng này chỉ còn " + sl, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtSoluong.Text = "";
                txtSoluong.Focus();
                return;
            }
            sql = "INSERT INTO Chi_tiet_hoa_don_ban(SoHDB,Mabinh,Soluong, Giamgia,Thanhtien) VALUES(N'" + txtSoHDB.Text + "',N'"
                  + cmbMabinh.SelectedValue + "'," + txtSoluong.Text + "," + txtGiamgia.Text + "," + txtThanhtien.Text + ")";
            //MessageBox.Show(sql);
            DAO.RunSql(sql);
            Load_DataGridViewChitiet();
            // Cập nhật lại số lượng của mặt hàng vào bảng DM_Binh_ga
            SLcon = sl - Convert.ToDouble(txtSoluong.Text);
            sql   = "UPDATE DM_Binh_ga SET Soluong =" + SLcon + " WHERE Mabinh= N'" + cmbMabinh.SelectedValue + "'";
            DAO.RunSql(sql);

            //Cập nhật lại tổng tiền cho hóa đơn bán


            tong    = Int32.Parse(DAO.GetFieldValues("SELECT tongtien FROM hoa_don_ban WHERE SoHDB = N'" + txtSoHDB.Text + "'"));
            Tongmoi = tong + Convert.ToDouble(txtThanhtien.Text);
            sql     = "UPDATE Hoa_don_ban SET Tongtien =" + Tongmoi + " WHERE SoHDB = N'" + txtSoHDB.Text + "'";
            DAO.RunSql(sql);
            txtTongtien.Text = Tongmoi.ToString();
            labelChuyen.Text = "Bằng chữ: " + DAO.ChuyenSoSangChu(Tongmoi.ToString());
            ResetValuesHang();

            //btnInhoadon = true;
        }