/pigeoncms/App_Code/PageStats.cs
http://pigeoncms.googlecode.com/ · C# · 198 lines · 145 code · 22 blank · 31 comment · 0 complexity · c2d16c8f29180dfc0aec4641d324ed8d MD5 · raw file
- using System;
- using System.Data;
- using System.Configuration;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using System.Diagnostics;
- using System.ComponentModel;
- using System.IO;
- using System.Collections.Generic;
- using System.Threading;
-
-
- namespace PigeonCms
- {
- public class PageStatsReport
- {
- private string groupName = "";
- private int pageId = 0;
- private string action = "";
- private int statValue = 0;
-
- /// <summary>
- /// ex: agriturismo
- /// </summary>
- [DataObjectField(true)]
- public string GroupName
- {
- [DebuggerStepThrough()]
- get { return groupName; }
- [DebuggerStepThrough()]
- set { groupName = value; }
- }
-
- /// <summary>
- /// Id of the web page ex: 13 (agriturId)
- /// </summary>
- [DataObjectField(true)]
- public int PageId
- {
- [DebuggerStepThrough()]
- get { return pageId; }
- [DebuggerStepThrough()]
- set { pageId = value; }
- }
-
- /// <summary>
- /// ex: page access|www click|email click
- /// </summary>
- [DataObjectField(true)]
- public string Action
- {
- [DebuggerStepThrough()]
- get { return action; }
- [DebuggerStepThrough()]
- set { action = value; }
- }
-
- public int StatValue
- {
- [DebuggerStepThrough()]
- get { return statValue; }
- [DebuggerStepThrough()]
- set { statValue = value; }
- }
- }
-
- /// <summary>
- /// a record in PageStats table
- /// </summary>
- public class PageStatsRecord
- {
- private int statId = 0;
- private string groupName = "";
- private int pageId = 0;
- private string action = "";
- private DateTime insDate;
- private string clientIp = "";
- private string sessionId = "";
-
-
- /// <summary>
- /// Automatic Id as PKey
- /// </summary>
- [DataObjectField(true)]
- public int StatId
- {
- [DebuggerStepThrough()]
- get { return statId; }
- [DebuggerStepThrough()]
- set { statId = value; }
- }
-
- /// <summary>
- /// ex: agriturismo
- /// </summary>
- public string GroupName
- {
- [DebuggerStepThrough()]
- get { return groupName; }
- [DebuggerStepThrough()]
- set { groupName = value; }
- }
-
- /// <summary>
- /// Id of the web page ex: 13 (agriturId)
- /// </summary>
- public int PageId
- {
- [DebuggerStepThrough()]
- get { return pageId; }
- [DebuggerStepThrough()]
- set { pageId = value; }
- }
-
- /// <summary>
- /// ex: page access|www click|email click
- /// </summary>
- public string Action
- {
- [DebuggerStepThrough()]
- get { return action; }
- [DebuggerStepThrough()]
- set { action = value; }
- }
-
- /// <summary>
- /// Data di inserimento del record
- /// </summary>
- public DateTime InsDate
- {
- [DebuggerStepThrough()]
- get { return insDate; }
- [DebuggerStepThrough()]
- set { insDate = value; }
- }
-
- public string ClientIp
- {
- [DebuggerStepThrough()]
- get { return clientIp; }
- [DebuggerStepThrough()]
- set { clientIp = value; }
- }
-
- public string SessionId
- {
- [DebuggerStepThrough()]
- get { return sessionId; }
- [DebuggerStepThrough()]
- set { sessionId = value; }
- }
- }
-
-
- /// <summary>
- /// Filter on pageStats table used in search
- /// </summary>
- /// <remarks></remarks>
- [Serializable]
- public class PageStatsFilter
- {
- #region fields definition
-
- private string groupName = "";
- private int pageId = 0;
- private string action = "";
- #endregion
-
- public string GroupName
- {
- [DebuggerStepThrough()]
- get { return groupName; }
- [DebuggerStepThrough()]
- set { groupName = value; }
- }
-
- public int PageId
- {
- [DebuggerStepThrough()]
- get { return pageId; }
- [DebuggerStepThrough()]
- set { pageId = value; }
- }
-
- public string Action
- {
- [DebuggerStepThrough()]
- get { return action; }
- [DebuggerStepThrough()]
- set { action = value; }
- }
-
- }
- }