Example #1
0
        private void RetourneInfoBranchement(int fk_idcentre, string centre, string client, string produit)
        {
            BranchementClientRecherche = new CsBrt();
            AcceuilServiceClient service = new AcceuilServiceClient(Utility.Protocole(), Utility.EndPoint("Accueil"));

            service.RetourneBranchementCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result != null)
                {
                    BranchementClientRecherche = args.Result.FirstOrDefault(p => p.PRODUIT == LaDemande.LaDemande.PRODUIT);
                    if (TypeDemande == SessionObject.Enumere.FermetureBrt)
                    {
                        BranchementClientRecherche.DRES = LaDemande.Branchement.DRES;
                    }

                    LaDemande.Branchement = BranchementClientRecherche;
                    AfficherBranchemetDemande(LaDemande.Branchement);
                }
            };
            service.RetourneBranchementAsync(fk_idcentre, centre, client, produit);
            service.CloseAsync();
        }
Example #2
0
        public UcDemandeDetailBranchementMTA(CsBrt _leBrt, string _typeDemande)
        {
            try
            {
                InitializeComponent();
                Translate();
                TypeDemande = _typeDemande;
                SessionObject.EtatControlCourant = true;

                if (LaDemande.LaDemande == null)
                {
                    LaDemande.LaDemande = new CsDemandeBase();
                }
                LaDemande.LaDemande.PRODUIT        = _leBrt.PRODUIT;
                this.Txt_CodeDiametre.MaxLength    = SessionObject.Enumere.TailleDiametreBranchement;
                this.Txt_CodeMateriel.MaxLength    = SessionObject.Enumere.TailleCodeMateriel;
                this.Txt_DateRacordement.MaxLength = SessionObject.Enumere.TailleDate;
                this.Txt_DateDepose.MaxLength      = SessionObject.Enumere.TailleDate;
                ChargerDiametreBranchement();
                ChargerMaterielBranchement();
                ChargerPosteElectrique();
                ChargeQuartier();
                ChargeDeparts();
                this.Txt_Client.Text      = string.IsNullOrEmpty(_leBrt.CLIENT) ? string.Empty : _leBrt.CLIENT;
                this.Txt_Addresse.Text    = string.IsNullOrEmpty(_leBrt.CLIENT) ? string.Empty : _leBrt.CLIENT;
                this.Txt_Ordre.Visibility = System.Windows.Visibility.Collapsed;
                this.lbl_Ordre.Visibility = System.Windows.Visibility.Collapsed;
                AfficherBranchemetDemande(_leBrt);
            }
            catch (Exception ex)
            {
                Message.ShowError(ex.Message, Langue.lbl_Menu);
            }
        }
Example #3
0
        public UcDemandeDetailBranchementMTA(CsDemande _LaDemande, bool _IsUpdate)
        {
            try
            {
                InitializeComponent();
                Translate();
                this.Txt_CodeDiametre.MaxLength    = SessionObject.Enumere.TailleDiametreBranchement;
                this.Txt_CodeMateriel.MaxLength    = SessionObject.Enumere.TailleCodeMateriel;
                this.Txt_DateRacordement.MaxLength = SessionObject.Enumere.TailleDate;
                this.Txt_DateDepose.MaxLength      = SessionObject.Enumere.TailleDate;
                this.Txt_DateDepose.Text           = DateTime.Now.ToShortDateString();
                this.Txt_DateRacordement.Text      = DateTime.Now.ToShortDateString();
                LaDemande   = _LaDemande;
                TypeDemande = _LaDemande.LaDemande.TYPEDEMANDE;
                if (LaDemande.Branchement == null)
                {
                    LaDemande.Branchement = new CsBrt();
                }

                ChargerDiametreBranchement();
                ChargerMaterielBranchement();
                ChargeQuartier();
                ChargeDeparts();
                ChargerPosteElectrique();


                if (TypeDemande == SessionObject.Enumere.ModificationBranchement)
                {
                    this.Txt_Ordre.Visibility = System.Windows.Visibility.Collapsed;
                    this.lbl_Ordre.Visibility = System.Windows.Visibility.Collapsed;

                    this.Txt_Client.Text   = string.IsNullOrEmpty(LaDemande.Branchement.CLIENT) ? string.Empty : LaDemande.LaDemande.CLIENT;
                    this.Txt_Addresse.Text = string.IsNullOrEmpty(LaDemande.Branchement.CLIENT) ? string.Empty : LaDemande.LaDemande.CLIENT;
                }

                IsUpdate = _IsUpdate;
                if (IsUpdate)
                {
                    if (LaDemande.Branchement != null)
                    {
                        _LeBranchement = LaDemande.Branchement;
                    }
                    else
                    {
                        _LeBranchement = new CsBrt();
                    }
                    AfficherBranchemetDemande(_LeBranchement);
                    if (TypeDemande != SessionObject.Enumere.ModificationBranchement)
                    {
                        EnregisterDemande(LaDemande);
                    }
                }
            }
            catch (Exception ex)
            {
                Message.ShowError(ex.Message, Langue.lbl_Menu);
            }
        }
