Exemplo n.º 1
0
        public CuentaBancosBE getCuentaBancos(int pCuentaBancoID)
        {
            BusinessEntity.CuentaBancosBE oCuentaBancosBE = new BusinessEntity.CuentaBancosBE();
            IDataReader dr = null;

            try
            {
                using (DbCommand cmd = dbAdeudosInversiones.GetStoredProcCommand(GetNameStoreProcedure.uspGetCuentaBancos))
                {
                    cmd.CommandTimeout = 0;
                    dbAdeudosInversiones.AddInParameter(cmd, "cuentaBancoID", DbType.Int32, pCuentaBancoID);
                    dr = dbAdeudosInversiones.ExecuteReader(cmd);

                    while (dr.Read())
                    {
                        oCuentaBancosBE = CuentaBancosP.ObtenerCuentaBancos(dr);
                    }
                }
            }
            catch (Exception)
            {
                if (dr != null && !dr.IsClosed)
                {
                    dr.Close();
                }
                throw;
            }

            return(oCuentaBancosBE);
        }
Exemplo n.º 2
0
        public void insertCuentaBancos(BusinessEntity.CuentaBancosBE pCuentaBancosBE)
        {
            using (DbCommand cmd = dbAdeudosInversiones.GetStoredProcCommand(GetNameStoreProcedure.uspInsertCuentaBancos))
            {
                cmd.CommandTimeout = 0;
                dbAdeudosInversiones.AddInParameter(cmd, "idTipoEntidadFinanciera", DbType.String, pCuentaBancosBE.idTipoEntidadFinanciera);
                dbAdeudosInversiones.AddInParameter(cmd, "idEntidadFinanciera", DbType.String, pCuentaBancosBE.idEntidadFinanciera);
                dbAdeudosInversiones.AddInParameter(cmd, "idMoneda", DbType.String, pCuentaBancosBE.idMoneda);
                dbAdeudosInversiones.AddInParameter(cmd, "idTipoCuenta", DbType.String, pCuentaBancosBE.idTipoCuenta);
                dbAdeudosInversiones.AddInParameter(cmd, "cuentaLocal", DbType.String, pCuentaBancosBE.cuentaLocal);
                dbAdeudosInversiones.AddInParameter(cmd, "cuentaCCI", DbType.String, pCuentaBancosBE.cuentaCCI);
                dbAdeudosInversiones.AddInParameter(cmd, "usuCreacion", DbType.String, pCuentaBancosBE.usuCreacion);

                dbAdeudosInversiones.ExecuteNonQuery(cmd);
            }
        }
Exemplo n.º 3
0
 public void updateCuentaBancos(BusinessEntity.CuentaBancosBE pCuentaBancosBE)
 {
     oCuentaBancosDA.updateCuentaBancos(pCuentaBancosBE);
 }
Exemplo n.º 4
0
 public void insertCuentaBancos(BusinessEntity.CuentaBancosBE pCuentaBancosBE)
 {
     oCuentaBancosDA.insertCuentaBancos(pCuentaBancosBE);
 }