Version OScar

This commit is contained in:
Jorge Luis caudillo esparza
2026-04-24 07:54:31 -07:00
parent 8e3df951b3
commit 83acc6b4f1
3780 changed files with 7042960 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.ApiSIG
{
class ClsRH
{
}
}

View File

@@ -0,0 +1,53 @@
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class CLSExternoBase : IDisposable
{
#region Propiedades
protected WCF_PV.DTable datos;
protected WCF_PV.PuntoVentaClient proxy;
// Atributos de la clase
private bool disposedValue = false; // Para detectar llamadas redundantes
public WCF_PV.DTable DtResultados { get { return datos; } }
#endregion
public CLSExternoBase(string RutaWCF = "")
{
if (RutaWCF == "")
{
RutaWCF = ModVarsPV.RutaWCF;
}
proxy = new WCF_PV.PuntoVentaClient(ModVarsPV.EndPointName, string.Format("{0}Clase", RutaWCF));
}
public void OnError(string Mensaje, string Caption, Exception Exeption, System.Windows.Forms.MessageBoxIcon Icon, string InfoAdicional = "")
{
ModExtensiones.OnError(Mensaje, Caption, Exeption, Icon, InfoAdicional);
}
#region dispose
protected virtual void Dispose(bool disposing)
{
if (!this.disposedValue && disposing)
{
if (datos != null)
datos = null;
if (proxy != null)
proxy = null;
}
this.disposedValue = true;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
public bool IsDBNull(object o)
{
return o == DBNull.Value;
}
#endregion
}
}

View File

