protected void Page_Load(object sender, EventArgs e) { Literal title = (Literal)Master.FindControl("pageTitle"); title.Text = "Administration"; endDate = today.ToShortDateString(); string[] temp = endDate.Split('/'); endTime = today.ToString("t"); // endDate = temp[0] + "/" + temp[1] + "/" + temp[2]; endDate = temp[1] + "/" + temp[0] + "/" + temp[2]; DateTime startDateD = reusable_Methods.CreateDateTime(startDate + " " + startTime); DateTime endDateD = reusable_Methods.CreateDateTime(endDate + " " + endTime); int total = GetTotalOfPosts(startDateD, endDateD); finalPie = GetDataForPie(total); GenerateSatistics(startDateD, endDateD); GetNmbersInGroupsValues(startDateD, endDateD); }
public void AddEventPost(string sessionMemberID, string startDate, string endDate, string name, string host, string venue, int groupID, string details, string type) { memberID = sessionMemberID; StringBuilder htmlText = new StringBuilder(); Member aMember = new Member(memberID); Group aGroup = new Group(groupID); PostDAL postDAL = new PostDAL(); Reusable_Methods reusable_Methods = new Reusable_Methods(); /* * NEEDS ATTENTION !!!!!!!!! * * */ DateTime startDateD = reusable_Methods.CreateDateTime(startDate); DateTime endDateD = reusable_Methods.CreateDateTime(endDate); /* * END NEEDS ATTENTION !!!!!!!!! */ //DateTime startDateD = reusable_Methods.FormatDateFromDateTimePicker(startDate); // DateTime endDateD = reusable_Methods.FormatDateFromDateTimePicker(endDate); Event_Post aEvent_Post = new Event_Post(name, details, venue, startDateD, endDateD, host, type); int postId = postDAL.InsertEvent(aEvent_Post, aGroup, aMember); #region GET POST ArrayPosts = bl.GetASinglePost(postId); int count = ArrayPosts.Count; for (int i = 0; i < count; ++i) { OpenWrapper(i); #region EVENT POST GetEventPosts(); #endregion CloseWrapper(); } #endregion string postToClients = concatinater.ToString(); //Updating all Clients Clients.insertEvent(Context.ConnectionId, postToClients, groupID); }
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; }
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; }
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; }
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); }
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); }
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); }