Example #4
0
 void AfficherBranchemetDemande(CsBrt _LeBrtDemande)
 {
     this.Txt_CodeDiametre.Text    = string.IsNullOrEmpty(_LeBrtDemande.DIAMBRT) ? string.Empty : _LeBrtDemande.DIAMBRT;
     this.Txt_CodeMateriel.Text    = string.IsNullOrEmpty(_LeBrtDemande.NATBRT) ? string.Empty : _LeBrtDemande.NATBRT;
     this.Txt_LongueurBrt.Text     = string.IsNullOrEmpty(_LeBrtDemande.LONGBRT.ToString()) ? InitValue.ToString() : _LeBrtDemande.LONGBRT.ToString();
     this.Txt_NombrePoint.Text     = _LeBrtDemande.NBPOINT.ToString();
     this.Txt_DateRacordement.Text = string.IsNullOrEmpty(_LeBrtDemande.DRAC.ToString()) ? string.Empty : Convert.ToDateTime(_LeBrtDemande.DRAC).ToShortDateString();
     this.Txt_DateDepose.Text      = string.IsNullOrEmpty(_LeBrtDemande.DRES.ToString()) ? string.Empty : Convert.ToDateTime(_LeBrtDemande.DRES).ToShortDateString();
     this.Txt_Longitude.Text       = string.IsNullOrEmpty(_LeBrtDemande.LONGITUDE) ? string.Empty : _LeBrtDemande.LONGITUDE;
     this.Txt_Latitude.Text        = string.IsNullOrEmpty(_LeBrtDemande.LATITUDE) ? string.Empty : _LeBrtDemande.LATITUDE;
     //this.Txt_CodeGeographique.Text = string.IsNullOrEmpty(_LeBrtDemande.ADRESSERESEAU) ? string.Empty : _LeBrtDemande.ADRESSERESEAU;
 }
        void AfficherBranchemetDemande(CsBrt _LeBrtDemande)
        {
            //if (_Lademande.ISSUBVENTION == SessionObject.Enumere.IsBranchementSubventione)
            //    chk_EstSubventionne.IsChecked = true;
            //else
            //    chk_EstSubventionne.IsChecked = false;

            this.Txt_CodeDiametre.Text = string.IsNullOrEmpty(_LeBrtDemande.DIAMBRT) ? string.Empty : _LeBrtDemande.DIAMBRT;
            CsTypeBranchement _leDiametre = ClasseMEthodeGenerique.RetourneObjectFromList <CsTypeBranchement>(LstDiametreBrt, this.Txt_CodeDiametre.Text, "CODE");

            if (_leDiametre != null && !string.IsNullOrEmpty(_leDiametre.LIBELLE))
            {
                this.Txt_LibelleDiametre.Text = _leDiametre.LIBELLE;

                //EnregisterDemande(LaDemande);
            }

            this.Txt_CodeMateriel.Text = string.IsNullOrEmpty(_LeBrtDemande.NATBRT) ? string.Empty : _LeBrtDemande.NATBRT;
            CsMaterielBranchement _leMateriel = ClasseMEthodeGenerique.RetourneObjectFromList <CsMaterielBranchement>(LstDeMaterielBrt, this.Txt_CodeMateriel.Text, "CODE");

            if (_leMateriel != null && !string.IsNullOrEmpty(_leMateriel.LIBELLE))
            {
                this.Txt_LibelleMateriel.Text = _leMateriel.LIBELLE;
                //EnregisterDemande(LaDemande);
            }
            this.Txt_LongueurBrt.Text     = string.IsNullOrEmpty(_LeBrtDemande.LONGBRT.ToString()) ? InitValue.ToString() : _LeBrtDemande.LONGBRT.ToString();
            this.Txt_NombrePoint.Text     = _LeBrtDemande.NBPOINT.ToString();
            this.Txt_DateRacordement.Text = string.IsNullOrEmpty(_LeBrtDemande.DRAC.ToString()) ? string.Empty :Convert.ToDateTime(_LeBrtDemande.DRAC).ToShortDateString();
            this.Txt_DateDepose.Text      = string.IsNullOrEmpty(_LeBrtDemande.DRES.ToString()) ? string.Empty : Convert.ToDateTime(_LeBrtDemande.DRES).ToShortDateString();

            this.Txt_Longitude.Text         = string.IsNullOrEmpty(_LeBrtDemande.LONGITUDE) ? string.Empty : _LeBrtDemande.LONGITUDE;
            this.Txt_Latitude.Text          = string.IsNullOrEmpty(_LeBrtDemande.LATITUDE) ? string.Empty : _LeBrtDemande.LATITUDE;
            this.Txt_AdresseElectrique.Text = string.IsNullOrEmpty(_LeBrtDemande.ADRESSERESEAU) ? string.Empty : _LeBrtDemande.ADRESSERESEAU;


            if (TypeDemande == SessionObject.Enumere.FermetureBrt ||
                //TypeDemande == SessionObject.Enumere.Reabonnement ||
                TypeDemande == SessionObject.Enumere.ModificationBranchement ||
                TypeDemande == SessionObject.Enumere.ReouvertureBrt)
            {
                IsControleActif(false);
            }
        }
