Exemplo n.º 1
0
        private void ListSelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e)
        {
            var syncPlus = (SyncPlus)Xcasse.SelectedItem;

            Xcheck.DataContext = RepositorySyncPlusProduct.GetByIdSyncPlus(syncPlus.CustomerId);
            CollectionViewSource.GetDefaultView(Xcheck.ItemsSource).Refresh();
        }
Exemplo n.º 2
0
        public static void MegaSync()
        {
            // check tables
            var syncTask = Task <bool> .Factory.StartNew(
                () =>
            {
                RepositoryActionHashBox.Sync();
                //RepositoryCheck
                RepositoryCheckTicket.Sync();
                RepositoryCheckTicketTmp.Sync();
                RepositoryPro.Sync();
                RepositoryClientInfo.Sync();
                RepositoryCloseTicket.Sync();
                RepositoryCloseTicketCheckDiscount.Sync();
                RepositoryCloseTicketG.Sync();
                RepositoryCloseTicketTmp.Sync();
                RepositoryCountry.Sync();
                RepositoryCurrency.Sync();
                //RepositoryCurrencyRelations
                RepositoryDevisId.Sync();
                RepositoryDevisWeb.Sync();
                //RepositoryDiscount
                RepositoryDiscountCard.Sync();
                RepositoryEstablishment.Sync();
                RepositoryGeneral.Sync();
                RepositoryGroupProduct.Sync();
                //RepositoryHistoryChangeProduct
                RepositoryInfoClientsDiscountsType.Sync();
                RepositoryLastUpdate.Sync();
                RepositoryOpenTicketWindow.Sync();
                RepositoryPayProduct.Sync();
                RepositoryPayProductTmp.Sync();
                //RepositoryPriceGros
                RepositoryProduct.Sync();
                RepositoryProductBc.Sync();
                RepositoryStatNation.Sync();
                RepositoryStatNationPopup.Sync();
                RepositoryStatPlaceArrond.Sync();
                //RepositoryStockLogs
                RepositoryStockReal.Sync();
                RepositorySyncPlus.Sync();
                RepositorySyncPlusProduct.Sync();
                //RepositoryTes
                RepositoryTva.Sync();
                RepositoryTypePay.Sync();
                //RepositoryXmlFile
                return(true);
            });

            syncTask.ContinueWith(
                s => { });
        }
Exemplo n.º 3
0
 public static void SaveEnAttenete(Guid customerId)
 {
     RepositorySyncPlusProduct.GetCheck(customerId);
 }
Exemplo n.º 4
0
 public static void EnAttenete()
 {
     RepositorySyncPlusProduct.SetCheck(RepositoryCheck.DocumentProductCheck);
     RepositoryCheck.DocumentProductCheck = null;
     CassieService.OpenProductsCheck();
 }