예제 #1
0
        private void ChargeDonneDemande(int pk_id)
        {
            FraudeServiceClient service = new FraudeServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Fraude"));

            service.RetourDemandeFraudeCompleted += (s, args) =>
            {
                try
                {
                    if (args != null && args.Cancelled)
                    {
                        return;
                    }
                    LaDemande = args.Result;

                    if (LaDemande != null)
                    {
                        txt_Produit.Text = LaDemande.CompteurFraude.libelle_Produit;
                    }
                }
                catch (Exception ex)
                {
                    Message.ShowError(ex, "Erreur");
                }
            };
            service.RetourDemandeFraudeAsync(pk_id);
        }
        private void ChargeDonneDemande(int pk_id)
        {
            FraudeServiceClient service = new FraudeServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Fraude"));

            service.RetourDemandeFraudeCompleted += (s, args) =>
            {
                try
                {
                    if (args != null && args.Cancelled)
                    {
                        return;
                    }
                    LaDemande = args.Result;

                    if (LaDemande != null)
                    {
                        ///Information iwbes
                        txt_CompteurIwebs.Text = string.IsNullOrEmpty(LaDemande.Canalisation.NUMERO) ? string.Empty : LaDemande.Canalisation.NUMERO;
                        txt_marqueIwebs.Text   = string.IsNullOrEmpty(LaDemande.Canalisation.MARQUE) ? string.Empty : LaDemande.Canalisation.MARQUE;
                        txt_CommunIwebs.Text   = string.IsNullOrEmpty(LaDemande.Ag.COMMUNE) ? string.Empty : LaDemande.Ag.COMMUNE;
                        txt_quartierIwebs.Text = string.IsNullOrEmpty(LaDemande.Ag.QUARTIER) ? string.Empty : LaDemande.Ag.QUARTIER;
                        txt_RueIwbes.Text      = string.IsNullOrEmpty(LaDemande.Ag.RUE) ? string.Empty : LaDemande.Ag.RUE;
                        txt_porteIwebs.Text    = string.IsNullOrEmpty(LaDemande.Ag.PORTE) ? string.Empty : LaDemande.Ag.PORTE;
                        txt_TourneeIwebs.Text  = string.IsNullOrEmpty(LaDemande.Ag.TOURNEE) ? string.Empty : LaDemande.Ag.TOURNEE;
                        txt_ordreTourne.Text   = string.IsNullOrEmpty(LaDemande.Ag.ORDTOUR) ? string.Empty : LaDemande.Ag.ORDTOUR;
                        //Information Fraude
                        ///Information iwbes
                        txt_CompteurFrs.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.Commune) ? string.Empty : LaDemande.ClientFraude.Commune;
                        txt_MarqueFrs.Text   = string.IsNullOrEmpty(LaDemande.CompteurFraude.MARQUE) ? string.Empty : LaDemande.CompteurFraude.MARQUE;
                        txt_CommunFrs.Text   = string.IsNullOrEmpty(LaDemande.CompteurFraude.MARQUE) ? string.Empty : LaDemande.CompteurFraude.MARQUE;
                        txt_quartierFrs.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.Quartier) ? string.Empty : LaDemande.ClientFraude.Quartier;
                        txt_rueFrs.Text      = string.IsNullOrEmpty(LaDemande.ClientFraude.Rue) ? string.Empty : LaDemande.ClientFraude.Rue;
                        txt_portedfrs.Text   = string.IsNullOrEmpty(LaDemande.ClientFraude.Porte) ? string.Empty : LaDemande.ClientFraude.Porte;
                        txt_IndexFrs.Text    = string.IsNullOrEmpty(LaDemande.CompteurFraude.IndexCompteur.ToString()) ? string.Empty : LaDemande.CompteurFraude.IndexCompteur.ToString();
                        //txt_ordreTourne.Text = string.IsNullOrEmpty(LaDemande.Ag.ORDTOUR) ? string.Empty : LaDemande.Ag.ORDTOUR;

                        txt_Nom.Text     = string.IsNullOrEmpty(LaDemande.ClientFraude.Nomabon) ? string.Empty : LaDemande.ClientFraude.Nomabon;
                        txt_refAbon.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.Client) ? string.Empty : LaDemande.ClientFraude.Client;;
                        txt_Centre.Text  = string.IsNullOrEmpty(LaDemande.ClientFraude.Centre) ? string.Empty : LaDemande.ClientFraude.Centre;;
                        //txt_telephone.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.Telephone) ? string.Empty : LaDemande.ClientFraude.Telephone; ;
                        //txt_porte.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.Porte) ? string.Empty : LaDemande.ClientFraude.Porte; ;
                        //txt_ContactAbonne.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.ContratAbonnement) ? string.Empty : LaDemande.ClientFraude.ContratAbonnement;
                        //txt_contarBrachement.Text = string.IsNullOrEmpty(LaDemande.ClientFraude.ContratBranchement) ? string.Empty : LaDemande.ClientFraude.ContratBranchement;
                        //txt_Numerotraitement.Text = string.IsNullOrEmpty(LaDemande.LaDemande.NUMDEM) ? string.Empty : LaDemande.LaDemande.NUMDEM;
                    }
                }
                catch (Exception ex)
                {
                    Message.ShowError(ex, "Erreur");
                }
            };
            service.RetourDemandeFraudeAsync(pk_id);
        }