Example #6
0
        public FrmModificationBranchement(CsDemande _LaDemande)
        {
            InitializeComponent();
            LaDemande   = _LaDemande;
            TypeDemande = LaDemande.LaDemande.TYPEDEMANDE;
            ChargerDiametre(LaDemande.LaDemande.PRODUIT);
            ChargerMAterielBranchement(LaDemande.LaDemande.PRODUIT);
            ChargerDonneeDuSite();
            ChargerListeDeProduit();
            isUpdate = true;
            this.Txt_CodeCentre.MaxLength      = SessionObject.Enumere.TailleCentre;
            this.Txt_CodeProduit.MaxLength     = SessionObject.Enumere.TailleCodeProduit;
            this.Txt_Client.MaxLength          = SessionObject.Enumere.TailleClient;
            BranchementClientRecherche         = _LaDemande.Branchement;
            _LaDemande.LaDemande.STATUTDEMANDE = null;

            this.btn_Supprime.Visibility   = System.Windows.Visibility.Collapsed;
            this.btn_Modifier.Visibility   = System.Windows.Visibility.Collapsed;
            this.btn_Rechercher.Visibility = System.Windows.Visibility.Collapsed;

            this.Txt_Ordre.Text       = string.IsNullOrEmpty(_LaDemande.LaDemande.ORDRE) ? string.Empty : _LaDemande.LaDemande.ORDRE;
            this.Txt_CodeCentre.Text  = string.IsNullOrEmpty(BranchementClientRecherche.CENTRE) ? string.Empty : BranchementClientRecherche.CENTRE;
            this.Txt_CodeProduit.Text = string.IsNullOrEmpty(BranchementClientRecherche.PRODUIT) ? string.Empty : BranchementClientRecherche.PRODUIT;
            this.Txt_NumDemande.Text  = string.IsNullOrEmpty(LaDemande.LaDemande.NUMDEM) ? string.Empty : LaDemande.LaDemande.NUMDEM;
            this.Txt_Client.Text      = string.IsNullOrEmpty(LaDemande.LaDemande.CLIENT) ? string.Empty : LaDemande.LaDemande.CLIENT;
            AfficherBranchemetDemande(BranchementClientRecherche);
            RemplirLibelle();

            this.Txt_CodeCentre.IsReadOnly  = true;
            this.Txt_CodeProduit.IsReadOnly = true;
            this.Txt_NumDemande.IsReadOnly  = true;
            this.Txt_Client.IsReadOnly      = true;
            this.btn_Rechercher.IsEnabled   = false;
            this.btn_Centre.IsEnabled       = false;
            this.btn_Produit.IsEnabled      = false;
            this.lnkMotif.Visibility        = System.Windows.Visibility.Collapsed;


            if (LaDemande.LaDemande.FICHIERJOINT != new Guid("00000000-0000-0000-0000-000000000000"))
            {
                RetourneObjectScan(LaDemande.LaDemande);
            }
        }
        private void RemplireBranchementParProduit(CsBrt _LeBrtSelectionne)
        {
            try
            {
                this.Txt_Distance.Text          = laDetailDemande.Branchement.LONGBRT == null ? string.Empty : laDetailDemande.Branchement.LONGBRT.ToString();
                this.Txt_PuissanceInstalle.Text = laDetailDemande.Branchement.PUISSANCEINSTALLEE == null ? string.Empty : laDetailDemande.Branchement.PUISSANCEINSTALLEE.Value.ToString(SessionObject.FormatMontant);
                this.TxtLongitude.Text          = string.IsNullOrEmpty(laDetailDemande.Branchement.LONGITUDE) ? string.Empty : laDetailDemande.Branchement.LONGITUDE;
                this.TxtLatitude.Text           = string.IsNullOrEmpty(laDetailDemande.Branchement.LATITUDE) ? string.Empty : laDetailDemande.Branchement.LATITUDE;

                Txt_LibelleTypeBrt.Text             = string.IsNullOrEmpty(laDetailDemande.Branchement.LIBELLETYPEBRANCHEMENT) ? string.Empty : laDetailDemande.Branchement.LIBELLETYPEBRANCHEMENT;
                Txt_LibellePosteSource.Text         = string.IsNullOrEmpty(laDetailDemande.Branchement.LIBELLEPOSTESOURCE) ? string.Empty : laDetailDemande.Branchement.LIBELLEPOSTESOURCE;
                Txt_LibelleDepartHTA.Text           = string.IsNullOrEmpty(laDetailDemande.Branchement.LIBELLEDEPARTHTA) ? string.Empty : laDetailDemande.Branchement.LIBELLEDEPARTHTA;
                Txt_LibelleQuartierPoste.Text       = string.IsNullOrEmpty(laDetailDemande.Branchement.LIBELLEQUARTIER) ? string.Empty : laDetailDemande.Branchement.LIBELLEQUARTIER;
                Txt_LibellePosteTransformateur.Text = string.IsNullOrEmpty(laDetailDemande.Branchement.LIBELLETRANSFORMATEUR) ? string.Empty : laDetailDemande.Branchement.LIBELLETRANSFORMATEUR;
                Txt_LibelleDepartBt.Text            = string.IsNullOrEmpty(laDetailDemande.Branchement.DEPARTBT) ? string.Empty : laDetailDemande.Branchement.DEPARTBT;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #8
0
        private void RetourneInfoBranchement(int fk_idcentre, string centre, string client, string produit)
        {
            int res = LoadingManager.BeginLoading(Langue.En_Cours);

            BranchementClientRecherche = new CsBrt();
            AcceuilServiceClient service = new AcceuilServiceClient(Utility.Protocole(), Utility.EndPoint("Accueil"));

            service.RetourneBranchementCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result != null)
                {
                    BranchementClientRecherche = args.Result.FirstOrDefault(p => p.PRODUIT == LaDemande.LaDemande.PRODUIT);
                    if (BranchementClientRecherche != null && !string.IsNullOrEmpty(BranchementClientRecherche.CENTRE))
                    {
                        LaDemande.Branchement = BranchementClientRecherche;
                        AfficherBranchemetDemande(BranchementClientRecherche);
                    }
                    else
                    {
                        Message.ShowInformation("Aucune information trouvée", "Recherche de branchement");
                    }
                    LoadingManager.EndLoading(res);
                }
                else
                {
                    Message.ShowInformation("Aucune information trouvée", "Recherche de branchement");
                }

                LoadingManager.EndLoading(res);
            };
            service.RetourneBranchementAsync(fk_idcentre, centre, client, produit);
            service.CloseAsync();
        }
        private void RetourneInfoBranchement(int fk_idcentre, string centre, string client, string produit)
        {
            CsBrt BranchementClientRecherche = new CsBrt();
            AcceuilServiceClient service     = new AcceuilServiceClient(Utility.Protocole(), Utility.EndPoint("Accueil"));

            service.RetourneBranchementCompleted += (s, args) =>
            {
                if (args != null && args.Cancelled)
                {
                    return;
                }
                if (args.Result != null)
                {
                    BranchementClientRecherche = args.Result.FirstOrDefault(p => p.PRODUIT == produit);
                    TabItem tabItem1 = new TabItem();
                    tabItem1.Header  = "ANCIENNES DONNEES";
                    _LectrlbrtClient = new UcDemandeDetailBranchement(BranchementClientRecherche, laDemande.LaDemande.TYPEDEMANDE);

                    tabItem1.Content = _LectrlbrtClient;
                    tabControl1.Items.Add(tabItem1);
                    tabControl1.SelectedItem = tabItem1;

                    laDemande.Branchement.PK_ID   = BranchementClientRecherche.PK_ID;
                    laDemande.Branchement.FK_IDAG = BranchementClientRecherche.FK_IDAG;

                    TabItem tabItem2 = new TabItem();
                    tabItem2.Header  = "NOUVELLES DONNEES";
                    _LectrlbrtClient = new UcDemandeDetailBranchement(laDemande, true);
                    tabItem2.Content = _LectrlbrtClient;
                    tabControl1.Items.Add(tabItem2);
                    tabControl1.SelectedItem = tabItem2;
                }
            };
            service.RetourneBranchementAsync(fk_idcentre, centre, client, produit);
            service.CloseAsync();
        }
        private void AfficherInfoAbonnement(CsBrt _NouvelInfoBrt, CsBrt _LeBrtDemande)
        {
            try
            {
                this.Txt_CodeCentre.Text     = string.IsNullOrEmpty(laDetailDemande.LaDemande.CENTRE) ? string.Empty : laDetailDemande.LaDemande.CENTRE;
                this.Txt_LibelleCentre.Text  = string.IsNullOrEmpty(laDetailDemande.LaDemande.LIBELLECENTRE) ? string.Empty : laDetailDemande.LaDemande.LIBELLECENTRE;
                this.Txt_CodeProduit.Text    = string.IsNullOrEmpty(laDetailDemande.LaDemande.PRODUIT) ? string.Empty : laDetailDemande.LaDemande.PRODUIT;
                this.Txt_LibelleProduit.Text = string.IsNullOrEmpty(laDetailDemande.LaDemande.LIBELLEPRODUIT) ? string.Empty : laDetailDemande.LaDemande.LIBELLEPRODUIT;
                this.Txt_NumDemande.Text     = string.IsNullOrEmpty(laDetailDemande.LaDemande.NUMDEM) ? string.Empty : laDetailDemande.LaDemande.NUMDEM;
                this.Txt_Client.Text         = string.IsNullOrEmpty(laDetailDemande.LaDemande.CLIENT) ? string.Empty : laDetailDemande.LaDemande.CLIENT;

                this.Txt_TypeBrancehment.Text   = string.IsNullOrEmpty(_LeBrtDemande.CODETYPEBRANCHEMENT) ? string.Empty : _LeBrtDemande.CODETYPEBRANCHEMENT;
                this.Txt_LibelleTypeBRT.Text    = string.IsNullOrEmpty(_LeBrtDemande.LIBELLETYPEBRANCHEMENT) ? string.Empty : _LeBrtDemande.LIBELLETYPEBRANCHEMENT;
                this.Txt_NbrTransformateur.Text = (_LeBrtDemande.NOMBRETRANSFORMATEUR == null) ? string.Empty : _LeBrtDemande.NOMBRETRANSFORMATEUR.Value.ToString();

                this.Txt_LongueurBrt.Text       = string.IsNullOrEmpty(_LeBrtDemande.LONGBRT.ToString()) ? InitValue.ToString() : _LeBrtDemande.LONGBRT.ToString();
                this.Txt_DateRacordement.Text   = string.IsNullOrEmpty(_LeBrtDemande.DRAC.ToString()) ? string.Empty : Convert.ToDateTime(_LeBrtDemande.DRAC).ToShortDateString();
                this.Txt_Longitude.Text         = string.IsNullOrEmpty(_LeBrtDemande.LONGITUDE) ? string.Empty : _LeBrtDemande.LONGITUDE;
                this.Txt_Latitude.Text          = string.IsNullOrEmpty(_LeBrtDemande.LATITUDE) ? string.Empty : _LeBrtDemande.LATITUDE;
                this.Txt_AdresseElectrique.Text = string.IsNullOrEmpty(_LeBrtDemande.ADRESSERESEAU) ? string.Empty : _LeBrtDemande.ADRESSERESEAU;


                this.Txt_PosteSource.Text        = string.IsNullOrEmpty(_LeBrtDemande.CODEPOSTESOURCE) ? string.Empty : _LeBrtDemande.CODEPOSTESOURCE;
                this.Txt_LibellePosteSource.Text = string.IsNullOrEmpty(_LeBrtDemande.LIBELLEPOSTESOURCE) ? string.Empty : _LeBrtDemande.LIBELLEPOSTESOURCE;

                this.Txt_PosteTransformateur.Text        = string.IsNullOrEmpty(_LeBrtDemande.CODETRANSFORMATEUR) ? string.Empty : _LeBrtDemande.CODETRANSFORMATEUR;
                this.Txt_LibellePosteTransformateur.Text = string.IsNullOrEmpty(_LeBrtDemande.LIBELLETRANSFORMATEUR) ? string.Empty : _LeBrtDemande.LIBELLETRANSFORMATEUR;

                this.Txt_DepartBt.Text = string.IsNullOrEmpty(_LeBrtDemande.DEPARTBT) ? string.Empty : _LeBrtDemande.DEPARTBT;

                this.Txt_DepartHTA.Text        = string.IsNullOrEmpty(_LeBrtDemande.CODEDEPARTHTA) ? string.Empty : _LeBrtDemande.CODEDEPARTHTA;
                this.Txt_LibelleDepartHTA.Text = string.IsNullOrEmpty(_LeBrtDemande.LIBELLEDEPARTHTA) ? string.Empty : _LeBrtDemande.LIBELLEDEPARTHTA;


                this.Txt_QuarteirPoste.Text   = string.IsNullOrEmpty(_LeBrtDemande.CODEQUARTIER) ? string.Empty : _LeBrtDemande.CODEQUARTIER;
                this.Txt_LibelleQuartier.Text = string.IsNullOrEmpty(_LeBrtDemande.LIBELLEQUARTIER) ? string.Empty : _LeBrtDemande.LIBELLEQUARTIER;

                this.Txt_NeoudFinal.Text = string.IsNullOrEmpty(_LeBrtDemande.NEOUDFINAL) ? string.Empty : _LeBrtDemande.NEOUDFINAL;

                this.Txt_NouvTypeBrancehment.Text      = string.IsNullOrEmpty(_NouvelInfoBrt.CODETYPEBRANCHEMENT) ? string.Empty : _NouvelInfoBrt.CODETYPEBRANCHEMENT;
                this.Txt_NouvLibelleTypeBRT.Text       = string.IsNullOrEmpty(_NouvelInfoBrt.LIBELLETYPEBRANCHEMENT) ? string.Empty : _NouvelInfoBrt.LIBELLETYPEBRANCHEMENT;
                this.Txt_NouvNombreTransformateur.Text = (_NouvelInfoBrt.NOMBRETRANSFORMATEUR == null) ? string.Empty : _NouvelInfoBrt.NOMBRETRANSFORMATEUR.Value.ToString();

                this.Txt_NouvLongueurBrt.Text       = string.IsNullOrEmpty(_NouvelInfoBrt.LONGBRT.ToString()) ? InitValue.ToString() : _NouvelInfoBrt.LONGBRT.ToString();
                this.Txt_NouvDateRacordement.Text   = string.IsNullOrEmpty(_NouvelInfoBrt.DRAC.ToString()) ? string.Empty : Convert.ToDateTime(_NouvelInfoBrt.DRAC).ToShortDateString();
                this.Txt_NouvLongitude.Text         = string.IsNullOrEmpty(_NouvelInfoBrt.LONGITUDE) ? string.Empty : _NouvelInfoBrt.LONGITUDE;
                this.Txt_NouvLatitude.Text          = string.IsNullOrEmpty(_NouvelInfoBrt.LATITUDE) ? string.Empty : _NouvelInfoBrt.LATITUDE;
                this.Txt_NouvAdresseElectrique.Text = string.IsNullOrEmpty(_NouvelInfoBrt.ADRESSERESEAU) ? string.Empty : _NouvelInfoBrt.ADRESSERESEAU;


                this.Txt_NouvPosteSource.Text        = string.IsNullOrEmpty(_NouvelInfoBrt.CODEPOSTESOURCE) ? string.Empty : _NouvelInfoBrt.CODEPOSTESOURCE;
                this.Txt_NouvLibellePosteSource.Text = string.IsNullOrEmpty(_NouvelInfoBrt.LIBELLEPOSTESOURCE) ? string.Empty : _NouvelInfoBrt.LIBELLEPOSTESOURCE;

                this.Txt_NouvPosteTransformateur.Text        = string.IsNullOrEmpty(_NouvelInfoBrt.CODETRANSFORMATEUR) ? string.Empty : _NouvelInfoBrt.CODETRANSFORMATEUR;
                this.Txt_NouvLibellePosteTransformateur.Text = string.IsNullOrEmpty(_NouvelInfoBrt.LIBELLETRANSFORMATEUR) ? string.Empty : _NouvelInfoBrt.LIBELLETRANSFORMATEUR;

                this.Txt_NouvDepartBt.Text = string.IsNullOrEmpty(_NouvelInfoBrt.DEPARTBT) ? string.Empty : _NouvelInfoBrt.DEPARTBT;

                this.Txt_NouvDepartHTA.Text        = string.IsNullOrEmpty(_NouvelInfoBrt.CODEDEPARTHTA) ? string.Empty : _NouvelInfoBrt.CODEDEPARTHTA;
                this.Txt_NouvLibelleDepartHTA.Text = string.IsNullOrEmpty(_NouvelInfoBrt.LIBELLEDEPARTHTA) ? string.Empty : _NouvelInfoBrt.LIBELLEDEPARTHTA;

                this.Txt_NouvQuarteirPoste.Text   = string.IsNullOrEmpty(_NouvelInfoBrt.CODEQUARTIER) ? string.Empty : _NouvelInfoBrt.CODEQUARTIER;
                this.Txt_NouvLibelleQuartier.Text = string.IsNullOrEmpty(_NouvelInfoBrt.LIBELLEQUARTIER) ? string.Empty : _NouvelInfoBrt.LIBELLEQUARTIER;

                this.Txt_NouvNeoudFinal.Text        = string.IsNullOrEmpty(_NouvelInfoBrt.NEOUDFINAL) ? string.Empty : _NouvelInfoBrt.NEOUDFINAL;
                this.Txt_NouvPuissanceInstalle.Text = _NouvelInfoBrt.PUISSANCEINSTALLEE == null ? string.Empty : _NouvelInfoBrt.PUISSANCEINSTALLEE.Value.ToString("N2");
                this.Txt_PuissanceInstalle.Text     = _LeBrtDemande.PUISSANCEINSTALLEE == null ? string.Empty : _LeBrtDemande.PUISSANCEINSTALLEE.Value.ToString("N2");

                if (this.Txt_TypeBrancehment.Text != this.Txt_NouvTypeBrancehment.Text)
                {
                    this.Txt_NouvTypeBrancehment.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvLibelleTypeBRT.FontWeight  = FontWeights.ExtraBold;
                    this.Txt_NouvTypeBrancehment.FontStyle  = FontStyles.Italic;
                    this.Txt_NouvLibelleTypeBRT.FontStyle   = FontStyles.Italic;
                }
                if (this.Txt_LongueurBrt.Text != this.Txt_NouvLongueurBrt.Text)
                {
                    this.Txt_NouvLongueurBrt.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvLongueurBrt.FontStyle  = FontStyles.Italic;
                }
                if (this.Txt_DateRacordement.Text != this.Txt_NouvDateRacordement.Text)
                {
                    this.Txt_NouvDateRacordement.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvDateRacordement.FontStyle  = FontStyles.Italic;
                }
                if (this.Txt_DateRacordement.Text != this.Txt_NouvDateRacordement.Text)
                {
                    this.Txt_NouvDateRacordement.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvDateRacordement.FontStyle  = FontStyles.Italic;
                }
                if (this.Txt_Longitude.Text != this.Txt_NouvLongitude.Text)
                {
                    this.Txt_NouvLongitude.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvLongitude.FontStyle  = FontStyles.Italic;
                }
                if (this.Txt_Latitude.Text != this.Txt_NouvLatitude.Text)
                {
                    this.Txt_NouvLatitude.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvLatitude.FontStyle  = FontStyles.Italic;
                }
                if (this.Txt_PuissanceInstalle.Text != this.Txt_NouvPuissanceInstalle.Text)
                {
                    this.Txt_NouvPuissanceInstalle.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvPuissanceInstalle.FontStyle  = FontStyles.Italic;
                }

                if (this.Txt_NouvNombreTransformateur.Text != this.Txt_NbrTransformateur.Text)
                {
                    this.Txt_NouvNombreTransformateur.FontWeight = FontWeights.ExtraBold;
                    this.Txt_NouvNombreTransformateur.FontStyle  = FontStyles.Italic;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }