Example #1
0
 void galatee_OkClicked(object sender, EventArgs e)
 {
     Galatee.Silverlight.InterfaceComptable.UcOperationCaisse ctrs = sender as Galatee.Silverlight.InterfaceComptable.UcOperationCaisse;
     if (ctrs.isOkClick)
     {
         List <Galatee.Silverlight.ServiceInterfaceComptable.CsOperationComptable> _LeCoper = (List <Galatee.Silverlight.ServiceInterfaceComptable.CsOperationComptable>)ctrs.MyObjectList;
         if (_LeCoper != null && _LeCoper.Count != 0)
         {
             CmbOperation.ItemsSource       = null;
             CmbOperation.ItemsSource       = _LeCoper;
             CmbOperation.DisplayMemberPath = "LIBELLE";
             CmbOperation.SelectedItem      = _LeCoper.First();
             CmbOperation.Tag = _LeCoper;
             if (_LeCoper.FirstOrDefault(o => o.CODE == "03" && CmbSite.SelectedItem != null &&
                                         ((CsSite)CmbSite.SelectedItem).CODE == SessionObject.Enumere.Generale) != null)
             {
                 this.Chk_Mt.Visibility = System.Windows.Visibility.Visible;
                 this.Chk_Bt.Visibility = System.Windows.Visibility.Visible;
             }
             else
             {
                 this.Chk_Mt.Visibility = System.Windows.Visibility.Collapsed;
                 this.Chk_Bt.Visibility = System.Windows.Visibility.Collapsed;
             }
         }
     }
 }
Example #2
0
        private void btnOpertaion_Click(object sender, RoutedEventArgs e)
        {
            List <Galatee.Silverlight.ServiceInterfaceComptable.CsOperationComptable> CoperOrientation = new List <ServiceInterfaceComptable.CsOperationComptable>();

            if (this.rdbDecaissement.IsChecked == true)
            {
                CoperOrientation = ListeOperationComptable.Where(t => t.LIBELLECOMPTABLE == "DECAISSEMENT").ToList();
            }
            else if (this.rdbEncaisse.IsChecked == true)
            {
                CoperOrientation = ListeOperationComptable.Where(t => t.LIBELLECOMPTABLE == "ENCAISSEMENT").ToList();
            }
            else if (this.rdbFacture.IsChecked == true)
            {
                CoperOrientation = ListeOperationComptable.Where(t => t.LIBELLECOMPTABLE == "VENTE").ToList();
            }

            Galatee.Silverlight.InterfaceComptable.UcOperationCaisse ctrl = new Galatee.Silverlight.InterfaceComptable.UcOperationCaisse(CoperOrientation.OrderBy(t => t.CODE).ToList());
            ctrl.Closed += new EventHandler(galatee_OkClicked);
            ctrl.Show();
        }