Esempio n. 1
0
        public void execute(SPSite site, string data)
        {
            WebAppId = site.WebApplication.Id;
            try
            {
                using (SqlConnection cn = CreateConnection())
                {
                    TimesheetAPI.CheckNonTeamMemberAllocation(site.RootWeb, base.TSUID.ToString(), cn.ConnectionString, data);

                    if (sErrors != "")
                    {
                        bErrors = true;
                    }
                }
            }
            catch (Exception ex)
            {
                bErrors = true;
                sErrors = "Error: " + ex.Message;
            }
            finally
            {
                if (site != null)
                {
                    site.Dispose();
                }
                data = null;
            }
        }