Ejemplo n.º 1
0
        /// <summary>
        /// Метод очищает поиск по сотрудникам
        /// </summary>
        public void ClearSearchEmployee()
        {
            PositionViewModel posViewModelModelCash = ModelCash <PositionViewModel> .GetViewModel(currentUser.Id, POS_EMPLOYEES);

            posViewModelModelCash.SearchEmployeeInitialNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <PositionViewModel> .SetViewModel(currentUser.Id, POS_EMPLOYEES, posViewModelModelCash);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Поиск по сделкам клиента
        /// </summary>
        /// <param name="accountViewModel"></param>
        public void SearchQuote(AccountViewModel accountViewModel)
        {
            //viewsInfo.Reset(ACC_QUOTES);
            AccountViewModel accountViewModelCash = ModelCash <AccountViewModel> .GetViewModel(currentUser.Id, ACC_QUOTES);

            ModelCash <AccountViewModel> .SetViewModel(currentUser.Id, ACC_QUOTES, accountViewModelCash);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Метод очищает поиск по организациям
        /// </summary>
        public void ClearSearch()
        {
            OrganizationsViewModel orgsViewModelCash = ModelCash <OrganizationsViewModel> .GetViewModel(currentUser.Id, ORGANIZATIONS);

            orgsViewModelCash.SearchNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <OrganizationsViewModel> .SetViewModel(currentUser.Id, ORGANIZATIONS, orgsViewModelCash);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Метод очищает поиск по подчиненным
        /// </summary>
        public void ClearSubordinateSearch()
        {
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_SUBS);

            empViewModelCash.SearchSubordinateFullNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_SUBS, empViewModelCash);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Метод очищает кеш для модели с полномочиями
        /// </summary>
        public void ClearResponsibilitySearch()
        {
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, RESPONSIBILITIES);

            orgViewModelCash.SeacrhResponsibilityNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, RESPONSIBILITIES, orgViewModelCash);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Метод устанавливает значения для поиска по организациям
        /// </summary>
        /// <param name="orgsViewModel"></param>
        /// <returns></returns>
        public void Search(OrganizationsViewModel orgsViewModel)
        {
            //viewsInfo.Reset(ORGANIZATIONS);
            OrganizationsViewModel orgsViewModelCash = ModelCash <OrganizationsViewModel> .GetViewModel(currentUser.Id, ORGANIZATIONS);

            orgsViewModelCash.SearchNameCash.AddOrReplace(currentUser.Id, orgsViewModel.SearchName?.ToLower().TrimStartAndEnd());
            ModelCash <OrganizationsViewModel> .SetViewModel(currentUser.Id, ORGANIZATIONS, orgsViewModelCash);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Метод очищает кеш для модели с подразделениями
        /// </summary>
        public void ClearDivisionSearch()
        {
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, DIVISIONS);

            orgViewModelCash.SearchDivNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SearchParentDivNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, DIVISIONS, orgViewModelCash);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Метод устанавливает значения для поиска по подчиненным
        /// </summary>
        /// <param name="empViewModelCash"></param>
        /// <returns></returns>
        public void SearchSubordinate(EmployeeViewModel employeeViewModel)
        {
            //viewsInfo.Reset(EMP_SUBS);
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_SUBS);

            empViewModelCash.SearchSubordinateFullNameCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchSubordinateFullName?.ToLower().TrimStartAndEnd());
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_SUBS, empViewModelCash);
        }
        /// <summary>
        /// Метод очищает поиск по выбранным должностям
        /// </summary>
        public void ClearSelectedPositionSearch()
        {
            EmployeeViewModel employeeViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, SELECTED_EMP_POSS);

            employeeViewModelCash.SearchSelectedPosNameCash.AddOrReplace(currentUser.Id, default);
            employeeViewModelCash.SearchSelectedParentPosNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, SELECTED_EMP_POSS, employeeViewModelCash);
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Метод очищает поиск по должностям
        /// </summary>
        public void ClearPositionSearch()
        {
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_POSITIONS);

            empViewModelCash.SearchPosNameCash.AddOrReplace(currentUser.Id, default);
            empViewModelCash.SearchParentPosNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_POSITIONS, empViewModelCash);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Метод устанавливает значения для поиска по сотрудникам
        /// </summary>
        /// <param name="empViewModelCash"></param>
        /// <returns></returns>
        public void SearchEmployee(PositionViewModel positionViewModel)
        {
            //viewsInfo.Reset(POS_EMPLOYEES);
            PositionViewModel posViewModelModelCash = ModelCash <PositionViewModel> .GetViewModel(currentUser.Id, POS_EMPLOYEES);

            posViewModelModelCash.SearchEmployeeInitialNameCash.AddOrReplace(currentUser.Id, positionViewModel.SearchEmployeeInitialName?.ToLower().TrimStartAndEnd());
            ModelCash <PositionViewModel> .SetViewModel(currentUser.Id, POS_EMPLOYEES, posViewModelModelCash);
        }
        /// <summary>
        /// Метод очищает поиск по всем должностям
        /// </summary>
        public void ClearAllPositionSearch()
        {
            EmployeeViewModel employeeViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, ALL_EMP_POSS);

            employeeViewModelCash.SearchAllPosNameCash.AddOrReplace(currentUser.Id, default);
            employeeViewModelCash.SearchAllParentPosNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, ALL_EMP_POSS, employeeViewModelCash);
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Метод очищает поиск по всем клиентам
        /// </summary>
        public void ClearAllAccountsSearch()
        {
            AccountsViewModel accountsViewModelCash = ModelCash <AccountsViewModel> .GetViewModel(currentUser.Id, ALL_ACCS);

            accountsViewModelCash.AllAccountsSearchNameCash.AddOrReplace(currentUser.Id, default);
            accountsViewModelCash.AllAccountsSearchTypeCash.AddOrReplace(currentUser.Id, default);
            ModelCash <AccountsViewModel> .SetViewModel(currentUser.Id, ALL_ACCS, accountsViewModelCash);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Метод очищает поиск по дочерним должностям
        /// </summary>
        public void ClearSearchSubPosition()
        {
            PositionViewModel posViewModelModelCash = ModelCash <PositionViewModel> .GetViewModel(currentUser.Id, POS_SUB_POSS);

            posViewModelModelCash.DivisionIdCash.AddOrReplace(currentUser.Id, default);
            posViewModelModelCash.SearchSubPositionNameCash.AddOrReplace(currentUser.Id, default);
            posViewModelModelCash.SearchSubPositionPrimaryEmployeeCash.AddOrReplace(currentUser.Id, default);
            ModelCash <PositionViewModel> .SetViewModel(currentUser.Id, POS_SUB_POSS, posViewModelModelCash);
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Метод сбрасывает фильтрацию для команды по клиенту
        /// </summary>
        public void ClearSelectedManagersSearch()
        {
            AccountViewModel accountViewModelCash = ModelCash <AccountViewModel> .GetViewModel(currentUser.Id, ACC_TEAM_SELECTED_EMPLOYEES);

            accountViewModelCash.SearchSelectedManagersName     = default;
            accountViewModelCash.SearchSelectedManagersPhone    = default;
            accountViewModelCash.SearchSelectedManagersPosition = default;
            ModelCash <AccountViewModel> .SetViewModel(currentUser.Id, ACC_TEAM_SELECTED_EMPLOYEES, accountViewModelCash);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Метод устанавливает значения для поиска по клиентам основной организации пользователя
        /// </summary>
        /// <param name="accountsViewModel"></param>
        /// <returns></returns>
        public void SearchCurrentAccounts(AccountsViewModel accountsViewModel)
        {
            //viewsInfo.Reset(CURRENT_ACCS);
            AccountsViewModel accountsViewModelCash = ModelCash <AccountsViewModel> .GetViewModel(currentUser.Id, CURRENT_ACCS);

            accountsViewModelCash.CurrentAccountsSearchNameCash.AddOrReplace(currentUser.Id, accountsViewModel.CurrentAccountsSearchName?.ToLower().TrimStartAndEnd());
            accountsViewModelCash.CurrentAccountsSearchTypeCash.AddOrReplace(currentUser.Id, accountsViewModel.CurrentAccountsSearchType);
            ModelCash <AccountsViewModel> .SetViewModel(currentUser.Id, CURRENT_ACCS, accountsViewModelCash);
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Метод очищает поиск по должностям
        /// </summary>
        public void ClearContactSearch()
        {
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_CONTACTS);

            empViewModelCash.SearchContactTypeCash.AddOrReplace(currentUser.Id, string.Empty);
            empViewModelCash.SearchContactPhoneCash.AddOrReplace(currentUser.Id, default);
            empViewModelCash.SearchContactEmailCash.AddOrReplace(currentUser.Id, default);
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_CONTACTS, empViewModelCash);
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Метод сбрасывает фильтрацию для списка всех сотрудников организации, создавшей клиента
        /// </summary>
        public void ClearAllManagersSearch()
        {
            AccountViewModel accountViewModelCash = ModelCash <AccountViewModel> .GetViewModel(currentUser.Id, ACC_TEAM_ALL_EMPLOYEES);

            accountViewModelCash.SearchAllManagersName     = default;
            accountViewModelCash.SearchAllManagersDivision = default;
            accountViewModelCash.SearchAllManagersPosition = default;
            ModelCash <AccountViewModel> .SetViewModel(currentUser.Id, ACC_TEAM_ALL_EMPLOYEES, accountViewModelCash);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Метод для поиска полномочия
        /// </summary>
        /// <param name="orgViewModel"></param>
        public void SearchResponsibility(OrganizationViewModel orgViewModel)
        {
            //viewsInfo.Reset(RESPONSIBILITIES);
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, RESPONSIBILITIES);

            orgViewModelCash.IdCash.AddOrReplace(currentUser.Id, orgViewModel.Id);
            orgViewModelCash.SeacrhResponsibilityNameCash.AddOrReplace(currentUser.Id, orgViewModel.SeacrhResponsibilityName?.ToLower().TrimStartAndEnd());
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, RESPONSIBILITIES, orgViewModelCash);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Метод очищает кеш для модели с сотрудниками
        /// </summary>
        public void ClearEmployeeSearch()
        {
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, EMPLOYEES);

            orgViewModelCash.SearchEmployeeNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SearchEmployeePrimaryPosNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SeacrhEmployeeDivNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, EMPLOYEES, orgViewModelCash);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Метод устанавливает значения для поиска по дочерним должностям
        /// </summary>
        /// <param name="empViewModelCash"></param>
        /// <returns></returns>
        public void SearchSubPosition(PositionViewModel positionViewModel)
        {
            //viewsInfo.Reset(POS_SUB_POSS);
            PositionViewModel posViewModelModelCash = ModelCash <PositionViewModel> .GetViewModel(currentUser.Id, POS_SUB_POSS);

            posViewModelModelCash.DivisionIdCash.AddOrReplace(currentUser.Id, positionViewModel.DivisionId);
            posViewModelModelCash.SearchSubPositionNameCash.AddOrReplace(currentUser.Id, positionViewModel.SearchSubPositionName?.ToLower().TrimStartAndEnd());
            posViewModelModelCash.SearchSubPositionPrimaryEmployeeCash.AddOrReplace(currentUser.Id, positionViewModel.SearchSubPositionPrimaryEmployee?.ToLower().TrimStartAndEnd());
            ModelCash <PositionViewModel> .SetViewModel(currentUser.Id, POS_SUB_POSS, posViewModelModelCash);
        }
Ejemplo n.º 22
0
        /// <summary>
        /// Метод устанавливает значения для поиска по должностям
        /// </summary>
        /// <param name="empViewModelCash"></param>
        /// <returns></returns>
        public void SearchPosition(EmployeeViewModel employeeViewModel)
        {
            //viewsInfo.Reset(EMP_POSITIONS);
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_POSITIONS);

            empViewModelCash.DivisionIdCash.AddOrReplace(currentUser.Id, employeeViewModel.DivisionId);
            empViewModelCash.SearchPosNameCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchPosName?.ToLower().TrimStartAndEnd());
            empViewModelCash.SearchParentPosNameCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchParentPosName?.ToLower().TrimStartAndEnd());
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_POSITIONS, empViewModelCash);
        }
