Files
Checador-Desktop/ADSUtileriasWF/Data/Externa/PV/ClsVta_Vendedores.cs
Jorge Luis caudillo esparza 83acc6b4f1 Version OScar
2026-04-24 07:54:31 -07:00

60 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
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 ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsVta_Vendedores : CLSExternoBase
{
#region Propiedades
public int CveVendedor { get; set; }
public string Vendedor { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
#endregion
public ClsVta_Vendedores() { }
public bool GetVta_Vendedores()
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Vendedores();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveVendedor = drow["CveVendedor"].ToString().ToEntero();
this.Vendedor = drow["Vendedor"].ToString();
this.Estado = drow["Estado"].ToString().ToBool();
this.Estatus = drow["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}