Esempio n. 1
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()
            });
        }
Esempio n. 2
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
            });
        }