//--------------------------------------------------------
        public void Init(CODEQTableFromTableFramework obj)
        {
            m_tableFromFramework = obj;
            if (m_tableFromFramework.TableDefinition != null)
            {
                m_lblSource.Text = m_tableFromFramework.TableDefinition.TableName;
            }
            else
            {
                m_lblSource.Text = "?";
            }
            m_txtNomTable.Text    = m_tableFromFramework.NomFinal;
            m_chkUseCache.Checked = m_tableFromFramework.UseCache;
            FillListeColonnes();
            FillListeFormulesNommees();
            if (m_controleOptions != null)
            {
                m_pageOptions.Control = null;
                m_controleOptions.Dispose();
            }
            m_controleOptions = null;

            m_controleOptions = CAllocateurControleOptionTableDefinition.GetControleOptions(obj.TableDefinition);
            if (m_controleOptions == null)
            {
                if (m_tabControl.TabPages.Contains(m_pageOptions))
                {
                    m_tabControl.TabPages.Remove(m_pageOptions);
                }
            }
            else
            {
                if (!m_tabControl.TabPages.Contains(m_pageOptions))
                {
                    m_tabControl.TabPages.Add(m_pageOptions);
                }
                m_pageOptions.Control = (Control)m_controleOptions;
                m_controleOptions.FillFromTable(m_tableFromFramework.TableDefinition);
            }

            m_panelFiltre.InitSansVariables(m_tableFromFramework.FiltreDynamique);
            m_panelPostFilter.Init(obj);
        }
        public void Init(CODEQTableFromBase obj)
        {
            m_tableFromBase = obj;
            if (m_tableFromBase.TableDefinition != null)
            {
                m_lblSource.Text = m_tableFromBase.TableDefinition.TableName;
            }
            else
            {
                m_lblSource.Text = "?";
            }
            m_txtNomTable.Text    = m_tableFromBase.NomFinal;
            m_chkUseCache.Checked = m_tableFromBase.UseCache;
            FillListeColonnes();
            FillListeFormulesNommees();
            if (m_controleOptions != null)
            {
                m_pageOptions.Control = null;
                m_controleOptions.Dispose();
            }
            m_controleOptions = null;

            m_controleOptions = CAllocateurControleOptionTableDefinition.GetControleOptions(obj.TableDefinition);
            if (m_controleOptions == null)
            {
                if (m_tabControl.TabPages.Contains(m_pageOptions))
                {
                    m_tabControl.TabPages.Remove(m_pageOptions);
                }
            }
            else
            {
                if (!m_tabControl.TabPages.Contains(m_pageOptions))
                {
                    m_tabControl.TabPages.Add(m_pageOptions);
                }
                m_pageOptions.Control = (Control)m_controleOptions;
                m_controleOptions.FillFromTable(m_tableFromBase.TableDefinition);
            }
            CCAMLQuery query = obj.CAMLQuery;

            if (query == null)
            {
                query = new CCAMLQuery();
            }
            IEnumerable <CCAMLItemField>   fields    = null;
            ITableDefinitionRequetableCAML tableCAML = obj.TableDefinition as ITableDefinitionRequetableCAML;

            if (tableCAML != null)
            {
                fields = tableCAML.CAMLFields;
            }
            else
            {
                if (obj.TableDefinition != null)
                {
                    fields = obj.CAMLFields;
                }
                else
                {
                    fields = new List <CCAMLItemField>();
                }
            }
            m_panelCAML.Init(m_tableFromBase.Query, query, fields);

            m_panelPostFilter.Init(obj);
        }