Version OScar
This commit is contained in:
167
ADSUtileriasService/Servicios/ChecadorService.cs
Normal file
167
ADSUtileriasService/Servicios/ChecadorService.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using ADSUtileriasService.Conexion.SIG;
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Request;
|
||||
using ADSNetLibrary.SIGAPI.Models.Planeacion.Response;
|
||||
using ADSNetLibrary.SIGAPI.Models.Request;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ADSNetLibrary.SIGAPI.Models.Sistema;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IChecadorService
|
||||
{
|
||||
[OperationContract]
|
||||
List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> GetChecadorEmpleado(int CveChecador, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
bool SetPersonalChecador(List<ADSNetLibrary.SIGAPI.Models.RH.Request.RequestPersonalChecadorUp> empleados, int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
bool AddChecadorEmpleado(int cveChecador, ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador personal, string sCardnumber = "0", int CveEmpresa = -1);
|
||||
[OperationContract]
|
||||
ResponseLogin Login(RequestLogin parames);
|
||||
[OperationContract]
|
||||
List<ResponseSubProyectoUsuario> GetSubProyectos(RequestSubProyectoUsuario parames);
|
||||
}
|
||||
class ChecadorService : IChecadorService
|
||||
{
|
||||
public List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto, int CveEmpresa = -1)
|
||||
{
|
||||
ResponseModel<List<Modelos.Checador.Checadormodel>> retorno = new ResponseModel<List<Modelos.Checador.Checadormodel>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETChecadores(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto, int CveEmpresa = -1)
|
||||
{
|
||||
ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>> retorno = new ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETPersonal(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> GetChecadorEmpleado(int CveChecador, int CveEmpresa = -1)
|
||||
{
|
||||
List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> retorno = null;
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
{
|
||||
if (devicemodel.cveChecador == CveChecador)
|
||||
{
|
||||
|
||||
using (ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco device = new ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
var registros = device.GetChecadorEmpleado();
|
||||
if (registros != null && registros.IsSuccess)
|
||||
{
|
||||
retorno = registros.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
|
||||
public bool AddChecadorEmpleado(int cveChecador, ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador personal, string sCardnumber = "0", int CveEmpresa = -1)
|
||||
{
|
||||
|
||||
bool retorno = false;
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
{
|
||||
if (devicemodel.cveChecador == cveChecador)
|
||||
{
|
||||
|
||||
using (ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco device = new ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero()))
|
||||
{
|
||||
var registros = device.AddChecadorEmpleado(personal,sCardnumber);
|
||||
if (registros != null && registros.IsSuccess)
|
||||
{
|
||||
retorno = registros.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
public bool SetPersonalChecador(List<ADSNetLibrary.SIGAPI.Models.RH.Request.RequestPersonalChecadorUp> empleados, int CveEmpresa = -1)
|
||||
{
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
//List<ChecadorPersonal> chekpersonal = new List<ChecadorPersonal>();
|
||||
//List<Modelos.Checador.Checadormodel> devicelist = rhrepo.GETChecadores(-1);
|
||||
//foreach (Modelos.Checador.Checadormodel devicemodel in devicelist)
|
||||
//{
|
||||
// ChecadorController.ApiChecadorBase device = new ChecadorController.ApiZKTeco(devicemodel.iPLocal, devicemodel.puerto.ToEntero());
|
||||
// var registros = device.GetChecadorEmpleado();
|
||||
// if (registros != null && registros.IsSuccess)
|
||||
// {
|
||||
// chekpersonal.Add(new ChecadorPersonal() { checador = devicemodel, personal = registros.Result });
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Conexion.SIG.RHSIG rhsig = new Conexion.SIG.RHSIG();
|
||||
var checks = rhsig.UpPersonalChecador(empleados);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
foreach (var item in empleados)
|
||||
{
|
||||
rhrepo.UPPersonalChecador(item.CvePersonal, item.cveChecador, item.checadorID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
public ResponseLogin Login(RequestLogin parames)
|
||||
{
|
||||
UsuarioSIG Usig = new UsuarioSIG();
|
||||
ResponseModel<ResponseLogin> usuario = Usig.Login(parames);
|
||||
return usuario.Result;
|
||||
}
|
||||
public List<ResponseSubProyectoUsuario> GetSubProyectos(RequestSubProyectoUsuario parames)
|
||||
{
|
||||
PlaneacionSIG planeasig = new PlaneacionSIG();
|
||||
ResponseModel<List<ResponseSubProyectoUsuario>> planea = planeasig.GetSubProyectos(parames);
|
||||
return planea.Result;
|
||||
}
|
||||
}
|
||||
class ChecadorPersonal
|
||||
{
|
||||
public int CveChecador { get { if (checador != null) { return checador.cveChecador; } else { return 0; } } }
|
||||
public Modelos.Checador.Checadormodel checador { get; set; }
|
||||
public List<ADSNetLibrary.Helpers.Conexiones.ZkTeckoLib.PersonalChecador> personal { get; set; }
|
||||
}
|
||||
}
|
||||
12
ADSUtileriasService/Servicios/General.cs
Normal file
12
ADSUtileriasService/Servicios/General.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
class General
|
||||
{
|
||||
}
|
||||
}
|
||||
604
ADSUtileriasService/Servicios/Puntoventaservice.cs
Normal file
604
ADSUtileriasService/Servicios/Puntoventaservice.cs
Normal file
@@ -0,0 +1,604 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IPuntoventaservice
|
||||
{
|
||||
[OperationContract]
|
||||
string GetData(int value);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetUsuariosProcesos(int CveProceso, int CveUsuario);
|
||||
//[OperationContract()]
|
||||
//Usuario ValidarUsuario(string Usuario, string Password);
|
||||
//[OperationContract()]
|
||||
//Usuario ValidarUsuarioMesero(string Password);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCategorias();
|
||||
[OperationContract()]
|
||||
DTable AddCategorias(int CveCategoria, string Categoria, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveCategoria(int CveCategoria);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetClasificaciones(int CveCategoria);
|
||||
[OperationContract()]
|
||||
DTable AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveClasificacion(int CveClasificacion);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCliente(string RFC);
|
||||
[OperationContract()]
|
||||
DTable GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable 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);
|
||||
[OperationContract()]
|
||||
DTable RemoveCliente(int CveCliente);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetCuentasVendedor(int CveVendedor, int EstatusVenta);
|
||||
[OperationContract()]
|
||||
DTable GetVendedores();
|
||||
[OperationContract()]
|
||||
DTable AddVendedor(int CveVendedor, string Vendedor, bool Estado);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetEmpresas();
|
||||
[OperationContract()]
|
||||
DTable GetReporteInfo();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetEstadoServicio();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetMetodosPago();
|
||||
[OperationContract()]
|
||||
DTable AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveMetodosPago(int CveMetodoPago);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetMonedas();
|
||||
[OperationContract()]
|
||||
DTable AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado);
|
||||
[OperationContract()]
|
||||
DTable RemoveMonedas(int CveMoneda);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetProcesos();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetPS(int CvePS, int CveClasificacion, string Codigo = "-1", string PS = "-1");
|
||||
[OperationContract()]
|
||||
DTable GetPSCaracteristicas(int CvePS);
|
||||
[OperationContract()]
|
||||
DTable AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion);
|
||||
[OperationContract()]
|
||||
DTable RemovePSCaracteristicas(int CvePSCaracteristica);
|
||||
[OperationContract()]
|
||||
DTable GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS = -1);
|
||||
[OperationContract()]
|
||||
DTable AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion);
|
||||
[OperationContract()]
|
||||
DTable RemovePSCaracteristicasOpciones(int CveOpcion);
|
||||
[OperationContract()]
|
||||
DTable GetPSPaquetes(int CvePSPaquete);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetSucursales();
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetUnidadesMedida();
|
||||
|
||||
[OperationContract()]
|
||||
DTable 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);
|
||||
[OperationContract()]
|
||||
DTable AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina);
|
||||
[OperationContract()]
|
||||
DTable RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago);
|
||||
|
||||
[OperationContract()]
|
||||
DTable 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);
|
||||
[OperationContract()]
|
||||
DTable GetVta_VentasPagoCorte(int CveCorteTerminal, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable GetVta_VentasPago(int CveVentaTerminal);
|
||||
//[OperationContract()]
|
||||
//DTable GetVentas(int CveVentaTerminal, int CveEstatusFactura, int CveVendedor, string Cuenta, int CveCorteTerminal, int CveUsuario, int CveEmpresa, ClsVentas.EstatusVentaTerminal CveVenta = -1, int Modificadas = -1);
|
||||
[OperationContract()]
|
||||
DTable UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario);
|
||||
//[OperationContract()]
|
||||
//DTable GetVentasDetalle(int CveVentaTerminal, ClsVentas.EstatusEntrega EstatusEntrega);
|
||||
[OperationContract()]
|
||||
DTable DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal);
|
||||
//[OperationContract()]
|
||||
//DTable UpdateEstatusEntregaVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, ClsVentas.EstatusEntrega EstatusEntregaFiltro, ClsVentas.EstatusEntrega EstatusEntrega);
|
||||
[OperationContract()]
|
||||
DTable UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle = true);
|
||||
[OperationContract()]
|
||||
DTable UpdateCambiarMesa(int CveMesa, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateCliente(int CveCliente, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles = false);
|
||||
[OperationContract()]
|
||||
DTable UpdateImpreso(int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden);
|
||||
[OperationContract()]
|
||||
DTable UpdateVendedor(int CveVendedor, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal);
|
||||
[OperationContract()]
|
||||
DTable RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal);
|
||||
[OperationContract()]
|
||||
DTable GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal = -1);
|
||||
[OperationContract()]
|
||||
DTable GetVentasDetallesComandaOrden(int CveCorteTerminal);
|
||||
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Bitacora(int CveCorteTerminal, int CveVentaTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte = -1, int Enviado = -1);
|
||||
[OperationContract()]
|
||||
DTable UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte);
|
||||
[OperationContract()]
|
||||
DTable UpdateVta_CortesEnviado(int CveCorteTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa);
|
||||
[OperationContract()]
|
||||
DTable AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe);
|
||||
[OperationContract()]
|
||||
DTable GetVta_CortesDetalles(int CveCorteTerminal);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Mesas();
|
||||
|
||||
[OperationContract()]
|
||||
DTable RemoveVta_MovimientosCaja(int CveMovimientoTerminal);
|
||||
[OperationContract()]
|
||||
DTable AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento);
|
||||
[OperationContract()]
|
||||
DTable GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento = -1);
|
||||
|
||||
[OperationContract()]
|
||||
DTable GetVta_Vendedores();
|
||||
}
|
||||
public class Puntoventaservice : IPuntoventaservice
|
||||
{
|
||||
DTable IPuntoventaservice.AddCategorias(int CveCategoria, string Categoria, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddClasificaciones(int CveClasificacion, string Clasificacion, int CveCategoria, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.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)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddMetodosPago(int CveMetodoPago, string MetodoPago, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddMonedas(int CveMoneda, string Moneda, string Abreviatura, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddPSCaracteristicas(int CvePSCaracteristica, int CvePS, string Caracteristica, bool EsOpcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddPSCaracteristicasOpciones(int CveOpcion, int CvePSCaracteristica, string Opcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVendedor(int CveVendedor, string Vendedor, bool Estado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.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)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVentaCopia(int CveVentaTerminal, string Cuenta, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.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, int CveVentaDetalleTerminalPadre, bool EsPromocion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_Bitacora(int CveVentaTerminal, string Observacion, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_Cortes(DateTime FechaInicial, double ImporteInicial, int CveUsuario, string Descripcion, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_CortesDetalles(int CveCorteTerminal, int CveMetodoPago, double Importe)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_MovimientosCaja(int CveCorteTerminal, int CveUsuario, double Importe, string Descripcion, int TipoMovimiento)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.AddVta_VentasPago(int CveVentaTerminal, int CveMetodoPago, double Importe, double ImportePropina)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.DeleteVentaDetalle(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.DivideVenta(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCategorias()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetClasificaciones(int CveCategoria)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCliente(string RFC)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetClientes(int CveCliente, string Nombre, string Codigo, string NombreCorto, string RFC, string Telefono, string Mail, int CveSucursal, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetCuentasVendedor(int CveVendedor, int EstatusVenta)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
string IPuntoventaservice.GetData(int value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetEmpresas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetEstadoServicio()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetMetodosPago()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetMonedas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetProcesos()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPS(int CvePS, int CveClasificacion, string Codigo, string PS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSCaracteristicas(int CvePS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSCaracteristicasOpciones(int CvePSCaracteristica, int CvePS)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetPSPaquetes(int CvePSPaquete)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetReporteInfo()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetSucursales()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetUnidadesMedida()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetUsuariosProcesos(int CveProceso, int CveUsuario)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVendedores()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVentasDetallesCaracteristicas(int CveVentaDetalleTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVentasDetallesComandaOrden(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Bitacora(int CveCorteTerminal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Cortes(int CveCorteTerminal, string FechaI, string FechaF, int CveUsuario, int Finalizado, int CveCorte, int Enviado)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_CortesDetalles(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Mesas()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_MovimientosCaja(int CveMovimientoTerminal, int CveCorteTerminal, int TipoMovimiento, int CveMovimiento)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_Vendedores()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_VentasPago(int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.GetVta_VentasPagoCorte(int CveCorteTerminal, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.JuntaVenta(int CveVentaTerminalPrincipal, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveCategoria(int CveCategoria)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveClasificacion(int CveClasificacion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveCliente(int CveCliente)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveMetodosPago(int CveMetodoPago)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveMonedas(int CveMoneda)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemovePSCaracteristicas(int CvePSCaracteristica)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemovePSCaracteristicasOpciones(int CveOpcion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVentasDetallesCaracteristicas(int CveOpcion, int CvePS, int CveVentaDetalleTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVta_MovimientosCaja(int CveMovimientoTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.RemoveVta_VentasPago(int CveVentaTerminal, int CveMetodoPago)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCambiarMesa(int CveMesa, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCantidadVentaDetalle(int CveVentaTerminal, int CveVentaDetalleTerminal, double Cantidad, bool EsVentaDetalle)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateCliente(int CveCliente, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateDescuentoPorcentaje(int DescuentoPorcentaje, int CveVentaTerminal, bool AplicarloDetalles)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateFinalizadoVta_Cortes(int CveCorteTerminal, double ImporteFinal, double Diferencia, int CveEmpresa)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateImpreso(int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateImpresoComanda(int CveVentaTerminal, int ComandaOrden)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVendedor(int CveVendedor, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVenta(double SubTotal, double Descuento, double IVA, double Total, double Propina, int CveEstatusFactura, int CveVentaTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVta_CortesCveCorte(int CveCorteTerminal, int CveCorte)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
DTable IPuntoventaservice.UpdateVta_CortesEnviado(int CveCorteTerminal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
[DataContract]
|
||||
public class DTable
|
||||
{
|
||||
[DataMember]
|
||||
public DataTable Tabla
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Tabla;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Tabla = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public string Mensaje
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Mensaje;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Mensaje = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public int CveRetorno
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CveRetorno;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_CveRetorno = value;
|
||||
}
|
||||
}
|
||||
[DataMember]
|
||||
public bool Retorno
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Retorno;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Retorno = value;
|
||||
}
|
||||
}
|
||||
|
||||
private DataTable m_Tabla;
|
||||
private string m_Mensaje;
|
||||
private int m_CveRetorno;
|
||||
private bool m_Retorno;
|
||||
}
|
||||
}
|
||||
|
||||
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using ADSUtileriasService.Helpers;
|
||||
using ADSNetLibrary.SIGAPI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ADSUtileriasService.Servicios
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IUtileriasService
|
||||
{
|
||||
[OperationContract]
|
||||
List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto);
|
||||
|
||||
}
|
||||
class UtileriasService: IUtileriasService
|
||||
{
|
||||
public List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<Modelos.Checador.Checadormodel>> retorno = new ResponseModel<List<Modelos.Checador.Checadormodel>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETChecadores(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
public List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>> retorno = new ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>>();
|
||||
using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase())
|
||||
{
|
||||
Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd);
|
||||
retorno.Result = rhrepo.GETPersonal(cveSubProyecto);
|
||||
}
|
||||
return retorno.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user