Ejemplo n.º 23
0
        /// <summary>
        /// Метод для поиска подразделения
        /// </summary>
        /// <param name="orgViewModel"></param>
        public void SearchDivision(OrganizationViewModel orgViewModel)
        {
            //viewsInfo.Reset(DIVISIONS);
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, DIVISIONS);

            orgViewModelCash.IdCash.AddOrReplace(currentUser.Id, orgViewModel.Id);
            orgViewModelCash.SearchDivNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchDivName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SearchParentDivNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchParentDivName?.ToLower().TrimStartAndEnd());
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, DIVISIONS, orgViewModelCash);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Метод очищает кеш для модели с должностями
        /// </summary>
        public void ClearPositionSearch()
        {
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, POSITIONS);

            orgViewModelCash.SearchPosNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SeacrhPositionDivNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SearchPrimaryEmployeeNameCash.AddOrReplace(currentUser.Id, default);
            orgViewModelCash.SearchParentPosNameCash.AddOrReplace(currentUser.Id, default);
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, POSITIONS, orgViewModelCash);
        }
Ejemplo n.º 25
0
        /// <summary>
        /// Метод устанавливает значения для поиска по должностям
        /// </summary>
        /// <param name="empViewModelCash"></param>
        /// <returns></returns>
        public void SearchContact(EmployeeViewModel employeeViewModel)
        {
            //viewsInfo.Reset(EMP_CONTACTS);
            EmployeeViewModel empViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, EMP_CONTACTS);

            empViewModelCash.DivisionIdCash.AddOrReplace(currentUser.Id, employeeViewModel.DivisionId);
            empViewModelCash.SearchContactTypeCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchContactType);
            empViewModelCash.SearchContactPhoneCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchContactPhone?.ToLower().TrimStartAndEnd());
            empViewModelCash.SearchContactEmailCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchContactEmail?.ToLower().TrimStartAndEnd());
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, EMP_CONTACTS, empViewModelCash);
        }
