Version OScar
This commit is contained in:
75
ADSUtileriasWF/Data/Externa/PV/ClsCuentas.cs
Normal file
75
ADSUtileriasWF/Data/Externa/PV/ClsCuentas.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
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 ClsCuentas : CLSExternoBase
|
||||
{
|
||||
|
||||
public ClsCuentas() { }
|
||||
|
||||
public bool GetCuentasVendedor(int CveVendedor, int EstatusVenta)
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.GetCuentasVendedor(CveVendedor, EstatusVenta);
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al consultar Las Cuentas del Vendedor.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
public bool GetVendedores()
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.GetVendedores();
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
public bool AddVendedor(int CveVendedor, string Vendedor, bool Estado)
|
||||
{
|
||||
bool Retorno = false;
|
||||
|
||||
try
|
||||
{
|
||||
datos = proxy.AddVendedor(CveVendedor, Vendedor, Estado);
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al Agregar El Vendedor.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user