Exemple #1
0
        public void Clone(Cps cps)
        {
            cps.ID          = ID;
            cps.SiteID      = SiteID;
            cps.OwnerUserID = OwnerUserID;
            cps.Name        = Name;
            cps.DateTime    = DateTime;

            cps.Url     = Url;
            cps.LogoUrl = LogoUrl;

            cps.BonusScale = BonusScale;

            cps.ON = ON;

            cps.Company           = Company;
            cps.Address           = Address;
            cps.PostCode          = PostCode;
            cps.ResponsiblePerson = ResponsiblePerson;
            cps.ContactPerson     = ContactPerson;
            cps.Telephone         = Telephone;
            cps.Fax              = Fax;
            cps.Mobile           = Mobile;
            cps.Email            = Email;
            cps.QQ               = QQ;
            cps.ServiceTelephone = ServiceTelephone;
            cps.MD5Key           = MD5Key;
            cps.Type             = Type;
            cps.DomainName       = DomainName;
            cps.ParentID         = ParentID;
            cps.OperatorID       = OperatorID;
            cps.CommendID        = CommendID;

            cps.Content = Content;

            cps.User = User;
        }
Exemple #2
0
        public int GetCpsInformationByID(ref string ReturnDescription)
        {
            if ((SiteID < 0) || (ID < 0))
            {
                throw new Exception("Cps 尚未初始化 SiteID、 ID 变量,无法获取信息");
            }

            int ReturnValue = -1;

            ReturnDescription = "";

            Cps tp = new Cps();

            Clone(tp);

            int Result = SLS.Dal.Procedures.P_GetCpsInformationByID(PF.ConnectString, SiteID, ID, ref OwnerUserID, ref Name, ref DateTime, ref Url, ref LogoUrl, ref BonusScale, ref ON,
                                                                    ref Company, ref Address, ref PostCode, ref ResponsiblePerson, ref ContactPerson, ref Telephone, ref Fax, ref Mobile, ref Email, ref QQ, ref ServiceTelephone, ref MD5Key,
                                                                    ref Type, ref ParentID, ref DomainName, ref ReturnValue, ref ReturnDescription);

            if (Result < 0)
            {
                tp.Clone(this);

                ReturnDescription = "数据库读写错误";

                return(-1);
            }

            if (ReturnValue < 0)
            {
                tp.Clone(this);

                return(ReturnValue);
            }

            return(0);
        }
Exemple #3
0
        public void Clone(Cps cps)
        {
            cps.ID = ID;
            cps.SiteID = SiteID;
            cps.OwnerUserID = OwnerUserID;
            cps.Name = Name;
            cps.DateTime = DateTime;

            cps.Url = Url;
            cps.LogoUrl = LogoUrl;

            cps.BonusScale = BonusScale;

            cps.ON = ON;

            cps.Company = Company;
            cps.Address = Address;
            cps.PostCode = PostCode;
            cps.ResponsiblePerson = ResponsiblePerson;
            cps.ContactPerson = ContactPerson;
            cps.Telephone = Telephone;
            cps.Fax = Fax;
            cps.Mobile = Mobile;
            cps.Email = Email;
            cps.QQ = QQ;
            cps.ServiceTelephone = ServiceTelephone;
            cps.MD5Key = MD5Key;
            cps.Type = Type;
            cps.DomainName = DomainName;
            cps.ParentID = ParentID;
            cps.OperatorID = OperatorID;
            cps.CommendID = CommendID;

            cps.Content = Content;

            cps.User = User;
        }
Exemple #4
0
        public int GetCpsInformationByID(ref string ReturnDescription)
        {
            if ((SiteID < 0) || (ID < 0))
            {
                throw new Exception("Cps 尚未初始化 SiteID、 ID 变量,无法获取信息");
            }

            int ReturnValue = -1;
            ReturnDescription = "";

            Cps tp = new Cps();
            Clone(tp);

            int Result = SLS.Dal.Procedures.P_GetCpsInformationByID(PF.ConnectString,SiteID, ID, ref OwnerUserID, ref Name, ref DateTime, ref Url, ref LogoUrl, ref BonusScale, ref ON,
                ref Company, ref Address, ref PostCode, ref ResponsiblePerson, ref ContactPerson, ref Telephone, ref Fax, ref Mobile, ref Email, ref QQ, ref ServiceTelephone, ref MD5Key,
                ref Type, ref ParentID, ref DomainName, ref ReturnValue, ref ReturnDescription);

            if (Result < 0)
            {
                tp.Clone(this);

                ReturnDescription = "数据库读写错误";

                return -1;
            }

            if (ReturnValue < 0)
            {
                tp.Clone(this);

                return ReturnValue;
            }

            return 0;
        }
Exemple #5
0
        public Users(long siteid)
        {
            cps = new Cps(this);
            Competences = new Competences(this);


            SiteID = siteid;

            _id = -1;

            Name = "";
            NickName = "";
            RealityName = "";
            Password = "";
            PasswordAdv = "";

            Sex = "男";
            BirthDay = DateTime.Parse("1980-01-01");
            IDCardNumber = "";
            CityID = 1;
            Address = "";
            Email = "";
            isEmailValided = false;
            QQ = "";
            isQQValided = false;
            Telephone = "";
            Mobile = "";
            isMobileValided = false;
            isPrivacy = false;
            isCanLogin = true;
            RegisterTime = DateTime.Now;
            LastLoginTime = DateTime.Now;

            try
            {
                LastLoginIP = System.Web.HttpContext.Current.Request.UserHostAddress;
            }
            catch
            {
                LastLoginIP = "";
            }

            LoginCount = 0;
            UserType = 1;

            BankType = 1;
            BankName = "";
            BankCardNumber = "";

            Balance = 0;
            Freeze = 0;
            ScoringOfSelfBuy = 0;
            ScoringOfCommendBuy = 0;
            Scoring = 0;

            Level = 0;

            CommenderID = -1;
            CpsID = -1;
            isAlipayCps = false;

            Bonus = 0;
            Reward = 0;

            AlipayID = "";
            AlipayName = "";
            isAlipayNameValided = false;

            Memo = "";
            BonusThisMonth = 0;
            BonusAllow = 0;
            BonusUse = 0;
            PromotionMemberBonusScale = 0;
            PromotionSiteBonusScale = 0;

            OwnerSites = "";

            ComeFrom = 0;
            IsCrossLogin = false;

            VisitSource = "";

            HeadUrl = "";
            SecurityQuestion = "";
            SecurityAnswer = "";
            FriendList = "";
            Reason = "";
        }