PageRenderTime 33ms CodeModel.GetById 14ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

/projects/PigeonCms.Core/Modules/PigeonCms.MemberEditor/MemberEditorControl.cs

http://pigeoncms.googlecode.com/
C# | 226 lines | 192 code | 34 blank | 0 comment | 0 complexity | 6ba03ef6a012ad4c29cf54be86921407 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 System.IO;
 13using System.Collections.Generic;
 14using System.Threading;
 15using System.Text;
 16using PigeonCms;
 17using System.Web.Routing;
 18
 19
 20namespace PigeonCms
 21{
 22    public class MemberEditorControl: PigeonCms.BaseModuleControl
 23    {
 24
 25        #region public fields
 26
 27        private bool loginAfterCreate = false;
 28        public bool LoginAfterCreate
 29        {
 30            get { return GetBoolParam("LoginAfterCreate", loginAfterCreate); }
 31            set { loginAfterCreate = value; }
 32        }
 33
 34        private bool needApprovation = false;
 35        public bool NeedApprovation
 36        {
 37            get { return GetBoolParam("NeedApprovation", needApprovation); }
 38            set { needApprovation = value; }
 39        }
 40
 41        private bool newRoleAsUser = false;
 42        public bool NewRoleAsUser
 43        {
 44            get { return GetBoolParam("NewRoleAsUser", newRoleAsUser); }
 45            set { newRoleAsUser = value; }
 46        }
 47
 48        private string redirectUrl = "";
 49        public string RedirectUrl
 50        {
 51            get { return GetStringParam("RedirectUrl", redirectUrl); }
 52            set { redirectUrl = value; }
 53        }
 54
 55        private string newUserSuffix = "";
 56        public string NewUserSuffix
 57        {
 58            get { return GetStringParam("NewUserSuffix", newUserSuffix); }
 59            set { newUserSuffix = value; }
 60        }
 61
 62        private string defaultRoles = "";
 63        public string DefaultRoles
 64        {
 65            get 
 66            { 
 67                return GetStringParam("DefaultRoles", "") + defaultRoles; 
 68            }
 69            set { defaultRoles = value; }
 70        }
 71
 72        private string defaultAccessCode = "";
 73        public string DefaultAccessCode
 74        {
 75            get { return GetStringParam("DefaultAccessCode", defaultAccessCode); }
 76            set { defaultAccessCode = value; }
 77        }
 78
 79        private int defaultAccessLevel = 0;
 80        public int DefaultAccessLevel
 81        {
 82            get { return GetIntParam("DefaultAccessLevel", defaultAccessLevel); }
 83            set { defaultAccessLevel = value; }
 84        }
 85
 86        private bool sendEmailNotificationToUser = false;
 87        public bool SendEmailNotificationToUser
 88        {
 89            get { return GetBoolParam("SendEmailNotificationToUser", sendEmailNotificationToUser); }
 90            set { sendEmailNotificationToUser = value; }
 91        }
 92
 93        private bool sendEmailNotificationToAdmin = false;
 94        public bool SendEmailNotificationToAdmin
 95        {
 96            get { return GetBoolParam("SendEmailNotificationToAdmin", sendEmailNotificationToAdmin); }
 97            set { sendEmailNotificationToAdmin = value; }
 98        }
 99
100        private string adminNotificationEmail = "";
101        public string AdminNotificationEmail
102        {
103            get { return GetStringParam("AdminNotificationEmail", adminNotificationEmail); }
104            set { adminNotificationEmail = value; }
105        }
106
107        private string notificationEmailPageName = "";
108        public string NotificationEmailPageName
109        {
110            get { return GetStringParam("NotificationEmailPageName", notificationEmailPageName); }
111            set { notificationEmailPageName = value; }
112        }
113
114        #endregion
115
116
117        #region fields to show
118
119        private bool showFieldSex = false;
120        public bool ShowFieldSex
121        {
122            get { return GetBoolParam("ShowFieldSex", showFieldSex); }
123            set { showFieldSex = value; }
124        }
125
126        private bool showFieldCompanyName = false;
127        public bool ShowFieldCompanyName
128        {
129            get { return GetBoolParam("ShowFieldCompanyName", showFieldCompanyName); }
130            set { showFieldCompanyName = value; }
131        }
132
133        private bool showFieldVat = false;
134        public bool ShowFieldVat
135        {
136            get { return GetBoolParam("ShowFieldVat", showFieldVat); }
137            set { showFieldVat = value; }
138        }
139
140        private bool showFieldSsn = false;
141        public bool ShowFieldSsn
142        {
143            get { return GetBoolParam("ShowFieldSsn", showFieldSsn); }
144            set { showFieldSsn = value; }
145        }
146
147        private bool showFieldFirstName = false;
148        public bool ShowFieldFirstName
149        {
150            get { return GetBoolParam("ShowFieldFirstName", showFieldFirstName); }
151            set { showFieldFirstName = value; }
152        }
153
154        private bool showFieldSecondName = false;
155        public bool ShowFieldSecondName
156        {
157            get { return GetBoolParam("ShowFieldSecondName", showFieldSecondName); }
158            set { showFieldSecondName = value; }
159        }
160
161        private bool showFieldAddress1 = false;
162        public bool ShowFieldAddress1
163        {
164            get { return GetBoolParam("ShowFieldAddress1", showFieldAddress1); }
165            set { showFieldAddress1 = value; }
166        }
167
168        private bool showFieldAddress2 = false;
169        public bool ShowFieldAddress2
170        {
171            get { return GetBoolParam("ShowFieldAddress2", showFieldAddress2); }
172            set { showFieldAddress2 = value; }
173        }
174
175        private bool showFieldCity = false;
176        public bool ShowFieldCity
177        {
178            get { return GetBoolParam("ShowFieldCity", showFieldCity); }
179            set { showFieldCity = value; }
180        }
181
182        private bool showFieldState = false;
183        public bool ShowFieldState
184        {
185            get { return GetBoolParam("ShowFieldState", showFieldState); }
186            set { showFieldState = value; }
187        }
188
189        private bool showFieldZipCode = false;
190        public bool ShowFieldZipCode
191        {
192            get { return GetBoolParam("ShowFieldZipCode", showFieldZipCode); }
193            set { showFieldZipCode = value; }
194        }
195
196        private bool showFieldNation = false;
197        public bool ShowFieldNation
198        {
199            get { return GetBoolParam("ShowFieldNation", showFieldNation); }
200            set { showFieldNation = value; }
201        }
202
203        private bool showFieldTel1 = false;
204        public bool ShowFieldTel1
205        {
206            get { return GetBoolParam("ShowFieldTel1", showFieldTel1); }
207            set { showFieldTel1 = value; }
208        }
209
210        private bool showFieldMobile1 = false;
211        public bool ShowFieldMobile1
212        {
213            get { return GetBoolParam("ShowFieldMobile1", showFieldMobile1); }
214            set { showFieldMobile1 = value; }
215        }
216
217        private bool showFieldWebsite1 = false;
218        public bool ShowFieldWebsite1
219        {
220            get { return GetBoolParam("ShowFieldWebsite1", showFieldWebsite1); }
221            set { showFieldWebsite1 = value; }
222        }
223
224        #endregion
225    }
226}