예제 #1
0
        public void InitTEC(int idListener, FormChangeMode.MODE_TECCOMPONENT mode, /*TYPE_DATABASE_CFG typeCfg, */ HMark markQueries, bool bIgnoreTECInUse, int [] arTECLimit)
        {
            //Logging.Logg().Debug("Admin::InitTEC () - вход...");

            //m_ignore_connsett_data = ! bUseData;

            if (!(idListener < 0))
            {
                if (mode == FormChangeMode.MODE_TECCOMPONENT.UNKNOWN)
                {
                    this.m_list_tec = new InitTEC_200(idListener, bIgnoreTECInUse, arTECLimit, false).tec;
                }
                else
                {
                    this.m_list_tec = new InitTEC_200(idListener, (short)mode, bIgnoreTECInUse, arTECLimit, false).tec;
                }
            }
            else
            {
                this.m_list_tec = new InitTECBase.ListTEC();
            }

            initQueries(markQueries);
            initTEC();
        }
예제 #2
0
        public void InitTEC(int idListener, FormChangeMode.MODE_TECCOMPONENT mode, HMark markQueries)
        {
            //Logging.Logg().Debug("Admin::InitTEC () - вход...");

            //m_ignore_connsett_data = ! bUseData;

            if (!(idListener < 0))
            {
                if (mode == FormChangeMode.MODE_TECCOMPONENT.UNKNOWN)
                {
                    this.m_list_tec = new InitTEC(idListener, false).tec;
                }
                else
                {
                    this.m_list_tec = new InitTEC(idListener, (short)mode, false).tec;
                }
            }

            else
            {
                this.m_list_tec = new InitTECBase.ListTEC();
            }

            initQueries(markQueries);
            initTEC();
        }
예제 #3
0
        public virtual void InitTEC(List <StatisticCommon.TEC> listTEC, HMark markQueries)
        {
            this.m_list_tec = new InitTECBase.ListTEC();
            foreach (TEC t in listTEC)
            {
                //if ((HAdmin.DEBUG_ID_TEC == -1) || (HAdmin.DEBUG_ID_TEC == t.m_id))
                this.m_list_tec.Add(t);
                //else ;
            }

            initQueries(markQueries);
            initTEC();
        }
예제 #4
0
        public void InitTEC(int idListener, FormChangeMode.MODE_TECCOMPONENT mode, TYPE_DATABASE_CFG typeCfg, HMark markQueries, bool bIgnoreTECInUse)
        {
            //Logging.Logg().Debug("Admin::InitTEC () - вход...");

            //m_ignore_connsett_data = ! bUseData;

            if (!(idListener < 0))
            {
                if (mode == FormChangeMode.MODE_TECCOMPONENT.UNKNOWN)
                {
                    switch (typeCfg)
                    {
                    case TYPE_DATABASE_CFG.CFG_190:
                        this.m_list_tec = new InitTEC_190(idListener, bIgnoreTECInUse, false).tec;
                        break;

                    case TYPE_DATABASE_CFG.CFG_200:
                        this.m_list_tec = new InitTEC_200(idListener, bIgnoreTECInUse, false).tec;
                        break;

                    default:
                        break;
                    }
                }
                else
                {
                    switch (typeCfg)
                    {
                    case TYPE_DATABASE_CFG.CFG_190:
                        this.m_list_tec = new InitTEC_190(idListener, (short)mode, bIgnoreTECInUse, false).tec;
                        break;

                    case TYPE_DATABASE_CFG.CFG_200:
                        this.m_list_tec = new InitTEC_200(idListener, (short)mode, bIgnoreTECInUse, false).tec;
                        break;

                    default:
                        break;
                    }
                }
            }
            else
            {
                this.m_list_tec = new InitTECBase.ListTEC();
            }

            initQueries(markQueries);
            initTEC();
        }
예제 #5
0
        public virtual void InitTEC(List <StatisticCommon.TEC> listTEC, ASUTP.Core.HMark markQueries)
        {
            this.m_list_tec = new InitTECBase.ListTEC();
            ////Вариант №1
            //this.m_list_tec.AddRange(listTEC);
            ////Вариант №2
            //listTEC.ForEach(t => this.m_list_tec.Add(t));
            //Вариант №3 - позволяет исключить при необходимости элементы в соответствии с установленным правилом
            foreach (TEC t in listTEC)
            {
                //if ((HAdmin.DEBUG_ID_TEC == -1) || (HAdmin.DEBUG_ID_TEC == t.m_id))
                this.m_list_tec.Add(t);
            }
            //else ;

            initQueries(markQueries);
            initTEC();
        }