Version OScar
This commit is contained in:
52
ADSUtileriasWF/Data/Externa/PV/ClsProcesos.cs
Normal file
52
ADSUtileriasWF/Data/Externa/PV/ClsProcesos.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user