Exemplo n.º 1
0
        public void QuickLetter(string templateName)
        {
            var mailMergeViewModel = MailMergeViewModel <Employee, LinksViewModel> .Create(UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Employees, Entity == null?null as long? : Entity.Id, templateName, LinksViewModel.Create());

            DocumentManagerService.CreateDocument("EmployeeMailMergeView", mailMergeViewModel, null, this).Show();
        }
Exemplo n.º 2
0
        public void ShowMailMerge()
        {
            var mailMergeViewModel = MailMergeViewModel <Employee, object> .Create(UnitOfWorkFactory, getRepositoryFunc, this.Entity.Id);

            DocumentManagerService.CreateDocument("EmployeeMailMergeView", mailMergeViewModel, null, this).Show();
        }
Exemplo n.º 3
0
        public void QuickLetter(string templateName)
        {
            var mailMergeViewModel = MailMergeViewModel <Order, LinksViewModel> .Create(UnitOfWorkFactory, x => x.Orders, GetSelectedEntityKey(), templateName, LinksViewModel.Create());

            DocumentManagerService.CreateDocument("OrderMailMergeView", mailMergeViewModel, null, this).Show();
        }
Exemplo n.º 4
0
        public void ShowMailMerge()
        {
            var mailMergeViewModel = MailMergeViewModel <Employee, object> .Create(UnitOfWorkFactory, x => x.Employees, SelectedEntity == null?null as long? : SelectedEntity.Id);

            DocumentManagerService.CreateDocument("EmployeeMailMergeView", mailMergeViewModel, null, this).Show();
        }