예제 #1
0
        public long Nuevo(M_Cuenta_Aux Cuenta_Aux)
        {
            Dictionary <string, object> Parametros = new Dictionary <string, object>
            {
                { "Cuenta", Cuenta_Aux.Cuenta },
                { "Tipo_aux", Cuenta_Aux.Tipo_aux },
                { "Cod_empresa", Cuenta_Aux.Cod_empresa }
            };

            return(Data.EjecutarSPEscalar("{CALL sp_Nuevo_Cuenta_Aux(?, ?, ?)}", Parametros));
        }
예제 #2
0
 public long Actualizar(M_Cuenta_Aux Cuenta_Aux)
 {
     return(Data.Accion("UPDATE Cuenta_Aux SET Cuenta='" + Cuenta_Aux.Cuenta + "'" + ",Tipo_aux='" + Cuenta_Aux.Tipo_aux + "'" + ",Cod_empresa=" + Cuenta_Aux.Cod_empresa + " WHERE Cuenta='" + Cuenta_Aux.Cuenta + "'" + " and Tipo_aux='" + Cuenta_Aux.Tipo_aux + "'" + ";"));
 }
예제 #3
0
 public long Insertar(M_Cuenta_Aux Cuenta_Aux)
 {
     return(Data.Accion("INSERT INTO Cuenta_Aux (Cuenta,Tipo_aux,Cod_empresa) VALUES (" + "'" + Cuenta_Aux.Cuenta + "'" + ", '" + Cuenta_Aux.Tipo_aux + "'" + "," + Cuenta_Aux.Cod_empresa + ");"));
 }