53 lines
1.2 KiB
C#
53 lines
1.2 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 ClsProcesos : CLSExternoBase
|
|
{
|
|
|
|
public int CveProceso { get; set; }
|
|
public string Descripcion { get; set; }
|
|
|
|
public ClsProcesos() { }
|
|
|
|
public bool GetProcesos()
|
|
{
|
|
bool Retorno = false;
|
|
|
|
try
|
|
{
|
|
datos = proxy.GetProcesos();
|
|
if (datos.Tabla.Rows.Count > 0)
|
|
{
|
|
DataRow drow = datos.Tabla.Rows[0];
|
|
this.CveProceso = drow["CveProceso"].ToString().ToEntero();
|
|
this.Descripcion = drow["Descripcion"].ToString();
|
|
}
|
|
Retorno = true;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
OnError("Ocurrió un error al consultar Los Procesos.", "Error", ex, MessageBoxIcon.Error);
|
|
}
|
|
|
|
return Retorno;
|
|
}
|
|
|
|
}
|
|
}
|