protected void lbtnDelete_Click(object sender, EventArgs e)
        {
            List <object> fieldValues = ASPxGridView1_Product.GetSelectedFieldValues(new string[] { "ID" });

            foreach (var item in fieldValues)
            {
                _ProductRepo.Remove(Utils.CIntDef(item));
            }
            Response.Redirect("danh-sach-san-pham.aspx");
        }
        private void LoadProduct()
        {
            try
            {
                var list = _ProductRepo.GetListByContainsCode(txtKeyword.Value);

                HttpContext.Current.Session["listProduct"] = list;
                ASPxGridView1_Product.DataSource           = list;
                ASPxGridView1_Product.DataBind();
            }
            catch //(Exception)
            {
                //throw;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            bool isPermission = _UnitDataRepo.checkPermissionPage("danh-sach-san-pham.aspx", Utils.CIntDef(Session["groupId"]), Utils.CIntDef(Session["groupType"]));

            if (!isPermission)
            {
                Response.Write("<script>alert('Bạn không có quyền truy cập vào trang này');location.href='trang-chu.aspx';</script>");
            }
            if (!IsPostBack)
            {
                LoadProduct();
            }
            else
            {
                ASPxGridView1_Product.DataSource = HttpContext.Current.Session["listProduct"];
                ASPxGridView1_Product.DataBind();
            }
        }