/// <summary> /// 补填企业用户信息 /// </summary> public bool AddPurchaseEnterpriseInfo(PurchaseEnterpriseInfo info) { try { AccountCombineService.AddPurchaseInfo(this.CurrentCompany.CompanyId, info, this.CurrentUser.UserName); return(true); } catch (Exception) { return(false); } }
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); }