⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 companyinfocontrol.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls
{
    using PowerEasy.Accessories;
    using PowerEasy.Crm;
    using PowerEasy.Model.Crm;
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class CompanyInfoControl : UserControl
    {
        protected Label LblAddress;
        protected Label LblAnnualSales;
        protected Label LblBankAccount;
        protected Label LblBankOfDeposit;
        protected Label LblBusinessScope;
        protected Label LblCity;
        protected Label LblCompamyPic;
        protected Label LblCompanyIntro;
        protected Label LblCompanyName;
        protected Label LblCompanySize;
        protected Label LblCountry;
        protected Label LblFax;
        protected Label LblHomepage;
        protected Label LblManagementForms;
        protected Label LblPhone;
        protected Label LblProvince;
        protected Label LblRegisteredCapital;
        protected Label LblStatusInField;
        protected Label LblTaxNum;
        protected Label LblZipCode;
        private int m_CompanyId;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack && (this.m_CompanyId > 0))
            {
                this.ShowInfo();
            }
        }

        private void ShowInfo()
        {
            CompanyInfo compayById = Company.GetCompayById(this.m_CompanyId);
            this.LblCompanyName.Text = compayById.CompanyName;
            this.LblCountry.Text = compayById.Country;
            this.LblProvince.Text = compayById.Province;
            this.LblCity.Text = compayById.City;
            this.LblAddress.Text = compayById.Address;
            this.LblZipCode.Text = compayById.ZipCode;
            this.LblAnnualSales.Text = compayById.AnnualSales;
            this.LblBankAccount.Text = compayById.BankAccount;
            this.LblBankOfDeposit.Text = compayById.BankOfDeposit;
            this.LblBusinessScope.Text = compayById.BusinessScope;
            this.LblCompamyPic.Text = compayById.CompamyPic;
            this.LblCompanyIntro.Text = compayById.CompanyIntro;
            this.LblCompanySize.Text = Choiceset.GetDataText("PE_Company", "CompanySize", compayById.CompanySize);
            this.LblFax.Text = compayById.Fax;
            this.LblHomepage.Text = compayById.Homepage;
            this.LblPhone.Text = compayById.Phone;
            this.LblRegisteredCapital.Text = compayById.RegisteredCapital;
            this.LblTaxNum.Text = compayById.TaxNum;
            this.LblStatusInField.Text = Choiceset.GetDataText("PE_Company", "StatusInField", compayById.StatusInField);
            this.LblManagementForms.Text = Choiceset.GetDataText("PE_Company", "ManagementForms", compayById.ManagementForms);
        }

        public int CompanyId
        {
            get
            {
                return this.m_CompanyId;
            }
            set
            {
                this.m_CompanyId = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -