public void LockDown()
        {
            view.ToggleCurrentTransactionsLink(securityManager.CanViewCurrentTransactionsLink());
            view.ToggleTransactionsArchiveLink(securityManager.CanViewTransactionArchiveLink());

            view.ToggleTransactionsHistoryLink(securityManager.CanViewTransactionHistoryLink());
            view.ToggleContactsLink(securityManager.CanViewContactsLink());

            view.ToggleReleaseTab(securityManager.CanViewReleaseTab());
        }
        public void SelectClientCustomerAndRedirectToInvoiceBatches(int clientId, int customerId, int batch)
        {
            if (securityManager.CanViewReleaseTab())
            {
                ICffClient  client   = clientRepository.GetCffClientByClientId(clientId);
                CffCustomer customer = customerRepository.GetCffCustomerByCustomerId(customerId);

                view.Client   = client;
                view.Customer = (ICffCustomer)customer;
                RedirectToInvoiceBatchesWithClientCustomer(clientId, customerId, batch);
            }
        }
        public void Decorate()
        {
            string fieldName = parameter.FieldName;

            if (fieldName.Equals("Batch") && securityManager.CanViewReleaseTab())
            {
                BatchRecord record = grid.GetRow(parameter.RowIndex) as BatchRecord;
                if (record != null && record.IsInvoice)
                {
                    Decorate(Cff_WebResource.batchNumberLinkTooltip);
                }
            }
            else if (fieldName.Equals("ClientName") && securityManager.CanChangeSelectedClient())
            {
                Decorate(Cff_WebResource.clientNameLinkTooltip);
            }
            else if (fieldName.Equals("CustomerName") && securityManager.CanChangeSelectedCustomer())
            {
                Decorate(Cff_WebResource.customerNameLinkTooltip);
            }
        }