Пример #1
0
        public Sites(long siteid)
        {
            _connStr = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];
            if (string.IsNullOrEmpty(_connStr))
            {
                _connStr = PF.ConnectString;
            }
            SiteNotificationTemplates = new SiteNotificationTemplates(this);
            SiteOptions = new SiteOptions(this);

            ID = siteid;

            ParentID    = -1;
            OwnerUserID = -1;

            Name              = "";
            LogoUrl           = "";
            Company           = "";
            Address           = "";
            PostCode          = "";
            ResponsiblePerson = "";
            ContactPerson     = "";
            Telephone         = "";
            Fax                        = "";
            Mobile                     = "";
            Email                      = "";
            QQ                         = "";
            ServiceTelephone           = "";
            ICPCert                    = "";
            Level                      = -1;
            ON                         = false;
            BonusScale                 = 0;
            MaxSubSites                = 0;
            UseLotteryListRestrictions = "";
            UseLotteryList             = "";
            UseLotteryListQuickBuy     = "";

            AdministratorID = -1;

            _urls = "";
            Url   = "";

            PageTitle    = "";
            PageKeywords = "";
        }
Пример #2
0
        public Sites(long siteid)
        {
            _connStr = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];
            if (string.IsNullOrEmpty(_connStr))
                _connStr = PF.ConnectString;
            SiteNotificationTemplates = new SiteNotificationTemplates(this);
            SiteOptions = new SiteOptions(this);

            ID = siteid;

            ParentID = -1;
            OwnerUserID = -1;

            Name = "";
            LogoUrl = "";
            Company = "";
            Address = "";
            PostCode = "";
            ResponsiblePerson = "";
            ContactPerson = "";
            Telephone = "";
            Fax = "";
            Mobile = "";
            Email = "";
            QQ = "";
            ServiceTelephone = "";
            ICPCert = "";
            Level = -1;
            ON = false;
            BonusScale = 0;
            MaxSubSites = 0;
            UseLotteryListRestrictions = "";
            UseLotteryList = "";
            UseLotteryListQuickBuy = "";

            AdministratorID = -1;

            _urls = "";
            Url = "";

            PageTitle = "";
            PageKeywords = "";
        }