private void SaveMandatement(List <CsPaiementGc> ListMandatementGc, bool ATransmettre = false)
        {
            Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement"));
            service.SavePaiementCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result == null)
                {
                    return;
                }
                if (args.Result == true)
                {
                    Message.Show("Paiement enregistré avec succès", "Information");
                    if (ATransmettre == true)
                    {
                        RemplirCampagne(UserConnecte.matricule, true);
                    }
                    RemplirCampagne(UserConnecte.matricule);
                }
                else
                {
                    Message.Show("Le Paiement n'a pas été enregistré avec succès,veuillez refaire l'opration ", "Information");
                }

                return;
            };
            Facture_Payer_Partiellement.MONTANT = Montant_Facture_RestAPayer;
            service.SavePaiementAsync(ListMandatementGc, Facture_Payer_Partiellement);
        }
예제 #2
0
        private void SaveMandatement(List <CsPaiementGc> ListMandatementGc)
        {
            Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement"));
            service.SavePaiementCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result == null)
                {
                    return;
                }
                if (args.Result == true)
                {
                    Message.Show("Paiement enregistré avec succes", "Information");
                }
                else
                {
                    Message.Show("Le Paiement n'a pas été enregistré avec succes,veuillez refaire l'opration ", "Information");
                }

                return;
            };
            service.SavePaiementAsync(ListMandatementGc);
        }