Exemplo n.º 1
0
        //Refresh data
        private void RefreshProducts_Click(object sender, RoutedEventArgs e)
        {
            //Set date controls days
            FromDT.SelectedDate = DateTime.Now.AddDays(-31);
            ToDT.SelectedDate   = DateTime.Now.AddDays(1);

            BillSearchTX.Clear();
            BranchCB.SelectedIndex = 0;

            Pagination = 1;

            LoadTickets();
        }
Exemplo n.º 2
0
        //Set clients to searchbox
        private void SetClients()
        {
            //Set IEnumerable LIST
            IEnumerable <string> ClientList = Enumerable.Empty <string>();

            for (int i = 0; i < NovaAPI.APIClient.clients.Count; i++)
            {
                ClientList = ClientList.Concat(new[] { NovaAPI.APIClient.clients[i].name });
            }

            //Set list of clients to textbox
            BillSearchTX.SetValue(AutoCompleteBehavior.AutoCompleteItemsSource, ClientList);

            BillSearchTX.Focus();
        }
Exemplo n.º 3
0
        //Search Bill BT click
        private void BillSearchExitBT_Click(object sender, RoutedEventArgs e)
        {
            BillSearchPopUp.IsOpen = false;
            BillDock.IsEnabled     = true;

            BillSearchTX.Clear();

            try
            {
                TicketsDataGrid.ItemsSource = null;
                TicketsDataGrid.Items.Refresh();
            }
            catch (Exception)
            {
            }

            ClientFilterTX.Focus();
        }
Exemplo n.º 4
0
 //Search bill data
 private void SearchBillBT_Click(object sender, RoutedEventArgs e)
 {
     BillDock.IsEnabled     = false;
     BillSearchPopUp.IsOpen = true;
     BillSearchTX.Focus();
 }