Exemplo n.º 1
0
        //-------------------------------------------------------------------------
        protected override CResultAErreur InitChamps()
        {
            CResultAErreur result = base.InitChamps();

            AffecterTitre(I.T("Current alarms consultation @1|30013", Consultation.Libelle));

            CConsultationAlarmesEnCours parametre = Consultation.Parametres;

            m_txtDelaiMasquage.Text = parametre.DelaiMasquageTerminnees.ToString();

            m_txtFormuleFiltre.Init(new CFournisseurGeneriqueProprietesDynamiques(),
                                    typeof(CInfoAlarmeAffichee));
            m_txtFormuleFiltre.Formule = parametre.FormuleFiltre;

            //m_wndListeColonnes.Init(parametre.ListeColonnes, typeof(CInfoAlarmeAffichee), new CFournisseurGeneriqueProprietesDynamiques());

            m_chkActiver.Checked = Consultation.ActiverEMail;

            CListeObjetsDonnees list = Consultation.Emails;
            int nb = list.Count;

            m_panelEmails.InitFromListeObjets(Consultation.Emails,
                                              typeof(CParamlArmEC_EMail),
                                              typeof(CFormEditionEmail),
                                              Consultation,
                                              "ConsultationAlarmesEnCours");

            return(result);
        }
        //-------------------------------------------------------------------------
        protected override CResultAErreur MyInitChamps()
        {
            CResultAErreur result = base.MyInitChamps();

            AffecterTitre(I.T("Numbering sequence @1|20484", SequenceNumerotation.Libelle));
            m_cmbTypeNumerotation.Init(
                typeof(CFormatNumerotation),
                "Libelle",
                false);
            m_cmbTypeNumerotation.ElementSelectionne = SequenceNumerotation.FormatNumerotation;
            m_cmbTypeSource.Init();
            m_cmbTypeSource.TypeSelectionne = SequenceNumerotation.TypeSource;
            m_txtFormuleCle.Init(new CFournisseurPropDynStd(),
                                 m_cmbTypeSource.TypeSelectionne);
            m_txtFormuleCle.Formule = SequenceNumerotation.FormuleCle;
            return(result);
        }
        /// //////////////////////////////////////////
        protected override void InitChamps()
        {
            base.InitChamps();
            m_txtFormuleCle.Init(ObjetEdite.Process, typeof(CActionCopierMultiLocalDansGed.CInfoFichierToGed));
            m_txtFormuleLibelle.Init(ObjetEdite.Process, typeof(CActionCopierMultiLocalDansGed.CInfoFichierToGed));
            m_txtFormuleAssociation.Init(ObjetEdite.Process, typeof(CActionCopierMultiLocalDansGed.CInfoFichierToGed));
            m_txtFormuleCategories.Init(ObjetEdite.Process, typeof(CProcess));

            m_txtFormuleCle.Formule         = CopierMultiLocalDansGed.FormuleCle;
            m_txtFormuleAssociation.Formule = CopierMultiLocalDansGed.FormuleElementAssocie;
            m_txtFormuleCategories.Formule  = CopierMultiLocalDansGed.FormuleListeCategories;
            m_txtFormuleLibelle.Formule     = CopierMultiLocalDansGed.FormuleLibelleDocument;
        }
        /// //////////////////////////////////////////
        protected override void InitChamps()
        {
            base.InitChamps();

            m_txtFormuleRow.Init(ActionImportFromTableRow.Process, typeof(CProcess));
            m_txtFormuleRow.Formule = ActionImportFromTableRow.FormuleRow;
            m_txtFormuleTarget.Init(ActionImportFromTableRow.Process, typeof(CProcess));
            m_txtFormuleTarget.Formule = ActionImportFromTableRow.FormuleElementCible;
            m_cmbTypeTable.Init(typeof(CTypeTableParametrable), "Libelle", false);
            CTypeTableParametrable typeTable = new CTypeTableParametrable(CContexteDonneeSysteme.GetInstance());

            if (typeTable.ReadIfExists(ActionImportFromTableRow.IdTypeTable))
            {
                m_cmbTypeTable.ElementSelectionne = typeTable;
            }
            InitPanelMappages();
        }