Пример #1
0
        void RaisePrint(SalesReportType reportType)
        {
            MainViewModel mainViewModel = ViewModelHelper.GetParentViewModel <MainViewModel>(this);

            if (mainViewModel != null)
            {
                mainViewModel.RaisePrint(reportType);
            }
        }
Пример #2
0
        void RaiseShowAllFolders()
        {
            MainViewModel mainViewModel = ViewModelHelper.GetParentViewModel <MainViewModel>(this);

            if (mainViewModel != null)
            {
                mainViewModel.RaiseShowAllFolders();
            }
        }
Пример #3
0
        public void ShowMap()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.ShowMapCore(Entity);
            }
        }
        public void ResetCustomFilters()
        {
            var vm = ViewModelHelper.GetParentViewModel <ISupportCustomFilters>(this);

            if (vm != null)
            {
                vm.ResetCustomFilters();
            }
        }
Пример #5
0
        public void Print(EmployeeReportType reportType)
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.PrintCore(Entity, reportType);
            }
        }
Пример #6
0
        public void MailMerge()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.MailMerge();
            }
        }
Пример #7
0
        public void QuickLetter(EmployeeMailTemplate mailTemplate)
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.QuickLetterCore(Entity, mailTemplate);
            }
        }
Пример #8
0
        public void ShowTask()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.ShowTask();
            }
        }
Пример #9
0
        public bool CanPrint(EmployeeReportType reportType)
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanPrintProfileCore(Entity));
        }
Пример #10
0
        public bool CanQuickLetter(EmployeeMailTemplate mailTemplate)
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanQuickLetterCore(Entity, mailTemplate));
        }
Пример #11
0
        public bool CanShowMap()
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanShowMapCore(Entity));
        }