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);
        }
示例#2
0
        private CompanyInfo GetCompanyInfo()
        {
            AddressInfo address   = AddressShow.GetAddressInfo(this.lblLoaction.Text);
            Guid        company   = Guid.Empty;
            string      companyId = Request.QueryString["CompanyId"];

            if (!string.IsNullOrWhiteSpace(companyId))
            {
                company = Guid.Parse(companyId);
            }
            return(new CompanyInfo {
                CompanyType = Common.Enums.CompanyType.Purchaser,
                CompanyId = company,
                CompanyName = this.lblCompanyName.Text,
                AbbreviateName = this.lblCompanyShortName.Text,
                Area = address.AreaCode,
                Province = address.ProvinceCode,
                City = address.CityCode,
                District = address.CountyCode,
                Address = this.lblAddress.Text,
                ZipCode = this.txtPostCode.Text,
                OfficePhones = this.lblCompanyPhone.Text,
                Faxes = this.txtFaxes.Text,
                ManagerName = this.lblPrincipal.Text,
                ManagerCellphone = this.lblPrincipalPhone.Text,
                Contact = this.lblLinkman.Text,
                ContactPhone = this.lblLinkmanPhone.Text,
                EmergencyContact = this.lblUrgencyLinkMan.Text,
                EmergencyCall = this.lblUrgencyLinkManPhone.Text,
                ManagerEmail = this.lblEmial.Text,
                ManagerQQ = this.txtQQ.Text,
                ManagerMsn = this.txtMSN.Text
            });
        }
示例#3
0
        /// <summary>
        /// 获取采购or出票 信息
        /// </summary>
        private EnterpriseAccountDTO GetEnterprisAccount()
        {
            CompanyInfo companyInfo = Session["Info"] as CompanyInfo;

            return(new EnterpriseAccountDTO
            {
                AccountNo = this.txtAccountNo.Text.Trim(),
                LoginPassword = companyInfo.UserPassword,
                PayPassword = IdCard.GetPayPassword(this.txtIDCard.Text.Trim()),
                AdministorName = companyInfo.Contact,
                Email = companyInfo.ManagerEmail,
                ContactPhone = companyInfo.ContactPhone,
                AdministorCertId = this.txtIDCard.Text.Trim(),
                OwnerState = AddressShow.GetProvince(companyInfo.Province),
                OwnerCity = AddressShow.GetCity(companyInfo.City),
                OwnerZone = AddressShow.GetCounty(companyInfo.District),
                OwnerStreet = companyInfo.Address,
                PostalCode = companyInfo.ZipCode,
                OrganizationCode = this.txtOrganizationCode.Text.Trim(),
                CompanyName = companyInfo.CompanyName,
                LegalContactPhone = this.txtLegalPersonPhone.Text.Trim(),
                LegalPersonName = this.txtLegalPersonName.Text.Trim(),
                LegalPersonCertId = this.txtIDCard.Text.Trim()
            });
        }
        private List <DataList> SubordinateList(Pagination pagination, Guid id)
        {
            var condition = new SubordinateQueryParameter();

            condition.Superior         = id;
            condition.RelationshipType = RelationshipType.Organization;
            if (!string.IsNullOrWhiteSpace(txtUserName.Text))
            {
                condition.UserNo = this.txtUserName.Text.Trim();
            }
            if (!string.IsNullOrWhiteSpace(this.txtAbberviateName.Text))
            {
                condition.AbbreviateName = this.txtAbberviateName.Text.Trim();
            }
            if (!string.IsNullOrWhiteSpace(this.txtStartDate.Text))
            {
                condition.RegisterTimeStart = DateTime.Parse(this.txtStartDate.Text);
            }
            if (!string.IsNullOrWhiteSpace(this.txtEndDate.Text))
            {
                condition.RegisterTimeEnd = DateTime.Parse(this.txtEndDate.Text).AddDays(1).AddMilliseconds(-3);
            }
            var spreadingList = CompanyService.GetAllSubordinates(condition, pagination).Select(item => new DataList
            {
                Type             = "内部机构",
                AbbreviateName   = item.AbbreviateName,
                City             = AddressShow.GetCity(item.City),
                Contact          = item.Contact,
                ContactCellphone = item.ContactPhone,
                Admin            = item.UserNo,
                RegisterTime     = item.RegisterTime.ToString("yyyy-MM-dd HH:mm:ss")
            }).ToList();

            return(spreadingList);
        }
