/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

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10. using System.Diagnostics;
  11. using System.ComponentModel;
  12. using System.IO;
  13. using System.Collections.Generic;
  14. using System.Threading;
  15. using System.Text;
  16. using PigeonCms;
  17. using System.Web.Routing;
  18. namespace PigeonCms
  19. {
  20. public class MemberEditorControl: PigeonCms.BaseModuleControl
  21. {
  22. #region public fields
  23. private bool loginAfterCreate = false;
  24. public bool LoginAfterCreate
  25. {
  26. get { return GetBoolParam("LoginAfterCreate", loginAfterCreate); }
  27. set { loginAfterCreate = value; }
  28. }
  29. private bool needApprovation = false;
  30. public bool NeedApprovation
  31. {
  32. get { return GetBoolParam("NeedApprovation", needApprovation); }
  33. set { needApprovation = value; }
  34. }
  35. private bool newRoleAsUser = false;
  36. public bool NewRoleAsUser
  37. {
  38. get { return GetBoolParam("NewRoleAsUser", newRoleAsUser); }
  39. set { newRoleAsUser = value; }
  40. }
  41. private string redirectUrl = "";
  42. public string RedirectUrl
  43. {
  44. get { return GetStringParam("RedirectUrl", redirectUrl); }
  45. set { redirectUrl = value; }
  46. }
  47. private string newUserSuffix = "";
  48. public string NewUserSuffix
  49. {
  50. get { return GetStringParam("NewUserSuffix", newUserSuffix); }
  51. set { newUserSuffix = value; }
  52. }
  53. private string defaultRoles = "";
  54. public string DefaultRoles
  55. {
  56. get
  57. {
  58. return GetStringParam("DefaultRoles", "") + defaultRoles;
  59. }
  60. set { defaultRoles = value; }
  61. }
  62. private string defaultAccessCode = "";
  63. public string DefaultAccessCode
  64. {
  65. get { return GetStringParam("DefaultAccessCode", defaultAccessCode); }
  66. set { defaultAccessCode = value; }
  67. }
  68. private int defaultAccessLevel = 0;
  69. public int DefaultAccessLevel
  70. {
  71. get { return GetIntParam("DefaultAccessLevel", defaultAccessLevel); }
  72. set { defaultAccessLevel = value; }
  73. }
  74. private bool sendEmailNotificationToUser = false;
  75. public bool SendEmailNotificationToUser
  76. {
  77. get { return GetBoolParam("SendEmailNotificationToUser", sendEmailNotificationToUser); }
  78. set { sendEmailNotificationToUser = value; }
  79. }
  80. private bool sendEmailNotificationToAdmin = false;
  81. public bool SendEmailNotificationToAdmin
  82. {
  83. get { return GetBoolParam("SendEmailNotificationToAdmin", sendEmailNotificationToAdmin); }
  84. set { sendEmailNotificationToAdmin = value; }
  85. }
  86. private string adminNotificationEmail = "";
  87. public string AdminNotificationEmail
  88. {
  89. get { return GetStringParam("AdminNotificationEmail", adminNotificationEmail); }
  90. set { adminNotificationEmail = value; }
  91. }
  92. private string notificationEmailPageName = "";
  93. public string NotificationEmailPageName
  94. {
  95. get { return GetStringParam("NotificationEmailPageName", notificationEmailPageName); }
  96. set { notificationEmailPageName = value; }
  97. }
  98. #endregion
  99. #region fields to show
  100. private bool showFieldSex = false;
  101. public bool ShowFieldSex
  102. {
  103. get { return GetBoolParam("ShowFieldSex", showFieldSex); }
  104. set { showFieldSex = value; }
  105. }
  106. private bool showFieldCompanyName = false;
  107. public bool ShowFieldCompanyName
  108. {
  109. get { return GetBoolParam("ShowFieldCompanyName", showFieldCompanyName); }
  110. set { showFieldCompanyName = value; }
  111. }
  112. private bool showFieldVat = false;
  113. public bool ShowFieldVat
  114. {
  115. get { return GetBoolParam("ShowFieldVat", showFieldVat); }
  116. set { showFieldVat = value; }
  117. }
  118. private bool showFieldSsn = false;
  119. public bool ShowFieldSsn
  120. {
  121. get { return GetBoolParam("ShowFieldSsn", showFieldSsn); }
  122. set { showFieldSsn = value; }
  123. }
  124. private bool showFieldFirstName = false;
  125. public bool ShowFieldFirstName
  126. {
  127. get { return GetBoolParam("ShowFieldFirstName", showFieldFirstName); }
  128. set { showFieldFirstName = value; }
  129. }
  130. private bool showFieldSecondName = false;
  131. public bool ShowFieldSecondName
  132. {
  133. get { return GetBoolParam("ShowFieldSecondName", showFieldSecondName); }
  134. set { showFieldSecondName = value; }
  135. }
  136. private bool showFieldAddress1 = false;
  137. public bool ShowFieldAddress1
  138. {
  139. get { return GetBoolParam("ShowFieldAddress1", showFieldAddress1); }
  140. set { showFieldAddress1 = value; }
  141. }
  142. private bool showFieldAddress2 = false;
  143. public bool ShowFieldAddress2
  144. {
  145. get { return GetBoolParam("ShowFieldAddress2", showFieldAddress2); }
  146. set { showFieldAddress2 = value; }
  147. }
  148. private bool showFieldCity = false;
  149. public bool ShowFieldCity
  150. {
  151. get { return GetBoolParam("ShowFieldCity", showFieldCity); }
  152. set { showFieldCity = value; }
  153. }
  154. private bool showFieldState = false;
  155. public bool ShowFieldState
  156. {
  157. get { return GetBoolParam("ShowFieldState", showFieldState); }
  158. set { showFieldState = value; }
  159. }
  160. private bool showFieldZipCode = false;
  161. public bool ShowFieldZipCode
  162. {
  163. get { return GetBoolParam("ShowFieldZipCode", showFieldZipCode); }
  164. set { showFieldZipCode = value; }
  165. }
  166. private bool showFieldNation = false;
  167. public bool ShowFieldNation
  168. {
  169. get { return GetBoolParam("ShowFieldNation", showFieldNation); }
  170. set { showFieldNation = value; }
  171. }
  172. private bool showFieldTel1 = false;
  173. public bool ShowFieldTel1
  174. {
  175. get { return GetBoolParam("ShowFieldTel1", showFieldTel1); }
  176. set { showFieldTel1 = value; }
  177. }
  178. private bool showFieldMobile1 = false;
  179. public bool ShowFieldMobile1
  180. {
  181. get { return GetBoolParam("ShowFieldMobile1", showFieldMobile1); }
  182. set { showFieldMobile1 = value; }
  183. }
  184. private bool showFieldWebsite1 = false;
  185. public bool ShowFieldWebsite1
  186. {
  187. get { return GetBoolParam("ShowFieldWebsite1", showFieldWebsite1); }
  188. set { showFieldWebsite1 = value; }
  189. }
  190. #endregion
  191. }
  192. }