54 lines
1.4 KiB
C#
54 lines
1.4 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 ClsSucursales : CLSExternoBase
|
|
{
|
|
public int CveSucursal { get; set; }
|
|
public string Sucursal { get; set; }
|
|
public string Serie { get; set; }
|
|
|
|
public ClsSucursales() { }
|
|
|
|
public bool GetSucursales()
|
|
{
|
|
bool Retorno = false;
|
|
|
|
try
|
|
{
|
|
datos = proxy.GetSucursales();
|
|
if (datos.Tabla.Rows.Count > 0)
|
|
{
|
|
DataRow drow = datos.Tabla.Rows[0];
|
|
this.CveSucursal = drow["CveSucursal"].ToString().ToEntero();
|
|
this.Sucursal = drow["Sucursal"].ToString();
|
|
this.Serie = drow["Serie"].ToString();
|
|
}
|
|
Retorno = true;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
OnError("Ocurrió un error al consultar Las Sucursales.", "Error", ex, MessageBoxIcon.Error);
|
|
}
|
|
|
|
return Retorno;
|
|
}
|
|
|
|
}
|
|
}
|