private void RetourneHabilitationUser(List <int> ListidClient) { string key = Utility.getKey(); int response = LoadingManager.BeginLoading(Galatee.Silverlight.Resources.Accueil.Langue.En_Cours); AdministrationServiceClient client = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); client.RetourneProfilUtilisateurCompleted += (ss, res) => { if (res.Cancelled || res.Error != null) { string error = res.Error.Message; Message.ShowError(error, Galatee.Silverlight.Resources.Langue.errorTitle); LoadingManager.EndLoading(response); return; } if (res.Result == null) { Message.ShowInformation(Galatee.Silverlight.Resources.Langue.msgNodata, Galatee.Silverlight.Resources.Langue.informationTitle); LoadingManager.EndLoading(response); return; } LoadingManager.EndLoading(response); Utility.ActionDirectOrientation <ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true); }; client.RetourneProfilUtilisateurAsync(lstIUSeru, key); }
private void RetourneHabilitationUser(List <int> ListidClient) { string key = Utility.getKey(); AdministrationServiceClient client = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); client.RetourneProfilUtilisateurCompleted += (ss, res) => { if (res.Cancelled || res.Error != null) { string error = res.Error.Message; Message.ShowError(error, Galatee.Silverlight.Resources.Langue.errorTitle); return; } if (res.Result == null) { Message.ShowInformation(Galatee.Silverlight.Resources.Langue.msgNodata, Galatee.Silverlight.Resources.Langue.informationTitle); return; } //Utility.ActionDirectOrientation<ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true); if (Option == SessionObject.EnvoiPrinter) { Utility.ActionDirectOrientation <ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true); } else if (Option == SessionObject.EnvoiExecl) { Utility.ActionExportation <ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true, "xlsx"); } else if (Option == SessionObject.EnvoiWord) { Utility.ActionExportation <ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true, "doc"); } else if (Option == SessionObject.EnvoiPdf) { Utility.ActionExportation <ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null, string.Empty, SessionObject.CheminImpression, "ReportHabillitationMenuUser", "Administration", true, "pdf"); } }; client.RetourneProfilUtilisateurAsync(lstUtilisateur.Select(u => u.PK_ID).ToList(), key); }