PageRenderTime 30ms CodeModel.GetById 12ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/projects/PigeonCms.Core/BLL/Customer.cs

http://pigeoncms.googlecode.com/
C# | 132 lines | 115 code | 14 blank | 3 comment | 0 complexity | ee2d133dc160e11e89236be9ac92be25 MD5 | raw file
  1using System;
  2using System.Data;
  3using System.Configuration;
  4using System.Web;
  5using System.Web.Security;
  6using System.Web.UI;
  7using System.Web.UI.WebControls;
  8using System.Web.UI.WebControls.WebParts;
  9using System.Web.UI.HtmlControls;
 10using System.Diagnostics;
 11using System.ComponentModel;
 12using PigeonCms;
 13
 14namespace PigeonCms
 15{
 16    [DebuggerDisplay("Id={id}, OwnerUser={ownerUser}, FromUser={fromUser}, ToUser={ToUser}, Content={content}")]
 17    public class Customer: ITable
 18    {
 19        private int id = 0;
 20        /// <summary>
 21        /// IDENTITY Id as PKey
 22        /// </summary>
 23        [DataObjectField(true)]
 24        public int Id
 25        {
 26            [DebuggerStepThrough()]
 27            get { return id; }
 28            [DebuggerStepThrough()]
 29            set { id = value; }
 30        }
 31
 32        private string companyName = "";
 33        public string CompanyName
 34        {
 35            [DebuggerStepThrough()]
 36            get { return companyName; }
 37            [DebuggerStepThrough()]
 38            set { companyName = value; }
 39        }
 40
 41        private string vat = "";
 42        public string Vat
 43        {
 44            [DebuggerStepThrough()]
 45            get { return vat; }
 46            [DebuggerStepThrough()]
 47            set { vat = value; }
 48        }
 49
 50        private DateTime dateInserted;
 51        public DateTime DateInserted
 52        {
 53            [DebuggerStepThrough()]
 54            get { return dateInserted; }
 55            [DebuggerStepThrough()]
 56            set { dateInserted = value; }
 57        }
 58
 59        private string userInserted = "";
 60        public string UserInserted
 61        {
 62            [DebuggerStepThrough()]
 63            get { return userInserted; }
 64            [DebuggerStepThrough()]
 65            set { userInserted = value; }
 66        }
 67
 68        private DateTime dateUpdated;
 69        public DateTime DateUpdated
 70        {
 71            [DebuggerStepThrough()]
 72            get { return dateUpdated; }
 73            [DebuggerStepThrough()]
 74            set { dateUpdated = value; }
 75        }
 76
 77        private string userUpdated = "";
 78        public string UserUpdated
 79        {
 80            [DebuggerStepThrough()]
 81            get { return userUpdated; }
 82            [DebuggerStepThrough()]
 83            set { userUpdated = value; }
 84        }
 85
 86    }
 87
 88
 89    [Serializable]
 90    public class CustomersFilter
 91    {
 92        private int id = 0;
 93        private string companyNameLike = "";
 94        private string vat = "";
 95        private string vatLike = "";
 96
 97        [DataObjectField(true)]
 98        public int Id
 99        {
100            [DebuggerStepThrough()]
101            get { return id; }
102            [DebuggerStepThrough()]
103            set { id = value; }
104        }
105
106        public string CompanyNameLike
107        {
108            [DebuggerStepThrough()]
109            get { return companyNameLike; }
110            [DebuggerStepThrough()]
111            set { companyNameLike = value; }
112        }
113
114        [DataObjectField(false)]
115        public string Vat
116        {
117            [DebuggerStepThrough()]
118            get { return vat; }
119            [DebuggerStepThrough()]
120            set { vat = value; }
121        }
122
123        [DataObjectField(false)]
124        public string VatLike
125        {
126            [DebuggerStepThrough()]
127            get { return vatLike; }
128            [DebuggerStepThrough()]
129            set { vatLike = value; }
130        }
131    }
132}