コード例 #1
0
ファイル: ImplDalOrganisme.cs プロジェクト: Natolotra/App
        void IntfDalOrganisme.insertToGridOrganisme(GridView gridView, string param, string paramLike, string valueLike)
        {
            #region declaration
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            #endregion

            #region implementation

            this.strCommande  = "SELECT organisme.numOrganisme, organisme.nomOrganisme, organisme.adresseOrganisme,";
            this.strCommande += " organisme.numQuartier, organisme.mailOrganisme, organisme.telephoneFixeOrganisme,";
            this.strCommande += " organisme.telephoneMobileOrganisme, organisme.numIndividuResponsable,";
            this.strCommande += " quartier.quartier, individu.numIndividu, individu.civiliteIndividu, individu.nomIndividu,";
            this.strCommande += " individu.prenomIndividu, individu.cinIndividu, individu.adresse, individu.profession,";
            this.strCommande += " individu.telephoneFixeIndividu, individu.telephoneMobileIndividu,";
            this.strCommande += " individu.dateNaissanceIndividu, individu.lieuNaissanceIndividu, individu.mailIndividu,";
            this.strCommande += " individu.numQuartier FROM organisme";
            this.strCommande += " Inner Join quartier ON quartier.numQuartier = organisme.numQuartier";
            this.strCommande += " Inner Join individu ON individu.numIndividu = organisme.numIndividuResponsable";
            this.strCommande += " WHERE " + paramLike + " LIKE '%" + valueLike + "%'";
            this.strCommande += " ORDER BY " + param;

            gridView.DataSource = serviceOrganisme.getDataTableOrganisme(this.strCommande);
            gridView.DataBind();

            #endregion
        }
コード例 #2
0
ファイル: ImplDalOrganisme.cs プロジェクト: Natolotra/App
        string IntfDalOrganisme.insertOrganisme(crlOrganisme organisme, string sigleAgence)
        {
            #region declaration
            string           numSociete       = "";
            int              nbInsert         = 0;
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            #endregion

            #region impelementation
            if (organisme != null && sigleAgence != "")
            {
                organisme.NumOrganisme = serviceOrganisme.getNumOrganisme(sigleAgence);
                this.strCommande       = "INSERT INTO `organisme` (`numOrganisme`,`numQuartier`,";
                this.strCommande      += " `nomOrganisme`,`adresseOrganisme`,`telephoneFixeOrganisme`,";
                this.strCommande      += " `telephoneMobileOrganisme`,`mailOrganisme`,`numIndividuResponsable`,";
                this.strCommande      += " `isCheque`,`isBonCommande`) VALUES";
                this.strCommande      += " ('" + organisme.NumOrganisme + "','" + organisme.NumQuartier + "',";
                this.strCommande      += " '" + organisme.NomOrganisme + "','" + organisme.AdresseOrganisme + "','" + organisme.TelephoneFixeOrganisme + "',";
                this.strCommande      += " '" + organisme.TelephoneMobileOrganisme + "','" + organisme.MailOrganisme + "',";
                this.strCommande      += " '" + organisme.NumIndividuResponsable + "','" + organisme.IsCheque + "',";
                this.strCommande      += " '" + organisme.IsBonCommande + "')";

                this.serviceConnectBase.openConnection();
                nbInsert = this.serviceConnectBase.requete(this.strCommande);
                if (nbInsert == 1)
                {
                    numSociete = organisme.NumOrganisme;
                }
                this.serviceConnectBase.closeConnection();
            }
            #endregion

            return(numSociete);
        }
