コード例 #1
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void EditarPrestamo_DiaPago(int id, int dia_pago)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.EditarPrestamo_DiaPago(id, dia_pago);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #2
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void RestaurarPrestamoEliminado(int id)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.RestaurarPrestamoEliminado(id);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #3
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void EditarPrestamo(int id, double saldo)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.EditarPrestamo(id, saldo);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #4
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void EditarPrestamo_Recargo(int id, double saldo, double totalPrestamo, bool recargo)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.EditarPrestamo_Recargo(id, saldo, totalPrestamo, recargo);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #5
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public IPrestamosSQL ObtenerInstancia()
        {
            IPrestamosSQL   result          = null;
            ContextDataBase contextDataBase = AccesoDatos.Instance.accesoDatos.ContextDataBase;

            if (contextDataBase == ContextDataBase.PostgreSql)
            {
                result = new PrestamosPostgres();
            }
            return(result);
        }
コード例 #6
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void InsertarPrestamo(int prestamo, DateTime fecha, string cliente, double monto, double interes, int cuotas, double saldo, double total, bool recargo, int dia_pago)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.InsertarPrestamo(prestamo, fecha, cliente, monto, interes, cuotas, saldo, total, recargo, dia_pago);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #7
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public void CancelarPrestamo(int id)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();

            prestamosSQL.CancelarPrestamo(id);
            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
        }
コード例 #8
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public DataSet TraerPrestamoSaldoTotal()
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();
            DataSet       result       = prestamosSQL.TraerPrestamoSaldoTotal();

            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
            return(result);
        }
コード例 #9
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public DataSet TraerFechaFinalPrestamo(string filtro)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();
            DataSet       result       = prestamosSQL.TraerFechaFinalPrestamo(filtro);

            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
            return(result);
        }
コード例 #10
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public DataSet TraerPrestamo_planilla(string cliente, string prestamo, bool recargo)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();
            DataSet       result       = prestamosSQL.TraerPrestamo_planilla(cliente, prestamo, recargo);

            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
            return(result);
        }
コード例 #11
0
ファイル: PrestamosCL.cs プロジェクト: bams07/Prestamos
        public DataSet TraerPrestamo(string cliente, bool recargo = true, bool eliminado = true)
        {
            IPrestamosSQL prestamosSQL = this.ObtenerInstancia();
            DataSet       result       = prestamosSQL.TraerPrestamo(cliente, recargo, eliminado);

            if (prestamosSQL.IsError)
            {
                this.IsError          = prestamosSQL.IsError;
                this.ErrorDescripcion = prestamosSQL.ErrorDescripcion;
            }
            return(result);
        }