private void Save()
        {
            PhieuNhap itemSave = new PhieuNhap();

            //thong tin ban hang
            itemSave.PhieuNhapID = PhieuNhapController.TaoMaPhieuNhap("PN", 10);
            itemSave.NgayNhap    = dateEditNgayBan.DateTime;
            if (lookUpEditNhaCungCap.EditValue != null)
            {
                itemSave.NhaCungCapID  = lookUpEditNhaCungCap.EditValue.ToString();
                itemSave.TenNhaCungCap = lookUpEditNhaCungCap.Text;
            }
            itemSave.MaPhieuNCC  = txtPhieuNhaCC.Text;
            itemSave.GhiChu      = txtGhiChu.Text;
            itemSave.NhanVienID  = txtNhanVien.Text;
            itemSave.TenNhanVien = Utility.NguoiSuDung.TenNguoiDung;
            itemSave.LastUpdate  = DateTime.Now;
            //thong tin thanh toan
            itemSave.TienHang  = txtTienHang.Value;
            itemSave.ThanhToan = txtThanhToan.Value;
            itemSave.ConNo     = txtConNo.Value;
            //lay thong tin chi tiet don hang
            List <PhieuNhapChiTiet> PhieuNhapItems = new List <PhieuNhapChiTiet>();

            if (tblDonHangChiTiet != null)
            {
                foreach (DataRow item in tblDonHangChiTiet.Rows)
                {
                    PhieuNhapChiTiet newitem = new PhieuNhapChiTiet();
                    newitem.PhieuNhapID = itemSave.PhieuNhapID;
                    newitem.SanPhamID   = item["SanPhamID"].ToString();
                    newitem.TenSanPham  = item["TenSanPham"].ToString();
                    newitem.Size        = item["Size"].ToString();
                    newitem.SoLuong     = Convert.ToInt32(item["SoLuong"].ToString());
                    newitem.DonGia      = Convert.ToDecimal(item["DonGia"].ToString());
                    newitem.CreateDate  = DateTime.Now;
                    //newitem.TonKho = SanPhamController.GetTonKho(newitem.SanPhamID);
                    PhieuNhapItems.Add(newitem);
                }
            }
            PhieuNhapController.Add(itemSave, PhieuNhapItems);
        }