コード例 #1
0
        private void InitNewAccount()
        {
            Account = new AccountWrapper(account_entity_service.InitNewAccount(CurrentCompanyKey));
            //Client.Entities.Account _account = new Client.Entities.Account() { CompanyKey = CurrentCompanyKey };

            //// Think about refactoring this out into it own method
            //Account = new AccountWrapper(_account);
            BindAddresses();
            //GetAttributeList();
            working_account_service.OpenAccount(Account);
        }
コード例 #2
0
        private void InitNewAccount()
        {
            Account = new AccountWrapper(account_entity_service.InitNewAccount(CurrentCompanyKey));
            //Client.Entities.Account _account = new Client.Entities.Account() { CompanyKey = CurrentCompanyKey };

            //// Think about refactoring this out into it own method
            //Account = new AccountWrapper(_account);
            DefaultShippingAddress = Account.Addresses.Where(type => type.AddressType == QIQOAddressType.Shipping).FirstOrDefault();
            DefaultBillingAddress  = Account.Addresses.Where(type => type.AddressType == QIQOAddressType.Billing).FirstOrDefault();
            DefaultMailingAddress  = Account.Addresses.Where(type => type.AddressType == QIQOAddressType.Mailing).FirstOrDefault();
            //GetAttributeList();
        }