Version OScar
This commit is contained in:
54
ADSUtileriasWF/Data/Externa/PV/ClsVta_Mesas.cs
Normal file
54
ADSUtileriasWF/Data/Externa/PV/ClsVta_Mesas.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
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_Mesas : CLSExternoBase
|
||||
{
|
||||
#region Propiedades
|
||||
public int CveMesa { get; set; }
|
||||
public string Mesa { get; set; }
|
||||
public bool Estado { get; set; }
|
||||
public string Estatus { get; set; }
|
||||
#endregion
|
||||
public ClsVta_Mesas() { }
|
||||
public bool GetVta_Mesas()
|
||||
{
|
||||
bool Retorno = false;
|
||||
try
|
||||
{
|
||||
datos = proxy.GetVta_Mesas();
|
||||
if (datos.Tabla.Rows.Count > 0)
|
||||
{
|
||||
DataRow drow = datos.Tabla.Rows[0];
|
||||
this.CveMesa = drow["CveMesa"].ToString().ToEntero() ;
|
||||
this.Mesa = drow["Mesa"].ToString();
|
||||
this.Estado = drow["Estado"].ToString().ToBool();
|
||||
this.Estatus = drow["Estatus"].ToString();
|
||||
}
|
||||
Retorno = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnError("Ocurrió un error al consultar Las Mesas.", "Error", ex, MessageBoxIcon.Error);
|
||||
}
|
||||
return Retorno;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user