Ejemplo n.º 26
0
        /// <summary>
        /// Очистка поиска по контактам клиента
        /// </summary>
        public void ClearContactSearch()
        {
            AccountViewModel accountViewModelCash = ModelCash <AccountViewModel> .GetViewModel(currentUser.Id, ACC_CONTACTS);

            accountViewModelCash.SearchContactFullNameCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchContactTypeCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchContactEmailCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchContactPhoneNumberCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchContactPrimaryCash.AddOrReplace(currentUser.Id, default);
            ModelCash <AccountViewModel> .SetViewModel(currentUser.Id, ACC_CONTACTS, accountViewModelCash);
        }
Ejemplo n.º 27
0
        /// <summary>
        /// Метод для поиска сотрудника
        /// </summary>
        /// <param name="orgViewModel"></param>
        public void SearchEmployee(OrganizationViewModel orgViewModel)
        {
            //viewsInfo.Reset(EMPLOYEES);
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, EMPLOYEES);

            orgViewModelCash.IdCash.AddOrReplace(currentUser.Id, orgViewModel.Id);
            orgViewModelCash.SearchEmployeeNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchEmployeeName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SearchEmployeePrimaryPosNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchEmployeePrimaryPosName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SeacrhEmployeeDivNameCash.AddOrReplace(currentUser.Id, orgViewModel.SeacrhEmployeeDivName?.ToLower().TrimStartAndEnd());
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, EMPLOYEES, orgViewModelCash);
        }
        /// <summary>
        /// Метод устанавливает значения для поиска по выбранным должностям
        /// </summary>
        /// <param name="empPosViewModelCash"></param>
        /// <returns></returns>
        public void SearchSelectedPosition(EmployeeViewModel employeeViewModel)
        {
            //viewsInfo.Reset(SELECTED_EMP_POSS);
            EmployeeViewModel employeeViewModelCash = ModelCash <EmployeeViewModel> .GetViewModel(currentUser.Id, SELECTED_EMP_POSS);

            employeeViewModelCash.IdCash.AddOrReplace(currentUser.Id, employeeViewModel.Id);
            employeeViewModelCash.DivisionIdCash.AddOrReplace(currentUser.Id, employeeViewModel.DivisionId);
            employeeViewModelCash.OrganizationIdCash.AddOrReplace(currentUser.Id, employeeViewModel.OrganizationId);
            employeeViewModelCash.SearchSelectedPosNameCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchSelectedPosName?.ToLower().TrimStartAndEnd());
            employeeViewModelCash.SearchSelectedParentPosNameCash.AddOrReplace(currentUser.Id, employeeViewModel.SearchSelectedParentPosName?.ToLower().TrimStartAndEnd());
            ModelCash <EmployeeViewModel> .SetViewModel(currentUser.Id, SELECTED_EMP_POSS, employeeViewModelCash);
        }
