public void MailMerge()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.MailMerge();
            }
        }
Ejemplo n.º 2
0
        public void ShowMap()
        {
            var mapViewModel = EmployeeCollectionViewModel.CreateEmployeeMapViewModel(Entity, destination => {
                Entity.Address = destination;
                this.RaisePropertyChanged(x => x.Entity);
            });

            DocumentManagerService.CreateDocument("NavigatorMapView", mapViewModel, null, this).Show();
        }
        public void Print(EmployeeReportType reportType)
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.PrintCore(Entity, reportType);
            }
        }
        public void QuickLetter(EmployeeMailTemplate mailTemplate)
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.QuickLetterCore(Entity, mailTemplate);
            }
        }
        public void ShowTask()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.ShowTask();
            }
        }
        public void ShowMap()
        {
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            if (collectionViewModel != null)
            {
                collectionViewModel.ShowMapCore(Entity);
            }
        }
        public bool CanPrint(EmployeeReportType reportType)
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanPrintProfileCore(Entity));
        }
        public bool CanQuickLetter(EmployeeMailTemplate mailTemplate)
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanQuickLetterCore(Entity, mailTemplate));
        }
        public bool CanShowMap()
        {
            if (Entity == null || IsNew())
            {
                return(false);
            }
            EmployeeCollectionViewModel collectionViewModel = ViewModelHelper.GetParentViewModel <EmployeeCollectionViewModel>(this);

            return((collectionViewModel != null) && collectionViewModel.CanShowMapCore(Entity));
        }
 public static EmployeesFilterTreeViewModel Create(EmployeeCollectionViewModel collectionViewModel)
 {
     return(ViewModelSource.Create(() => new EmployeesFilterTreeViewModel(collectionViewModel)));
 }
 protected EmployeesFilterTreeViewModel(EmployeeCollectionViewModel collectionViewModel)
     : base(collectionViewModel, new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, StaticFiltersName, x => x.EmployeesStaticFilters, x => x.EmployeesCustomFilters, x => x.EmployeesGroupFilters))
 {
 }