public void Init(IDonneeBesoin calcul, CBesoin besoin, CItemBesoin itemBesoin, IEnumerable <CItemBesoin> items)
 {
     m_bIsInitializing = true;
     m_besoin          = besoin;
     m_donneeOperation = calcul as CDonneeBesoinTypeOperation;
     if (m_donneeOperation != null)
     {
         Visible = true;
         FillFromDonnee();
     }
     m_bIsInitializing = false;
 }
示例#2
0
 public void Init(IDonneeBesoin calcul, CBesoin besoin, CItemBesoin itemBesoin, IEnumerable <CItemBesoin> items)
 {
     m_bIsInitializing = true;
     m_donneeOperation = calcul as CDonneeBesoinTypeOperation;
     m_besoin          = besoin;
     if (m_donneeOperation != null)
     {
         Visible = true;
         CFiltreData filtre = null;
         if (besoin.BesoinParent != null && besoin.BesoinParent.TypeOperation != null)
         {
             filtre = new CFiltreData(CTypeOperation.c_champIdOperationParente + "=@1",
                                      besoin.BesoinParent.TypeOperation.Id);
         }
         m_txtSelectTypeOperation.InitAvecFiltreDeBase(typeof(CTypeOperation),
                                                       "LibelleComplet", filtre, false);
         m_txtSelectTypeOperation.ElementSelectionne = m_donneeOperation.GetTypeOperation(besoin.ContexteDonnee);
     }
     m_bIsInitializing = false;
 }