private void RetourneAnnomalie(List <CsFactureBrut> leResultatFacturationbrut) { Galatee.Silverlight.ServiceFacturation.FacturationServiceClient service = new Galatee.Silverlight.ServiceFacturation.FacturationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Facturation")); service.RetourneLesteAnomalieCompleted += (s, args) => { if (args != null && args.Cancelled) { Message.Show(Langue.msgErrorFact, Langue.LibelleModule); return; } if (args == null && args.Cancelled) { Message.Show(Langue.msgErrorFact, Langue.LibelleModule); return; } if (args.Result.Count != 0) { string print = "Imprimé le " + DateTime.Now + " sur le poste " + SessionObject.LePosteCourant.NOMPOSTE + " par " + UserConnecte.nomUtilisateur + "(" + UserConnecte.matricule + ") du centre " + UserConnecte.LibelleCentre; Dictionary <string, string> param = new Dictionary <string, string>(); param.Add("Print", print); //Utility.ActionDirectOrientation<ServicePrintings.CsAnnomalie, ServiceFacturation.CsAnnomalie>(args.Result, new Dictionary<string, string>(), SessionObject.CheminImpression, "AnomalieFacturation", "Facturation", true); Utility.ActionDirectOrientation <ServicePrintings.CsAnnomalie, ServiceFacturation.CsAnnomalie>(args.Result, param, SessionObject.CheminImpression, "AnomalieFacturation", "Facturation", true); } }; service.RetourneLesteAnomalieAsync(leResultatFacturationbrut.First().LOTRI, leResultatFacturationbrut.First().FK_IDCENTRE); service.CloseAsync(); }
private void RetourneAnnomalie(List <CsFactureBrut> leResultatFacturationbrut) { Galatee.Silverlight.ServiceFacturation.FacturationServiceClient service = new Galatee.Silverlight.ServiceFacturation.FacturationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Facturation")); service.RetourneLesteAnomalieCompleted += (s, args) => { if (args != null && args.Cancelled) { Message.Show(Langue.msgErrorFact, Langue.LibelleModule); return; } if (args == null && args.Cancelled) { Message.Show(Langue.msgErrorFact, Langue.LibelleModule); return; } if (args.Result.Count != 0) { Dictionary <string, string> param = new Dictionary <string, string>(); Utility.ActionDirectOrientation <ServicePrintings.CsAnnomalie, ServiceFacturation.CsAnnomalie>(args.Result, new Dictionary <string, string>(), SessionObject.CheminImpression, "AnomalieFacturation", "Facturation", true); } }; service.RetourneLesteAnomalieAsync(leResultatFacturationbrut.First().LOTRI, leResultatFacturationbrut.First().FK_IDCENTRE); service.CloseAsync(); }