示例#5
0
        private CompanyInfo GetCompanyInfo()
        {
            AddressInfo info = AddressShow.GetAddressInfo(this.lblAddress.Text);

            return(new CompanyInfo
            {
                CompanyType = Common.Enums.CompanyType.Purchaser,
                Area = info.AreaCode,
                Province = info.ProvinceCode,
                City = info.CityCode,
                District = info.CountyCode,
                CompanyId = this.CurrentCompany.CompanyId,
                ZipCode = this.txtPostCode.Text.Trim(),
                OfficePhones = this.txtCompanyPhone.Text.Trim(),
                Faxes = this.txtFaxes.Text.Trim(),
                ManagerEmail = this.txtEmail.Text.Trim(),
                ManagerMsn = this.txtMSN.Text.Trim(),
                ManagerQQ = this.txtQQ.Text.Trim(),
                Address = lblCompanyAddress.Text,
                Contact = this.lblPrincipal.Text,
                ContactPhone = this.lblPrincipalPhone.Text,
                EmergencyContact = this.lblUrgencyLinkMan.Text,
                EmergencyCall = this.lblUrgencyLinkManPhone.Text,
                ManagerName = this.lblPrincipal.Text,
                ManagerCellphone = this.lblPrincipalPhone.Text,
                CompanyName = this.lblCompanyName.Text,
                AbbreviateName = this.lblCompanyShortName.Text
            });
        }
示例#6
0
        private void BindCompanyInfo(CompanyDetailInfo info)
        {
            string type = Request.QueryString["Type"];

            this.lblAccountNo.Text           = info.UserName;
            this.lblCompanyType.Text         = !string.IsNullOrWhiteSpace(type) && type == "Organization" ? "内部机构" : "下级采购";
            this.lblCompanyName.Text         = info.CompanyName;
            this.lblCompanyShortName.Text    = info.AbbreviateName;
            this.lblAddress.Text             = info.Address;
            this.lblLoaction.Text            = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
            this.lblCompanyPhone.Text        = info.OfficePhones;
            this.lblPrincipal.Text           = info.ManagerName;
            this.lblPrincipalPhone.Text      = info.ManagerCellphone;
            this.lblLinkman.Text             = info.Contact;
            this.lblLinkmanPhone.Text        = info.ContactPhone;
            this.lblUrgencyLinkMan.Text      = info.EmergencyContact;
            this.lblUrgencyLinkManPhone.Text = info.EmergencyCall;
            if (Request.QueryString["Editable"] != null && Request.QueryString["Editable"] == "True")
            {
                BindUpdate(info);
            }
            else
            {
                BindLookUp(info);
            }
        }
