//------------------------------------------------------------------------- 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(); } }
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); }
//----------------------------------------------------------- private CResultAErreur InitComboBoxStructure(bool bForceInit) { return(m_cmbModeleStructure.Init(typeof(C2iStructureExportInDB), null, "Libelle", typeof(CFormEditionStructureDonnee), bForceInit)); }
//----------------------------------------------------------- private CResultAErreur InitComboBoxCategorie(bool bForceInit) { return(m_cmbCategorie.Init(typeof(C2iCategorieRapportCrystal), null, "Libelle", typeof(CFormEditionCategorieRapportCrystal), bForceInit)); }