コード例 #3
0
ファイル: ImplDalOrganisme.cs プロジェクト: Natolotra/App
        string IntfDalOrganisme.insertOrganisme(crlOrganisme organisme, string sigleAgence, HtmlGenericControl divIndication)
        {
            #region declaration
            string           numOrganisme     = "";
            string           strIndication    = "";
            IntfDalIndividu  serviceIndividu  = new ImplDalIndividu();
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            #endregion

            #region implementation
            divIndication.Style.Add("font-size", "14px");
            divIndication.Style.Add("color", "Red");
            if (organisme != null)
            {
                if (organisme.individuResponsable != null)
                {
                    organisme.NumIndividuResponsable = serviceIndividu.insertIndividu(organisme.individuResponsable, sigleAgence, divIndication);
                    if (organisme.NumIndividuResponsable != "")
                    {
                        organisme.NumOrganisme = serviceOrganisme.isOrganisme(organisme);
                        if (organisme.NomOrganisme.Equals(""))
                        {
                            organisme.NumOrganisme = serviceOrganisme.insertOrganisme(organisme, sigleAgence);
                            if (organisme.NumOrganisme.Equals(""))
                            {
                                strIndication           = "Une erreur ce produit durant l'enregistrement!";
                                divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                            }
                            else
                            {
                                numOrganisme = organisme.NumOrganisme;
                            }
                        }
                        else
                        {
                            if (serviceOrganisme.updateOrganisme(organisme))
                            {
                                numOrganisme = organisme.NumOrganisme;
                            }
                            else
                            {
                                strIndication           = "Une erreur ce produit durant l'enregistrement!";
                                divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                            }
                        }
                    }
                }
                else
                {
                    strIndication           = "Une erreur ce produit durant l'enregistrement!";
                    divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                }
            }
            #endregion

            return(numOrganisme);
        }
コード例 #4
0
ファイル: ImplDalBonDeCommande.cs プロジェクト: Natolotra/App
        DataTable IntfDalBonDeCommande.getDataTableBonDeCommandeNonPaieDateDF(string strRqst)
        {
            #region declaration
            DataTable    dataTable = new DataTable();
            crlOrganisme organisme = null;
            crlSociete   societe   = null;
            crlClient    client    = null;

            IntfDalGeneral   serviceGeneral   = new ImplDalGeneral();
            IntfDalSociete   serviceSociete   = new ImplDalSociete();
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            IntfDalClient    serviceClient    = new ImplDalClient();
            #endregion

            #region implementation

            #region initialisation du dataTable
            dataTable = new DataTable();
            dataTable.Columns.Add("numBonDeCommande", typeof(string));
            dataTable.Columns.Add("datePaiement", typeof(DateTime));
            dataTable.Columns.Add("montant", typeof(string));
            dataTable.Columns.Add("client", typeof(string));
            dataTable.Columns.Add("adresse", typeof(string));
            dataTable.Columns.Add("contact", typeof(string));
            dataTable.Columns.Add("respSociete", typeof(string));
            dataTable.Columns.Add("respContact", typeof(string));
            DataRow dr;
            #endregion

            this.serviceConnectBase.openConnection();
            this.reader = this.serviceConnectBase.select(strRqst);
            if (this.reader != null)
            {
                if (this.reader.HasRows)
                {
                    while (this.reader.Read())
                    {
                        dr = dataTable.NewRow();

                        dr["numBonDeCommande"] = reader["numBonDeCommande"].ToString();

                        dr["datePaiement"] = Convert.ToDateTime(this.reader["datePaiementBC"].ToString());

                        dr["montant"] = serviceGeneral.separateurDesMilles(this.reader["montantBC"].ToString()) + "Ar";

                        if (reader["numClient"].ToString() != "")
                        {
                            client = serviceClient.selectClient(reader["numClient"].ToString());
                        }
                        if (reader["numOrganisme"].ToString() != "")
                        {
                            organisme = serviceOrganisme.selectOrganisme(reader["numOrganisme"].ToString());
                        }
                        if (reader["numSociete"].ToString() != "")
                        {
                            societe = serviceSociete.selectSociete(reader["numSociete"].ToString());
                        }

                        if (client != null)
                        {
                            dr["client"] = client.PrenomClient + " " + client.NomClient;

                            dr["adresse"] = client.AdresseClient;

                            dr["contact"] = client.TelephoneClient + " / " + client.MobileClient;

                            dr["respSociete"] = "-";

                            dr["respContact"] = "-";
                        }
                        else if (societe != null)
                        {
                            dr["client"] = societe.NomSociete;

                            dr["adresse"] = societe.AdresseSociete;

                            dr["contact"] = societe.TelephoneFixeSociete + " / " + societe.TelephoneMobileSociete;
                            if (societe.individuResponsable != null)
                            {
                                dr["respSociete"] = societe.individuResponsable.PrenomIndividu + " " + societe.individuResponsable.NomIndividu;

                                dr["respContact"] = societe.individuResponsable.TelephoneFixeIndividu + " / " + societe.individuResponsable.TelephoneMobileIndividu;
                            }
                        }
                        else if (organisme != null)
                        {
                            dr["client"] = organisme.NomOrganisme;

                            dr["adresse"] = organisme.AdresseOrganisme;

                            dr["contact"] = organisme.TelephoneFixeOrganisme + " / " + organisme.TelephoneMobileOrganisme;

                            if (organisme.individuResponsable != null)
                            {
                                dr["respSociete"] = organisme.individuResponsable.PrenomIndividu + " " + organisme.individuResponsable.NomIndividu;

                                dr["respContact"] = organisme.individuResponsable.TelephoneFixeIndividu + " / " + organisme.individuResponsable.TelephoneMobileIndividu;
                            }
                        }

                        client    = null;
                        societe   = null;
                        organisme = null;
                        dataTable.Rows.Add(dr);
                    }
                }
                this.reader.Dispose();
            }
            this.serviceConnectBase.closeConnection();

            #endregion

            return(dataTable);
        }
