Exemplo n.º 1
0
        private void CargaAutocompletePCGNivel1()
        {
            DataSet   DSDevuelveNivel1 = new DataSet();
            DataTable DTDevuelveNivel1 = new DataTable();
            Int32     I = 0;

            WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion();
            WSAdmin.Url      = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx";
            DSDevuelveNivel1 = WSAdmin.DevuelveCuentasPCGNivel1(mdlGenerales.Conexion);
            DTDevuelveNivel1 = DSDevuelveNivel1.Tables[0];

            ACIDNivel1.Clear();
            ACConcNivel1.Clear();
            foreach (DataRow Row in DTDevuelveNivel1.Rows)
            {
                ACIDNivel1.Insert(I, Row[0].ToString());
                ACConcNivel1.Insert(I, Row[1].ToString());
                I = I + 1;
            }
            acPCGN1.DataSource = ACConcNivel1;
        }