Ejemplo n.º 1
0
    private void BindData()
    {
        tbName.Text    = _Site.Name;
        labLevel.Text  = SiteLevels.GetSiteLevelName(_Site.Level);
        imgON.ImageUrl = (_Site.ON ? "style/images/Run.gif" : "style/images/Stop.gif");
        imgON.ToolTip  = (_Site.ON ? "正在运行" : "已停止");

        tbCompany.Text           = _Site.Company;
        tbAddress.Text           = _Site.Address;
        tbPostCode.Text          = _Site.PostCode;
        tbResponsiblePerson.Text = _Site.ResponsiblePerson;
        tbContactPerson.Text     = _Site.ContactPerson;
        tbTelephone.Text         = _Site.Telephone;
        tbFax.Text              = _Site.Fax;
        tbMobile.Text           = _Site.Mobile;
        tbEmail.Text            = _Site.Email;
        tbQQ.Text               = _Site.QQ;
        tbServiceTelephone.Text = _Site.ServiceTelephone;
        tbICPCert.Text          = _Site.ICPCert;
        tbBonusScale.Text       = _Site.BonusScale.ToString();
        tbMaxSubSites.Text      = _Site.MaxSubSites.ToString();
        tbUrls.Text             = _Site.Urls;

        BindDataForLottery();
        BindDataForLotteryQuickBuy();

        if (_Site.Level == SiteLevels.MasterSite)
        {
            tbCompany.Enabled           = true;
            tbResponsiblePerson.Enabled = true;
        }
    }
Ejemplo n.º 2
0
 private void BindData()
 {
     this.labName.Text             = base._Site.Name;
     this.labLevel.Text            = SiteLevels.GetSiteLevelName(base._Site.Level);
     this.imgON.ImageUrl           = base._Site.ON ? "../Images/Admin/Run.gif" : "../Images/Admin/Stop.gif";
     this.imgON.ToolTip            = base._Site.ON ? "正在运行" : "已停止";
     this.tbCompany.Text           = base._Site.Company;
     this.tbAddress.Text           = base._Site.Address;
     this.tbPostCode.Text          = base._Site.PostCode;
     this.tbResponsiblePerson.Text = base._Site.ResponsiblePerson;
     this.tbContactPerson.Text     = base._Site.ContactPerson;
     this.tbTelephone.Text         = base._Site.Telephone;
     this.tbFax.Text              = base._Site.Fax;
     this.tbMobile.Text           = base._Site.Mobile;
     this.tbEmail.Text            = base._Site.Email;
     this.tbQQ.Text               = base._Site.QQ;
     this.tbServiceTelephone.Text = base._Site.ServiceTelephone;
     this.tbICPCert.Text          = base._Site.ICPCert;
     this.tbBonusScale.Text       = base._Site.BonusScale.ToString();
     this.tbMaxSubSites.Text      = base._Site.MaxSubSites.ToString();
     this.tbUrls.Text             = base._Site.Urls;
     this.BindDataForLottery();
     this.BindDataForLotteryQuickBuy();
     if (base._Site.Level == 1)
     {
         this.tbCompany.Enabled           = true;
         this.tbResponsiblePerson.Enabled = true;
     }
 }
    private void BindData()
    {
        this.labName.Text   = base._Site.Name;
        this.labLevel.Text  = SiteLevels.GetSiteLevelName(base._Site.Level);
        this.imgON.ImageUrl = base._Site.ON ? "../Images/Admin/Run.gif" : "../Images/Admin/Stop.gif";
        this.imgON.ToolTip  = base._Site.ON ? "正在运行" : "已停止";
        short num = base._Site.SiteOptions["Opt_DefaultFirstPageType"].ToShort(2);

        if (base._Site.Level == 4)
        {
            this.rb1.Enabled = false;
            num = 2;
        }
        this.rb1.Checked = num == 1;
        this.rb2.Checked = num == 2;
        this.rb3.Checked = num == 3;
        this.rb4.Checked = num == 4;
        this.rb5.Checked = num == 5;
        this.rb6.Checked = num == 6;
        this.rb7.Checked = num == 7;
    }