Example #1
0
        private void CargaAutoCompletePCGNivel2(string IDNivel1)
        {
            DataSet   DSDevuelveNivel2 = new DataSet();
            DataTable DTDevuelveNivel2 = new DataTable();
            Int32     I = 0;

            WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion();
            WSAdmin.Url      = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx";
            DSDevuelveNivel2 = WSAdmin.DevuelveCuentasPCGNivel2(mdlGenerales.Conexion, IDNivel1);
            DTDevuelveNivel2 = DSDevuelveNivel2.Tables[0];
            ACIDNivel2.Clear();
            ACConcNivel2.Clear();
            foreach (DataRow Row in DTDevuelveNivel2.Rows)
            {
                ACIDNivel2.Insert(I, Row[0].ToString());
                ACConcNivel2.Insert(I, Row[1].ToString());
                I = I + 1;
            }
            acPCGN2.DataSource = ACConcNivel2;
        }