コード例 #5
0
ファイル: ImplDalOrganisme.cs プロジェクト: Natolotra/App
        bool IntfDalOrganisme.updateOrganisme(crlOrganisme organisme, HtmlGenericControl divIndication, string numIndividu, string sigleAgence)
        {
            #region declaration
            bool             isUpdate         = false;
            string           numOrganisme     = "";
            string           strIndication    = "";
            IntfDalIndividu  serviceIndividu  = new ImplDalIndividu();
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            #endregion

            #region implementation
            divIndication.Style.Add("font-size", "14px");
            divIndication.Style.Add("color", "Red");
            if (organisme != null)
            {
                if (organisme.individuResponsable != null)
                {
                    if (numIndividu.Equals(""))
                    {
                        organisme.NumIndividuResponsable = serviceIndividu.insertIndividu(organisme.individuResponsable, sigleAgence, divIndication);
                        if (organisme.NumIndividuResponsable != "")
                        {
                            numOrganisme = serviceOrganisme.isOrganisme(organisme);
                            if (numOrganisme.Equals(""))
                            {
                                isUpdate = serviceOrganisme.updateOrganisme(organisme);
                                if (!isUpdate)
                                {
                                    strIndication           = "Une erreur ce produit durant l'enregistrement!";
                                    divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                                }
                            }
                            else
                            {
                                strIndication           = "Information déjà enregistrer dans la base de données!";
                                divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                            }
                        }
                    }
                    else
                    {
                        if (serviceIndividu.updateIndividu(organisme.individuResponsable))
                        {
                            numOrganisme = serviceOrganisme.isOrganisme(organisme);
                            if (numOrganisme.Equals(""))
                            {
                                isUpdate = serviceOrganisme.updateOrganisme(organisme);
                                if (!isUpdate)
                                {
                                    strIndication           = "Une erreur ce produit durant l'enregistrement!";
                                    divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                                }
                            }
                            else
                            {
                                strIndication           = "Information déjà enregistrer dans la base de données!";
                                divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                            }
                        }
                        else
                        {
                            strIndication           = "Une erreur ce produit durant la modification!";
                            divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                        }
                    }
                }
                else
                {
                    strIndication           = "Une erreur ce produit durant l'enregistrement!";
                    divIndication.InnerHtml = "<p>" + strIndication + "</p>";
                }
            }
            #endregion

            return(isUpdate);
        }
