Beispiel #1
0
        public override string[][] parametrosCrear(DataRow row)
        {
            CentroEstudios centroEstudios = new CentroEstudios(row);

            string[][] array2D = new string[][] {
                new string[] { "@codEst", centroEstudios.codigo },
                new string[] { "@ruc", centroEstudios.ruc },
                new string[] { "@nombre", centroEstudios.nombre },
                new string[] { "@tipo", centroEstudios.tipo },
                new string[] { "@correo", centroEstudios.correo },
                new string[] { "@telef", centroEstudios.telefono },
                new string[] { "@estado", centroEstudios.estado },
                new string[] { "@contras", centroEstudios.contrasena }
            };

            return(array2D);
        }
Beispiel #2
0
        public override string[][] parametrosActualizar(DataRow row)
        {
            CentroEstudios centroEstudios = new CentroEstudios(row);

            string[][] array2D = new string[][] {
                new string[] { "@codEst", centroEstudios.codigo },
                new string[] { "@ruc", centroEstudios.ruc },
                new string[] { "@nombre", centroEstudios.nombre },
                new string[] { "@tipo", centroEstudios.tipo },
                new string[] { "@correo", centroEstudios.correo },
                new string[] { "@telef", centroEstudios.telefono },
                new string[] { "@region", "" },
                new string[] { "@contras", centroEstudios.contrasena },
                new string[] { "@Elimin", centroEstudios.eliminado.ToString() },
            };

            return(array2D);
        }