示例#7
0
        private void bindOemInfo(Service.Organization.Domain.OEMInfo oemInfo)
        {
            const string _timeRegex = "yyyy-MM-dd HH:mm:ss";

            lblOemCompanyUserName.Text  = oemInfo.Company.UserName;
            lblOemCompanyTypeValue.Text = string.Format("{0}({1})",
                                                        oemInfo.Company.CompanyType.GetDescription(),
                                                        oemInfo.Company.AccountType.GetDescription());
            lblOemAuthorizationTime.Text = oemInfo.RegisterTime.ToString(_timeRegex);

            lblOemCompayName.Text          = oemInfo.Company.CompanyName;
            lblOemCompanyAbbreviation.Text = oemInfo.Company.AbbreviateName;
            lblOemName.Text = oemInfo.SiteName;

            lblOemCompayPhone.Text           = oemInfo.Company.OfficePhones;
            lblOemCompanyOrginationCode.Text = oemInfo.Company.OrginationCode;
            lblOemDomainName.Text            = oemInfo.DomainName;

            lblOemCompanyManagerName.Text      = oemInfo.Company.ManagerName;
            lblOemCompanyManagerCellPhone.Text = oemInfo.Company.ManagerCellphone;
            lblOemValid.Text = oemInfo.Valid ? "正常" : "失效";

            lblOemCompanyLocation.Text = AddressShow.GetAddressText(oemInfo.Company.Area, oemInfo.Company.Province, oemInfo.Company.City, oemInfo.Company.District);
            lblOemCompanyAddress.Text  = oemInfo.Company.Address;
            lblOemEffectTime.Text      = oemInfo.EffectTime.Value.ToString(_timeRegex);

            string postBackUrl = "/OrganizationModule/TerraceModule/CompanyInfoManage/LicenseQuery.aspx?type={0}&companyId={1}";

            lbtnBussinessLicense.HRef = string.Format(postBackUrl, "bussiness", oemInfo.CompanyId);
            lbtnIATA.HRef             = string.Format(postBackUrl, "iata", oemInfo.CompanyId);
            lbtncertNo.HRef           = string.Format(postBackUrl, "certNo", oemInfo.CompanyId);
            switch (oemInfo.Company.CompanyType)
            {
            case ChinaPay.B3B.Common.Enums.CompanyType.Provider:
                break;

            case ChinaPay.B3B.Common.Enums.CompanyType.Purchaser:
                lbtnBussinessLicense.Visible = lbtnIATA.Visible = false;
                lbtncertNo.Visible           = true;
                break;

            case ChinaPay.B3B.Common.Enums.CompanyType.Supplier:
                lbtnBussinessLicense.Visible = oemInfo.Company.AccountType == Common.Enums.AccountBaseType.Enterprise;
                lbtncertNo.Visible           = oemInfo.Company.AccountType == Common.Enums.AccountBaseType.Individual;
                break;
            }

            lblOemEffectTimeStrat.Text = oemInfo.RegisterTime.ToString(_timeRegex);
            lblOemEffectTimeStrat.Text = oemInfo.EffectTime.Value.ToString(_timeRegex);

            CompanyDetailInfo companyDetailInfo = oemInfo.Company as CompanyDetailInfo;

            lblOemCompanyRegisterTime.Text = companyDetailInfo.RegisterTime.ToString(_timeRegex);
            lblOemCompanyAuditTime.Text    = companyDetailInfo.AuditTime.HasValue ? companyDetailInfo.AuditTime.Value.ToString(_timeRegex) : string.Empty;
        }
 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);
 }
        private PurchaseIndividualInfo getIndividualInfo()
        {
            PurchaseIndividualInfo individual = new PurchaseIndividualInfo();
            var addressInfo = AddressShow.GetAddressBaseInfo(this.hfldAddressCode.Value);

            if (!string.IsNullOrWhiteSpace(this.hfdContactPhone.Value))
            {
                individual.ContactPhone = this.hfdContactPhone.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdAddress.Value))
            {
                individual.Address = this.hfdAddress.Value;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.ProvinceCode))
            {
                individual.Province = addressInfo.ProvinceCode;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.CityCode))
            {
                individual.City = addressInfo.CityCode;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.CountyCode))
            {
                individual.District = addressInfo.CountyCode;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdEmail.Value))
            {
                individual.Email = this.hfdEmail.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdFax.Value))
            {
                individual.Faxes = this.hfdFax.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdQQ.Value))
            {
                individual.QQ = this.hfdQQ.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdPostCode.Value))
            {
                individual.ZipCode = this.hfdPostCode.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdFixedPhone.Value))
            {
                individual.OfficePhone = this.hfdFixedPhone.Value;
            }
            return(individual);
        }
示例#10
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;
 }
示例#11
0
 private void BindCompanyInfo(CompanyDetailInfo info)
 {
     this.lblAccountNo.Text     = info.UserName;
     this.lblCompanyType.Text   = info.CompanyType.GetDescription();
     this.lblUserName.Text      = info.CompanyName;
     this.lblPetName.Text       = info.AbbreviateName;
     this.lblAddress.Text       = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.lblUserAddress.Text   = info.Address;
     this.txtPostCode.Text      = info.ZipCode;
     this.txtFaxes.Text         = info.Faxes;
     this.lblLinkman.Text       = info.Contact;
     this.lblLinkmanPhone.Text  = info.ContactPhone;
     this.txtEmail.Text         = info.ContactEmail;
     this.txtQQ.Text            = info.ContactQQ;
     this.txtMSN.Text           = info.ContactMSN;
     this.lblBeginDeadline.Text = info.PeriodStartOfUse.HasValue?info.PeriodStartOfUse.Value.ToString("yyyy-MM-dd"):string.Empty;
     this.lblEndDeadline.Text   = info.PeriodEndOfUse.HasValue?info.PeriodEndOfUse.Value.ToString("yyyy-MM-dd"):string.Empty;
 }
