Version OScar
This commit is contained in:
78
ADSUtileriasWF/Data/Externa/PV/ClsMonedas.cs
Normal file
78
ADSUtileriasWF/Data/Externa/PV/ClsMonedas.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.VisualBasic;
|
||||
|
||||
namespace ADSUtileriasWF.Data.Externa.PV
|
||||
{
|
||||
|
||||
public class ClsMonedas : CLSExternoBase
|
||||
{
|
||||
|
||||
|
||||
public ClsMonedas() { }
|
||||
|
||||
public bool GetMonedas()
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.GetMonedas();
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al consultar Las Monedas.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
public bool AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado)
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.AddMonedas(CveMoneda, Moneda, Abreviatura, Estado);
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al Agregar La Moneda.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
public bool RemoveMonedas(int CveMoneda)
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.RemoveMonedas(CveMoneda);
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("La Moneda no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user