コード例 #6
0
        DataTable IntfDalAbonnement.getDataTableAbonnement(string strRqst)
        {
            #region declaration
            DataTable    dataTable = new DataTable();
            crlOrganisme organisme = null;
            crlSociete   societe   = null;
            crlIndividu  individu  = null;

            IntfDalSociete   serviceSociete   = new ImplDalSociete();
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            IntfDalIndividu  serviceIndividu  = new ImplDalIndividu();
            string           telephone        = "";
            string           mobile           = "";
            #endregion

            #region implementation

            #region initialisation du dataTable
            dataTable = new DataTable();
            dataTable.Columns.Add("numAbonnement", typeof(string));
            dataTable.Columns.Add("client", typeof(string));
            dataTable.Columns.Add("adresse", typeof(string));
            dataTable.Columns.Add("contact", typeof(string));
            dataTable.Columns.Add("respSociete", typeof(string));
            dataTable.Columns.Add("respContact", typeof(string));
            DataRow dr;
            #endregion

            this.serviceConnectBase.openConnection();
            this.reader = this.serviceConnectBase.select(strRqst);
            if (this.reader != null)
            {
                if (this.reader.HasRows)
                {
                    while (this.reader.Read())
                    {
                        dr = dataTable.NewRow();

                        dr["numAbonnement"] = reader["numAbonnement"].ToString();

                        if (reader["numIndividu"].ToString() != "")
                        {
                            individu = serviceIndividu.selectIndividu(reader["numIndividu"].ToString());
                        }
                        if (reader["numOrganisme"].ToString() != "")
                        {
                            organisme = serviceOrganisme.selectOrganisme(reader["numOrganisme"].ToString());
                        }
                        if (reader["numSociete"].ToString() != "")
                        {
                            societe = serviceSociete.selectSociete(reader["numSociete"].ToString());
                        }

                        if (individu != null)
                        {
                            dr["client"] = individu.PrenomIndividu + " " + individu.NomIndividu;

                            dr["adresse"] = individu.Adresse;

                            dr["contact"] = individu.TelephoneFixeIndividu + " / " + individu.TelephoneMobileIndividu;

                            dr["respSociete"] = "-";

                            dr["respContact"] = "-";
                        }
                        else if (societe != null)
                        {
                            dr["client"] = societe.NomSociete;

                            dr["adresse"] = societe.AdresseSociete;

                            dr["contact"] = societe.TelephoneFixeSociete + " / " + societe.TelephoneMobileSociete;

                            if (societe.individuResponsable != null)
                            {
                                dr["respSociete"] = societe.individuResponsable.PrenomIndividu + " " + societe.individuResponsable.NomIndividu;

                                dr["respContact"] = societe.individuResponsable.TelephoneFixeIndividu + " / " + societe.individuResponsable.TelephoneMobileIndividu;
                            }
                        }
                        else if (organisme != null)
                        {
                            dr["client"] = organisme.NomOrganisme;

                            dr["adresse"] = organisme.AdresseOrganisme;

                            dr["contact"] = organisme.TelephoneFixeOrganisme + " / " + organisme.TelephoneMobileOrganisme;

                            if (organisme.individuResponsable != null)
                            {
                                dr["respSociete"] = organisme.individuResponsable.PrenomIndividu + " " + organisme.individuResponsable.NomIndividu;

                                dr["respContact"] = organisme.individuResponsable.TelephoneFixeIndividu + " / " + organisme.individuResponsable.TelephoneMobileIndividu;
                            }
                        }

                        individu  = null;
                        societe   = null;
                        organisme = null;
                        dataTable.Rows.Add(dr);
                    }
                }
                this.reader.Dispose();
            }
            this.serviceConnectBase.closeConnection();

            #endregion

            return(dataTable);
        }