示例#12
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;
 }
示例#13
0
 private void BindCompanyInfo(CompanyDetailInfo info)
 {
     this.lblAccountNo.Text           = info.UserName;
     this.lblCompanyType.Text         = info.CompanyType.GetDescription();
     this.lblCompanyName.Text         = info.CompanyName;
     this.lblCompanyShortName.Text    = info.AbbreviateName;
     this.lblAddress.Text             = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.lblCompanyAddress.Text      = info.Address;
     this.txtPostCode.Text            = info.ZipCode;
     this.txtCompanyPhone.Text        = info.OfficePhones;
     this.txtFaxes.Text               = info.Faxes;
     this.lblPrincipal.Text           = info.ManagerName;
     this.lblPrincipalPhone.Text      = info.ManagerCellphone;
     this.lblLinkman.Text             = info.Contact;
     this.lblLinkManPhone.Text        = info.ContactPhone;
     this.lblUrgencyLinkMan.Text      = info.EmergencyContact;
     this.lblUrgencyLinkManPhone.Text = info.EmergencyCall;
     this.txtEmail.Text               = info.ManagerEmail;
     this.txtMSN.Text = info.ManagerMsn;
     this.txtQQ.Text  = info.ManagerQQ;
 }
        private void BindSuperior()
        {
            string companyId = Request.QueryString["CompanyId"];

            if (!string.IsNullOrEmpty(companyId))
            {
                Guid         id   = Guid.Parse(companyId);
                RelationInfo info = CompanyService.QuerySuperior(id);
                superiors.InnerText = "上级用户";
                if (info == null)
                {
                    info = CompanyService.GetSpreader(id);
                    superiors.InnerText = "推广者";
                }
                if (info == null)
                {
                    liSuperiors.Visible = divSuperior.Visible = false;
                }
                else
                {
                    this.lblCompanyType.Text        = info.CompanyType.GetDescription();
                    this.lblCompanyShortName.Text   = info.AbbreviateName;
                    this.lblLoaction.Text           = AddressShow.GetCity(info.City);
                    this.lblContact.Text            = info.Contact;
                    this.lblContactPhone.Text       = info.ContactPhone;
                    this.lblLoginAccount.Text       = info.UserNo;
                    this.lblOpentOnAccountTime.Text = info.RegisterTime.ToString("yyyy-MM-dd");
                }
                var companyInfo = CompanyService.GetCompanyInfo(id);
                if (companyInfo.Type != CompanyType.Provider && !companyInfo.IsOem)
                {
                    Purchases.Visible = false;
                }
                var companyParameter = CompanyService.GetCompanyParameter(id);
                if (companyParameter == null || !companyParameter.CanHaveSubordinate)
                {
                    Subordinate.Visible = false;
                }
            }
        }
示例#15
0
 private void BindCompanyInfo(CompanyDetailInfo info)
 {
     this.lblAccuountNo.Text       = info.UserName;
     this.lblCompanyType.Text      = info.CompanyType.GetDescription();
     this.lblCompanyName.Text      = info.CompanyName;
     this.lblCompanyShortName.Text = info.AbbreviateName;
     this.lblCompanyAddress.Text   = info.Address;
     this.lblBeginDeadline.Text    = info.PeriodStartOfUse.ToString();
     this.lblEndDeadline.Text      = info.PeriodEndOfUse.ToString();
     this.lblAddress.Text          = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.lblPostCode.Text         = info.ZipCode;
     this.lblCompanyPhone.Text     = info.OfficePhones;
     this.lblFaxes.Text            = info.Faxes;
     this.lblLinkMan.Text          = info.Contact;
     this.lblLinkManPhone.Text     = info.ContactPhone;
     this.lblEmail.Text            = info.ContactEmail;
     this.lblMSN.Text     = info.ContactMSN;
     this.lblQQ.Text      = info.ContactQQ;
     this.tbAgen.Visible  = false;
     this.tbAgens.Visible = false;
     this.BindAgentAgentQualification(info.CompanyId, info);
 }