@@ -0,0 +1,78 @@
using ADSUtileriasWF.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace ADSUtileriasWF.Data.Externa.PV
{
class ClsCategorias :CLSExternoBase
{
#region Propiedades
public int CveCategoria { get; set; }
public string Categoria { get; set; }
public string Estado { get; set; }
#endregion
public ClsCategorias(string RutaWCF =""):base(RutaWCF) {}
public bool GetCategorias()
{
bool Retorno = false;
try
{
datos = proxy.GetCategorias();
if (datos.Tabla.Rows.Count > 0)
{
this.CveCategoria = datos.Tabla.Rows[0]["CveCategoria"].ToString().ToEntero();
this.Categoria = datos.Tabla.Rows[0]["Categoria"].ToString();
this.Estado = datos.Tabla.Rows[0]["Estado"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Categorias de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddCategorias(int CveCategoria, string Categoria, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddCategorias(CveCategoria, Categoria, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar La Categoria de Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveCategoria(int CveCategoria)
{
bool Retorno = false;
try
{
datos = proxy.RemoveCategoria(CveCategoria);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Categoria no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,91 @@

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 ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsClasificaciones : CLSExternoBase
{
#region Propiedades
public int CveClasificacion { get; set; }
public string Clasificacion { get; set; }
public int CveCategoria { get; set; }
public string Categoria { get; set; }
public string Estado { get; set; }
#endregion
public ClsClasificaciones() { }
public bool GetClasificaciones(int CveCategoria)
{
bool Retorno = false;
try
{
datos = proxy.GetClasificaciones(CveCategoria);
if (datos.Tabla.Rows.Count > 0)
{
this.CveClasificacion = datos.Tabla.Rows[0]["CveClasificacion"].ToString().ToEntero();
this.Clasificacion = datos.Tabla.Rows[0]["Clasificacion"].ToString();
this.Estado = datos.Tabla.Rows[0]["Estado"].ToString();
this.CveCategoria = datos.Tabla.Rows[0]["CveCategoria"] != DBNull.Value ? datos.Tabla.Rows[0]["CveCategoria"].ToString().ToEntero() : -1;
this.Categoria = datos.Tabla.Rows[0]["Categoria"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Clasificaciones de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddClasificaciones(CveClasificacion, Clasificacion, CveCategoria, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar La Clasificacion de Productos y Servicios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveClasificacion(int CveClasificacion)
{
bool Retorno = false;
try
{
datos = proxy.RemoveClasificacion(CveClasificacion);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Clasificación no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,154 @@
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 ADSUtileriasWF.Helpers;
using Microsoft.VisualBasic;
namespace ADSUtileriasWF.Data.Externa.PV
{
public class ClsClientes : CLSExternoBase
{
#region propiedades
public int CveCliente { get; set; }
public string Nombre { get; set; }
public string NombreComercial { get; set; }
public string Direccion { get; set; }
public string NoExt { get; set; }
public string NoInt { get; set; }
public string Colonia { get; set; }
public string Localidad { get; set; }
public string Ciudad { get; set; }
public string Estado { get; set; }
public string Pais { get; set; }
public string CP { get; set; }
public string Telefono { get; set; }
public string Contacto { get; set; }
public string Mail { get; set; }
public string Codigo { get; set; }
public string NombreCorto { get; set; }
public string RFC { get; set; }
public double IVA { get; set; }
public int CveSucursal { get; set; }
public int CveEmpresa { get; set; }
#endregion
public ClsClientes() { }
public bool GetClientes(string RFC)
{
bool Retorno = false;
try
{
datos = proxy.GetCliente(RFC);
if (datos.Tabla.Rows.Count > 0)
{
this.CveCliente = datos.Tabla.Rows[0]["CveCliente"].ToString().ToEntero();
this.Nombre = datos.Tabla.Rows[0]["Nombre"].ToString();
this.Codigo = datos.Tabla.Rows[0]["Codigo"].ToString();
this.NombreCorto = datos.Tabla.Rows[0]["NombreCorto"].ToString();
this.RFC = datos.Tabla.Rows[0]["RFC"].ToString();
this.IVA = datos.Tabla.Rows[0]["IVA"].ToString().ToDouble();
this.CveSucursal = datos.Tabla.Rows[0]["CveSucursal"].ToString().ToEntero();
this.CveEmpresa = datos.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Clientes.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.GetClientes(CveCliente, Nombre, Codigo, NombreCorto, RFC, Telefono, Mail, CveSucursal, CveEmpresa);
if (datos.Tabla.Rows.Count > 0)
{
this.CveCliente = datos.Tabla.Rows[0]["CveCliente"].ToString().ToEntero();
this.Nombre = datos.Tabla.Rows[0]["Nombre"].ToString();
this.Codigo = datos.Tabla.Rows[0]["Codigo"].ToString();
this.NombreCorto = datos.Tabla.Rows[0]["NombreCorto"].ToString();
this.RFC = datos.Tabla.Rows[0]["RFC"].ToString();
this.NombreComercial = !IsDBNull(datos.Tabla.Rows[0]["NombreComercial"]) ? datos.Tabla.Rows[0]["NombreComercial"].ToString() : "";
this.Direccion = !IsDBNull(datos.Tabla.Rows[0]["Direccion"]) ? datos.Tabla.Rows[0]["Direccion"].ToString() : "";
this.NoExt = !IsDBNull(datos.Tabla.Rows[0]["NoExt"]) ? datos.Tabla.Rows[0]["NoExt"].ToString() : "";
this.NoInt = !IsDBNull(datos.Tabla.Rows[0]["NoInt"]) ? datos.Tabla.Rows[0]["NoInt"].ToString() : "";
this.Colonia = !IsDBNull(datos.Tabla.Rows[0]["Colonia"]) ? datos.Tabla.Rows[0]["Colonia"].ToString() : "";
this.Localidad = !IsDBNull(datos.Tabla.Rows[0]["Localidad"]) ? datos.Tabla.Rows[0]["Localidad"].ToString() : "";
this.Ciudad = !IsDBNull(datos.Tabla.Rows[0]["Ciudad"]) ? datos.Tabla.Rows[0]["Ciudad"].ToString() : "";
this.Estado = !IsDBNull(datos.Tabla.Rows[0]["Estado"]) ? datos.Tabla.Rows[0]["Estado"].ToString() : "";
this.Pais = !IsDBNull(datos.Tabla.Rows[0]["Pais"]) ? datos.Tabla.Rows[0]["Pais"].ToString() : "";
this.CP = !IsDBNull(datos.Tabla.Rows[0]["CP"]) ? datos.Tabla.Rows[0]["CP"].ToString() : "";
this.Telefono = !IsDBNull(datos.Tabla.Rows[0]["Telefono"]) ? datos.Tabla.Rows[0]["Telefono"].ToString() : "";
this.Contacto = !IsDBNull(datos.Tabla.Rows[0]["Contacto"]) ? datos.Tabla.Rows[0]["Contacto"].ToString() : "";
this.Mail = !IsDBNull(datos.Tabla.Rows[0]["Mail"]) ? datos.Tabla.Rows[0]["Mail"].ToString() : "";
this.CveSucursal = datos.Tabla.Rows[0]["CveSucursal"].ToString().ToEntero();
this.CveEmpresa = datos.Tabla.Rows[0]["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Clientes.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, int CveSucursal, int CveEmpresa, string NombreComercial, string Direccion, string NoExt, string NoInt, string Colonia, string Localidad, string Ciudad, string Estado, string Pais, string CP, string Telefono, string Contacto, string Mail)
{
bool Retorno = false;
try
{
datos = proxy.AddClientes(CveCliente, Nombre, Codigo, NombreCorto, RFC, CveSucursal, CveEmpresa, NombreComercial, Direccion, NoExt, NoInt, Colonia, Localidad, Ciudad, Estado, Pais, CP, Telefono, Contacto, Mail);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar El Cliente.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveCliente(int CveCliente)
{
bool Retorno = false;
try
{
datos = proxy.RemoveCliente(CveCliente);
Retorno = true;
}
catch (Exception ex)
{
OnError("El Cliente no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,75 @@

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 ClsCuentas : CLSExternoBase
{
public ClsCuentas() { }
public bool GetCuentasVendedor(int CveVendedor, int EstatusVenta)
{
bool Retorno = false;
try
{
datos = proxy.GetCuentasVendedor(CveVendedor, EstatusVenta);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Cuentas del Vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVendedores()
{
bool Retorno = false;
try
{
datos = proxy.GetVendedores();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVendedor(int CveVendedor, string Vendedor, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddVendedor(CveVendedor, Vendedor, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,63 @@
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;
}
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
class ClsEstadoServicio
{
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,174 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
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 ClsMetodosPago : CLSExternoBase
{
public partial class ClsMetodosPagoModel : object, System.ComponentModel.INotifyPropertyChanged
{
private int CveMetodoPagoField;
private string MetodoPagoField;
private double ImporteField;
private double ImportePropinaField;
public ClsMetodosPagoModel(int CveMetodoPago_, string MetodoPago_, double Importe_)
{
CveMetodoPago = CveMetodoPago_;
MetodoPago = MetodoPago_;
Importe = Importe_;
}
public int CveMetodoPago
{
get
{
return this.CveMetodoPagoField;
}
set
{
if ((this.CveMetodoPagoField.Equals(value) != true))
{
this.CveMetodoPagoField = value;
this.RaisePropertyChanged("CveMetodoPago");
}
}
}
public string MetodoPago
{
get
{
return this.MetodoPagoField;
}
set
{
this.MetodoPagoField = value;
}
}
public double Importe
{
get
{
return this.ImporteField;
}
set
{
if ((this.ImporteField.Equals(value) != true))
{
this.ImporteField = value;
this.RaisePropertyChanged("Importe");
}
}
}
public double ImportePropina
{
get
{
return this.ImportePropinaField;
}
set
{
if ((this.ImportePropinaField.Equals(value) != true))
{
this.ImportePropinaField = value;
this.RaisePropertyChanged("ImportePropina");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
public int CveMetodoPago { get; set; }
public string MetodoPago { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
public ClsMetodosPago() { }
public bool GetMetodosPago()
{
bool Retorno = false;
try
{
datos = proxy.GetMetodosPago();
if (datos.Tabla.Rows.Count > 0)
{
this.CveMetodoPago = datos.Tabla.Rows[0]["CveMetodoPago"].ToString().ToEntero();
this.MetodoPago = datos.Tabla.Rows[0]["MetodoPago"].ToString();
this.Estado = (datos.Tabla.Rows[0]["Estado"].ToString() == "1" || datos.Tabla.Rows[0]["Estado"].ToString().ToUpper() == "TRUE");
this.Estatus = datos.Tabla.Rows[0]["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddMetodosPago(CveMetodoPago, MetodoPago, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveMetodosPago(int CveMetodoPago)
{
bool Retorno = false;
try
{
datos = proxy.RemoveMetodosPago(CveMetodoPago);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar el Metodo de Pago.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,78 @@

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 ClsMonedas : CLSExternoBase
{
public ClsMonedas() { }
public bool GetMonedas()
{
bool Retorno = false;
try
{
datos = proxy.GetMonedas();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Monedas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado)
{
bool Retorno = false;
try
{
datos = proxy.AddMonedas(CveMoneda, Moneda, Abreviatura, Estado);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar La Moneda.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveMonedas(int CveMoneda)
{
bool Retorno = false;
try
{
datos = proxy.RemoveMonedas(CveMoneda);
Retorno = true;
}
catch (Exception ex)
{
OnError("La Moneda no se pudo eliminar por que esta siendo usada por un registro.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View 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;
}
}
}

View File

@@ -0,0 +1,202 @@
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 ClsProductosServicios : CLSExternoBase
{
public int CvePS { get; set; }
public int CveClasificacion { get; set; }
public int CveUnidadMedida { get; set; }
public string Codigo { get; set; }
public string PS { get; set; }
public decimal Precio { get; set; }
public decimal Oferta { get; set; }
public decimal IVA { get; set; }
public decimal RetIVA { get; set; }
public decimal MargenGanancia { get; set; }
public int IdCtaContVentas { get; set; }
public int IdCtaContCompras { get; set; }
public int IdCtaContInventarios { get; set; }
public int AsientoContableVentas { get; set; }
public int AsientoContableCompras { get; set; }
public bool AplicaParaConcepto { get; set; }
public bool Estado { get; set; }
public bool AplicaParaVenta { get; set; }
public bool EsPaquete { get; set; }
public DateTime Fecha { get; set; }
public string Usuario { get; set; }
public int CveEmpresa { get; set; }
public ClsProductosServicios() { }
public bool GetPS(int CvePS, int CveClasificacion, string Codigo = "-1", string PS = "-1")
{
bool Retorno = false;
try
{
datos = proxy.GetPS(CvePS, CveClasificacion, Codigo, PS);
if (datos.Tabla.Rows.Count == 1)
{
DataRow drow = datos.Tabla.Rows[0];
this.CvePS = drow["CvePS"].ToString().ToEntero();
this.PS = drow["PS"].ToString();
this.Codigo = drow["Codigo"].ToString();
this.Precio = drow["Precio"].ToString().ToDecimal();
this.CveClasificacion = drow["CveClasificacion"].ToString().ToEntero();
this.CveUnidadMedida = drow["CveUnidadMedida"].ToString().ToEntero();
this.IVA = drow["IVA"].ToString().ToDecimal() == -1 ? ModVarsPV.IVAClientePG : drow["IVA"].ToString().ToDecimal();
this.RetIVA = drow["RetIVA"].ToString().ToDecimal();
this.MargenGanancia = drow["MargenGanancia"].ToString().ToDecimal();
this.Estado = drow["Estado"].ToString() == "Activo" ? true : false;
this.AplicaParaVenta = drow["AplicaParaVenta"].ToString().ToBool();
this.EsPaquete = drow["EsPaquete"].ToString().ToBool();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSCaracteristicas(int CvePS)
{
bool Retorno = false;
try
{
datos = proxy.GetPSCaracteristicas(CvePS);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Caracteristicas del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion)
{
bool Retorno = false;
try
{
datos = proxy.AddPSCaracteristicas(CvePSCaracteristica, CvePS, Caracteristica, EsOpcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Ingresar La Caracteristica del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemovePSCaracteristicas(int CvePSCaracteristica)
{
bool Retorno = false;
try
{
datos = proxy.RemovePSCaracteristicas(CvePSCaracteristica);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar La Caracteristica del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetPSCaracteristicasOpciones(CvePSCaracteristica, CvePS);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Opciones del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion)
{
bool Retorno = false;
try
{
datos = proxy.AddPSCaracteristicasOpciones(CveOpcion, CvePSCaracteristica, Opcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Ingresar La Opcion del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemovePSCaracteristicasOpciones(int CveOpcion)
{
bool Retorno = false;
try
{
datos = proxy.RemovePSCaracteristicasOpciones(CveOpcion);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar La Opcion del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetPSPaquetes(int CvePSPaquete)
{
bool Retorno = false;
try
{
datos = proxy.GetPSPaquetes(CvePSPaquete);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Paquete del Producto o Servicio.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,53 @@

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;
}
}
}

View File

@@ -0,0 +1,42 @@
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 ClsUnidadesMedida : CLSExternoBase
{
public ClsUnidadesMedida() { }
public bool GetUnidadesMedida()
{
bool Retorno = false;
try
{
datos = proxy.GetUnidadesMedida();
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Las Unidades de Medida.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,55 @@

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 ClsUsuariosProcesos : CLSExternoBase
{
public int CveUsuario { get; set; }
public int CveProceso { get; set; }
public int Permitir { get; set; }
public ClsUsuariosProcesos() { }
public bool GetUsuariosProcesos(int CveProceso, int CveUsuario)
{
bool Retorno = false;
try
{
datos = proxy.GetUsuariosProcesos(CveProceso, CveUsuario);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow= datos.Tabla.Rows[0];
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.CveProceso = drow["CveProceso"].ToString().ToEntero();
this.Permitir = drow["Permitir"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Procesos de Usuarios.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,736 @@
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 ClsVentas : CLSExternoBase
{
#region Propiedades
public int CveVentaTerminal { get; set; }
public int CveMesa { get; set; }
public string Mesa { get; set; }
public string Cuenta { get; set; }
public int CveCliente { get; set; }
public string NombreCliente { get; set; }
public int NumeroPersonas { get; set; }
public int CveVendedor { get; set; }
public int Orden { get; set; }
public string Vendedor { get; set; }
public DateTime FechaApertura { get; set; }
public DateTime FechaCierre { get; set; }
public DateTime Fecha { get; set; }
public int CveEstatusFactura { get; set; }
public double SubTotal { get; set; }
public double Descuento { get; set; }
public int DescuentoPorcentaje { get; set; }
public double IVA { get; set; }
public double Total { get; set; }
public double Cambio { get; set; }
public bool Impreso { get; set; }
public int CveUsuario { get; set; }
public int CveEmpresa { get; set; }
public int CveVentaDetalleTerminal { get; set; }
#endregion
public ClsVentas() { }
public partial class ClsVentaDetalles : object, System.ComponentModel.INotifyPropertyChanged
{
#region local propierties
private int CveVentaField;
private int CvePSField;
private double CantidadField;
private int CveUnidadMedidaField;
private double PUField;
private double IVAField;
private double TotalIVAField;
private double TotalField;
private int CveEstautusFacturaField;
private string ObservacionesField;
private double OfertaField;
private double PrecioFinalField;
private double DescuentoField;
private int TipoDescuentoField;
private int CveSubProyectoField;
private string PSField;
private string CodigoField;
#endregion
#region public propierties
public int CveVenta
{
get
{
return this.CveVentaField;
}
set
{
if ((this.CveVentaField.Equals(value) != true))
{
this.CveVentaField = value;
this.RaisePropertyChanged("CveVenta");
}
}
}
public int CvePS
{
get
{
return this.CvePSField;
}
set
{
if ((this.CvePSField.Equals(value) != true))
{
this.CvePSField = value;
this.RaisePropertyChanged("CvePS");
}
}
}
public double Cantidad
{
get
{
return this.CantidadField;
}
set
{
if ((this.CantidadField.Equals(value) != true))
{
this.CantidadField = value;
this.RaisePropertyChanged("Cantidad");
}
}
}
public int CveUnidadMedida
{
get
{
return this.CveUnidadMedidaField;
}
set
{
if ((this.CveUnidadMedidaField.Equals(value) != true))
{
this.CveUnidadMedidaField = value;
this.RaisePropertyChanged("CveUnidadMedida");
}
}
}
public double PU
{
get
{
return this.PUField;
}
set
{
if ((this.PUField.Equals(value) != true))
{
this.PUField = value;
this.RaisePropertyChanged("PU");
}
}
}
public double IVA
{
get
{
return this.IVAField;
}
set
{
if ((this.IVAField.Equals(value) != true))
{
this.IVAField = value;
this.RaisePropertyChanged("IVA");
}
}
}
public double TotalIVA
{
get
{
return this.TotalIVAField;
}
set
{
if ((this.TotalIVAField.Equals(value) != true))
{
this.TotalIVAField = value;
this.RaisePropertyChanged("TotalIVA");
}
}
}
public double Total
{
get
{
return this.TotalField;
}
set
{
if ((this.TotalField.Equals(value) != true))
{
this.TotalField = value;
this.RaisePropertyChanged("Total");
}
}
}
public int CveEstautusFactura
{
get
{
return this.CveEstautusFacturaField;
}
set
{
if ((this.CveEstautusFacturaField.Equals(value) != true))
{
this.CveEstautusFacturaField = value;
this.RaisePropertyChanged("CveEstautusFactura");
}
}
}
public string Observaciones
{
get
{
return this.ObservacionesField;
}
set
{
if ((object.ReferenceEquals(this.ObservacionesField, value) != true))
{
this.ObservacionesField = value;
this.RaisePropertyChanged("Observaciones");
}
}
}
public double Oferta
{
get
{
return this.OfertaField;
}
set
{
if ((this.OfertaField.Equals(value) != true))
{
this.OfertaField = value;
this.RaisePropertyChanged("Oferta");
}
}
}
public double PrecioFinal
{
get
{
return this.PrecioFinalField;
}
set
{
if ((this.PrecioFinalField.Equals(value) != true))
{
this.PrecioFinalField = value;
this.RaisePropertyChanged("PrecioFinal");
}
}
}
public double Descuento
{
get
{
return this.DescuentoField;
}
set
{
if ((this.DescuentoField.Equals(value) != true))
{
this.DescuentoField = value;
this.RaisePropertyChanged("Descuento");
}
}
}
public int TipoDescuento
{
get
{
return this.TipoDescuentoField;
}
set
{
if ((this.TipoDescuentoField.Equals(value) != true))
{
this.TipoDescuentoField = value;
this.RaisePropertyChanged("TipoDescuento");
}
}
}
public int CveSubProyecto
{
get
{
return this.CveSubProyectoField;
}
set
{
if ((this.CveSubProyectoField.Equals(value) != true))
{
this.CveSubProyectoField = value;
this.RaisePropertyChanged("CveSubProyecto");
}
}
}
public string PS
{
get
{
return this.PSField;
}
set
{
if ((object.ReferenceEquals(this.PSField, value) != true))
{
this.PSField = value;
this.RaisePropertyChanged("PS");
}
}
}
public string Codigo
{
get
{
return this.CodigoField;
}
set
{
if ((object.ReferenceEquals(this.CodigoField, value) != true))
{
this.CodigoField = value;
this.RaisePropertyChanged("Codigo");
}
}
}
#endregion
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ( propertyChanged != null) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public bool AddVenta(string TipoDocto, int FolioFact, int CveCliente, double SubTotal, double Descuento, double IVA, double Total, int CveMoneda, double TipoCambio, int CveMetodoPago, DateTime Fecha, string MotivoDescuento, string Observaciones, int CveEstatusFactura, int CveVendedor, int CveCorteTerminal, int CveMesa, int NumeroPersonas, string Cuenta, int CveUsuario, int CveSucursal, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.AddVenta(TipoDocto, FolioFact, CveCliente, SubTotal, Descuento, IVA, Total, CveMoneda, TipoCambio, CveMetodoPago, Fecha, MotivoDescuento, Observaciones, CveEstatusFactura, CveVendedor, CveCorteTerminal, CveMesa, NumeroPersonas, Cuenta, CveUsuario, CveSucursal, CveEmpresa);
CveVentaTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Guardar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVentaDetalle(int CveVentaTerminal, int CvePS, double Cantidad, int CveUnidadMedida, double PU, double IVA, double Total, string Observaciones, double Descuento, int TipoDescuento, int ComandaOrden, double TasaIVA, bool EsVentaDetalle = true, int CveVentaDetalleTerminalPadre = -1, bool EsPromocion = false)
{
bool Retorno = false;
try
{
datos = proxy.AddVentaDetalle(CveVentaTerminal, CvePS, Cantidad, CveUnidadMedida, PU, IVA, Total, Observaciones, Descuento, TipoDescuento, ComandaOrden, TasaIVA, EsVentaDetalle, CveVentaDetalleTerminalPadre, EsPromocion);
CveVentaDetalleTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar el Producto o Servicio a la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_VentasPago(CveVentaTerminal, CveMetodoPago, Importe, ImportePropina);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al agregar el Pago de la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVta_VentasPago(CveVentaTerminal, CveMetodoPago);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Elimnar el Pago de la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_VentasPago(int CveCorteTerminal, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_VentasPagoCorte(CveCorteTerminal, CveEmpresa);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar los Pagos de Ventas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_VentasPago(int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_VentasPago(CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar los Pagos de Ventas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentas(int CveVentaTerminal, int CveEstatusFactura, int CveVendedor, string Cuenta, int CveCorteTerminal, int CveUsuario, int CveEmpresa, EstatusVentaTerminal CveVenta = EstatusVentaTerminal.Todas, int Modificadas = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVentas(CveVentaTerminal, CveEstatusFactura, CveVendedor, Cuenta, CveCorteTerminal, CveUsuario, CveEmpresa, CveVenta, Modificadas);
if (datos.Tabla.Rows.Count > 0)
{
DataRow dr = datos.Tabla.Rows[0];
this.CveVentaTerminal = dr["CveVentaTerminal"].ToString().ToEntero();
this.Cuenta = !IsDBNull(dr["Cuenta"]) ? dr["Cuenta"].ToString() : "-1";
this.NombreCliente = !IsDBNull(dr["Nombre"]) ? dr["Nombre"].ToString() : "";
this.CveCliente = !IsDBNull(dr["CveCliente"]) ? dr["CveCliente"].ToString().ToEntero() : -1;
this.NumeroPersonas = dr["NumeroPersonas"].ToString().ToEntero();
this.CveVendedor = !IsDBNull(dr["CveVendedor"]) ? dr["CveVendedor"].ToString().ToEntero() : -1;
this.Vendedor = !IsDBNull(dr["Vendedor"]) ? dr["Vendedor"].ToString() : "";
this.CveMesa = !IsDBNull(dr["CveMesa"]) ? dr["CveMesa"].ToString().ToEntero() : -1;
this.Mesa = !IsDBNull(dr["Mesa"]) ? dr["Mesa"].ToString() : "";
this.FechaApertura = !IsDBNull(dr["Fecha"]) ? dr["Fecha"].ToString().ToDateTime() : DateTime.MinValue;
this.Impreso = dr["Impreso"].ToString().ToBool();
this.CveEstatusFactura = !IsDBNull(dr["CveEstatusFactura"]) ? dr["CveEstatusFactura"].ToString().ToEntero() : -1;
this.Fecha = !IsDBNull(dr["Fecha"]) ? dr["Fecha"].ToString().ToDateTime() : DateTime.MinValue;
this.SubTotal = dr["SubTotal"].ToString().ToDouble();
this.Descuento = dr["Descuento"].ToString().ToDouble();
this.DescuentoPorcentaje = dr["DescuentoPorcentaje"].ToString().ToEntero();
this.IVA = dr["IVA"].ToString().ToDouble();
this.Total = dr["Total"].ToString().ToDouble();
this.Cambio = !IsDBNull(dr["Total"]) ? dr["Total"].ToString().ToDouble() : 0;
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al cargar las cuentas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVenta(SubTotal, Descuento, IVA, Total, Propina, CveEstatusFactura, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Pagar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public int AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario)
{
int Retorno = -1;
try
{
datos = proxy.AddVentaCopia(CveVentaTerminal, Cuenta, CveUsuario);
CveVentaTerminal = datos.CveRetorno;
Retorno = CveVentaTerminal;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Guardar la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.DivideVenta(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al dividr la cuenta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.JuntaVenta(CveVentaTerminalPrincipal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Juntar las cuentas.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetalle(int CveVentaTerminal, WCF_PV.ClsVentasEstatusEntrega EstatusEntrega = WCF_PV.ClsVentasEstatusEntrega.Todas)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetalle(CveVentaTerminal, EstatusEntrega);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al ver la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetalleComandaOrden(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetallesComandaOrden(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consulta la Comanda Orden.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.DeleteVentaDetalle(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al eliminar.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateEstatusEntregaVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, WCF_PV.ClsVentasEstatusEntrega EstatusEntregaFiltro, WCF_PV.ClsVentasEstatusEntrega EstatusEntrega)
{
bool Retorno = false;
try
{
datos = proxy.UpdateEstatusEntregaVentaDetalle(CveVentaTerminal, CveVentaDetalleTerminal, EstatusEntregaFiltro, EstatusEntrega);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el Estado de Entrega.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle = true)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCantidadVentaDetalle(CveVentaTerminal, CveVentaDetalleTerminal, Cantidad, EsVentaDetalle);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar la cantidad.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCambiarMesa(int CveMesa, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCambiarMesa(CveMesa, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar la cantidad.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateCliente(int CveCliente, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateCliente(CveCliente, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el Cliente.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles = false)
{
bool Retorno = false;
try
{
datos = proxy.UpdateDescuentoPorcentaje(DescuentoPorcentaje, CveVentaTerminal, AplicarloDetalles);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el descuento porcentaje.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateImpreso(int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateImpreso(CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar impresion.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden)
{
bool Retorno = false;
try
{
datos = proxy.UpdateImpresoComanda(CveVentaTerminal, ComandaOrden);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar impresion de la Comanda.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVendedor(int CveVendedor, int CveVentaTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVendedor(CveVendedor, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al actualizar el vendedor.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
{
bool Retorno = false;
try
{
datos = proxy.AddVentasDetallesCaracteristicas(CveOpcion, CvePS, CveVentaDetalleTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar la Caracteristica del Producto.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVentasDetallesCaracteristicas(CveOpcion, CvePS, CveVentaDetalleTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar la Caracteristica del Producto.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVentasDetallesCaracteristicas(CveVentaDetalleTerminal, CveVentaTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al ver la Venta.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,61 @@
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 ClsVta_Bitacora : CLSExternoBase
{
public int CveBitacoraTerminal { get; set; }
public ClsVta_Bitacora() { }
public bool GetVta_Bitacora(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Bitacora(CveCorteTerminal, -1);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar La Bitacora.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_Bitacora(CveVentaTerminal, Observacion, CveUsuario);
CveBitacoraTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar La Bitacora.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,359 @@

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_Cortes : CLSExternoBase
{
public partial class ClsVta_CortesModel : object, System.ComponentModel.INotifyPropertyChanged
{
#region "Local Propierties"
private int CveCorteTerminalField;
private DateTime FechaInicialField;
private DateTime FechaFinalField;
private DateTime FechaIngField;
private double ImporteInicialField;
private double ImporteFinalField;
private int CveUsuarioField;
private string DescripcionField;
private bool FinalizadoField;
private int CveCorteField;
#endregion
public ClsVta_CortesModel(DataRow drow)
{
initValues(drow["CveCorteTerminal"].ToString().ToEntero(), drow["FechaInicial"].ToString().ToDateTime(), drow["FechaFinal"].ToString().ToDateTime()
, drow["FechaIng"].ToString().ToDateTime(), drow["ImporteInicial"].ToString().ToDouble(),
drow["ImporteFinal"] ==DBNull.Value? -1 : drow["ImporteFinal"].ToString().ToDouble(),drow["CveUsuario"].ToString().ToEntero(),
drow["Descripcion"].ToString(), drow["Finalizado"].ToString().ToBool() , drow["CveCorte"] == DBNull.Value? -1 : drow["CveCorte"].ToString().ToEntero() );
}
public ClsVta_CortesModel(int CveCorteTerminal_, DateTime FechaInicial_, DateTime FechaFinal_, DateTime FechaIng_, double ImporteInicial_, double ImporteFinal_, int CveUsuario_, string Descripcion_, bool Finalizado_, int CveCorte_)
{
initValues( CveCorteTerminal_, FechaInicial_, FechaFinal_, FechaIng_, ImporteInicial_, ImporteFinal_, CveUsuario_, Descripcion_, Finalizado_, CveCorte_);
}
public void initValues (int CveCorteTerminal_, DateTime FechaInicial_, DateTime FechaFinal_, DateTime FechaIng_, double ImporteInicial_, double ImporteFinal_, int CveUsuario_, string Descripcion_, bool Finalizado_, int CveCorte_)
{
CveCorteTerminal = CveCorteTerminal_;
FechaInicial = FechaInicial_;
FechaFinal = FechaFinal_;
FechaIng = FechaIng_;
ImporteInicial = ImporteInicial_;
ImporteFinal = ImporteFinal_;
CveUsuario = CveUsuario_;
Descripcion = Descripcion_;
Finalizado = Finalizado_;
CveCorte = CveCorte_;
}
#region "public propierties"
public int CveCorteTerminal
{
get
{
return this.CveCorteTerminalField;
}
set
{
if ((this.CveCorteTerminalField.Equals(value) != true))
{
this.CveCorteTerminalField = value;
this.RaisePropertyChanged("CveCorteTerminal");
}
}
}
public DateTime FechaInicial
{
get
{
return this.FechaInicialField;
}
set
{
this.FechaInicialField = value;
}
}
public DateTime FechaFinal
{
get
{
return this.FechaFinalField;
}
set
{
this.FechaFinalField = value;
}
}
public DateTime FechaIng
{
get
{
return this.FechaIngField;
}
set
{
this.FechaIngField = value;
}
}
public double ImporteInicial
{
get
{
return this.ImporteInicialField;
}
set
{
this.ImporteInicialField = value;
}
}
public double ImporteFinal
{
get
{
return this.ImporteFinalField;
}
set
{
this.ImporteFinalField = value;
}
}
public int CveUsuario
{
get
{
return this.CveUsuarioField;
}
set
{
this.CveUsuarioField = value;
}
}
public string Descripcion
{
get
{
return this.DescripcionField;
}
set
{
this.DescripcionField = value;
}
}
public bool Finalizado
{
get
{
return this.FinalizadoField;
}
set
{
this.FinalizadoField = value;
}
}
public int CveCorte
{
get
{
return this.CveCorteField;
}
set
{
this.CveCorteField = value;
}
}
#endregion
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if (propertyChanged != null)
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
#region Propiedades
public int CveCorteTerminal { get; set; }
public DateTime FechaInicial { get; set; }
public DateTime FechaFinal { get; set; }
public DateTime FechaIng { get; set; }
public double ImporteInicial { get; set; }
public double ImporteFinal { get; set; }
public double Diferencia { get; set; }
public double Propinas { get; set; }
public double Vendido { get; set; }
public double VendidoFinalizadas { get; set; }
public double VendidoAbiertas { get; set; }
public double VendidoEfectivo { get; set; }
public double Ingresado { get; set; }
public double Retirado { get; set; }
public int CveUsuario { get; set; }
public string UsuarioNombre { get; set; }
public string Descripcion { get; set; }
public bool Finalizado { get; set; }
public int CveEmpresa { get; set; }
#endregion
public ClsVta_Cortes() { }
public bool GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte = -1, int Enviado = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Cortes(CveCorteTerminal, FechaI, FechaF, CveUsuario, Finalizado, CveCorte, Enviado);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveCorteTerminal = drow["CveCorteTerminal"].ToString().ToEntero ();
this.Descripcion = drow["Descripcion"].ToString();
this.FechaInicial = drow["FechaInicial"].ToString().ToDateTime();
this.FechaFinal = !IsDBNull(drow["FechaFinal"]) ? drow["FechaFinal"].ToString().ToDateTime() : new DateTime();
this.FechaIng = drow["FechaIng"].ToString().ToDateTime();
this.ImporteInicial = drow["ImporteInicial"].ToString().ToDouble();
this.ImporteFinal = !IsDBNull(drow["ImporteFinal"]) ? drow["ImporteFinal"].ToString().ToDouble() : -1;
this.Diferencia = !IsDBNull(drow["Diferencia"]) ? drow["Diferencia"].ToString().ToDouble() : -1;
this.Propinas = !IsDBNull(drow["Propinas"]) ? drow["Propinas"].ToString().ToDouble() : 0;
this.Vendido = !IsDBNull(drow["Vendido"]) ? drow["Vendido"].ToString().ToDouble() : 0;
this.VendidoFinalizadas = !IsDBNull(drow["VendidoFinalizadas"]) ? drow["VendidoFinalizadas"].ToString().ToDouble() : 0;
this.VendidoAbiertas = !IsDBNull(drow["VendidoAbiertas"]) ? drow["VendidoAbiertas"].ToString().ToDouble() : 0;
this.VendidoEfectivo = !IsDBNull(drow["VendidoEfectivo"]) ? drow["VendidoEfectivo"].ToString().ToDouble() : 0;
// Me.VendidoEfectivo = Me.VendidoEfectivo - Me.Propinas
this.Ingresado = !IsDBNull(drow["Ingresado"]) ? drow["Ingresado"].ToString().ToDouble() : 0;
this.Retirado = !IsDBNull(drow["Retirado"]) ? drow["Retirado"].ToString().ToDouble() : 0;
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.UsuarioNombre = drow["UsuarioNombre"].ToString();
this.Descripcion = drow["Descripcion"].ToString();
this.Finalizado = drow["Finalizado"].ToString().ToBool();
this.CveEmpresa = drow["CveEmpresa"].ToString().ToEntero();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Cortes de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.UpdateFinalizadoVta_Cortes(CveCorteTerminal, ImporteFinal, Diferencia, CveEmpresa);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Finalizar El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVta_CortesCveCorte(CveCorteTerminal, CveCorte);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Actualizar CveCorte del El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool UpdateVta_CortesEnviado(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.UpdateVta_CortesEnviado(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Actualizar ENVIADO del El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_Cortes(FechaInicial, ImporteInicial, CveUsuario, Descripcion, CveEmpresa);
CveCorteTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_CortesDetalles(CveCorteTerminal, CveMetodoPago, Importe);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Detalle de Corte de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool GetVta_CortesDetalles(int CveCorteTerminal)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_CortesDetalles(CveCorteTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Detalles del Cortes de Turno.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View 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;
}
}
}

View File

@@ -0,0 +1,191 @@

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_MovimientosCaja : CLSExternoBase
{
public partial class ClsVta_MovimientosCajaModel
{
#region local propierties
private int _CveMovimiento;
private int _CveCorte;
private int _CveUsuario;
private int _TipoMovimiento;
private string _Descripcion;
private double _Importe;
private DateTime _Fecha;
#endregion
#region public propierties
public int CveMovimiento
{
get
{
return _CveMovimiento;
}
set
{
_CveMovimiento = value;
}
}
public int CveCorte
{
get
{
return _CveCorte;
}
set
{
_CveCorte = value;
}
}
public int CveUsuario
{
get
{
return _CveUsuario;
}
set
{
_CveUsuario = value;
}
}
public int TipoMovimiento
{
get
{
return _TipoMovimiento;
}
set
{
_TipoMovimiento = value;
}
}
public string Descripcion
{
get
{
return _Descripcion;
}
set
{
_Descripcion = value;
}
}
public double Importe
{
get
{
return _Importe;
}
set
{
_Importe = value;
}
}
public DateTime Fecha
{
get
{
return _Fecha;
}
set
{
_Fecha = value;
}
}
#endregion
}
#region propiedades
public int CveMovimientoTerminal { get; set; }
public int CveCorteTerminal { get; set; }
public int CveMovimiento { get; set; }
public int CveCorte { get; set; }
public double Importe { get; set; }
public string Descripcion { get; set; }
public int TipoMovimiento { get; set; }
public DateTime Fecha { get; set; }
public int CveUsuario { get; set; }
public string Usuario { get; set; }
#endregion
public ClsVta_MovimientosCaja() { }
public bool GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento = -1)
{
bool Retorno = false;
try
{
datos = proxy.GetVta_MovimientosCaja(CveMovimientoTerminal, CveCorteTerminal, TipoMovimiento, CveMovimiento);
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveMovimientoTerminal = drow["CveMovimientoTerminal"].ToString().ToEntero();
this.CveCorteTerminal = drow["CveCorteTerminal"].ToString().ToEntero();
this.CveMovimiento = !IsDBNull(drow["CveMovimiento"]) ? drow["CveMovimiento"].ToString().ToEntero() : -1;
this.CveCorte = !IsDBNull(drow["CveCorte"]) ? drow["CveCorte"].ToString().ToEntero() : -1;
this.Importe = drow["Importe"].ToString().ToEntero();
this.Descripcion = drow["Descripcion"].ToString();
this.TipoMovimiento = drow["TipoMovimiento"].ToString().ToEntero();
this.Fecha = drow["Fecha"].ToString().ToDateTime();
this.CveUsuario = drow["CveUsuario"].ToString().ToEntero();
this.Usuario = drow["Usuario"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar El Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento)
{
bool Retorno = false;
try
{
datos = proxy.AddVta_MovimientosCaja(CveCorteTerminal, CveUsuario, Importe, Descripcion, TipoMovimiento);
CveMovimientoTerminal = datos.CveRetorno;
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Agregar El Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
public bool RemoveVta_MovimientosCaja(int CveMovimientoTerminal)
{
bool Retorno = false;
try
{
datos = proxy.RemoveVta_MovimientosCaja(CveMovimientoTerminal);
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al Eliminar el Movimiento de Caja.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,59 @@

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_Vendedores : CLSExternoBase
{
#region Propiedades
public int CveVendedor { get; set; }
public string Vendedor { get; set; }
public bool Estado { get; set; }
public string Estatus { get; set; }
#endregion
public ClsVta_Vendedores() { }
public bool GetVta_Vendedores()
{
bool Retorno = false;
try
{
datos = proxy.GetVta_Vendedores();
if (datos.Tabla.Rows.Count > 0)
{
DataRow drow = datos.Tabla.Rows[0];
this.CveVendedor = drow["CveVendedor"].ToString().ToEntero();
this.Vendedor = drow["Vendedor"].ToString();
this.Estado = drow["Estado"].ToString().ToBool();
this.Estatus = drow["Estatus"].ToString();
}
Retorno = true;
}
catch (Exception ex)
{
OnError("Ocurrió un error al consultar Los Vendedores.", "Error", ex, MessageBoxIcon.Error);
}
return Retorno;
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ADSUtileriasWF.Data.Externa.PV
{
public enum TipoImpresion : int
{
Venta = 1,
MovimientoCaja = 2,
Comanda = 3,
Corte = 4
}
public enum TamanoTicket : int
{
Normal = 46,
Chico = 36
}
public enum EstatusVentaTerminal
{
Todas = -1,
QueNoTienenCveVenta = -2,
QueNoTienenCveVentaPeroSiCveCorte = -3
}
public enum TipoMov : int
{
Ingreso = 1,
Retiro = 0
}
public enum EstatusMovimientoCajaTerminal
{
Todas = -1,
QueNoTienenCve = -2,
QueNoTienenCvePeroSiCveCorte = -3
}
}