public void CapNhatLoaiBA()
        {
            int flag = 0;

            int[] index = gridView_LoaiBanAn.GetSelectedRows();
            if (index.Length > 0)
            {
                string maloai  = gridView_LoaiBanAn.GetRowCellValue(index[0], "Maloai").ToString();
                string sucChua = gridView_LoaiBanAn.GetRowCellValue(index[0], "SucChua").ToString();
                if (maloai != null)
                {
                    DTO.LoaiBanAn_DTO loaiBA = new DTO.LoaiBanAn_DTO();
                    loaiBA.MaLoai  = maloai;
                    loaiBA.SucChua = int.Parse(sucChua);
                    flag           = LoaiBanAn_BUS.CapNhatLoaiBA(loaiBA);
                }
            }
            if (flag != 0)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("Cập nhật thành công", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        public void CapNhatLoaiBA()
        {
            int flag = 0;
            int[] index = gridView_LoaiBanAn.GetSelectedRows();
            if (index.Length > 0)
            {

                string maloai = gridView_LoaiBanAn.GetRowCellValue(index[0], "Maloai").ToString();
                string sucChua = gridView_LoaiBanAn.GetRowCellValue(index[0], "SucChua").ToString();
                if (maloai != null)
                {
                    DTO.LoaiBanAn_DTO loaiBA = new DTO.LoaiBanAn_DTO();
                    loaiBA.MaLoai = maloai;
                    loaiBA.SucChua =int.Parse(sucChua);
                    flag = LoaiBanAn_BUS.CapNhatLoaiBA(loaiBA);
                }
            }
            if (flag != 0)
                DevExpress.XtraEditors.XtraMessageBox.Show("Cập nhật thành công", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }