Пример #1
0
        public bool InteractiveReadByEndpointMasive()
        {
            bool r = false;

            model.Ami_Token ami_Token = null;
            model.Ami_Medidores_Instalados   ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            model.Ami_Medidores_Instalados[] arr_ami_Medidores_Instalados;
            arr_ami_Medidores_Instalados = ami_Medidores_Instalados.getAllMeters();
            if (arr_ami_Medidores_Instalados != null)
            {
                foreach (var item in arr_ami_Medidores_Instalados)
                {
                    r = InteractiveReadByEndpoint(item.COD_INTERNO);
                }
            }
            return(r);
        }
Пример #2
0
        public bool ContingencyReadByEndpointsMasive()
        {
            bool r = false;

            model.Ami_Token ami_Token = null;
            model.Ami_Medidores_Instalados   ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            model.Ami_Medidores_Instalados[] arr_ami_Medidores_Instalados;
            arr_ami_Medidores_Instalados = ami_Medidores_Instalados.getAllMeters();
            if (ami_Medidores_Instalados.lisMeters != null)
            {
                foreach (var item in ami_Medidores_Instalados.lisMeters)
                {
                    r = ContingencyReadByEndpoints(item);
                }
            }
            return(r);
        }
Пример #3
0
        public bool InterrogateByEndpointsMasive()
        {
            bool r = false;

            model.Ami_Token ami_Token = null;
            model.Ami_Medidores_Instalados   ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            model.Ami_Medidores_Instalados[] arr_ami_Medidores_Instalados;
            arr_ami_Medidores_Instalados = ami_Medidores_Instalados.getAllMeters();
            if (ami_Medidores_Instalados.lisMeters != null)
            {
                foreach (var item in ami_Medidores_Instalados.lisMeters)
                {
                    r = InterrogateByEndpoints(item);//item.COD_INTERNO
                }
            }
            return(r);
        }
Пример #4
0
        public bool PingByEndpointsMasive()
        {
            bool r = true;

            string[] arrKey = null;
            model.Ami_Medidores_Instalados ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            if (ami_Medidores_Instalados.lisMeters != null)
            {
                foreach (var item in ami_Medidores_Instalados.lisMeters)// ami_Medidores_Instalados.getAllMetersDisconect()
                {
                    //arrKey = new string[1];
                    //arrKey[0] = item;//item.token;
                    r = PingByEndpoints(item);//arrKey
                }
            }
            return(r);
        }
Пример #5
0
        public bool DisconnectMeterMasive()
        {
            bool r = true;

            model.Ami_Medidores_Instalados ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            //ami_Medidores_Instalados.getAllMetersDisconect()
            //TODO SE HACE CON LISTA DE MEDIDORES TEST
            //model.Ami_Medidores_Instalados ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            //model.Ami_Medidores_Instalados[] arr_ami_Medidores_Instalados;
            //arr_ami_Medidores_Instalados = ami_Medidores_Instalados.getAllMeters();
            // ami_Medidores_Instalados.lisMeters
            foreach (var item in ami_Medidores_Instalados.lisMeters) // ami_Medidores_Instalados.getAllMetersDisconect()
            {
                r = DisconnectMeter(item);                           //item.COD_INTERNO
            }
            return(r);
        }
Пример #6
0
        public bool ReconnectMeterMasive()
        {
            bool r = true;

            model.Ami_Token ami_Token = null;
            model.Ami_Medidores_Instalados ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            //TODO SE HACE CON LISTA DE MEDIDORES TEST

            /*
             * ami_Token = new model.Ami_Token();
             *  ami_Token.getAllTokenByStatus();
             */
            foreach (var item in ami_Medidores_Instalados.lisMeters) //ami_Medidores_Instalados.getAllMetersReconect()
            {
                r = ReconnectMeter(item);                            //item.COD_INTERNO
            }
            return(r);
        }
Пример #7
0
        public bool ReadDisconnectStateByMetersMasive()
        {
            bool r = true;

            string[] arrKey = null;
            model.Ami_Medidores_Instalados ami_Medidores_Instalados = new model.Ami_Medidores_Instalados();
            if (ami_Medidores_Instalados.lisMeters != null)
            {
                foreach (var item in ami_Medidores_Instalados.lisMeters)// ami_Medidores_Instalados.getAllMetersDisconect()
                {
                    //arrKey = new string[1];
                    //arrKey[0] = item;//item.token;
                    r = ReadDisconnectStateByMeters(item);//arrKey
                }
            }
            return(r);

            /*bool r = true;
             * model.Ami_Token[] arr_ami_Token;
             * model.Ami_Token ami_Token = new model.Ami_Token();
             * ami_Token.tokenType = "ReadDisconnectStateByMeters";
             * ami_Token.status = 0;
             * arr_ami_Token = ami_Token.getAllTokenByTokenType();
             * string[] arrKey = null;
             * if (arr_ami_Token != null)
             * {
             *  foreach (var item in arr_ami_Token)
             *  {
             *      arrKey = new string[1];
             *      arrKey[0] = item.token;
             *      r = ReadDisconnectStateByMeters(arrKey);
             *  }
             * }
             *
             * return r;*/
        }