コード例 #1
0
        public void ShowDesigner()
        {
            var viewModel = ReportDesignerViewModel.Create(CloneReport(Report));
            var doc       = DocumentManagerService.CreateDocument("ReportDesignerView", viewModel, null, this);

            doc.Title = CreateTitle();
            doc.Show();

            if (viewModel.IsReportSaved)
            {
                Report = CloneReport(viewModel.Report);
                Report.CreateDocument();
                viewModel.Report.Dispose();
            }
        }
コード例 #2
0
        public void ShowDesigner()
        {
            var viewModel = ReportDesignerViewModel.Create(CloneReport(Report));
            var doc       = DocumentManagerService.CreateDocument(GetStringValue(Next.Enums.Enums.Views.ReporterDesigner), viewModel, null, this);

            doc.Title = Title;
            doc.Show();

            if (viewModel.IsReportSaved)
            {
                Report = CloneReport(viewModel.Report);
                Report.CreateDocument();
                viewModel.Report.Dispose();
            }
        }
 public void ShowCenterOfServices()
 {
     try
     {
         ShowDocument(
             DocumentManagerService.CreateDocument(
                 GetStringValue(Next.Enums.Enums.Views.CenterOfService),
                 CenterOfServiceCollectionViewModel.Create(), null, this),
             GetStringValue(Next.Enums.Enums.WindowTitle.CenterOfService));
     }
     catch (Exception ex)
     {
         MessageBoxService.ShowMessage(GetStringValue(Next.Enums.Enums.MessageError.WindowError) + ex.Message, ex.Message,
                                       MessageButton.OK, MessageIcon.Error);
     }
 }
コード例 #4
0
        public virtual void Edit(object threadSafeProxy)
        {
            if (!source.IsLoadedProxy(threadSafeProxy))
            {
                return;
            }
            TPrimaryKey primaryKey = GetProxyPrimaryKey(threadSafeProxy);
            TEntity     entity     = helperRepository.Find(primaryKey);

            if (entity == null)
            {
                DestroyDocument(DocumentManagerService.FindEntityDocument <TEntity, TPrimaryKey>(primaryKey));
                return;
            }
            DocumentManagerService.ShowExistingEntityDocument <TEntity, TPrimaryKey>(this, primaryKey);
        }
コード例 #5
0
        void InitializeNavigation()
        {
            mvvmContext.RegisterService(DocumentManagerService.Create(tabFormControl));
            mvvmContext.RegisterService(FolderBrowserDialogService.Create(this, new FolderBrowserDialogServiceOptions()
            {
                Description = "New Folder"
            }));
            //
            var fluent = mvvmContext.OfType <MainViewModel>();

            fluent.BindCommand(tabFormControl.AddPageButton, x => x.NewFolder());
            fluent.WithEvent(this, "Load")
            .EventToCommand(x => x.OnLoad());
            fluent.WithEvent(this, "Closed")
            .EventToCommand(x => x.OnClosed());
        }
