Exemple #1
0
        void GetData(List <int> LesCentreHabilite, string NumeroProgramme, DateTime?DateDebut, DateTime?DateFin, string IdEquipe, int IdEtape, bool IsSortieCompteur)
        {
            if (Guid.Empty != _OperationID && 0 != FKEtape)
            {
                LstLesDemandes = new List <Galatee.Silverlight.ServiceAccueil.CsProgarmmation>();
                Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient client = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
                {
                    client.ChargerListeProgramAsync(LesCentreHabilite, NumeroProgramme, DateDebut, DateFin, IdEquipe, IdEtape, IsSortieCompteur);
                    client.ChargerListeProgramCompleted += (sender, args) =>
                    {
                        if (args.Cancelled || args.Error != null)
                        {
                            string error = args.Error.Message;
                            Message.Show(error, Languages.ListeCodePoste);
                            return;
                        }
                        if (args.Result == null)
                        {
                            Message.ShowError(Languages.msgErreurChargementDonnees, Languages.Parametrage);
                            return;
                        }

                        LstLesDemandes             = new List <Galatee.Silverlight.ServiceAccueil.CsProgarmmation>();
                        LstLesDemandes             = args.Result;
                        dtgrdParametre.ItemsSource = LstLesDemandes;
                        dtgrdParametre.ItemsSource = LstLesDemandes.OrderBy(t => t.DATETRANSMISSION).ToList();
                    };
                }
            }
        }