private void EtatDesMiseAjour(DateTime dateDebut, DateTime dateFin) { Galatee.Silverlight.ServiceInterfaceComptable.InterfaceComptableServiceClient service1 = new ServiceInterfaceComptable.InterfaceComptableServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("InterfaceComptable")); service1.RetourneEtatMiseAJourGrandCompteCompleted += (sr, res) => { prgBar.Visibility = System.Windows.Visibility.Collapsed; if (res != null && res.Cancelled) { return; } if (res.Result != null && res.Result.Count != 0) { Dictionary <string, string> param = new Dictionary <string, string>(); Utility.ActionDirectOrientation <ServicePrintings.CsComptabilisation, ServiceInterfaceComptable.CsComptabilisation>(res.Result, null, SessionObject.CheminImpression, "Operation", "InterfaceComptable", true); } else { Message.ShowInformation("Aucune information trouvée", "Report"); return; } }; service1.RetourneEtatMiseAJourGrandCompteAsync(dateDebut, dateFin); service1.CloseAsync(); }
private void AvanceSurConsomation(string CodeSite, bool IsResilier, DateTime?DateDebut, DateTime?DateFin) { Galatee.Silverlight.ServiceInterfaceComptable.InterfaceComptableServiceClient service1 = new ServiceInterfaceComptable.InterfaceComptableServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("InterfaceComptable")); service1.RetourneAvanceSurConsomationCompleted += (sr, res) => { prgBar.Visibility = System.Windows.Visibility.Collapsed; if (res != null && res.Cancelled) { return; } if (res.Result != null && res.Result.Count != 0) { Utility.ActionExportation <ServicePrintings.CsLclient, ServiceInterfaceComptable.CsLclient>(res.Result, null, string.Empty, SessionObject.CheminImpression, "AvanceSurConsomation", "InterfaceComptable", true, "xlsx"); } else { Message.ShowInformation("Aucune information trouvée", "Report"); return; } }; service1.RetourneAvanceSurConsomationAsync(CodeSite, IsResilier, DateDebut, DateFin); service1.CloseAsync(); }