コード例 #6
0
        void InitializeNavigation()
        {
            DevExpress.XtraEditors.WindowsFormsSettings.SetDPIAware();
            DevExpress.XtraEditors.WindowsFormsSettings.EnableFormSkins();
            DevExpress.XtraEditors.WindowsFormsSettings.AllowPixelScrolling = DevExpress.Utils.DefaultBoolean.True;
            DevExpress.XtraEditors.WindowsFormsSettings.ScrollUIMode        = DevExpress.XtraEditors.ScrollUIMode.Touch;
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013 Light Gray");

            mvvmContext.RegisterService(DocumentManagerService.Create(navigationFrame));
            DevExpress.Utils.MVVM.MVVMContext.RegisterFlyoutDialogService();
            // We want to use buttons in Ribbon to show the specific modules
            var fluentAPI = mvvmContext.OfType <PetStore.ViewModels.PetStoreEntitiesViewModel>();

            fluentAPI.BindCommand(navigationBarItemAccountCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(barButtonItemAccountCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(navigationBarItemBillCollectionView, (x, m) => x.Show(m), x => x.Modules[1]);
            fluentAPI.BindCommand(barButtonItemBillCollectionView, (x, m) => x.Show(m), x => x.Modules[1]);
            fluentAPI.BindCommand(navigationBarItemBillDetailCollectionView, (x, m) => x.Show(m), x => x.Modules[2]);
            fluentAPI.BindCommand(barButtonItemBillDetailCollectionView, (x, m) => x.Show(m), x => x.Modules[2]);
            fluentAPI.BindCommand(navigationBarItemCommentCollectionView, (x, m) => x.Show(m), x => x.Modules[3]);
            fluentAPI.BindCommand(barButtonItemCommentCollectionView, (x, m) => x.Show(m), x => x.Modules[3]);
            fluentAPI.BindCommand(navigationBarItemCommentDetailCollectionView, (x, m) => x.Show(m), x => x.Modules[4]);
            fluentAPI.BindCommand(barButtonItemCommentDetailCollectionView, (x, m) => x.Show(m), x => x.Modules[4]);
            fluentAPI.BindCommand(navigationBarItemGiftCollectionView, (x, m) => x.Show(m), x => x.Modules[5]);
            fluentAPI.BindCommand(barButtonItemGiftCollectionView, (x, m) => x.Show(m), x => x.Modules[5]);
            fluentAPI.BindCommand(navigationBarItemOriginCollectionView, (x, m) => x.Show(m), x => x.Modules[6]);
            fluentAPI.BindCommand(barButtonItemOriginCollectionView, (x, m) => x.Show(m), x => x.Modules[6]);
            fluentAPI.BindCommand(navigationBarItemPetCollectionView, (x, m) => x.Show(m), x => x.Modules[7]);
            fluentAPI.BindCommand(barButtonItemPetCollectionView, (x, m) => x.Show(m), x => x.Modules[7]);
            fluentAPI.BindCommand(navigationBarItemPetAccessoryCollectionView, (x, m) => x.Show(m), x => x.Modules[8]);
            fluentAPI.BindCommand(barButtonItemPetAccessoryCollectionView, (x, m) => x.Show(m), x => x.Modules[8]);
            fluentAPI.BindCommand(navigationBarItemPetFoodCollectionView, (x, m) => x.Show(m), x => x.Modules[9]);
            fluentAPI.BindCommand(barButtonItemPetFoodCollectionView, (x, m) => x.Show(m), x => x.Modules[9]);
            fluentAPI.BindCommand(navigationBarItemPetMedicineCollectionView, (x, m) => x.Show(m), x => x.Modules[10]);
            fluentAPI.BindCommand(barButtonItemPetMedicineCollectionView, (x, m) => x.Show(m), x => x.Modules[10]);
            fluentAPI.BindCommand(navigationBarItemPetToyCollectionView, (x, m) => x.Show(m), x => x.Modules[11]);
            fluentAPI.BindCommand(barButtonItemPetToyCollectionView, (x, m) => x.Show(m), x => x.Modules[11]);
            fluentAPI.BindCommand(navigationBarItemRoleCollectionView, (x, m) => x.Show(m), x => x.Modules[12]);
            fluentAPI.BindCommand(barButtonItemRoleCollectionView, (x, m) => x.Show(m), x => x.Modules[12]);
            fluentAPI.BindCommand(navigationBarItemTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[13]);
            fluentAPI.BindCommand(barButtonItemTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[13]);
            fluentAPI.BindCommand(navigationBarItemUserCollectionView, (x, m) => x.Show(m), x => x.Modules[14]);
            fluentAPI.BindCommand(barButtonItemUserCollectionView, (x, m) => x.Show(m), x => x.Modules[14]);
            // We want show the default module when our UserControl is loaded
            fluentAPI.WithEvent <EventArgs>(this, "Load")
            .EventToCommand(x => x.OnLoaded(null), x => x.DefaultModule);
        }
コード例 #7
0
        public void OpenOrCreate(Folder folder)
        {
            if (folder.IsNew())
            {
                if (FolderBrowserDialogService.ShowDialog())
                {
                    DataModel.OnNewFolder(FolderBrowserDialogService.ResultPath);
                }
                return;
            }
            IDocument document = DocumentManagerService.FindDocumentByIdOrCreate(folder.Path,
                                                                                 svc => svc.CreateDocument("FolderView", folder, this.GetParentViewModel <MainViewModel>()));

            document.Id = folder.Path;
            document.Show();
            DataModel.OnFolderOpen(folder);
        }
コード例 #8
0
        void InitializeNavigation()
        {
            DevExpress.XtraEditors.WindowsFormsSettings.SetDPIAware();
            DevExpress.XtraEditors.WindowsFormsSettings.EnableFormSkins();
            DevExpress.XtraEditors.WindowsFormsSettings.AllowPixelScrolling = DevExpress.Utils.DefaultBoolean.True;
            DevExpress.XtraEditors.WindowsFormsSettings.TouchUIMode         = DevExpress.LookAndFeel.TouchUIMode.True;
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013");
            float fontSize = 10f;

            DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont     = new System.Drawing.Font("Segoe UI", fontSize);
            DevExpress.XtraEditors.WindowsFormsSettings.DefaultMenuFont = new System.Drawing.Font("Segoe UI", fontSize);

            tileBar.SelectionColorMode = SelectionColorMode.UseItemBackColor;
            mvvmContext.RegisterService(DocumentManagerService.Create(navigationFrame));
            DevExpress.Utils.MVVM.MVVMContext.RegisterFlyoutDialogService();
            // We want to use buttons in Ribbon to show the specific modules
            var fluentAPI = mvvmContext.OfType <Building_Managment.ViewModels.RentalDBViewModel>();

            tileBar.SelectedItem = tileBarItemBuildingCollectionView;

            fluentAPI.BindCommand(tileBarItemBuildingCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(tileBarItemExpensCollectionView, (x, m) => x.Show(m), x => x.Modules[1]);
            fluentAPI.BindCommand(tileBarItemExpensessDetaileCollectionView, (x, m) => x.Show(m), x => x.Modules[2]);
            fluentAPI.BindCommand(tileBarItemExpenseTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[3]);
            fluentAPI.BindCommand(tileBarItemUser_TableCollectionView, (x, m) => x.Show(m), x => x.Modules[4]);
            fluentAPI.BindCommand(tileBarItemPriv_TableCollectionView, (x, m) => x.Show(m), x => x.Modules[5]);
            fluentAPI.BindCommand(tileBarItemScreen_Priv_TableCollectionView, (x, m) => x.Show(m), x => x.Modules[6]);
            fluentAPI.BindCommand(tileBarItemPurchaseCollectionView, (x, m) => x.Show(m), x => x.Modules[7]);
            fluentAPI.BindCommand(tileBarItemPurchasesDetailCollectionView, (x, m) => x.Show(m), x => x.Modules[8]);
            fluentAPI.BindCommand(tileBarItemPurchasesTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[9]);
            fluentAPI.BindCommand(tileBarItemRentCollectionView, (x, m) => x.Show(m), x => x.Modules[10]);
            fluentAPI.BindCommand(tileBarItemCustomerCollectionView, (x, m) => x.Show(m), x => x.Modules[11]);
            fluentAPI.BindCommand(tileBarItemCustomersAttachmentCollectionView, (x, m) => x.Show(m), x => x.Modules[12]);
            fluentAPI.BindCommand(tileBarItemCustomerTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[13]);
            fluentAPI.BindCommand(tileBarItemPaymentMethodCollectionView, (x, m) => x.Show(m), x => x.Modules[14]);
            fluentAPI.BindCommand(tileBarItemRentDetaileCollectionView, (x, m) => x.Show(m), x => x.Modules[15]);
            fluentAPI.BindCommand(tileBarItemPaymentTypeCollectionView, (x, m) => x.Show(m), x => x.Modules[16]);
            fluentAPI.BindCommand(tileBarItemShopCollectionView, (x, m) => x.Show(m), x => x.Modules[17]);
            fluentAPI.BindCommand(tileBarItemElectricity_ShopsBillsCollectionView, (x, m) => x.Show(m), x => x.Modules[18]);
            fluentAPI.BindCommand(tileBarItemUsersGroupCollectionView, (x, m) => x.Show(m), x => x.Modules[19]);
            fluentAPI.BindCommand(tileBarItemOwnerCollectionView, (x, m) => x.Show(m), x => x.Modules[20]);
            // We want show the default module when our UserControl is loaded
            fluentAPI.WithEvent <EventArgs>(this, "Load")
            .EventToCommand(x => x.OnLoaded(null), x => x.DefaultModule);
        }
コード例 #9
0
        void ShowDocument <TViewModel>(string documentType, object parameter)
        {
            var document = FindDocument <TViewModel>();

            if (parameter is long)
            {
                document = FindDocument <TViewModel>((long)parameter);
            }
            if (document == null)
            {
                document = DocumentManagerService.CreateDocument(documentType, null, parameter, this);
            }
            else
            {
                ViewModelHelper.EnsureViewModel(document.Content, this, parameter);
            }
            document.Show();
        }
コード例 #10
0
        void InitializeNavigation()
        {
            DevExpress.XtraEditors.WindowsFormsSettings.SetDPIAware();
            DevExpress.XtraEditors.WindowsFormsSettings.EnableFormSkins();
            DevExpress.XtraEditors.WindowsFormsSettings.AllowPixelScrolling = DevExpress.Utils.DefaultBoolean.True;
            DevExpress.XtraEditors.WindowsFormsSettings.ScrollUIMode        = DevExpress.XtraEditors.ScrollUIMode.Touch;
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013 Light Gray");

            mvvmContext.RegisterService(DocumentManagerService.Create(navigationFrame));
            DevExpress.Utils.MVVM.MVVMContext.RegisterFlyoutDialogService();
            // We want to use buttons in Ribbon to show the specific modules
            var fluentAPI = mvvmContext.OfType <ArmyProject.PL.FRM_Holiday_Arrival_Full_Crud.ViewModels.Army_DBEntitiesViewModel>();

            fluentAPI.BindCommand(navigationBarItemArrivalStations_TBLCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(barButtonItemArrivalStations_TBLCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            // We want show the default module when our UserControl is loaded
            fluentAPI.WithEvent <EventArgs>(this, "Load")
            .EventToCommand(x => x.OnLoaded(null), x => x.DefaultModule);
        }
コード例 #11
0
        void InitializeNavigation()
        {
            DevExpress.XtraEditors.WindowsFormsSettings.SetDPIAware();
            DevExpress.XtraEditors.WindowsFormsSettings.EnableFormSkins();
            DevExpress.XtraEditors.WindowsFormsSettings.AllowPixelScrolling = DevExpress.Utils.DefaultBoolean.True;
            DevExpress.XtraEditors.WindowsFormsSettings.ScrollUIMode        = DevExpress.XtraEditors.ScrollUIMode.Touch;
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2013 Light Gray");

            mvvmContext.RegisterService(DocumentManagerService.Create(navigationFrame));
            DevExpress.Utils.MVVM.MVVMContext.RegisterFlyoutDialogService();
            // We want to use buttons in Ribbon to show the specific modules
            var fluentAPI = mvvmContext.OfType <PSS_WINFORM_CONTROL.ViewModels.Model1ViewModel>();

            fluentAPI.BindCommand(navigationBarItemcategoryCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(barButtonItemcategoryCollectionView, (x, m) => x.Show(m), x => x.Modules[0]);
            fluentAPI.BindCommand(navigationBarItemitemCollectionView, (x, m) => x.Show(m), x => x.Modules[1]);
            fluentAPI.BindCommand(barButtonItemitemCollectionView, (x, m) => x.Show(m), x => x.Modules[1]);
            fluentAPI.BindCommand(navigationBarItemorder_productCollectionView, (x, m) => x.Show(m), x => x.Modules[2]);
            fluentAPI.BindCommand(barButtonItemorder_productCollectionView, (x, m) => x.Show(m), x => x.Modules[2]);
            fluentAPI.BindCommand(navigationBarItemorderCollectionView, (x, m) => x.Show(m), x => x.Modules[3]);
            fluentAPI.BindCommand(barButtonItemorderCollectionView, (x, m) => x.Show(m), x => x.Modules[3]);
            fluentAPI.BindCommand(navigationBarItemorder_userCollectionView, (x, m) => x.Show(m), x => x.Modules[4]);
            fluentAPI.BindCommand(barButtonItemorder_userCollectionView, (x, m) => x.Show(m), x => x.Modules[4]);
            fluentAPI.BindCommand(navigationBarItemuserCollectionView, (x, m) => x.Show(m), x => x.Modules[5]);
            fluentAPI.BindCommand(barButtonItemuserCollectionView, (x, m) => x.Show(m), x => x.Modules[5]);
            fluentAPI.BindCommand(navigationBarItemroleCollectionView, (x, m) => x.Show(m), x => x.Modules[6]);
            fluentAPI.BindCommand(barButtonItemroleCollectionView, (x, m) => x.Show(m), x => x.Modules[6]);
            fluentAPI.BindCommand(navigationBarItempetCollectionView, (x, m) => x.Show(m), x => x.Modules[7]);
            fluentAPI.BindCommand(barButtonItempetCollectionView, (x, m) => x.Show(m), x => x.Modules[7]);
            fluentAPI.BindCommand(navigationBarItemspeciesCollectionView, (x, m) => x.Show(m), x => x.Modules[8]);
            fluentAPI.BindCommand(barButtonItemspeciesCollectionView, (x, m) => x.Show(m), x => x.Modules[8]);
            fluentAPI.BindCommand(navigationBarItemsupplierCollectionView, (x, m) => x.Show(m), x => x.Modules[9]);
            fluentAPI.BindCommand(barButtonItemsupplierCollectionView, (x, m) => x.Show(m), x => x.Modules[9]);
            fluentAPI.BindCommand(navigationBarItemsysdiagramCollectionView, (x, m) => x.Show(m), x => x.Modules[10]);
            fluentAPI.BindCommand(barButtonItemsysdiagramCollectionView, (x, m) => x.Show(m), x => x.Modules[10]);
            // We want show the default module when our UserControl is loaded
            fluentAPI.WithEvent <EventArgs>(this, "Load")
            .EventToCommand(x => x.OnLoaded(null), x => x.DefaultModule);
        }
コード例 #12
0
 public void ShowPrint(EmployeeReportType employeeReportType)
 {
     DocumentManagerService.CreateDocument("ReportPreview", ReportPreviewViewModel.Create(GetReport(employeeReportType)), null, this).Show();
 }
コード例 #13
0
 public virtual void CreateDetailEntity()
 {
     DocumentManagerService.ShowNewEntityDocument <TDetailEntity>(this);
 }
コード例 #14
0
        public void BtnAnalyzeClick()
        {
            IsSplashScreenShown             = false;
            _selectedTestClass.ClassLibrary = SelectTestCodeDll;
            _selectedTestClass.ClassProject = SelectTestProject;

            _selectedTestClass.PartialClasses.Clear();
            _selectedTestClass.PartialClasses.Add(new ClassDetail
            {
                Claz     = _selectedTestClass.Claz,
                FilePath = _selectedTestClass.FilePath
            });

            var baseListSyntax = _selectedTestClass.Claz.Syntax.BaseList;

            if (baseListSyntax != null &&
                baseListSyntax.Types.Any())
            {
                foreach (var type in baseListSyntax.Types)
                {
                    var typeSyntax = type.Type;
                    var fileName   = typeSyntax.ToString();
                    if (typeSyntax is GenericNameSyntax syntax)
                    {
                        fileName = syntax.Identifier.ValueText;
                    }

                    var bfile = Path.GetDirectoryName(SelectTestProject)
                                .FindFile($"{fileName}.cs");
                    if (bfile?
                        .GetCodeFileContent()
                        .RootNode() is CompilationUnitSyntax baseFile)
                    {
                        _selectedTestClass.BaseClass = baseFile;
                    }
                }
            }

            if (ChkIncludePartialClasses.IsChecked)
            {
                foreach (var data in _testLookUpDataSource)
                {
                    if (!_selectedTestClass.PartialClassNodesAdded &&
                        _selectedTestClass.FullName == data.FullName &&
                        data.FilePath != _selectedTestClass.FilePath)
                    {
                        _selectedTestClass.PartialClasses.Add(data);
                    }
                }

                _selectedTestClass.PartialClassNodesAdded = true;
            }

            foreach (var data in _testLookUpDataSource)
            {
                if (_selectedTestClass.FullName == data.FullName)
                {
                    var setupMethod    = data.Claz.Syntax.NUnitSetupMethod();
                    var tearDownMethod = data.Claz.Syntax.NUnitTearDownMethod();

                    if (setupMethod != null && tearDownMethod != null)
                    {
                        _selectedTestClass.PartialClassWithSetupLogic = data;
                        break;
                    }
                }
            }

            if (_selectedTestClass.PartialClassWithSetupLogic == null &&
                _selectedTestClass.BaseClass != null)
            {
                var baseClass = _selectedTestClass.BaseClass.DescendantNodes <ClassDeclarationSyntax>()
                                .FirstOrDefault(x => x.NUnitSetupMethod() != null && x.NUnitTearDownMethod() != null);

                if (baseClass != null)
                {
                    _selectedTestClass.SetupInBaseClass           = true;
                    _selectedTestClass.PartialClassWithSetupLogic = _selectedTestClass;
                }
            }

            _selectedClass.TestClaz                  = _selectedTestClass;
            _selectedClass.ClassProject              = SelectSourceCodeProject;
            _selectedClass.ClassLibrary              = SelectSourceCodeDll;
            _selectedClass.IncludeNestedClasses      = ChkNestedClasses.IsChecked;
            _selectedClass.DoNetCoreProject          = _selectedClass.ClassProject.DoNetCoreProject();
            _selectedClass.TestClaz.DoNetCoreProject = _selectedClass.TestClaz.ClassProject.DoNetCoreProject();

            var document = DocumentManagerService.CreateDocument(
                nameof(ClassViewer),
                ClassViewerViewModel.Create(_selectedClass));

            TopMost        = false;
            document.Title = _selectedClass.FullName;
            document.Show();
        }
コード例 #15
0
 public void ShowMap()
 {
     DocumentManagerService.CreateDocument("MapView", null, SelectedEntity.Id, this).Show();
 }
コード例 #16
0
 public void ShowMap()
 {
     Logger.Log("OutlookInspiredApp: View Orders Map");
     DocumentManagerService.CreateDocument("OrderMapView", OrderMapViewModel.Create(SelectedEntity), null, this).Show();
 }
コード例 #17
0
        public void QuickReport(ReportFormat format)
        {
            var quickReportsViewModel = OrderQuickReportsViewModel.Create(SelectedEntity, format);

            DocumentManagerService.CreateDocument(string.Format("Order{0}QuickReportView", format.ToString()), quickReportsViewModel, null, this).Show();
        }
コード例 #18
0
 public void ShowRevenueReport()
 {
     DocumentManagerService.CreateDocument("OrderRevenueReportView",
                                           OrderRevenueViewModel.Create(QueriesHelper.GetRevenueReportItems(CreateUnitOfWork().OrderItems), RevenueReportFormat.Summary), null, this).Show();
 }
 public override void New()
 {
     DocumentManagerService.ShowNewEntityDocument <Order>(this, newOrder => InitializeNewOrder(newOrder));
 }
コード例 #20
0
        public void ShowMailMerge()
        {
            var mailMergeViewModel = MailMergeViewModel <Employee, object> .Create(UnitOfWorkFactory, getRepositoryFunc, this.Entity.Id);

            DocumentManagerService.CreateDocument("EmployeeMailMergeView", mailMergeViewModel, null, this).Show();
        }
コード例 #21
0
        public void ShowProfile()
        {
            Logger.Log("HybridApp: Create Report : Employee: Profile");

            DocumentManagerService.CreateDocument("ReportPreview", ReportPreviewViewModel.Create(ReportInfoFactory.EmployeeProfile(Entity)), null, this).Show();
        }
コード例 #22
0
 public void ShowMap()
 {
     DocumentManagerService.CreateDocument("OrderMapView", OrderMapViewModel.Create(SelectedEntity), null, this).Show();
 }
コード例 #23
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();
        }
コード例 #24
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();
        }
コード例 #25
0
 public virtual void ShowRevenueAnalysisReport()
 {
     DocumentManagerService.CreateDocument("OrderRevenueReportView",
                                           OrderRevenueViewModel.Create(QueriesHelper.GetRevenueAnalysisReportItems(CreateUnitOfWork().OrderItems, SelectedEntity.StoreId.Value), RevenueReportFormat.Analysis), null, this).Show();
 }