private void BindCompanyInfo(DistribtionOEMUserCompanyDetailInfo info)
        {
            this.ddlIncomeGroup.DataSource     = IncomeGroupService.QueryIncomeGroup(this.CurrentCompany.CompanyId, null);
            this.ddlIncomeGroup.DataTextField  = "Name";
            this.ddlIncomeGroup.DataValueField = "Id";
            this.ddlIncomeGroup.DataBind();
            this.ddlIncomeGroup.Items.Insert(0, new ListItem("-请选择-", ""));
            string incomeGroupId = Request.QueryString["IncomeGroupId"];

            if (info.IncomeGroupId.HasValue)
            {
                this.ddlIncomeGroup.SelectedValue = info.IncomeGroupId.Value.ToString();
            }
            this.lblAccountNo.Text     = info.UserName;
            this.lblCompanyType.Text   = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")";
            this.hfldAddressCode.Value = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District);
            this.txtAddress.Text       = info.Address;
            this.txtPostCode.Text      = info.ZipCode;
            this.txtCompanyPhone.Text  = info.OfficePhones;
            this.txtFaxes.Text         = info.Faxes;
            this.txtLinkman.Text       = info.Contact;
            this.txtLinkManPhone.Text  = info.ContactPhone;
            this.txtEmail.Text         = info.ContactEmail;
            this.txtQQ.Text            = info.ContactQQ;
            BindEnterprise(info);
        }
 private void BindCompanyInfo(CompanyDetailInfo info)
 {
     this.lblAccountNo.Text     = info.UserName;
     this.lblCompanyType.Text   = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")";
     this.hfldAddressCode.Value = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District);
     this.txtAddress.Text       = info.Address;
     this.txtPostCode.Text      = info.ZipCode;
     this.txtCompanyPhone.Text  = info.OfficePhones;
     this.txtFaxes.Text         = info.Faxes;
     this.txtLinkman.Text       = info.Contact;
     this.txtLinkManPhone.Text  = info.ContactPhone;
     this.txtEmail.Text         = info.ContactEmail;
     this.txtQQ.Text            = info.ContactQQ;
     BindEnterprise(info);
 }
Beispiel #3
0
 private void BingInfo(CompanyDetailInfo info)
 {
     this.lblAccountNo.Text         = info.UserName;
     this.lblCompanyType.Text       = info.CompanyType.GetDescription();
     this.txtUserName.Text          = info.CompanyName;
     this.txtPetName.Text           = info.AbbreviateName;
     this.hidAddress.Value          = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District);
     this.lblBindLocation.InnerText = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.txtAddress.Text           = info.Address;
     this.txtPostCode.Text          = info.ZipCode;
     this.txtFaxes.Text             = info.Faxes;
     this.txtLinkman.Text           = info.Contact;
     this.txtLinkManPhone.Text      = info.ContactPhone;
     this.txtEmail.Text             = info.ContactEmail;
     // this.txtMSN.Text = info.ContactMSN;
     this.txtQQ.Text = info.ContactQQ;
 }
