/// <summary> /// 开户 /// </summary> private bool AccountsType(CompanyInfo companyInfo) { string type = this.GetTypes(); return(!string.IsNullOrEmpty(type) ? (type == "SpreadBuy" ? CompanyService.Spread(this.CurrentCompany.CompanyId, companyInfo) : (type == "Subordinate" ? (CompanyService.CreateSubordinate(this.CurrentCompany.CompanyId, companyInfo)) : (CompanyService.AddPurchaser(this.CurrentCompany.CompanyId, companyInfo)))) : false); }