64 lines
1.5 KiB
C#
64 lines
1.5 KiB
C#
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 ClsEmpresas : CLSExternoBase
|
|
{
|
|
#region propiedades
|
|
public int CveCategoria { get; set; }
|
|
public string Categoria { get; set; }
|
|
public string Estado { get; set; }
|
|
#endregion
|
|
|
|
public ClsEmpresas() { }
|
|
|
|
public bool GetEmpresas()
|
|
{
|
|
bool Retorno = false;
|
|
|
|
try
|
|
{
|
|
datos = proxy.GetEmpresas();
|
|
Retorno = true;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
OnError("Ocurrió un error al consultar Las Empresas.", "Error", ex, MessageBoxIcon.Error);
|
|
}
|
|
|
|
return Retorno;
|
|
}
|
|
|
|
public bool GetReporteInfo()
|
|
{
|
|
bool Retorno = false;
|
|
|
|
try
|
|
{
|
|
datos = proxy.GetReporteInfo();
|
|
Retorno = true;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
OnError("Ocurrió un error al consultar El reporte de Informacion en el Servidor.", "Error", ex, MessageBoxIcon.Error);
|
|
}
|
|
|
|
return Retorno;
|
|
}
|
|
|
|
}
|
|
}
|