示例#16
0
        private SupplierCreatureInfo GetProviderCreatureInfo()
        {
            AddressInfo info = AddressShow.GetAddressInfo(this.lblAddress.Text);

            return(new  SupplierCreatureInfo {
                CompanyType = Common.Enums.CompanyType.Supplier,
                Area = info.AreaCode,
                Province = info.ProvinceCode,
                City = info.CityCode,
                District = info.CountyCode,
                Address = this.lblUserAddress.Text,
                Name = this.lblUserName.Text,
                NickName = this.lblPetName.Text,
                ZipCode = this.txtPostCode.Text.Trim(),
                QQ = this.txtQQ.Text.Trim(),
                MSN = this.txtMSN.Text.Trim(),
                Faxes = this.txtFaxes.Text.Trim(),
                Email = this.txtEmail.Text.Trim(),
                Contact = this.lblLinkman.Text,
                ContactPhone = this.lblLinkmanPhone.Text,
                ProviderId = this.CurrentCompany.CompanyId
            });
        }
示例#17
0
        /// <summary>
        /// 获取产品方信息
        /// </summary>
        private AccountDTO GetAccount()
        {
            SupplierCreatureInfo providerInfo = Session["Info"] as SupplierCreatureInfo;

            if (providerInfo == null)
            {
                return(null);
            }
            return(new AccountDTO
            {
                AccountNo = this.txtAccountNo.Text.Trim(),
                LoginPassword = providerInfo.UserPassword,
                PayPassword = IdCard.GetPayPassword(this.txtIDCard.Text.Trim()),
                AdministorName = providerInfo.Name,
                Email = providerInfo.Email,
                ContactPhone = providerInfo.ContactPhone,
                AdministorCertId = this.txtIDCard.Text.Trim(),
                OwnerState = AddressShow.GetProvince(providerInfo.Province),
                OwnerCity = AddressShow.GetCity(providerInfo.City),
                OwnerZone = AddressShow.GetCounty(providerInfo.District),
                OwnerStreet = providerInfo.Address,
                PostalCode = providerInfo.ZipCode
            });
        }
示例#18
0
        private PurchaseEnterpriseInfo getEnterpriseInfo()
        {
            PurchaseEnterpriseInfo enterprise = new PurchaseEnterpriseInfo();
            var addressInfo = AddressShow.GetAddressBaseInfo(this.hfldAddressCode.Value);

            if (!string.IsNullOrWhiteSpace(this.hfdContactName.Value))
            {
                enterprise.ContactName = this.hfdContactName.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdContactPhone.Value))
            {
                enterprise.ContactPhone = this.hfdContactPhone.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdCompanyPhone.Value))
            {
                enterprise.CompanyPhone = this.hfdCompanyPhone.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdAddress.Value))
            {
                enterprise.Address = this.hfdAddress.Value;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.CityCode))
            {
                enterprise.City = addressInfo.CityCode;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.CountyCode))
            {
                enterprise.District = addressInfo.CountyCode;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdEmail.Value))
            {
                enterprise.Email = this.hfdEmail.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdEmergencyPhone.Value))
            {
                enterprise.EmergencyCall = this.hfdEmergencyPhone.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdEmergency.Value))
            {
                enterprise.EmergencyContact = this.hfdEmergency.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdFax.Value))
            {
                enterprise.Faxes = this.hfdFax.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdManagerPhone.Value))
            {
                enterprise.ManagerCellphone = this.hfdManagerPhone.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdManager.Value))
            {
                enterprise.ManagerName = this.hfdManager.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdQQ.Value))
            {
                enterprise.QQ = this.hfdQQ.Value;
            }
            if (!string.IsNullOrWhiteSpace(this.hfdPostCode.Value))
            {
                enterprise.ZipCode = this.hfdPostCode.Value;
            }
            if (!string.IsNullOrWhiteSpace(addressInfo.ProvinceCode))
            {
                enterprise.Province = addressInfo.ProvinceCode;
            }
            return(enterprise);
        }
示例#19
0
        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;
            }
        }