Beispiel #1
0
        private void RechercheMandatement(string NumMandat)
        {
            Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement"));
            service.RechercheMandatemantCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result == null)
                {
                    Message.ShowInformation("L'opération ne c'est pas correctement effecaion ,veuillez la refaire ", "Recouvrement");
                }
                if (args.Result.Count == 0)
                {
                    Message.ShowInformation("Aucune données trouvées ", "Recouvrement");
                }
                this.dg_campagne.ItemsSource = args.Result;
                this.Txt_Montant.Text        = args.Result.Sum(o => o.MONTANT).Value.ToString(SessionObject.FormatMontant);

                return;
            };
            service.RechercheMandatemantAsync(NumMandat);
        }