private void ValiderDemandeReversement(CsHabilitationCaisse laCaisse) { try { CsDemandeReversement laDemande = new CsDemandeReversement() { FK_IDHABILCAISSE = laCaisse.PK_ID, USERCREATION = UserConnecte.matricule, DATECREATION = System.DateTime.Now, DATEMODIFICATION = System.DateTime.Now, RAISONDEMANDE = this.txt_RaisonDemande.Text, STATUT = SessionObject.Enumere.EvenementCree }; Galatee.Silverlight.ServiceCaisse.CaisseServiceClient service = new Galatee.Silverlight.ServiceCaisse.CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); service.MiseAJourDemandeReversementCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } if (args.Result == true) { Message.ShowInformation("Demande initiée", Langue.LibelleModule); } }; service.MiseAJourDemandeReversementAsync(laDemande, 1); service.CloseAsync(); } catch (Exception ex) { throw ex; } }
private void RetourneDemandeReversementCentre() { try { Galatee.Silverlight.ServiceCaisse.CaisseServiceClient service = new Galatee.Silverlight.ServiceCaisse.CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); service.RetourneDemandeReversementCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } List <CsDemandeReversement> lstCaisse = new List <CsDemandeReversement>(); if (args.Result != null && args.Result.Count != 0) { lstCaisse = args.Result; dtg_DemandeValidation.ItemsSource = null; dtg_DemandeValidation.ItemsSource = lstCaisse; } }; service.RetourneDemandeReversementAsync(); service.CloseAsync(); } catch (Exception ex) { throw ex; } }
private void ValiderDemandeReversement(CsDemandeReversement laDemande) { try { laDemande.STATUT = SessionObject.Enumere.EvenementMisAJour; Galatee.Silverlight.ServiceCaisse.CaisseServiceClient service = new Galatee.Silverlight.ServiceCaisse.CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); service.MiseAJourDemandeReversementCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } if (args.Result == true) { Message.ShowInformation("Demande initiée", Langue.LibelleModule); } }; service.MiseAJourDemandeReversementAsync(laDemande, 2); service.CloseAsync(); } catch (Exception ex) { throw ex; } }
private void RetourneCaisseHabileCentre() { try { CsCentre Centre = new CsCentre { CODE = SessionObject.LePosteCourant.CODECENTRE, PK_ID = SessionObject.LePosteCourant.FK_IDCENTRE.Value }; Galatee.Silverlight.ServiceCaisse.CaisseServiceClient service = new Galatee.Silverlight.ServiceCaisse.CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse")); service.RetourneCaisseHabiliterCentreCompleted += (s, args) => { if (args != null && args.Cancelled) { return; } List <CsHabilitationCaisse> lstCaisse = new List <CsHabilitationCaisse>(); if (args.Result != null && args.Result.Count != 0) { lstCaisse = args.Result; lstCaisse.ForEach(t => t.NOMCAISSE = string.Format("{0} ({1})", t.NOMCAISSE, t.MATRICULE)); Cbo_ListeCaisse.ItemsSource = null; Cbo_ListeCaisse.ItemsSource = lstCaisse; Cbo_ListeCaisse.DisplayMemberPath = "NOMCAISSE"; } }; service.RetourneCaisseHabiliterCentreAsync(Centre); service.CloseAsync(); } catch (Exception ex) { throw ex; } }