示例#1
0
        public void SetAccountBuyingPower(AccountId id, decimal bp)
        {
            SAL.WSProxy.WSAccountSettings ws = new SAL.WSProxy.WSAccountSettings();

            SAL.WSProxy.AccountId wsId = new SAL.WSProxy.AccountId();

            wsId.ClearingId = id.ClearingId;

            ws.SetAccountBuyingPower(wsId, bp);
        }
示例#2
0
        public AccountSettings GetAccountSettings(AccountId id)
        {
            SAL.WSProxy.WSAccountSettings ws = new SAL.WSProxy.WSAccountSettings();

            SAL.WSProxy.AccountId wsId = new SAL.WSProxy.AccountId();

            wsId.ClearingId = id.ClearingId;

            SAL.WSProxy.AccountSettings wsAccSettings = ws.GetAccountSettings(wsId);

            AccountSettings accSettings = new AccountSettings();

            accSettings.Id = new AccountId();

            accSettings.Id.ClearingId = wsAccSettings.Id.ClearingId;

            accSettings.BuyingPower = wsAccSettings.BuyingPower;
            accSettings.Name        = wsAccSettings.Name;
            accSettings.Address     = wsAccSettings.Address;

            return(accSettings);
        }