Beispiel #4
0
 private void BindCompanyInfo(CompanyInfo info)
 {
     this.lblAccountNo.Text           = info.UserName;
     this.lblCompanyType.Text         = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")";
     this.txtCompanyName.Text         = info.CompanyName;
     this.txtCompanyShortName.Text    = info.AbbreviateName;
     this.hidAddress.Value            = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District);
     this.lblBindLocation.InnerText   = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.txtAddress.Text             = info.Address;
     this.txtPostCode.Text            = info.ZipCode;
     this.txtCompanyPhone.Text        = info.OfficePhones;
     this.txtFaxes.Text               = info.Faxes;
     this.txtPrincipal.Text           = info.ManagerName;
     this.txtPrincipalPhone.Text      = info.ManagerCellphone;
     this.txtLinkman.Text             = info.Contact;
     this.txtLinkManPhone.Text        = info.ContactPhone;
     this.txtUrgencyLinkMan.Text      = info.EmergencyContact;
     this.txtUrgencyLinkManPhone.Text = info.EmergencyCall;
     this.txtEmail.Text               = info.ManagerEmail;
     this.txtQQ.Text = info.ManagerQQ;
 }
        private void getCompanyInfo(CompanyDetailInfo companyInfo)
        {
            this.lblUserName.Text            = companyInfo.UserName;
            this.lblCurrentCompanyType.Text  = this.lblCompanyType.Text = companyInfo.CompanyType.GetDescription();
            this.lblContactName.Text         = this.hfdContactName.Value = this.txtContactName.Text = companyInfo.Contact;
            this.hfdContactPhone.Value       = this.txtContactPhone.Text = companyInfo.ContactPhone;
            this.lblIsExternalInterface.Text = companyInfo.IsOpenExternalInterface ? "已启用" : "未启用";
            this.lblCompanyName.Text         = companyInfo.CompanyName;
            this.lblAbbreviateName.Text      = companyInfo.AbbreviateName;
            this.lblName.Text = companyInfo.CompanyName;
            this.lblCurrentAccountType.Text = this.lblAccountType.Text = companyInfo.AccountType.GetDescription();

            if (companyInfo.AccountType == Common.Enums.AccountBaseType.Enterprise)
            {
                this.hfdCompanyPhone.Value          = this.txtOfficePhone.Text = this.txtCompanyPhone.Text = companyInfo.OfficePhones;
                this.txtManagerName.Text            = this.txtManager.Text = companyInfo.ManagerName;
                this.hfdManager.Value               = companyInfo.ManagerName;
                this.txtManagerMobile.Text          = this.txtManagerPhone.Text = companyInfo.ManagerCellphone;
                this.hfdManagerPhone.Value          = companyInfo.ManagerCellphone;
                this.txtEmergencyName.Text          = this.txtEmergency.Text = companyInfo.EmergencyContact;
                this.hfdEmergency.Value             = companyInfo.EmergencyContact;
                this.txtEmergecyMobile.Text         = this.txtEmergencyPhone.Text = companyInfo.EmergencyCall;
                this.hfdEmergencyPhone.Value        = companyInfo.EmergencyCall;
                this.txtOrgnationCode.Text          = this.lblOrganationCode.Text = companyInfo.OrginationCode;
                this.txtCompanyName.Text            = companyInfo.CompanyName;
                this.txtCompanyAbbreaviateName.Text = companyInfo.AbbreviateName;
                this.lblContactName.Visible         = false;
            }
            else
            {
                this.lblCerNo.Text          = companyInfo.CertNo;
                this.txtContactName.Visible = false;
                this.txtFixedPhone.Text     = companyInfo.OfficePhones;
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.Province))
            {
                this.hfldAddressCode.Value = AddressShow.GetAddressJson("", companyInfo.Province, "", "");
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.City))
            {
                this.hfldAddressCode.Value = AddressShow.GetAddressJson("", companyInfo.Province, companyInfo.City, "");
            }

            if (!string.IsNullOrWhiteSpace(companyInfo.District))
            {
                this.hfldAddressCode.Value = AddressShow.GetAddressJson("", companyInfo.Province, companyInfo.City, companyInfo.District);
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.Address))
            {
                this.hfdAddress.Value = companyInfo.Address;
                this.txtAddress.Text  = companyInfo.Address;
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.ZipCode))
            {
                this.txtPostCode.Text  = companyInfo.ZipCode;
                this.hfdPostCode.Value = companyInfo.ZipCode;
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.ContactEmail))
            {
                this.txtEmail.Text  = companyInfo.ContactEmail;
                this.hfdEmail.Value = companyInfo.ContactEmail;
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.Faxes))
            {
                this.txtFax.Text  = companyInfo.Faxes;
                this.hfdFax.Value = companyInfo.Faxes;
            }
            if (!string.IsNullOrWhiteSpace(companyInfo.ContactQQ))
            {
                this.txtQQ.Text  = companyInfo.ContactQQ;
                this.hfdQQ.Value = companyInfo.ContactQQ;
            }
        }