public void DeleteFolder(string listName, string folderName)
 {
     SPSecurity.RunWithElevatedPrivileges(delegate()
        {
        using (SPSite site = new SPSite(this._web.Site.ID))
        {
            using (SPWeb web = site.OpenWeb(this._web.ID))
            {
                SharePointService svr = new SharePointService(web);
                svr.DeleteFolder(listName, folderName);
            }
        }
        });
 }
        /// <summary>
        /// add by caixiang
        /// </summary>
        /// <param name="list"></param>
        /// <param name="dic"></param>
        /// <param name="ids"></param>
        public void UpdateListItems(SPList list, IDictionary dic, int[] ids)
        {
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(SPContext.Current.Site.ID))
                {
                    using (SPWeb web = site.OpenWeb(this._web.ID))
                    {
                        SPList list2 = web.Lists[list.ID];

                        SharePointService svr = new SharePointService(web);
                        foreach (int id in ids)
                        {
                            SPListItem item = list2.GetItemById(id);
                            svr.UpdateListItem(list2, dic, item.ID);
                        }
                    }
                }
            });
        }
        public SPList GetList(string name)
        {
            SPList spList = null;
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(SPContext.Current.Site.ID))
                {
                    using (SPWeb web = site.OpenWeb(this._web.ID))
                    {
                        SharePointService svr = new SharePointService(web);
                        spList = svr.GetList(name);
                    }
                }
            });

            return spList;
        }
        public DataTable QueryDataTable(SPList list, CamlExpression expr, int rowLimit , params OrderPair[] orders)
        {
            DataTable data = null;
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(SPContext.Current.Site.ID))
                {
                    using (SPWeb web = site.OpenWeb(this._web.ID))
                    {
                        SPList list2 = web.Lists[list.ID];

                        SharePointService svr = new SharePointService(web);
                        data = svr.QueryDataTable(list2, expr, rowLimit, orders);
                    }
                }
            });
            return data;
        }
        public SPListItem GetItem(SPList list, CamlExpression expr)
        {
            SPListItem item = null;
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(SPContext.Current.Site.ID))
                {
                    using (SPWeb web = site.OpenWeb(this._web.ID))
                    {
                        SPList list2 = web.Lists[list.ID];

                        SharePointService svr = new SharePointService(web);
                        item = svr.GetItem(list2, expr);
                    }
                }
            });

            return item;
        }