Пример #1
0
        public static string RefreshPie(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();
            DateTime startDateD = reusable_Methods.CreateDateTime(startDate);
            DateTime endDateD = reusable_Methods.CreateDateTime(endDate);

            WebForm6 thisWebForm = new WebForm6();
            int total = thisWebForm.GetTotalOfPosts(startDateD, endDateD);

            string result = thisWebForm.GetDataForPie(total);

            return result;
        }
Пример #2
0
        public static string[] RefreshNmbersInGroups(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();

            DateTime startDateD = reusable_Methods.CreateDateTime(startDate);
            DateTime endDateD = reusable_Methods.CreateDateTime(endDate);

            WebForm6 thisWebForm = new WebForm6();
            List<Group> groups = thisWebForm.GetNmbersInGroupsValues(startDateD, endDateD);
            string[] result = new string[2];
            result[0] = thisWebForm.numberOfMembers;
            result[1] = thisWebForm.GroupOfNames;

            return result;
        }
Пример #3
0
        public static string[] UpdateStats(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();
            DateTime startDateD = reusable_Methods.CreateDateTime(startDate);
            DateTime endDateD = reusable_Methods.CreateDateTime(endDate);

            WebForm6 thisWebForm = new WebForm6();
            int total = thisWebForm.GetTotalOfPosts(startDateD, endDateD);

               // string result = thisWebForm.GetDataForPie(total);
            thisWebForm.GenerateSatistics(startDateD, endDateD);
            string[] result = new string[] {thisWebForm.members.ToString(), thisWebForm.posts.ToString(), thisWebForm.messages.ToString(), thisWebForm.reports.ToString(),
                 thisWebForm.blocedMembers.ToString()};

            return result;
        }
Пример #4
0
        public static string RefreshPie(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();
            DateTime         startDateD       = reusable_Methods.CreateDateTime(startDate);
            DateTime         endDateD         = reusable_Methods.CreateDateTime(endDate);


            WebForm6 thisWebForm = new WebForm6();
            int      total       = thisWebForm.GetTotalOfPosts(startDateD, endDateD);

            string result = thisWebForm.GetDataForPie(total);



            return(result);
        }
Пример #5
0
        public static string[] RefreshNmbersInGroups(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();

            DateTime startDateD = reusable_Methods.CreateDateTime(startDate);
            DateTime endDateD   = reusable_Methods.CreateDateTime(endDate);


            WebForm6     thisWebForm = new WebForm6();
            List <Group> groups      = thisWebForm.GetNmbersInGroupsValues(startDateD, endDateD);

            string[] result = new string[2];
            result[0] = thisWebForm.numberOfMembers;
            result[1] = thisWebForm.GroupOfNames;

            return(result);
        }
Пример #6
0
        public static string[] UpdateStats(string startDate, string endDate)
        {
            Reusable_Methods reusable_Methods = new Reusable_Methods();
            DateTime         startDateD       = reusable_Methods.CreateDateTime(startDate);
            DateTime         endDateD         = reusable_Methods.CreateDateTime(endDate);


            WebForm6 thisWebForm = new WebForm6();
            int      total       = thisWebForm.GetTotalOfPosts(startDateD, endDateD);

            // string result = thisWebForm.GetDataForPie(total);
            thisWebForm.GenerateSatistics(startDateD, endDateD);
            string[] result = new string[] { thisWebForm.members.ToString(), thisWebForm.posts.ToString(), thisWebForm.messages.ToString(), thisWebForm.reports.ToString(),
                     thisWebForm.blocedMembers.ToString() };

            return(result);
        }