Ejemplo n.º 29
0
        /// <summary>
        /// Метод для поиска должности
        /// </summary>
        /// <param name="orgViewModel"></param>
        public void SearchPosition(OrganizationViewModel orgViewModel)
        {
            //viewsInfo.Reset(POSITIONS);
            OrganizationViewModel orgViewModelCash = ModelCash <OrganizationViewModel> .GetViewModel(currentUser.Id, POSITIONS);

            orgViewModelCash.IdCash.AddOrReplace(currentUser.Id, orgViewModel.Id);
            orgViewModelCash.SearchPosNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchPosName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SeacrhPositionDivNameCash.AddOrReplace(currentUser.Id, orgViewModel.SeacrhPositionDivName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SearchPrimaryEmployeeNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchPrimaryEmployeeName?.ToLower().TrimStartAndEnd());
            orgViewModelCash.SearchParentPosNameCash.AddOrReplace(currentUser.Id, orgViewModel.SearchParentPosName?.ToLower().TrimStartAndEnd());
            ModelCash <OrganizationViewModel> .SetViewModel(currentUser.Id, POSITIONS, orgViewModelCash);
        }
Ejemplo n.º 30
0
        /// <summary>
        /// Очистка поиска по банкосвким реквизитам клиента
        /// </summary>
        public void ClearInvoiceSearch()
        {
            AccountViewModel accountViewModelCash = ModelCash <AccountViewModel> .GetViewModel(currentUser.Id, ACC_INVOICES);

            accountViewModelCash.SearchInvoiceBankNameCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchInvoiceCityCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchInvoiceCheckingAccountCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchInvoiceCorrespondentAccountCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchInvoiceBICCash.AddOrReplace(currentUser.Id, default);
            accountViewModelCash.SearchInvoiceSWIFTCash.AddOrReplace(currentUser.Id, default);
            ModelCash <AccountViewModel> .SetViewModel(currentUser.Id, ACC_INVOICES, accountViewModelCash);
        }