protected CartDisplay GetCartDisplay(ClientData clientData)
 {
     if (ClientBO.CanUseClientCart(
         SiteContext.GetCurrent<ManagerSiteContext>().ManagerInfo,
         clientData.Profile))
     {
         return clientData.Cart.GetTotals().PartsCount == 0 ? CartDisplay.Empty : CartDisplay.Full;
     }
     return CartDisplay.Disabled;
 }
Example #2
0
        private void AddClientInternal(ClientProfile profile, bool setDefault)
        {
            var cd = new ClientData()
            {
                Profile = profile,
                Status = ClientBO.GetClientStatus(profile.ClientId),
                Cart = new ShoppingCart( _managerId, profile.ClientId, profile.ClientGroup, profile.PersonalMarkup )
            };

            ManagerBO.AddClientToHandySet(_managerId, profile.ClientId, setDefault);
            _innerClients.Add(profile.ClientId, cd);
            if (setDefault)
                _defaultClientId = profile.ClientId;
        }
 protected bool IsClientOnline( ClientData clientData )
 {
     return clientData.Status == RmsAuto.Store.Entities.ClientStatus.Online;
 }