Пример #1
0
        public int GetCpsInformationByOwnerUserID(ref string ReturnDescription)
        {
            if ((this.SiteID < 0L) || (this.OwnerUserID < 0L))
            {
                throw new Exception("Cps 尚未初始化 SiteID、 OwnerUserID 变量,无法获取信息");
            }
            int returnValue = -1;

            ReturnDescription = "";
            Cps cps = new Cps();

            this.Clone(cps);
            if (Procedures.P_GetCpsInformationByOwnerUserID(this.SiteID, this.OwnerUserID, ref this.ID, ref this.Name, ref this.DateTime, ref this.Url, ref this.LogoUrl, ref this.BonusScale, ref this.ON, ref this.Company, ref this.Address, ref this.PostCode, ref this.ResponsiblePerson, ref this.ContactPerson, ref this.Telephone, ref this.Fax, ref this.Mobile, ref this.Email, ref this.QQ, ref this.ServiceTelephone, ref this.MD5Key, ref this.Type, ref this.ParentID, ref this.DomainName, ref returnValue, ref ReturnDescription) < 0)
            {
                cps.Clone(this);
                ReturnDescription = "数据库读写错误";
                return(-1);
            }
            if (returnValue < 0)
            {
                cps.Clone(this);
                return(returnValue);
            }
            return(0);
        }
Пример #2
0
 public void Clone(Cps cps)
 {
     cps.ID                = this.ID;
     cps.SiteID            = this.SiteID;
     cps.OwnerUserID       = this.OwnerUserID;
     cps.Name              = this.Name;
     cps.DateTime          = this.DateTime;
     cps.Url               = this.Url;
     cps.LogoUrl           = this.LogoUrl;
     cps.BonusScale        = this.BonusScale;
     cps.ON                = this.ON;
     cps.Company           = this.Company;
     cps.Address           = this.Address;
     cps.PostCode          = this.PostCode;
     cps.ResponsiblePerson = this.ResponsiblePerson;
     cps.ContactPerson     = this.ContactPerson;
     cps.Telephone         = this.Telephone;
     cps.Fax               = this.Fax;
     cps.Mobile            = this.Mobile;
     cps.Email             = this.Email;
     cps.QQ                = this.QQ;
     cps.ServiceTelephone  = this.ServiceTelephone;
     cps.MD5Key            = this.MD5Key;
     cps.Type              = this.Type;
     cps.DomainName        = this.DomainName;
     cps.ParentID          = this.ParentID;
     cps.OperatorID        = this.OperatorID;
     cps.CommendID         = this.CommendID;
     cps.Content           = this.Content;
     cps.User              = this.User;
 }
Пример #3
0
 public Users(long siteid)
 {
     this.Site = new Sites();
     this.HeadUrl = "";
     this.cps = new Cps(this);
     this.Competences = new Competences(this);
     this.SiteID = siteid;
     this._id = -1L;
     this.Name = "";
     this.NickName = "";
     this.RealityName = "";
     this.Password = "";
     this.PasswordAdv = "";
     this.Sex = "男";
     this.BirthDay = DateTime.Parse("1980-01-01");
     this.IDCardNumber = "";
     this.CityID = 1;
     this.Address = "";
     this.Email = "";
     this.isEmailValided = false;
     this.QQ = "";
     this.isQQValided = false;
     this.Telephone = "";
     this.Mobile = "";
     this.isMobileValided = false;
     this.isPrivacy = false;
     this.isCanLogin = true;
     this.RegisterTime = DateTime.Now;
     this.LastLoginTime = DateTime.Now;
     try
     {
         this.LastLoginIP = HttpContext.Current.Request.UserHostAddress;
     }
     catch
     {
         this.LastLoginIP = "";
     }
     this.LoginCount = 0;
     this.UserType = 1;
     this.BankType = 1;
     this.BankName = "";
     this.BankCardNumber = "";
     this.Balance = 0.0;
     this.cardPasswordM = 0.0;
     this.Freeze = 0.0;
     this.ScoringOfSelfBuy = 0.0;
     this.ScoringOfCommendBuy = 0.0;
     this.Scoring = 0.0;
     this.Level = 0;
     this.CommenderID = -1L;
     this.CpsID = -1L;
     this.isAlipayCps = false;
     this.Bonus = 0.0;
     this.Reward = 0.0;
     this.AlipayID = "";
     this.AlipayName = "";
     this.isAlipayNameValided = false;
     this.Memo = "";
     this.BonusThisMonth = 0.0;
     this.BonusAllow = 0.0;
     this.BonusUse = 0.0;
     this.PromotionMemberBonusScale = 0.0;
     this.PromotionSiteBonusScale = 0.0;
     this.OwnerSites = "";
     this.ComeFrom = 0;
     this.IsCrossLogin = false;
     this.VisitSource = "";
     this.HeadUrl = "";
     this.SecurityQuestion = "";
     this.SecurityAnswer = "";
     this.FriendList = "";
     this.Reason = "";
 }
Пример #4
0
 public int GetCpsInformationByOwnerUserID(ref string ReturnDescription)
 {
     if ((this.SiteID < 0L) || (this.OwnerUserID < 0L))
     {
         throw new Exception("Cps 尚未初始化 SiteID、 OwnerUserID 变量,无法获取信息");
     }
     int returnValue = -1;
     ReturnDescription = "";
     Cps cps = new Cps();
     this.Clone(cps);
     if (Procedures.P_GetCpsInformationByOwnerUserID(this.SiteID, this.OwnerUserID, ref this.ID, ref this.Name, ref this.DateTime, ref this.Url, ref this.LogoUrl, ref this.BonusScale, ref this.ON, ref this.Company, ref this.Address, ref this.PostCode, ref this.ResponsiblePerson, ref this.ContactPerson, ref this.Telephone, ref this.Fax, ref this.Mobile, ref this.Email, ref this.QQ, ref this.ServiceTelephone, ref this.MD5Key, ref this.Type, ref this.ParentID, ref this.DomainName, ref returnValue, ref ReturnDescription) < 0)
     {
         cps.Clone(this);
         ReturnDescription = "数据库读写错误";
         return -1;
     }
     if (returnValue < 0)
     {
         cps.Clone(this);
         return returnValue;
     }
     return 0;
 }
Пример #5
0
 public void Clone(Cps cps)
 {
     cps.ID = this.ID;
     cps.SiteID = this.SiteID;
     cps.OwnerUserID = this.OwnerUserID;
     cps.Name = this.Name;
     cps.DateTime = this.DateTime;
     cps.Url = this.Url;
     cps.LogoUrl = this.LogoUrl;
     cps.BonusScale = this.BonusScale;
     cps.ON = this.ON;
     cps.Company = this.Company;
     cps.Address = this.Address;
     cps.PostCode = this.PostCode;
     cps.ResponsiblePerson = this.ResponsiblePerson;
     cps.ContactPerson = this.ContactPerson;
     cps.Telephone = this.Telephone;
     cps.Fax = this.Fax;
     cps.Mobile = this.Mobile;
     cps.Email = this.Email;
     cps.QQ = this.QQ;
     cps.ServiceTelephone = this.ServiceTelephone;
     cps.MD5Key = this.MD5Key;
     cps.Type = this.Type;
     cps.DomainName = this.DomainName;
     cps.ParentID = this.ParentID;
     cps.OperatorID = this.OperatorID;
     cps.CommendID = this.CommendID;
     cps.Content = this.Content;
     cps.User = this.User;
 }