コード例 #7
0
        crlAbonnement IntfDalAbonnement.selectAbonnement(string numAbonnement)
        {
            #region declaration
            IntfDalIndividu  serviceIndividu  = new ImplDalIndividu();
            IntfDalAgent     serviceAgent     = new ImplDalAgent();
            IntfDalOrganisme serviceOrganisme = new ImplDalOrganisme();
            IntfDalSociete   serviceSociete   = new ImplDalSociete();
            crlAbonnement    Abonnement       = null;
            #endregion

            #region implementation
            if (numAbonnement != "")
            {
                this.strCommande  = "SELECT * FROM `abonnement` WHERE `numAbonnement`='" + numAbonnement + "' OR";
                this.strCommande += " `numIndividu`='" + numAbonnement + "' OR `numSociete`='" + numAbonnement + "' OR";
                this.strCommande += " `numOrganisme`='" + numAbonnement + "'";
                this.serviceConnectBase.openConnection();
                this.reader = this.serviceConnectBase.select(this.strCommande);
                if (this.reader != null)
                {
                    if (this.reader.HasRows)
                    {
                        Abonnement = new crlAbonnement();
                        if (this.reader.Read())
                        {
                            Abonnement.NumAbonnement  = this.reader["numAbonnement"].ToString();
                            Abonnement.NumIndividu    = this.reader["numIndividu"].ToString();
                            Abonnement.MatriculeAgent = this.reader["matriculeAgent"].ToString();
                            Abonnement.NumOrganisme   = this.reader["numOrganisme"].ToString();
                            Abonnement.NumSociete     = this.reader["numSociete"].ToString();
                            try
                            {
                                Abonnement.DateAbonnement = Convert.ToDateTime(this.reader["dateAbonnement"].ToString());
                            }
                            catch (Exception)
                            {
                            }
                            Abonnement.ImageAbonner = this.reader["imageAbonner"].ToString();
                        }
                    }
                    this.reader.Dispose();
                }
                this.serviceConnectBase.closeConnection();

                if (Abonnement != null)
                {
                    if (Abonnement.NumIndividu != "")
                    {
                        Abonnement.individu = serviceIndividu.selectIndividu(Abonnement.NumIndividu);
                    }
                    if (Abonnement.MatriculeAgent != "")
                    {
                        Abonnement.agent = serviceAgent.selectAgent(Abonnement.MatriculeAgent);
                    }
                    if (Abonnement.NumOrganisme != "")
                    {
                        Abonnement.organisme = serviceOrganisme.selectOrganisme(Abonnement.NumOrganisme);
                    }
                    if (Abonnement.NumSociete != "")
                    {
                        Abonnement.societe = serviceSociete.selectSociete(Abonnement.NumSociete);
                    }
                }
            }
            #endregion

            return(Abonnement);
        }
コード例 #8
0
        bool IntfDalAbonnement.updateAbonnementAll(crlAbonnement Abonnement)
        {
            #region declaration
            bool              isUpdate          = false;
            string            numAbonnement     = "";
            string            numSociete        = "";
            string            numOrganisme      = "";
            string            numClient         = "";
            IntfDalAbonnement serviceAbonnement = new ImplDalAbonnement();
            IntfDalSociete    serviceSociete    = new ImplDalSociete();
            IntfDalOrganisme  serviceOrganisme  = new ImplDalOrganisme();
            IntfDalIndividu   serviceIndividu   = new ImplDalIndividu();
            #endregion

            #region implementation
            if (Abonnement != null)
            {
                if (Abonnement.agent != null)
                {
                    #region client
                    if (Abonnement.individu != null)
                    {
                        if (Abonnement.individu.NumIndividu != "")
                        {
                            numClient = serviceIndividu.isIndividu(Abonnement.individu);
                            if (numClient == "")
                            {
                                serviceIndividu.updateIndividu(Abonnement.individu);
                            }
                        }
                        else
                        {
                            Abonnement.individu.NumIndividu = serviceIndividu.isIndividu(Abonnement.individu);
                            if (Abonnement.individu.NumIndividu == "")
                            {
                                Abonnement.individu.NumIndividu = serviceIndividu.insertIndividu(Abonnement.individu, Abonnement.agent.agence.SigleAgence);
                            }
                            else
                            {
                                serviceIndividu.updateIndividu(Abonnement.individu);
                            }
                        }

                        if (Abonnement.individu.NumIndividu != "")
                        {
                            Abonnement.NumIndividu = Abonnement.individu.NumIndividu;
                        }
                    }
                    #endregion

                    #region SOciete
                    if (Abonnement.societe != null)
                    {
                        if (Abonnement.societe.NumSociete != "")
                        {
                            numSociete = serviceSociete.isSociete(Abonnement.societe);
                            if (numSociete == "")
                            {
                                serviceSociete.updateSociete(Abonnement.societe);
                            }
                        }
                        else
                        {
                            Abonnement.societe.NumSociete = serviceSociete.isSociete(Abonnement.societe);
                            if (Abonnement.societe.NumSociete == "")
                            {
                                Abonnement.societe.NumSociete = serviceSociete.insertSociete(Abonnement.societe, Abonnement.agent.agence.SigleAgence);
                            }
                            else
                            {
                                serviceSociete.updateSociete(Abonnement.societe);
                            }
                        }



                        if (Abonnement.societe.NumSociete != "")
                        {
                            Abonnement.NumSociete = Abonnement.societe.NumSociete;
                        }
                    }

                    #endregion

                    #region Organisme
                    if (Abonnement.organisme != null)
                    {
                        if (Abonnement.organisme.NumOrganisme != "")
                        {
                            numOrganisme = serviceOrganisme.isOrganisme(Abonnement.organisme);
                            if (numOrganisme == "")
                            {
                                serviceOrganisme.updateOrganisme(Abonnement.organisme);
                            }
                        }
                        else
                        {
                            Abonnement.organisme.NumOrganisme = serviceOrganisme.isOrganisme(Abonnement.organisme);
                            if (Abonnement.organisme.NumOrganisme == "")
                            {
                                Abonnement.organisme.NumOrganisme = serviceOrganisme.insertOrganisme(Abonnement.organisme, Abonnement.agent.agence.SigleAgence);
                            }
                            else
                            {
                                serviceOrganisme.updateOrganisme(Abonnement.organisme);
                            }
                        }

                        if (Abonnement.organisme.NumOrganisme != "")
                        {
                            Abonnement.NumOrganisme = Abonnement.organisme.NumOrganisme;
                        }
                    }
                    #endregion

                    if (Abonnement.MatriculeAgent != "")
                    {
                        numAbonnement = serviceAbonnement.isAbonnement(Abonnement);

                        if (numAbonnement == "")
                        {
                            isUpdate = serviceAbonnement.updateAbonnement(Abonnement);
                        }
                    }
                }
            }
            #endregion

            return(isUpdate);
        }
