//--------------------------------------------------------------
        private void m_btnAddFieldId_Click(object sender, EventArgs e)
        {
            IODEQTableFromFramework source = m_tableFromFramework.ElementsSource[0] as IODEQTableFromFramework;

            if (source != null)
            {
                CStructureTable structure            = CStructureTable.GetStructure(source.TypeElements);
                CColumnDeEasyQueryChampDeRequete col = new CColumnDeEasyQueryChampDeRequete("ID",
                                                                                            new CSourceDeChampDeRequete(structure.ChampsId[0].NomChamp),
                                                                                            typeof(int),
                                                                                            OperationsAgregation.None,
                                                                                            true);
                source.AddColonneDeRequete(col);
                CResultAErreur result = m_tableFromFramework.GetErreurIncompatibilitéTableParente();
                if (!result)
                {
                    m_panelSourceIncompatible.Visible = true;
                    m_lblImpossible.Text = result.Erreur.ToString();
                }
                else
                {
                    m_panelSourceIncompatible.Visible = false;
                }
            }
        }
        //--------------------------------------------------------
        public void Init(CODEQTableFilleFromFramework obj)
        {
            m_tableFromFramework = obj;
            if (m_tableFromFramework.ElementsSource.Length > 0)
            {
                m_lblSource.Text = m_tableFromFramework.ElementsSource[0].NomFinal;
                IODEQTableFromFramework t = m_tableFromFramework.ElementsSource[0] as IODEQTableFromFramework;
                if (t != null)
                {
                    m_typeSource = t.TypeElements;
                }
                else
                {
                    m_typeSource = typeof(DBNull);
                }
            }
            else
            {
                m_lblSource.Text = "?";
            }
            m_txtNomTable.Text    = m_tableFromFramework.NomFinal;
            m_chkUseCache.Checked = m_tableFromFramework.UseCache;

            CResultAErreur result = m_tableFromFramework.GetErreurIncompatibilitéTableParente();

            if (!result)
            {
                m_panelSourceIncompatible.Visible = true;
                m_lblImpossible.Text = result.Erreur.ToString();
            }
            else
            {
                m_panelSourceIncompatible.Visible = false;
            }

            FillListeColonnes();
            FillListeFormulesNommees();

            m_champ           = m_tableFromFramework.ChampSource;
            m_labelChamp.Text = m_champ == null?I.T("[UNDEFINED]|30013") : m_champ.Nom;


            m_panelFiltre.InitSansVariables(m_tableFromFramework.FiltreDynamique);

            m_panelPostFilter.Init(obj);
        }