private void LoadTransferRequest()
 {
     //IsLoading = true;
     //BusyContent = "Cargando...";
     IsVisibleStartPage = false;
     ViewModelManager.LoadActionBar(new TransferRequestBar());
     ViewModelManager.LoadToGrid <TransferRequestViewModel, TransferRequestsView>();
 }
        public List <ToolMenuItem> GetToolBarItems()
        {
            var menuItems = new List <ToolMenuItem>();

            // menuItems.Add(new ToolMenuItem("INICIO", "", new RelayCommand(() => IsVisibleStartPage = true), ToolGroupRegion.Supply));
            menuItems.Add(new ToolMenuItem("SOLICITUD DE TRASLADO", "SUPPLYGROUP", new RelayCommand(LoadTransferRequest)
                                           , isChecked: true, region: ToolGroupRegion.Supply));
            menuItems.Add(new ToolMenuItem("PEDIDOS ESPECIALES", "SUPPLYGROUP", new RelayCommand(() =>
            {
                ViewModelManager.LoadActionBar(new SpecialOrderBar());
                ViewModelManager.LoadToGrid <SpecialOrderViewModel, SpecialOrdersGridView>();
            }), region: ToolGroupRegion.Supply));
            menuItems.Add(new ToolMenuItem("ENTREGAS", "SUPPLYGROUP", new RelayCommand(() =>
            {
                ViewModelManager.LoadActionBar(new TransferBar());
                ViewModelManager.LoadToGrid <TransfersViewModel, TransfersGridView>();
            }), region: ToolGroupRegion.Supply));

            // set isChecked cuando es el unico elemento en la toolbar o es seleccionado por defecto,
            menuItems.Add(new ToolMenuItem("COMPRAS", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new PurchasesBar(), "18");
                ViewModelManager.LoadToGrid <PurchaseViewModel, PurchaseView>();
            }), ToolGroupRegion.Purchases, isChecked: true));

            menuItems.Add(new ToolMenuItem("NOTAS DE CREDITO", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new SupplierCreditNoteBar());
                ViewModelManager.LoadToGrid <SupplierCreditNoteViewModel, SupplierCreditNotesView>();
            }), ToolGroupRegion.Purchases));


            menuItems.Add(new ToolMenuItem("VENTAS", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new SellsBar(), "13");
                ViewModelManager.LoadToGrid <SaleViewModel, SaleGridView>();
            }), ToolGroupRegion.Sales, isChecked: true));

            menuItems.Add(new ToolMenuItem("NOTAS DE CREDITO DE VENTAS", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new ClientCreditNotesBar(), "14");
                ViewModelManager.LoadToGrid <ClientCreditNoteViewModel, ClientCreditNotesView>();
            }), ToolGroupRegion.Sales));


            menuItems.Add(new ToolMenuItem("ANTICIPOS", "", new RelayCommand(() =>
            {
                ViewModelManager.LoadActionBar(new DownPaymentBar(), "203");
                ViewModelManager.LoadToGrid <DownPaymentViewModel, DownPaymentGridView>();
            }), ToolGroupRegion.Sales));
            menuItems.Add(new ToolMenuItem("DEPOSITOS", "", new RelayCommand(() =>
            {
                ViewModelManager.LoadActionBar(new DepositBar());
                ViewModelManager.LoadToGrid <DepositViewModel, DepositGridView>();
            }), ToolGroupRegion.Sales));
            //menuItems.Add(new ToolMenuItem("CAJA CHICA", "", new RelayCommand(() => { }), ToolGroupRegion.Sells));

            menuItems.Add(new ToolMenuItem("FALTANTE DE EFECTIVO", "", new RelayCommand(() =>
            {
                ViewModelManager.LoadActionBar(new CashMissingBar());
                ViewModelManager.LoadToGrid <CashMissingViewModel, CashMissingGridView>();
            }), ToolGroupRegion.Sales));

            menuItems.Add(new ToolMenuItem("ENTRADAS", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new GoodReceiptBar());
                ViewModelManager.ActionBarViewModel.IsvisibilityGroupsFilter = true;
                ShowToolBarRegion(ToolGroupRegion.Inventory);
                ViewModelManager.LoadToGrid <GoodsReceiptViewModel, GoodReceiptGridView>();
            }), ToolGroupRegion.Inventory, isChecked: true));

            menuItems.Add(new ToolMenuItem("SALIDAS", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new GoodIssuesBar());
                ViewModelManager.ActionBarViewModel.IsvisibilityGroupsFilter = true;

                ViewModelManager.LoadToGrid <GoodsIssuesViewModel, GoodIssuesGridView>();
            }), ToolGroupRegion.Inventory));

            menuItems.Add(new ToolMenuItem("CONTEO FISICO", "", new RelayCommand(() =>
            {
                IsVisibleStartPage = false;
                ViewModelManager.ActionBarViewModel.IsvisibilityGroupsFilter = true;
                ViewModelManager.LoadActionBar(new InventoryCountBar());
                ViewModelManager.LoadToGrid <InventoryCountViewModel, InventoryCountGridView>();
            }), ToolGroupRegion.Inventory));


            menuItems.Add(new ToolMenuItem("TALONARIOS", "", new RelayCommand(() =>
            {
                isVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new CheckBookBar());
                ViewModelManager.LoadToGrid <CheckBookViewModel, CheckbookGridView>();
            }), ToolGroupRegion.CheckBook, isChecked: true));

            menuItems.Add(new ToolMenuItem("EXCEPCIONES", "", new RelayCommand(() =>
            {
                isVisibleStartPage = false;
                ViewModelManager.LoadActionBar(new CanceledCheckBookBar());

                ViewModelManager.LoadToGrid <CanceledCheckBookViewModel, CanceledCheckBookGridView>();
            }), ToolGroupRegion.CheckBook));

            //menuItems.Add(new ToolMenuItem("REPORTES", "", new RelayCommand(() =>
            //{

            //    isVisibleStartPage = false;
            //    ViewModelManager.LoadActionBar(new ReportsBar());

            //    //ViewModelManager.LoadToGrid<object,>();

            //}), ToolGroupRegion.CheckBook));

            return(menuItems);
        }