コード例 #1
0
        //-------------------------------------------------------------------------
        private void InitComboComportements()
        {
            CReferenceTypeFormBuiltIn refForm = CFormFinder.GetRefFormToEdit(typeof(CComportementGenerique)) as CReferenceTypeFormBuiltIn;

            if (m_cmbTypeElements.SelectedValue is Type)
            {
                m_cmbComportement.Init(
                    typeof(CComportementGenerique),
                    new CFiltreData(CComportementGenerique.c_champTypeElementCible + "=@1",
                                    m_cmbTypeElements.SelectedValue.ToString()),
                    "Libelle",
                    refForm != null?refForm.TypeForm:null,
                    true);
            }
            else
            {
                m_cmbComportement.Init(
                    typeof(CComportementGenerique),
                    new CFiltreDataImpossible(),
                    "Libelle",
                    refForm != null ? refForm.TypeForm : null,
                    true);
                m_cmbComportement.AssureRemplissage();
            }
        }
コード例 #2
0
        private CResultAErreur InitComboCategorie(bool bForce)
        {
            CResultAErreur result = CResultAErreur.True;

            if (m_bComboCatIsInit && !bForce)
            {
                return(result);
            }
            result = m_cmbCategorie.Init(typeof(C2iCategorieRapportCrystal), "Libelle", false);
            if (result)
            {
                m_bComboCatIsInit = true;
            }
            return(result);
        }
コード例 #3
0
 //-----------------------------------------------------------
 private CResultAErreur InitComboBoxStructure(bool bForceInit)
 {
     return(m_cmbModeleStructure.Init(typeof(C2iStructureExportInDB), null, "Libelle", typeof(CFormEditionStructureDonnee), bForceInit));
 }
コード例 #4
0
 //-----------------------------------------------------------
 private CResultAErreur InitComboBoxCategorie(bool bForceInit)
 {
     return(m_cmbCategorie.Init(typeof(C2iCategorieRapportCrystal), null, "Libelle", typeof(CFormEditionCategorieRapportCrystal), bForceInit));
 }