Exemplo n.º 1
0
 private void RefreshConfirmed_Click(object sender, RoutedEventArgs e)
 {
     PlannerClass.ToBeConfirmedContracts.Clear();
     PlannerClass.ToBeConfirmedContracts = PlannerClass.ContractsByStatus_Populate(2);
     DGConfirmCompletion.ItemsSource     = null;
     DGConfirmCompletion.ItemsSource     = PlannerClass.ToBeConfirmedContracts;
 }
Exemplo n.º 2
0
 private void RefreshActiveContracts_Click(object sender, RoutedEventArgs e)
 {
     PlannerClass.ActiveContracts.Clear();
     PlannerClass.ActiveContracts   = PlannerClass.ContractsByStatus_Populate(1);
     DGActiveContracts.ItemsSource  = null;
     DGActiveContracts.ItemsSource  = PlannerClass.ActiveContracts;
     DGConnectedTickets.ItemsSource = null;
 }
Exemplo n.º 3
0
        private void Confirm_Click(object sender, RoutedEventArgs e)
        {
            foreach (FC_LocalContract c in DGConfirmCompletion.SelectedItems)
            {
                PlannerClass.UpdateContratState(c, 3);
            }

            PlannerClass.ConfirmedContracts.Clear();
            PlannerClass.ConfirmedContracts = PlannerClass.ContractsByStatus_Populate(2);
            DGConfirmCompletion.ItemsSource = null;
            DGConfirmCompletion.ItemsSource = PlannerClass.ConfirmedContracts;
        }
Exemplo n.º 4
0
        private void SetOrderToComplete_Click(object sender, RoutedEventArgs e)
        {
            foreach (FC_LocalContract c in DGActiveContracts.SelectedItems)
            {
                PlannerClass.UpdateContratState(c, 2);
            }

            PlannerClass.ActiveContracts.Clear();
            PlannerClass.ActiveContracts   = PlannerClass.ContractsByStatus_Populate(1);
            DGActiveContracts.ItemsSource  = null;
            DGActiveContracts.ItemsSource  = PlannerClass.ActiveContracts;
            DGConnectedTickets.ItemsSource = null;
        }