コード例 #9
0
        crlProprietaire IntfDalProprietaire.selectProprietaire(string numProprietaire)
        {
            #region declaration
            crlProprietaire proprietaire = null;

            IntfDalIndividu         serviceIndividu         = new ImplDalIndividu();
            IntfDalTypeProprietaire serviceTypeProprietaire = new ImplDalTypeProprietaire();
            IntfDalAgence           serviceAgence           = new ImplDalAgence();
            IntfDalSociete          serviceSociete          = new ImplDalSociete();
            IntfDalOrganisme        serviceOrganisme        = new ImplDalOrganisme();
            #endregion

            #region implementation
            if (numProprietaire != "")
            {
                this.strCommande = "SELECT * FROM `proprietaire` WHERE (`numProprietaire`='" + numProprietaire + "')";

                this.serviceConnection.openConnection();
                if (this.serviceConnection.IsConnection)
                {
                    this.reader = this.serviceConnection.select(this.strCommande);
                    if (this.reader != null)
                    {
                        if (this.reader.HasRows)
                        {
                            if (this.reader.Read())
                            {
                                proprietaire = new crlProprietaire();
                                proprietaire.NumProprietaire  = this.reader["numProprietaire"].ToString();
                                proprietaire.NumIndividu      = this.reader["numIndividu"].ToString();
                                proprietaire.NumOrganisme     = this.reader["numOrganisme"].ToString();
                                proprietaire.NumSociete       = this.reader["numSociete"].ToString();
                                proprietaire.TypeProprietaire = this.reader["typeProprietaire"].ToString();
                                proprietaire.NumAgence        = this.reader["numAgence"].ToString();
                            }
                        }
                        this.reader.Dispose();
                    }

                    while (this.serviceConnection.IsConnection)
                    {
                        this.serviceConnection.closeConnection();
                    }
                }

                if (proprietaire != null)
                {
                    if (proprietaire.NumIndividu != "")
                    {
                        proprietaire.Individu = serviceIndividu.selectIndividu(proprietaire.NumIndividu);
                    }
                    if (proprietaire.TypeProprietaire != "")
                    {
                        proprietaire.typeProprietaireObj = serviceTypeProprietaire.selectTypeProprietaire(proprietaire.TypeProprietaire);
                    }
                    if (proprietaire.NumAgence != "")
                    {
                        proprietaire.agence = serviceAgence.selectAgence(proprietaire.NumAgence);
                    }
                    if (proprietaire.NumOrganisme != "")
                    {
                        proprietaire.organisme = serviceOrganisme.selectOrganisme(proprietaire.NumOrganisme);
                    }
                    if (proprietaire.NumSociete != "")
                    {
                        proprietaire.societe = serviceSociete.selectSociete(proprietaire.NumSociete);
                    }
                }
            }
            #endregion

            return(proprietaire);
        }