コード例 #1
0
        /// //////////////////////////////////////////
        private void UpdatePointsEntree()
        {
            m_panelPointEntree.Visible = false;
            m_cmbPointEntree.TextNull  = I.T("Default|20012");
            m_cmbPointEntree.Fill(new CActionPointEntree[0], "Libelle", true);
            if (!(m_cmbProcess.SelectedValue is CProcessInDb))
            {
                m_cmbPointEntree.SelectedValue = null;
                return;
            }
            CProcessInDb processInDB = (CProcessInDb)m_cmbProcess.SelectedValue;
            CProcess     process     = processInDB.Process;

            if (process == null)
            {
                return;
            }
            CActionPointEntree[] entrees = process.PointsEntreeAlternatifs;

            m_cmbPointEntree.Fill(entrees, "Libelle", true);
            if (entrees.Length == 0)
            {
                m_panelPointEntree.Visible     = false;
                m_cmbPointEntree.SelectedValue = null;
            }
            else
            {
                m_panelPointEntree.Visible     = true;
                m_cmbPointEntree.SelectedValue = process.GetActionFromId(ActionLancerProcess.IdPointEntree);
            }
        }