Example #1
0
        //--------------------------------------------------------
        public CResultAErreur MajChamps(CODEQTableEntitiesFromDataHotel table)
        {
            CResultAErreur result = CResultAErreur.True;

            if (!m_txtStartDate.ResultAnalyse || m_txtStartDate.Formule == null)
            {
                result.EmpileErreur(m_txtStartDate.ResultAnalyse.Erreur);
                result.EmpileErreur(I.T("Start date formula error|20014"));
            }
            else
            {
                table.FormuleDateDebut = m_txtStartDate.Formule;
            }
            if (!m_txtEndDate.ResultAnalyse || m_txtEndDate.Formule == null)
            {
                result.EmpileErreur(m_txtEndDate.ResultAnalyse.Erreur);
                result.EmpileErreur(I.T("End date formula error|200015"));
            }
            else
            {
                table.FormuleDateFin = m_txtEndDate.Formule;
            }

            return(result);
        }
Example #2
0
        //--------------------------------------------------------
        public void Init(CODEQTableEntitiesFromDataHotel table)
        {
            CFournisseurGeneriqueProprietesDynamiques fourn = new CFournisseurGeneriqueProprietesDynamiques();

            m_txtStartDate.Init(fourn, new CObjetPourSousProprietes(table.Query));
            m_txtEndDate.Init(fourn, new CObjetPourSousProprietes(table.Query));
            m_txtStartDate.Formule = table.FormuleDateDebut;
            m_txtEndDate.Formule   = table.FormuleDateFin;
        }
Example #3
0
        public bool EditeProprietes(IObjetDeEasyQuery objet)
        {
            CODEQTableEntitiesFromDataHotel tableFromDataHotel = objet as CODEQTableEntitiesFromDataHotel;

            if (tableFromDataHotel == null)
            {
                return(false);
            }
            CFormEditeProprietesTableEntitiesFromDataHotel form = new CFormEditeProprietesTableEntitiesFromDataHotel();

            form.Init(tableFromDataHotel);
            bool bResult = form.ShowDialog() == DialogResult.OK;

            form.Dispose();
            return(bResult);
        }
Example #4
0
 public void Init(CODEQTableEntitiesFromDataHotel obj)
 {
     m_tableFromDataHotel = obj;
     if (m_tableFromDataHotel.TableDefinition != null)
     {
         m_lblSource.Text = m_tableFromDataHotel.TableDefinition.TableName;
     }
     else
     {
         m_lblSource.Text = "?";
     }
     m_txtNomTable.Text    = m_tableFromDataHotel.NomFinal;
     m_chkUseCache.Checked = m_tableFromDataHotel.UseCache;
     FillListeColonnes();
     FillListeFormulesNommees();
     m_panelOptions.Init(m_tableFromDataHotel);
 }