Servicios web sincronizacion y otros

master
Gerardo 2023-08-02 12:13:09 +02:00
parent e389725954
commit 8f6d4afa5a
714 changed files with 480189 additions and 0 deletions

View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exferia_ServiciosWeb", "Exferia_ServiciosWeb\Exferia_ServiciosWeb.csproj", "{104EEB06-DB35-4B77-A0CB-099107E93B72}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{CD9CD799-233E-426F-BFF8-D687EB96C449}"
ProjectSection(ProjectDependencies) = postProject
{104EEB06-DB35-4B77-A0CB-099107E93B72} = {104EEB06-DB35-4B77-A0CB-099107E93B72}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{104EEB06-DB35-4B77-A0CB-099107E93B72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{104EEB06-DB35-4B77-A0CB-099107E93B72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{104EEB06-DB35-4B77-A0CB-099107E93B72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{104EEB06-DB35-4B77-A0CB-099107E93B72}.Release|Any CPU.Build.0 = Release|Any CPU
{CD9CD799-233E-426F-BFF8-D687EB96C449}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD9CD799-233E-426F-BFF8-D687EB96C449}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD9CD799-233E-426F-BFF8-D687EB96C449}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD9CD799-233E-426F-BFF8-D687EB96C449}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,590 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_Generales;
using Exferia_Aplicacion.Modelos_ServiciosWeb;
using Exferia_Aplicacion.Sincronizacion;
using Exferia_Formularios;
using Exferia_ServiciosWeb.ServiciosWeb;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Exferia_ServiciosWeb
{
public class Datos_ServiciosWeb
{
private PE_Esperando g_frm_PE_Esperando = null;
#region Agencia Tributaria
private INTERNO_ValorDevuelto_Modelo EnviarDatos_ProvidenciaApremio(string _str_DireccionEnvio, string _str_Fichero_RutaCompleta, string _str_Certificado_RutaCompleta, string _str_Certificado_Clave)
{
try
{
AgenciaTributaria obj_AgenciaTributaria = new AgenciaTributaria();
return obj_AgenciaTributaria.EnviarDatos_ProvidenciaApremio(_str_DireccionEnvio, _str_Fichero_RutaCompleta, _str_Certificado_RutaCompleta, _str_Certificado_Clave);
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores(ex.Message,ex,nameof(Datos_ServiciosWeb)+"/"+nameof(EnviarDatos_ProvidenciaApremio),true);
}
}
#endregion
#region Licencia
private INTERNO_ServicioWeb_Licencia_Modelo Validar_Licencia(long _lng_idCliente, string _str_numeroLicencia)
{
try
{
Licencia obj_Licencia = new Licencia();
return obj_Licencia.Validar_Licencia(_lng_idCliente, _str_numeroLicencia);
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores(ex.Message, ex, nameof(Datos_ServiciosWeb) + "/" + nameof(Validar_Licencia), true);
}
}
#endregion
#region KairosPRO
#region Solicitudes
private void KairosPRO_EnviarCorreo_Solicitudes(string _str_IPs,string _str_Puertos,int _int_Tipo,long _lng_idSolicitudAusenciaProgramada,DateTime _dtt_FechaEnvio)
{
try
{
//Parametros
List<object> lst_Parametros = new List<object>();
lst_Parametros.Add(_str_IPs);
lst_Parametros.Add(_str_Puertos);
lst_Parametros.Add(_int_Tipo);
lst_Parametros.Add(_lng_idSolicitudAusenciaProgramada);
lst_Parametros.Add(_dtt_FechaEnvio);
BackgroundWorker obj_TareaAsincrona_KairosPROEnviarCorreoSolicitudes = new BackgroundWorker();
obj_TareaAsincrona_KairosPROEnviarCorreoSolicitudes.DoWork += new DoWorkEventHandler(TareaAsincrona_KairosPROEnviarCorreoSolicitudes_DoWork);
obj_TareaAsincrona_KairosPROEnviarCorreoSolicitudes.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_KairosPROEnviarCorreoSolicitudes_Completed);
obj_TareaAsincrona_KairosPROEnviarCorreoSolicitudes.RunWorkerAsync(lst_Parametros);
}
catch (Exception)
{}
}
private void TareaAsincrona_KairosPROEnviarCorreoSolicitudes_DoWork(object sender, DoWorkEventArgs e)
{
try
{
//Parametros
List<object> lst_Parametros = (List<object>)e.Argument;
string str_IPS=(string)lst_Parametros[0];
string str_Puertos = (string)lst_Parametros[1];
int int_Tipo = (int)lst_Parametros[2];
long lng_idSolicitudAusenciaProgramada=(long)lst_Parametros[3];
DateTime dtt_FechaEnvio = (DateTime)lst_Parametros[4];
if (str_IPS.Trim().Length>0)
{
//Primero se busca las IPs y Puertos del Servicio WEB
List<string> lst_Direcciones = new List<string>();
string[] arr_IPS = str_IPS.Split('|');
string[] arr_Puertos = str_Puertos.Split('|');
for(int int_Contador = 0; int_Contador < arr_IPS.Length; int_Contador++)
{
lst_Direcciones.Add("http://" + arr_IPS[int_Contador] + ":" + arr_Puertos[int_Contador]);
}
KairosPro obj_KairosPro = new KairosPro();
//Solicitud
if (int_Tipo==1)
{
obj_KairosPro.EnvioCorreo_SolicitudAusenciaProgramada(lst_Direcciones, lng_idSolicitudAusenciaProgramada, dtt_FechaEnvio);
}
//Aceptar
else if (int_Tipo == 2)
{
obj_KairosPro.EnvioCorreo_SolicitudAusenciaProgramada_Aceptar(lst_Direcciones, lng_idSolicitudAusenciaProgramada, dtt_FechaEnvio);
}
//Denegar
else if (int_Tipo == 3)
{
obj_KairosPro.EnvioCorreo_SolicitudAusenciaProgramada_Cancelar(lst_Direcciones, lng_idSolicitudAusenciaProgramada, dtt_FechaEnvio);
}
}
}
catch (ThreadAbortException)
{}
catch (Control_Errores)
{}
catch (Exception )
{}
}
private void TareaAsincrona_KairosPROEnviarCorreoSolicitudes_Completed(object sender, RunWorkerCompletedEventArgs e)
{ }
#endregion
#region AutorizacionHorasExtras
private void KairosPRO_EnviarCorreo_AutorizacionHorasExtras(string _str_IPs, string _str_Puertos, int _int_Tipo, long _lng_id, DateTime _dtt_FechaEnvio)
{
try
{
//Parametros
List<object> lst_Parametros = new List<object>();
lst_Parametros.Add(_str_IPs);
lst_Parametros.Add(_str_Puertos);
lst_Parametros.Add(_int_Tipo);
lst_Parametros.Add(_lng_id);
lst_Parametros.Add(_dtt_FechaEnvio);
BackgroundWorker obj_TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras = new BackgroundWorker();
obj_TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras.DoWork += new DoWorkEventHandler(TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras_DoWork);
obj_TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras_Completed);
obj_TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras.RunWorkerAsync(lst_Parametros);
}
catch (Exception)
{ }
}
private void TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras_DoWork(object sender, DoWorkEventArgs e)
{
try
{
//Parametros
List<object> lst_Parametros = (List<object>)e.Argument;
string str_IPS = (string)lst_Parametros[0];
string str_Puertos = (string)lst_Parametros[1];
int int_Tipo = (int)lst_Parametros[2];
long lng_id = (long)lst_Parametros[3];
DateTime dtt_FechaEnvio = (DateTime)lst_Parametros[4];
if (str_IPS.Trim().Length > 0)
{
//Primero se busca las IPs y Puertos del Servicio WEB
List<string> lst_Direcciones = new List<string>();
string[] arr_IPS = str_IPS.Split('|');
string[] arr_Puertos = str_Puertos.Split('|');
for (int int_Contador = 0; int_Contador < arr_IPS.Length; int_Contador++)
{
lst_Direcciones.Add("http://" + arr_IPS[int_Contador] + ":" + arr_Puertos[int_Contador]);
}
KairosPro obj_KairosPro = new KairosPro();
//Autorizacion
if (int_Tipo == 1)
{
obj_KairosPro.EnvioCorreo_AutorizacionHorasExtras(lst_Direcciones, lng_id, dtt_FechaEnvio);
}
//Aceptar
else if (int_Tipo == 2)
{
obj_KairosPro.EnvioCorreo_AutorizacionHorasExtras_Aceptar(lst_Direcciones, lng_id, dtt_FechaEnvio);
}
//Denegar
else if (int_Tipo == 3)
{
obj_KairosPro.EnvioCorreo_AutorizacionHorasExtras_Cancelar(lst_Direcciones, lng_id, dtt_FechaEnvio);
}
}
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
}
private void TareaAsincrona_KairosPROEnviarCorreoAutorizacionHorasExtras_Completed(object sender, RunWorkerCompletedEventArgs e)
{ }
#endregion
#endregion
#region Sincronizacion
#region Actualizacion_Registro
private void Sincronizacion_Actualizacion_Registro(INTERNO_Sincronizacion_ActualizarRegistro_Modelo _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo)
{
try
{
BackgroundWorker obj_TareaAsincrona_Actualizacion_Registro = new BackgroundWorker();
obj_TareaAsincrona_Actualizacion_Registro.DoWork += new DoWorkEventHandler(TareaAsincrona_Actualizacion_Registro_DoWork);
obj_TareaAsincrona_Actualizacion_Registro.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_Actualizacion_Registro_Completed);
obj_TareaAsincrona_Actualizacion_Registro.RunWorkerAsync(_mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo);
}
catch (Exception)
{ }
}
private void TareaAsincrona_Actualizacion_Registro_DoWork(object sender, DoWorkEventArgs e)
{
try
{
//Parametros
INTERNO_Sincronizacion_ActualizarRegistro_Modelo mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo = (INTERNO_Sincronizacion_ActualizarRegistro_Modelo)e.Argument;
//lst_Direcciones.Add("http://1.trialia.es:8030");
Sincronizacion obj_Sincronizacion = new Sincronizacion();
obj_Sincronizacion.Actualizacion_Registro(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
}
private void TareaAsincrona_Actualizacion_Registro_Completed(object sender, RunWorkerCompletedEventArgs e)
{ }
#endregion
#region Actualizar_TipoAccion
private void Sincronizacion_Actualizar_TipoAccion(INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo)
{
try
{
BackgroundWorker obj_TareaAsincrona_Actualizar_TipoAccion = new BackgroundWorker();
obj_TareaAsincrona_Actualizar_TipoAccion.DoWork += new DoWorkEventHandler(TareaAsincrona_Actualizar_TipoAccion_DoWork);
obj_TareaAsincrona_Actualizar_TipoAccion.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_Actualizar_TipoAccion_Completed);
obj_TareaAsincrona_Actualizar_TipoAccion.RunWorkerAsync(_mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo);
}
catch (Exception)
{ }
}
private void TareaAsincrona_Actualizar_TipoAccion_DoWork(object sender, DoWorkEventArgs e)
{
try
{
//Parametros
INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo = (INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo)e.Argument;
Sincronizacion obj_Sincronizacion = new Sincronizacion();
obj_Sincronizacion.Actualizar_TipoAccion(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
}
private void TareaAsincrona_Actualizar_TipoAccion_Completed(object sender, RunWorkerCompletedEventArgs e)
{ }
#endregion
#region Borrar_Y_Actualizar
private void Sincronizacion_Borrar_Y_Actualizar(INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo,
INTERNO_Sincronizacion_ActualizarRegistro_Modelo _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo)
{
try
{
List<object> lst_Agumentos = new List<object>();
lst_Agumentos.Add(_mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo);
lst_Agumentos.Add(_mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo);
BackgroundWorker obj_TareaAsincrona_Borrar_Y_Actualizar = new BackgroundWorker();
obj_TareaAsincrona_Borrar_Y_Actualizar.DoWork += new DoWorkEventHandler(TareaAsincrona_Borrar_Y_Actualizar_DoWork);
obj_TareaAsincrona_Borrar_Y_Actualizar.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_Borrar_Y_Actualizar_Completed);
obj_TareaAsincrona_Borrar_Y_Actualizar.RunWorkerAsync(lst_Agumentos);
}
catch (Exception)
{ }
}
private void TareaAsincrona_Borrar_Y_Actualizar_DoWork(object sender, DoWorkEventArgs e)
{
try
{
//Parametros
List<object> lst_Agumentos = (List<object>)e.Argument;
INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo = (INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo)lst_Agumentos[0];
INTERNO_Sincronizacion_ActualizarRegistro_Modelo mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo = (INTERNO_Sincronizacion_ActualizarRegistro_Modelo)lst_Agumentos[1];
Sincronizacion obj_Sincronizacion = new Sincronizacion();
//Borrar
obj_Sincronizacion.Actualizar_TipoAccion(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo);
//Actualizar
obj_Sincronizacion.Actualizacion_Registro(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
}
private void TareaAsincrona_Borrar_Y_Actualizar_Completed(object sender, RunWorkerCompletedEventArgs e)
{ }
#endregion
#region Vaciar_Terminal
private void Sincronizacion_Vaciar_Terminal(long _lng_idTerminal)
{
try
{
g_frm_PE_Esperando = new PE_Esperando(Mensajes.G_STR_ESPERANDO_VACIANDODODATOS());
BackgroundWorker obj_TareaAsincrona_Sincronizacion_Vaciar_Terminal = new BackgroundWorker();
obj_TareaAsincrona_Sincronizacion_Vaciar_Terminal.DoWork += new DoWorkEventHandler(TareaAsincrona_Sincronizacion_Vaciar_Terminal_DoWork);
obj_TareaAsincrona_Sincronizacion_Vaciar_Terminal.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincronaSincronizacion_Vaciar_Terminal_Completed);
obj_TareaAsincrona_Sincronizacion_Vaciar_Terminal.RunWorkerAsync(_lng_idTerminal);
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(Sincronizacion_Vaciar_Terminal));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_VACIANDODATOSTERMINAL());
}
}
private void TareaAsincrona_Sincronizacion_Vaciar_Terminal_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = "";
try
{
long lng_idTerminal = (long)e.Argument;
Sincronizacion obj_Sincronizacion = new Sincronizacion();
mdl_INTERNO_ValorDevuelto_Modelo=obj_Sincronizacion.Vaciar_Terminal(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, lng_idTerminal);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincronaSincronizacion_Vaciar_Terminal_Completed(object sender, RunWorkerCompletedEventArgs e)
{
try
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
//Mostrar si tuviera algun mensaje
if (mdl_ValorDevuelto_Modelo_Resultado.TodoCorrecto == false)
{
if (mdl_ValorDevuelto_Modelo_Resultado.Mensaje.Trim().Length > 0)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo_Resultado.Mensaje);
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(TareaAsincronaSincronizacion_Vaciar_Terminal_Completed));
}
}
#endregion
#region Vaciar_Datos_Sincronizacion
private void Sincronizacion_Vaciar_Datos_Sincronizacion(long _lng_idTerminal)
{
try
{
g_frm_PE_Esperando = new PE_Esperando(Mensajes.G_STR_ESPERANDO_VACIANDODODATOS());
BackgroundWorker obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion = new BackgroundWorker();
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion.DoWork += new DoWorkEventHandler(TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion_DoWork);
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincronaSincronizacion_Vaciar_Datos_Sincronizacion_Completed);
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion.RunWorkerAsync(_lng_idTerminal);
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(Sincronizacion_Vaciar_Datos_Sincronizacion));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_VACIANDODATOSTERMINAL());
}
}
private void TareaAsincrona_Sincronizacion_Vaciar_Datos_Sincronizacion_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = "";
try
{
long lng_idTerminal = (long)e.Argument;
Sincronizacion obj_Sincronizacion = new Sincronizacion();
mdl_INTERNO_ValorDevuelto_Modelo = obj_Sincronizacion.Vaciar_Datos_Sincronizacion_Por_Terminal(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, lng_idTerminal);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincronaSincronizacion_Vaciar_Datos_Sincronizacion_Completed(object sender, RunWorkerCompletedEventArgs e)
{
try
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
//Mostrar si tuviera algun mensaje
if (mdl_ValorDevuelto_Modelo_Resultado.TodoCorrecto == false)
{
if (mdl_ValorDevuelto_Modelo_Resultado.Mensaje.Trim().Length > 0)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo_Resultado.Mensaje);
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(TareaAsincronaSincronizacion_Vaciar_Datos_Sincronizacion_Completed));
}
}
#endregion
#region Vaciar_Datos_Subida
private void Sincronizacion_Vaciar_Datos_Subida(long _lng_idTerminal)
{
try
{
g_frm_PE_Esperando = new PE_Esperando(Mensajes.G_STR_ESPERANDO_VACIANDODODATOS());
BackgroundWorker obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida = new BackgroundWorker();
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida.DoWork += new DoWorkEventHandler(TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida_DoWork);
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincronaSincronizacion_Vaciar_Datos_Subida_Completed);
obj_TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida.RunWorkerAsync(_lng_idTerminal);
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(Sincronizacion_Vaciar_Datos_Subida));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_VACIANDODATOSTERMINAL());
}
}
private void TareaAsincrona_Sincronizacion_Vaciar_Datos_Subida_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = "";
try
{
long lng_idTerminal = (long)e.Argument;
Sincronizacion obj_Sincronizacion = new Sincronizacion();
mdl_INTERNO_ValorDevuelto_Modelo = obj_Sincronizacion.Vaciar_Datos_Subida_Por_Terminal(Variables.G_LST_DIRECCIONES_SIGMAPLATFORM, lng_idTerminal);
}
catch (ThreadAbortException)
{ }
catch (Control_Errores)
{ }
catch (Exception)
{ }
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincronaSincronizacion_Vaciar_Datos_Subida_Completed(object sender, RunWorkerCompletedEventArgs e)
{
try
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
//Mostrar si tuviera algun mensaje
if (mdl_ValorDevuelto_Modelo_Resultado.TodoCorrecto == false)
{
if (mdl_ValorDevuelto_Modelo_Resultado.Mensaje.Trim().Length > 0)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo_Resultado.Mensaje);
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Datos_ServiciosWeb) + "/" + nameof(TareaAsincronaSincronizacion_Vaciar_Datos_Subida_Completed));
}
}
#endregion
#endregion
}
}

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{104EEB06-DB35-4B77-A0CB-099107E93B72}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Exferia_ServiciosWeb</RootNamespace>
<AssemblyName>Exferia_ServiciosWeb</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="Exferia_Aplicacion, Version=1.0.0.7, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_Aplicacion.dll</HintPath>
</Reference>
<Reference Include="Exferia_Formularios, Version=1.0.0.8, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_Formularios.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Datos_ServiciosWeb.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ServiciosWeb\AgenciaTributaria.cs" />
<Compile Include="ServiciosWeb\Sincronizacion.cs" />
<Compile Include="ServiciosWeb\KairosPro.cs" />
<Compile Include="ServiciosWeb\Licencia.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="General\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,37 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// La información general de un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos valores de atributo para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("Exferia_ServiciosWeb")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Exferia_ServiciosWeb")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
// para los componentes COM. Si necesita obtener acceso a un tipo de este ensamblado desde
// COM, establezca el atributo ComVisible en true en este tipo.
[assembly: ComVisible(false)]
// El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
[assembly: Guid("104eeb06-db35-4b77-a0cb-099107e93b72")]
// La información de versión de un ensamblado consta de los cuatro valores siguientes:
//
// Versión principal
// Versión secundaria
// Número de compilación
// Revisión
//
// Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
// mediante el carácter '*', como se muestra a continuación:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyInformationalVersion("1.0.0.1")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Este código fue generado por una herramienta.
// Versión de runtime: 4.0.30319.42000
//
// Los cambios de este archivo pueden provocar un comportamiento inesperado y se perderán si
// el código se vuelve a generar.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Exferia_ServiciosWeb.Properties
{
/// <summary>
/// Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc.
/// </summary>
// StronglyTypedResourceBuilder generó automáticamente esta clase
// a través de una herramienta como ResGen o Visual Studio.
// Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen
// con la opción /str o recompile su proyecto de VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Devuelve la instancia ResourceManager almacenada en caché utilizada por esta clase.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Exferia_ServiciosWeb.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Invalida la propiedad CurrentUICulture del subproceso actual para todas las
/// búsquedas de recursos usando esta clase de recursos fuertemente tipados.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Exferia_ServiciosWeb.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,82 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_ServiciosWeb;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace Exferia_ServiciosWeb.ServiciosWeb
{
public class AgenciaTributaria
{
#region Enviar
public INTERNO_ValorDevuelto_Modelo EnviarDatos_ProvidenciaApremio(string _str_DireccionEnvio,string _str_Fichero_RutaCompleta, string _str_Certificado_RutaCompleta,string _str_Certificado_Clave)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(_str_DireccionEnvio);
obj_HttpWebRequest.Headers.Add("SOAP:Action");
obj_HttpWebRequest.ContentType = "text/xml; charset=utf-8";
obj_HttpWebRequest.Accept = "text/xml";
obj_HttpWebRequest.Timeout = 600000;
obj_HttpWebRequest.ReadWriteTimeout = 600000;
obj_HttpWebRequest.Method = "POST";
XmlDocument soapEnvelopeXml = new XmlDocument();
//cargar xml desde archivo
soapEnvelopeXml.Load(_str_Fichero_RutaCompleta);
//certificado---------------------------------------------------
X509Certificate2 obj_X509Certificate2 = new X509Certificate2(_str_Certificado_RutaCompleta, _str_Certificado_Clave);
obj_HttpWebRequest.ClientCertificates.Add(obj_X509Certificate2);
//Recoger Respuesta
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
soapEnvelopeXml.Save(obj_Stream);
WebResponse resp = obj_HttpWebRequest.GetResponse();
StreamReader reader = new StreamReader(resp.GetResponseStream());
string str_Resultado = reader.ReadToEnd();
Control_Errores.Errores_Log("Devolucion" + str_Resultado, nameof(AgenciaTributaria) + "/" + nameof(EnviarDatos_ProvidenciaApremio));
//Almacenar el Resultado
mdl_INTERNO_ValorDevuelto_Modelo.Objeto = str_Resultado;
/*mdl_INTERNO_ValorDevuelto_Modelo.Objeto =
"<CoePdfV1Sal> " +
"<modoEjecucion>PRUEBA</modoEjecucion > " +
"<respuesta>N</respuesta > " +
"<textoError>Hubo un Error</textoError > " +
"<csvDeclaracion>dsdsaer444frw</csvDeclaracion > " +
"<documentoPdf>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/</documentoPdf > " +
"<tipoHash>SHA - 1</tipoHash > " +
"<hashPdf>XXXXXXXXXXXXXXXXXXXXXXX</hashPdf > " +
"</CoePdfV1Sal > ";*/
}
catch (Exception ex)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = "";
Control_Errores.Errores_Log("", ex, nameof(AgenciaTributaria) + "/" + nameof(EnviarDatos_ProvidenciaApremio));
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
}
}

View File

@ -0,0 +1,430 @@
using Exferia_Aplicacion.General;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_ServiciosWeb.ServiciosWeb
{
public class KairosPro
{
#region Solicitudes
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_SolicitudAusenciaProgramada(List<string> _lst_Direcciones,long _lng_idSolicitudAusenciaProgramada, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_SolicitudAusenciaProgramada");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_SolicitudAusenciaProgramada(_lng_idSolicitudAusenciaProgramada, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString())==1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_SolicitudAusenciaProgramada));
}
}
return mdl_ValorDevuelto_Modelo;
}
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_SolicitudAusenciaProgramada_Aceptar(List<string> _lst_Direcciones, long _lng_idSolicitudAusenciaProgramada, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_SolicitudAusenciaProgramada_Aceptar");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_SolicitudAusenciaProgramada(_lng_idSolicitudAusenciaProgramada, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_SolicitudAusenciaProgramada_Aceptar));
}
}
return mdl_ValorDevuelto_Modelo;
}
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_SolicitudAusenciaProgramada_Cancelar(List<string> _lst_Direcciones, long _lng_idSolicitudAusenciaProgramada, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_SolicitudAusenciaProgramada_Cancelar");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_SolicitudAusenciaProgramada(_lng_idSolicitudAusenciaProgramada, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_SolicitudAusenciaProgramada_Cancelar));
}
}
return mdl_ValorDevuelto_Modelo;
}
private Hashtable CrearDatosaSubir_SolicitudAusenciaProgramada(long _lng_idSolicitudAusenciaProgramada, DateTime _dtt_fechaEnvio)
{
Hashtable data = new Hashtable();
data.Add("_lng_idSolicitudAusenciaProgramada", _lng_idSolicitudAusenciaProgramada);
data.Add("_str_fechaEnvio", _dtt_fechaEnvio.ToString("dd/MM/yyyy"));
return data;
}
#endregion
#region Autorizacion horasExtras
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_AutorizacionHorasExtras(List<string> _lst_Direcciones, long _lng_idTareaPendiente, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_AutorizacionHorasExtras");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_AutorizacionHorasExtras(_lng_idTareaPendiente, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_AutorizacionHorasExtras));
}
}
return mdl_ValorDevuelto_Modelo;
}
private Hashtable CrearDatosaSubir_AutorizacionHorasExtras(long _lng_idTareaPendiente, DateTime _dtt_fechaEnvio)
{
Hashtable data = new Hashtable();
data.Add("_lng_idTareaPendiente", _lng_idTareaPendiente);
data.Add("_str_fechaEnvio", _dtt_fechaEnvio.ToString("dd/MM/yyyy"));
return data;
}
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_AutorizacionHorasExtras_Aceptar(List<string> _lst_Direcciones, long _lng_idHoraExtraCalculadaCabecera, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_AutorizacionHorasExtras_Aceptar");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_AutorizacionHorasExtras_AceptarDenegar(_lng_idHoraExtraCalculadaCabecera, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_AutorizacionHorasExtras_Aceptar));
}
}
return mdl_ValorDevuelto_Modelo;
}
public INTERNO_ValorDevuelto_Modelo EnvioCorreo_AutorizacionHorasExtras_Cancelar(List<string> _lst_Direcciones, long _lng_idHoraExtraCalculadaCabecera, DateTime _dtt_fechaEnvio)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/EnvioCorreo_AutorizacionHorasExtras_Cancelar");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir_AutorizacionHorasExtras_AceptarDenegar(_lng_idHoraExtraCalculadaCabecera, _dtt_fechaEnvio);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(KairosPro) + "/" + nameof(EnvioCorreo_AutorizacionHorasExtras_Cancelar));
}
}
return mdl_ValorDevuelto_Modelo;
}
private Hashtable CrearDatosaSubir_AutorizacionHorasExtras_AceptarDenegar(long _lng_idHoraExtraCalculadaCabecera, DateTime _dtt_fechaEnvio)
{
Hashtable data = new Hashtable();
data.Add("_lng_idHoraExtraCalculadaCabecera", _lng_idHoraExtraCalculadaCabecera);
data.Add("_str_fechaEnvio", _dtt_fechaEnvio.ToString("dd/MM/yyyy"));
return data;
}
#endregion
}
}

View File

@ -0,0 +1,270 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_ServiciosWeb;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_ServiciosWeb.ServiciosWeb
{
public class Licencia
{
private List<string> g_lst_Direcciones = new List<string>();
public Licencia()
{
//ADSL/Fibra/Local
if (Variables.G_STR_ORDEN_ACTUALIZACION.Equals("AFL"))
{
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
}
//ADSL/Local/Fibra
else if (Variables.G_STR_ORDEN_ACTUALIZACION.Equals("ALF"))
{
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
}
//Local/Fibra/ADSL
else if (Variables.G_STR_ORDEN_ACTUALIZACION.Equals("LFA"))
{
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
}
//Local/ADSL/Fibra
else if (Variables.G_STR_ORDEN_ACTUALIZACION.Equals("LAF"))
{
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
}
//Fibra/Local/ADSL
else if (Variables.G_STR_ORDEN_ACTUALIZACION.Equals("FLA"))
{
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
}
//Fibra/ADSL/Local
else
{
//Fibra
g_lst_Direcciones.Add("http://1.trialia.es:8070");
//ADSL
g_lst_Direcciones.Add("http://2.trialia.es:8070");
//Local
g_lst_Direcciones.Add("http://192.168.30.102:8070");
}
}
#region Comprobar_ClienteLicencia
public INTERNO_ServicioWeb_Licencia_Modelo Validar_Licencia(long _lng_idCliente, string _str_numeroLicencia)
{
INTERNO_ServicioWeb_Licencia_Modelo mdl_INTERNO_ServicioWeb_Licencia_Modelo = new INTERNO_ServicioWeb_Licencia_Modelo();
mdl_INTERNO_ServicioWeb_Licencia_Modelo.respuesta = Variables.G_INT_VALIDARLICENCIA_RESPUESTA_ERROR;
foreach (string str_Direccion in g_lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Validar_Licencia_Nuevo");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 40000;
obj_HttpWebRequest.ReadWriteTimeout = 32000;
obj_HttpWebRequest.Method = "POST";
Hashtable data = CrearDatosaSubir(_lng_idCliente, _str_numeroLicencia);
//ParseaArrayList para subir los Datos ........................
string str_valores = Parsear_Json.JsonEncode(data);
//.................................................................
byte[] byteArray = Encoding.UTF8.GetBytes(str_valores);
obj_HttpWebRequest.ContentLength = byteArray.Length;
// Get the request stream.
Stream dataStream = obj_HttpWebRequest.GetRequestStream();
// Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length);
// Close the Stream object.
dataStream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_INTERNO_ServicioWeb_Licencia_Modelo.respuesta = int.Parse(hastable_Datos["respuesta"].ToString());
mdl_INTERNO_ServicioWeb_Licencia_Modelo.mensaje = hastable_Datos["mensaje"].ToString();
mdl_INTERNO_ServicioWeb_Licencia_Modelo.idCliente = long.Parse(hastable_Datos["idCliente"].ToString());
mdl_INTERNO_ServicioWeb_Licencia_Modelo.ClienteNombreComercial = hastable_Datos["ClienteNombreComercial"].ToString();
mdl_INTERNO_ServicioWeb_Licencia_Modelo.ClienteRazonSocial = hastable_Datos["ClienteRazonSocial"].ToString();
mdl_INTERNO_ServicioWeb_Licencia_Modelo.numeroLicencia = hastable_Datos["numeroLicencia"].ToString();
if (hastable_Datos.ContainsKey("fechaFinActualizaciones"))
{
if (hastable_Datos["fechaFinActualizaciones"] != null && hastable_Datos["fechaFinActualizaciones"].ToString().Trim().Length > 0)
{
mdl_INTERNO_ServicioWeb_Licencia_Modelo.fechaFinActualizaciones = hastable_Datos["fechaFinActualizaciones"].ToString();
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_Modelo.fechaFinActualizaciones = "";
}
}
if (mdl_INTERNO_ServicioWeb_Licencia_Modelo.respuesta.Equals(Variables.G_INT_VALIDARLICENCIA_RESPUESTA_NUMEROLICENCIA_CORRECTO))
{
//PRODCTOS FECHAS
ArrayList arrlst_ProdcutosFechas = (ArrayList)hastable_Datos["ProductosFechas"];
if (arrlst_ProdcutosFechas!=null &&
arrlst_ProdcutosFechas.Count>0)
{
mdl_INTERNO_ServicioWeb_Licencia_Modelo.ProductosFechas = new List<INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo>();
foreach (Hashtable obj_Valores in arrlst_ProdcutosFechas)
{
INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo = new INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo();
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.idLicenciaProducto = long.Parse(obj_Valores["idLicenciaProducto"].ToString());
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.idProducto = long.Parse(obj_Valores["idProducto"].ToString());
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.ProductoNombre = obj_Valores["productoNombre"].ToString();
if (obj_Valores["cantidad"] != null)
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.cantidad = Convert.ToInt32(obj_Valores["cantidad"].ToString());
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.cantidad = 0;
}
if (obj_Valores["caducidad"] != null)
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.caducidad = Convert.ToInt32(obj_Valores["caducidad"].ToString());
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.caducidad = 0;
}
if (obj_Valores["fechaInicio"] != null && obj_Valores["fechaInicio"].ToString().Trim().Length>0)
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaInicio = Convert.ToDateTime(obj_Valores["fechaInicio"].ToString());
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaInicio = new DateTime(1900,1,1);
}
if (obj_Valores["fechaValidez"] != null && obj_Valores["fechaValidez"].ToString().Trim().Length > 0)
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaValidez = Convert.ToDateTime(obj_Valores["fechaValidez"].ToString());
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaValidez = new DateTime(1900, 1, 1);
}
if (obj_Valores["fechaValidezFinal"] != null && obj_Valores["fechaValidezFinal"].ToString().Trim().Length > 0)
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaValidezFinal = Convert.ToDateTime(obj_Valores["fechaValidezFinal"].ToString());
}
else
{
mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo.fechaValidezFinal = new DateTime(1900, 1, 1);
}
mdl_INTERNO_ServicioWeb_Licencia_Modelo.ProductosFechas.Add(mdl_INTERNO_ServicioWeb_Licencia_ProductoFechas_Modelo);
}
}
//OPCIONES DISPONIBLES
ArrayList arrlst_OpcionesDisponibles = (ArrayList)hastable_Datos["Opciones_Disponibles"];
if (arrlst_OpcionesDisponibles != null &&
arrlst_OpcionesDisponibles.Count > 0)
{
mdl_INTERNO_ServicioWeb_Licencia_Modelo.OpcionesDisponibles = new List<INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo>();
foreach (Hashtable obj_Valores in arrlst_OpcionesDisponibles)
{
INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo mdl_INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo = new INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo();
mdl_INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo.Opcion = obj_Valores["Opcion"].ToString();
mdl_INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo.Bloqueado = bool.Parse(obj_Valores["Bloqueado"].ToString());
mdl_INTERNO_ServicioWeb_Licencia_Modelo.OpcionesDisponibles.Add(mdl_INTERNO_ServicioWeb_Licencia_OpcionesDisponibles_Modelo);
}
}
}
break;
}
}
}
catch (Exception ex)
{
mdl_INTERNO_ServicioWeb_Licencia_Modelo.respuesta = Variables.G_INT_VALIDARLICENCIA_RESPUESTA_ERROR;
Control_Errores.Errores_Log("", ex, nameof(Licencia) + "/" + nameof(Validar_Licencia));
}
}
return mdl_INTERNO_ServicioWeb_Licencia_Modelo;
}
private Hashtable CrearDatosaSubir(long _lng_idCliente, string _str_numeroLicencia)
{
Hashtable data = new Hashtable();
data.Add("idCliente", _lng_idCliente);
data.Add("numeroLicencia", _str_numeroLicencia);
data.Add("fechaActual", DateTime.Now.ToString("yyyyMMdd HHmmss"));
data.Add("versionSigmaERP", Variables.G_STR_VERSION_SIGMAERP);
data.Add("MAC", Variables.G_STR_EQUIPO_MAC);
data.Add("nombreEquipo", Variables.G_STR_EQUIPO_NOMBRE);
return data;
}
#endregion
}
}

View File

@ -0,0 +1,344 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_Generales;
using Exferia_Aplicacion.Sincronizacion;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_ServiciosWeb.ServiciosWeb
{
public class Sincronizacion
{
#region Actualizacion Registro
public void Actualizacion_Registro(List<string> _lst_Direcciones, INTERNO_Sincronizacion_ActualizarRegistro_Modelo _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo)
{
if (_lst_Direcciones != null && _lst_Direcciones.Count > 0)
{
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Actualizacion_Registro");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 600000; //10->Minutos
obj_HttpWebRequest.ReadWriteTimeout = 600000; //10->Minutos
obj_HttpWebRequest.Method = "POST";
Hashtable hst_DatosASubir = CrearDatosaSubir_Actualizacion_Registro(_mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo);
//ParseaArrayList para subir los Datos ........................
string str_DatosASubir = Parsear_Json.JsonEncode(hst_DatosASubir);
//.................................................................
byte[] arr_datosASubir = Encoding.UTF8.GetBytes(str_DatosASubir);
obj_HttpWebRequest.ContentLength = arr_datosASubir.Length;
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
obj_Stream.Write(arr_datosASubir, 0, arr_datosASubir.Length);
obj_Stream.Close();
obj_HttpWebRequest.GetResponse();
break;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Sincronizacion) + "/" + nameof(Actualizacion_Registro));
}
}
}
}
private Hashtable CrearDatosaSubir_Actualizacion_Registro(INTERNO_Sincronizacion_ActualizarRegistro_Modelo _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo)
{
Hashtable hst_Datos = new Hashtable();
hst_Datos.Add("tabla", _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.tabla);
hst_Datos.Add("idClavePrimaria", _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idClavePrimaria);
hst_Datos.Add("idProducto_AUX", _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idProducto_AUX != null ? _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idProducto_AUX.Value : -1);
hst_Datos.Add("idEmpresa_AUX", _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idEmpresa_AUX != null ? _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idEmpresa_AUX.Value : -1);
hst_Datos.Add("idTerminal_AUX", _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idTerminal_AUX != null ? _mdl_INTERNO_Sincronizacion_ActualizarRegistro_Modelo.idTerminal_AUX.Value : -1);
return hst_Datos;
}
#endregion
#region Actualizar_TipoAccion
public void Actualizar_TipoAccion(List<string> _lst_Direcciones, INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo)
{
if (_lst_Direcciones != null && _lst_Direcciones.Count > 0)
{
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Actualizar_TipoAccion");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 600000; //10->Minutos
obj_HttpWebRequest.ReadWriteTimeout = 600000; //10->Minutos
obj_HttpWebRequest.Method = "POST";
obj_HttpWebRequest.ServicePoint.ConnectionLimit = 20;
Hashtable hst_DatosASubir = CrearDatosaSubir_Actualizar_TipoAccion(_mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo);
//ParseaArrayList para subir los Datos ........................
string str_DatosASubir = Parsear_Json.JsonEncode(hst_DatosASubir);
//.................................................................
byte[] arr_datosASubir = Encoding.UTF8.GetBytes(str_DatosASubir);
obj_HttpWebRequest.ContentLength = arr_datosASubir.Length;
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
obj_Stream.Write(arr_datosASubir, 0, arr_datosASubir.Length);
obj_Stream.Close();
obj_HttpWebRequest.GetResponse();
break;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Sincronizacion) + "/" + nameof(Actualizar_TipoAccion));
}
}
}
}
private Hashtable CrearDatosaSubir_Actualizar_TipoAccion(INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo)
{
Hashtable hst_Datos = new Hashtable();
hst_Datos.Add("idTerminal", _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.idTerminal);
hst_Datos.Add("idEmpresa", _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.idEmpresa);
hst_Datos.Add("idProducto", _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.idProducto);
hst_Datos.Add("tabla", _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.tabla);
hst_Datos.Add("tipoAccion_Nuevo", _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.tipoAccion_Nuevo);
ArrayList arr_Listado_CamposClave = new ArrayList();
foreach (string str_CampoClave in _mdl_INTERNO_Sincronizacion_ActualizacionBorrado_TipoAccion_Modelo.Listado_CamposClave)
{
arr_Listado_CamposClave.Add(str_CampoClave);
}
hst_Datos.Add("Listado_CamposClave", arr_Listado_CamposClave);
return hst_Datos;
}
#endregion
#region Vaciar_Terminal
public INTERNO_ValorDevuelto_Modelo Vaciar_Terminal(List<string> _lst_Direcciones, long _lng_idTerminal)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
if (_lst_Direcciones != null && _lst_Direcciones.Count > 0)
{
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Vaciar_Terminal");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 600000; //10->Minutos
obj_HttpWebRequest.ReadWriteTimeout = 600000; //10->Minutos
obj_HttpWebRequest.Method = "POST";
obj_HttpWebRequest.ServicePoint.ConnectionLimit = 20;
//ParseaArrayList para subir los Datos ........................
Hashtable hst_Datos = new Hashtable();
hst_Datos.Add("_lng_idTerminal", _lng_idTerminal);
string str_DatosASubir = Parsear_Json.JsonEncode(hst_Datos);
//.................................................................
byte[] arr_datosASubir = Encoding.UTF8.GetBytes(str_DatosASubir);
obj_HttpWebRequest.ContentLength = arr_datosASubir.Length;
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
obj_Stream.Write(arr_datosASubir, 0, arr_datosASubir.Length);
obj_Stream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
break;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Sincronizacion) + "/" + nameof(Vaciar_Terminal));
}
}
}
return mdl_ValorDevuelto_Modelo;
}
#endregion
#region Vaciar_Datos_Sincronizacion_Por_Terminal
public INTERNO_ValorDevuelto_Modelo Vaciar_Datos_Sincronizacion_Por_Terminal(List<string> _lst_Direcciones, long _lng_idTerminal)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
if (_lst_Direcciones != null && _lst_Direcciones.Count > 0)
{
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Vaciar_Datos_Sincronizacion");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 600000; //10->Minutos
obj_HttpWebRequest.ReadWriteTimeout = 600000; //10->Minutos
obj_HttpWebRequest.Method = "POST";
obj_HttpWebRequest.ServicePoint.ConnectionLimit = 20;
//ParseaArrayList para subir los Datos ........................
Hashtable hst_Datos = new Hashtable();
hst_Datos.Add("_lng_idTerminal", _lng_idTerminal);
string str_DatosASubir = Parsear_Json.JsonEncode(hst_Datos);
//.................................................................
byte[] arr_datosASubir = Encoding.UTF8.GetBytes(str_DatosASubir);
obj_HttpWebRequest.ContentLength = arr_datosASubir.Length;
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
obj_Stream.Write(arr_datosASubir, 0, arr_datosASubir.Length);
obj_Stream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
break;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Sincronizacion) + "/" + nameof(Vaciar_Datos_Sincronizacion_Por_Terminal));
}
}
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
#region Vaciar_Datos_Subida_Por_Terminal
public INTERNO_ValorDevuelto_Modelo Vaciar_Datos_Subida_Por_Terminal(List<string> _lst_Direcciones, long _lng_idTerminal)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
if (_lst_Direcciones != null && _lst_Direcciones.Count > 0)
{
foreach (string str_Direccion in _lst_Direcciones)
{
try
{
HttpWebRequest obj_HttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(str_Direccion + "/Vaciar_Datos_Subida");
obj_HttpWebRequest.ContentType = "application/json; charset=utf-8";
obj_HttpWebRequest.Accept = "application/json, text/javascript, */*";
obj_HttpWebRequest.Timeout = 600000; //10->Minutos
obj_HttpWebRequest.ReadWriteTimeout = 600000; //10->Minutos
obj_HttpWebRequest.Method = "POST";
obj_HttpWebRequest.ServicePoint.ConnectionLimit = 20;
//ParseaArrayList para subir los Datos ........................
Hashtable hst_Datos = new Hashtable();
hst_Datos.Add("_lng_idTerminal", _lng_idTerminal);
string str_DatosASubir = Parsear_Json.JsonEncode(hst_Datos);
//.................................................................
byte[] arr_datosASubir = Encoding.UTF8.GetBytes(str_DatosASubir);
obj_HttpWebRequest.ContentLength = arr_datosASubir.Length;
Stream obj_Stream = obj_HttpWebRequest.GetRequestStream();
obj_Stream.Write(arr_datosASubir, 0, arr_datosASubir.Length);
obj_Stream.Close();
WebResponse response = obj_HttpWebRequest.GetResponse();
Stream stream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(stream))
{
if (reader != null)
{
string str_textoJSON = "";
while (!reader.EndOfStream)
{
str_textoJSON += reader.ReadLine();
}
Hashtable hastable_Datos = (Hashtable)Parsear_Json.JsonDecode(str_textoJSON);
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = int.Parse(hastable_Datos["respuesta"].ToString()) == 1;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = hastable_Datos["mensaje"].ToString();
break;
}
}
break;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Sincronizacion) + "/" + nameof(Vaciar_Datos_Subida_Por_Terminal));
}
}
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
}
}

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

View File

@ -0,0 +1,308 @@
namespace Test
{
partial class Form1
{
/// <summary>
/// Variable del diseñador necesaria.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Limpiar los recursos que se estén usando.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben desechar; false en caso contrario.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pnl_Principal = new System.Windows.Forms.Panel();
this.ex_msp_Menu = new Exferia_Controles.Exferia_MenuSuperior();
this.btn_CodigoPrueba = new System.Windows.Forms.Button();
this.cbo_Listado_Libreria = new System.Windows.Forms.ComboBox();
this.cbo_Mantenimiento_Listado = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.txt_Mantenimiento_Libreria = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txt_Listado_Libreria = new System.Windows.Forms.TextBox();
this.btn_Abrir_Mantenimiento = new System.Windows.Forms.Button();
this.btn_Abrir_Listado = new System.Windows.Forms.Button();
this.lbl_Perfil = new System.Windows.Forms.Label();
this.lbl_BaseDatos = new System.Windows.Forms.Label();
this.lbl_Servidor = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.btn_CambiarConexion = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// pnl_Principal
//
this.pnl_Principal.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pnl_Principal.Location = new System.Drawing.Point(12, 119);
this.pnl_Principal.Name = "pnl_Principal";
this.pnl_Principal.Size = new System.Drawing.Size(1240, 616);
this.pnl_Principal.TabIndex = 2;
//
// ex_msp_Menu
//
this.ex_msp_Menu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ex_msp_Menu.BackColor = System.Drawing.Color.Maroon;
this.ex_msp_Menu.Exferia_MenuSuperior_Total_NumeroProcesosAbiertos = "0";
this.ex_msp_Menu.Location = new System.Drawing.Point(12, 12);
this.ex_msp_Menu.Name = "ex_msp_Menu";
this.ex_msp_Menu.Size = new System.Drawing.Size(1240, 35);
this.ex_msp_Menu.TabIndex = 1;
//
// btn_CodigoPrueba
//
this.btn_CodigoPrueba.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.btn_CodigoPrueba.Location = new System.Drawing.Point(839, 52);
this.btn_CodigoPrueba.Name = "btn_CodigoPrueba";
this.btn_CodigoPrueba.Size = new System.Drawing.Size(81, 45);
this.btn_CodigoPrueba.TabIndex = 25;
this.btn_CodigoPrueba.Text = "CODIGO PRUEBA";
this.btn_CodigoPrueba.UseVisualStyleBackColor = false;
this.btn_CodigoPrueba.Click += new System.EventHandler(this.btn_CodigoPrueba_Click);
//
// cbo_Listado_Libreria
//
this.cbo_Listado_Libreria.FormattingEnabled = true;
this.cbo_Listado_Libreria.Items.AddRange(new object[] {
"INF_CONFIGURACIONVENCIMIENTO_SOCIO",
"INF_IMPRESORAS",
"INF_RUTAS"});
this.cbo_Listado_Libreria.Location = new System.Drawing.Point(59, 79);
this.cbo_Listado_Libreria.Name = "cbo_Listado_Libreria";
this.cbo_Listado_Libreria.Size = new System.Drawing.Size(258, 21);
this.cbo_Listado_Libreria.TabIndex = 36;
//
// cbo_Mantenimiento_Listado
//
this.cbo_Mantenimiento_Listado.FormattingEnabled = true;
this.cbo_Mantenimiento_Listado.Items.AddRange(new object[] {
"INF_CONFIGURACIONVENCIMIENTO_SOCIO",
"INF_IMPRESORAS",
"INF_IMPRESORAS_INFORMESTIPOS",
"INF_RUTAS"});
this.cbo_Mantenimiento_Listado.Location = new System.Drawing.Point(486, 79);
this.cbo_Mantenimiento_Listado.Name = "cbo_Mantenimiento_Listado";
this.cbo_Mantenimiento_Listado.Size = new System.Drawing.Size(221, 21);
this.cbo_Mantenimiento_Listado.TabIndex = 35;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(439, 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 13);
this.label3.TabIndex = 34;
this.label3.Text = "Opcion";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(439, 56);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(41, 13);
this.label4.TabIndex = 33;
this.label4.Text = "Libreria";
//
// txt_Mantenimiento_Libreria
//
this.txt_Mantenimiento_Libreria.Location = new System.Drawing.Point(486, 53);
this.txt_Mantenimiento_Libreria.Name = "txt_Mantenimiento_Libreria";
this.txt_Mantenimiento_Libreria.Size = new System.Drawing.Size(221, 20);
this.txt_Mantenimiento_Libreria.TabIndex = 32;
this.txt_Mantenimiento_Libreria.Text = "Exferia_ServiciosWeb";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 83);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 13);
this.label2.TabIndex = 31;
this.label2.Text = "Opcion";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 56);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 13);
this.label1.TabIndex = 30;
this.label1.Text = "Libreria";
//
// txt_Listado_Libreria
//
this.txt_Listado_Libreria.Location = new System.Drawing.Point(59, 53);
this.txt_Listado_Libreria.Name = "txt_Listado_Libreria";
this.txt_Listado_Libreria.Size = new System.Drawing.Size(258, 20);
this.txt_Listado_Libreria.TabIndex = 29;
this.txt_Listado_Libreria.Text = "Exferia_ServiciosWeb";
//
// btn_Abrir_Mantenimiento
//
this.btn_Abrir_Mantenimiento.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.btn_Abrir_Mantenimiento.Location = new System.Drawing.Point(713, 52);
this.btn_Abrir_Mantenimiento.Name = "btn_Abrir_Mantenimiento";
this.btn_Abrir_Mantenimiento.Size = new System.Drawing.Size(120, 47);
this.btn_Abrir_Mantenimiento.TabIndex = 28;
this.btn_Abrir_Mantenimiento.Text = "ABRIR MANTENIMIENTO";
this.btn_Abrir_Mantenimiento.UseVisualStyleBackColor = false;
this.btn_Abrir_Mantenimiento.Click += new System.EventHandler(this.btn_Abrir_Mantenimiento_Click);
//
// btn_Abrir_Listado
//
this.btn_Abrir_Listado.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.btn_Abrir_Listado.Location = new System.Drawing.Point(323, 52);
this.btn_Abrir_Listado.Name = "btn_Abrir_Listado";
this.btn_Abrir_Listado.Size = new System.Drawing.Size(111, 47);
this.btn_Abrir_Listado.TabIndex = 27;
this.btn_Abrir_Listado.Text = "ABRIR LISTADO";
this.btn_Abrir_Listado.UseVisualStyleBackColor = false;
this.btn_Abrir_Listado.Click += new System.EventHandler(this.btn_Abrir_Listado_Click);
//
// lbl_Perfil
//
this.lbl_Perfil.AutoSize = true;
this.lbl_Perfil.Location = new System.Drawing.Point(1018, 87);
this.lbl_Perfil.Name = "lbl_Perfil";
this.lbl_Perfil.Size = new System.Drawing.Size(41, 13);
this.lbl_Perfil.TabIndex = 44;
this.lbl_Perfil.Text = "label11";
//
// lbl_BaseDatos
//
this.lbl_BaseDatos.AutoSize = true;
this.lbl_BaseDatos.Location = new System.Drawing.Point(1046, 70);
this.lbl_BaseDatos.Name = "lbl_BaseDatos";
this.lbl_BaseDatos.Size = new System.Drawing.Size(41, 13);
this.lbl_BaseDatos.TabIndex = 43;
this.lbl_BaseDatos.Text = "label10";
//
// lbl_Servidor
//
this.lbl_Servidor.AutoSize = true;
this.lbl_Servidor.Location = new System.Drawing.Point(1011, 53);
this.lbl_Servidor.Name = "lbl_Servidor";
this.lbl_Servidor.Size = new System.Drawing.Size(35, 13);
this.lbl_Servidor.TabIndex = 42;
this.lbl_Servidor.Text = "label9";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(947, 87);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(65, 13);
this.label8.TabIndex = 41;
this.label8.Text = "IdUsuario:";
//
// btn_CambiarConexion
//
this.btn_CambiarConexion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_CambiarConexion.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.btn_CambiarConexion.Location = new System.Drawing.Point(1148, 53);
this.btn_CambiarConexion.Name = "btn_CambiarConexion";
this.btn_CambiarConexion.Size = new System.Drawing.Size(104, 45);
this.btn_CambiarConexion.TabIndex = 40;
this.btn_CambiarConexion.Text = "CAMBIAR CONEXION";
this.btn_CambiarConexion.UseVisualStyleBackColor = false;
this.btn_CambiarConexion.Click += new System.EventHandler(this.btn_CambiarConexion_Click);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(947, 70);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 13);
this.label7.TabIndex = 39;
this.label7.Text = "Base de datos:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(947, 53);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(58, 13);
this.label6.TabIndex = 38;
this.label6.Text = "Servidor:";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1264, 733);
this.Controls.Add(this.lbl_Perfil);
this.Controls.Add(this.lbl_BaseDatos);
this.Controls.Add(this.lbl_Servidor);
this.Controls.Add(this.label8);
this.Controls.Add(this.btn_CambiarConexion);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.cbo_Listado_Libreria);
this.Controls.Add(this.cbo_Mantenimiento_Listado);
this.Controls.Add(this.label3);
this.Controls.Add(this.label4);
this.Controls.Add(this.txt_Mantenimiento_Libreria);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.txt_Listado_Libreria);
this.Controls.Add(this.btn_Abrir_Mantenimiento);
this.Controls.Add(this.btn_Abrir_Listado);
this.Controls.Add(this.btn_CodigoPrueba);
this.Controls.Add(this.pnl_Principal);
this.Controls.Add(this.ex_msp_Menu);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Exferia_Controles.Exferia_MenuSuperior ex_msp_Menu;
private System.Windows.Forms.Panel pnl_Principal;
private System.Windows.Forms.Button btn_CodigoPrueba;
private System.Windows.Forms.ComboBox cbo_Listado_Libreria;
private System.Windows.Forms.ComboBox cbo_Mantenimiento_Listado;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txt_Mantenimiento_Libreria;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txt_Listado_Libreria;
private System.Windows.Forms.Button btn_Abrir_Mantenimiento;
private System.Windows.Forms.Button btn_Abrir_Listado;
private System.Windows.Forms.Label lbl_Perfil;
private System.Windows.Forms.Label lbl_BaseDatos;
private System.Windows.Forms.Label lbl_Servidor;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button btn_CambiarConexion;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
}
}

View File

@ -0,0 +1,204 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_ServiciosWeb;
using Exferia_Aplicacion.Visualizacion;
using Exferia_General;
using Exferia_ServiciosWeb;
using Exferia_ServiciosWeb.ServiciosWeb;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
namespace Test
{
public partial class Form1 : Form
{
private string g_str_RUTA = Variables.G_STR_LIBRERIA_RUTAINICIAL + @"\XML_DatosPrueba.xml";
private string g_str_idUsuario = "";
public Form1()
{
InitializeComponent();
Variables.G_STR_CONEXION_BASEDATOS = "fff";
if (!File.Exists(g_str_RUTA))
{
CrearXML();
}
else
{
Cargar_ValoresXML();
lbl_Servidor.Text = Variables.G_STR_CONEXION_SERVIDOR;
lbl_BaseDatos.Text = Variables.G_STR_CONEXION_BASEDATOS;
lbl_Perfil.Text = g_str_idUsuario;
}
//Asignar Colores de Exferia ..................................................................
Colores.G_COLOR_FONDO_BOTON = Color.Transparent;
Colores.G_COLOR_PRINCIPAL_BASE = ColorTranslator.FromHtml("#A19CC3");
Colores.G_COLOR_PRINCIPAL_OSCURO = ColorTranslator.FromHtml("#504888");
Colores.G_COLOR_PRINCIPAL_ATENUADO = ColorTranslator.FromHtml("#CBC8DF");
Colores.G_COLOR_PRINCIPAL_CLARO = ColorTranslator.FromHtml("#EDECF4");
Colores.G_COLOR_PRINCIPAL_TRASLUCIDO = Color.FromArgb(50, 191, 186, 225);
Colores.G_COLOR_SECUNDARIO_BASE = ColorTranslator.FromHtml("#FFF2C4");
Colores.G_COLOR_SECUNDARIO_CLARO = ColorTranslator.FromHtml("#FFF9E1");
Colores.G_COLOR_FONDO_BASE = ColorTranslator.FromHtml("#FFFFFF");
Colores.G_COLOR_TEXTO_ESCRITO = ColorTranslator.FromHtml("#000000");
Colores.G_COLOR_ATENCION = ColorTranslator.FromHtml("#c40909");
Colores.G_COLOR_FONDO_BARRAPROGRESO_RELLENA = ColorTranslator.FromHtml("#504888");
//Listados
Colores.G_COLOR_LISTADO_FILTROS = Color.FromArgb(50, 161, 156, 195);
Colores.G_COLOR_LISTADO_FILTROS_CONTROLESPERSONALIZADOS = Color.FromArgb(70, 161, 156, 195);
//Conexion ...............................................................
// Variables.G_STR_CONEXION_SERVIDOR = @"DESKTOP-KJVHQLH\SQLEXPRESS2014";
//Variables.G_STR_CONEXION_SERVIDOR = @"1.trialia.es,42103";
//Variables.G_STR_CONEXION_BASEDATOS = "SigmaERP2017";
//Variables.G_STR_CONEXION_USUARIO = "sa";
//Variables.G_STR_CONEXION_CLAVE = "SQL_Exferia";
//Usuario Validado .......................................................
INTERNO_UsuarioValidado_Modelo mdl_INTERNO_UsuarioValidado_Modelo = new INTERNO_UsuarioValidado_Modelo();
mdl_INTERNO_UsuarioValidado_Modelo.id = long.Parse(g_str_idUsuario != "" ? g_str_idUsuario : "0");
mdl_INTERNO_UsuarioValidado_Modelo.idPerfil = null;
mdl_INTERNO_UsuarioValidado_Modelo.nombre = "Exferia";
mdl_INTERNO_UsuarioValidado_Modelo.sincronizacionAthos = false;
mdl_INTERNO_UsuarioValidado_Modelo.esSuperUsuario = false;
Variables.G_MDL_USUARIOVALIDADO_MODELO = mdl_INTERNO_UsuarioValidado_Modelo;
//Delegacion
Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO = null;
INTERNO_ValoresGenerales_Modelo mdl_INTERNO_ValoresGenerales_Modelo = Datos_Generales.GEN_ValoresGenerales_Obtener_Por_IdUsuario(Variables.G_MDL_USUARIOVALIDADO_MODELO.id);
if (mdl_INTERNO_ValoresGenerales_Modelo != null)
{
mdl_INTERNO_ValoresGenerales_Modelo = Datos_Generales.GEN_EjerciciosActivos_Empresa_Validar(mdl_INTERNO_ValoresGenerales_Modelo, Variables.G_DTT_FECHA_INICIAL_PORDEFECTO);
if (mdl_INTERNO_ValoresGenerales_Modelo != null)
{
Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO = mdl_INTERNO_ValoresGenerales_Modelo;
}
}
Variables.G_DTT_FECHA_INICIAL_PORDEFECTO = DateTime.Now;
//Cargar XML Configuracion pantallas
Funciones_FicherosXML.CargarDatosXML_ConfiguracionPantallas();
Datos_Generales.PRV_OpcionesDetalle_Cargar();
Repintar.Empezar(this);
Variables.G_PNL_PANTALLASEMPOTRADAS = pnl_Principal;
Variables.G_EMS_CONTROL_MENUSUPERIOR = ex_msp_Menu;
Datos_Generales.Permisos_Cargar();
}
private void btn_Abrir_Listado_Click(object sender, EventArgs e)
{
}
private void btn_Abrir_Mantenimiento_Click(object sender, EventArgs e)
{
}
private void btn_CodigoPrueba_Click(object sender, EventArgs e)
{
try
{
Licencia obj_ = new Licencia();
INTERNO_ServicioWeb_Licencia_Modelo mdl_INTERNO_ServicioWeb_Licencia_Modelo= obj_.Validar_Licencia(5, "e1af22fb-6bd0-43eb-b79a-7baa657ef221");
}
catch (Control_Errores)
{ }
}
private void CrearXML()
{
FileStream fls_CrearFichero = null;
try
{
//Creamos el fichero
fls_CrearFichero = new FileStream(g_str_RUTA, FileMode.Create);
fls_CrearFichero.Close();
//Ahora crearemos la estructura del XML
XmlDocument Documento = new XmlDocument();
XmlNode xn_Declaration = Documento.CreateXmlDeclaration("1.0", "UTF-8", "yes");
Documento.AppendChild(xn_Declaration);
//Nodo Padre
XmlNode xn_NodoPrincipal = Documento.CreateElement("Datos");
Documento.AppendChild(xn_NodoPrincipal);
//Nodos Hijos
XmlNode xn_Servidor = Documento.CreateElement("servidor");
XmlNode xn_BaseDatos = Documento.CreateElement("basedatos");
XmlNode xn_Usuario = Documento.CreateElement("usuario");
XmlNode xn_Clave = Documento.CreateElement("clave");
XmlNode xn_Perfil = Documento.CreateElement("idusuario");
xn_NodoPrincipal.AppendChild(xn_Servidor);
xn_NodoPrincipal.AppendChild(xn_BaseDatos);
xn_NodoPrincipal.AppendChild(xn_Usuario);
xn_NodoPrincipal.AppendChild(xn_Clave);
xn_NodoPrincipal.AppendChild(xn_Perfil);
Documento.Save(g_str_RUTA);
AbrirPantallaConexion();
}
catch (Exception)
{
}
}
private void Cargar_ValoresXML()
{
XmlDocument Documento = new XmlDocument();
Documento.Load(g_str_RUTA);
//Nodo principal
XmlNode obj_NodoPadre = Documento.GetElementsByTagName("Datos")[0];
Variables.G_STR_CONEXION_SERVIDOR = obj_NodoPadre["servidor"].InnerText;
Variables.G_STR_CONEXION_BASEDATOS = obj_NodoPadre["basedatos"].InnerText;
Variables.G_STR_CONEXION_USUARIO = obj_NodoPadre["usuario"].InnerText;
Variables.G_STR_CONEXION_CLAVE = obj_NodoPadre["clave"].InnerText;
g_str_idUsuario = obj_NodoPadre["idusuario"].InnerText;
if (Variables.G_STR_CONEXION_SERVIDOR.Equals("") || g_str_idUsuario.Equals(""))
{
AbrirPantallaConexion();
}
}
private void btn_CambiarConexion_Click(object sender, EventArgs e)
{
AbrirPantallaConexion();
}
private void AbrirPantallaConexion()
{
Form2 frm_Conexion = new Form2(Variables.G_STR_CONEXION_SERVIDOR, Variables.G_STR_CONEXION_BASEDATOS, Variables.G_STR_CONEXION_USUARIO, Variables.G_STR_CONEXION_CLAVE, g_str_idUsuario);
frm_Conexion.StartPosition = FormStartPosition.CenterParent;
frm_Conexion.ShowDialog();
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,174 @@
namespace Test
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.txt_IdUsuario = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.btn_Actualizar = new System.Windows.Forms.Button();
this.txt_Clave = new System.Windows.Forms.TextBox();
this.txt_Usuario = new System.Windows.Forms.TextBox();
this.txt_BaseDatos = new System.Windows.Forms.TextBox();
this.txt_Servidor = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// txt_IdUsuario
//
this.txt_IdUsuario.Location = new System.Drawing.Point(105, 167);
this.txt_IdUsuario.Name = "txt_IdUsuario";
this.txt_IdUsuario.Size = new System.Drawing.Size(89, 20);
this.txt_IdUsuario.TabIndex = 18;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(18, 170);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(52, 13);
this.label5.TabIndex = 19;
this.label5.Text = "IdUsuario";
//
// btn_Actualizar
//
this.btn_Actualizar.Location = new System.Drawing.Point(150, 209);
this.btn_Actualizar.Name = "btn_Actualizar";
this.btn_Actualizar.Size = new System.Drawing.Size(75, 28);
this.btn_Actualizar.TabIndex = 20;
this.btn_Actualizar.Text = "Actualizar";
this.btn_Actualizar.UseVisualStyleBackColor = true;
this.btn_Actualizar.Click += new System.EventHandler(this.btn_Actualizar_Click);
//
// txt_Clave
//
this.txt_Clave.Location = new System.Drawing.Point(105, 128);
this.txt_Clave.Name = "txt_Clave";
this.txt_Clave.Size = new System.Drawing.Size(147, 20);
this.txt_Clave.TabIndex = 17;
//
// txt_Usuario
//
this.txt_Usuario.Location = new System.Drawing.Point(105, 90);
this.txt_Usuario.Name = "txt_Usuario";
this.txt_Usuario.Size = new System.Drawing.Size(147, 20);
this.txt_Usuario.TabIndex = 16;
//
// txt_BaseDatos
//
this.txt_BaseDatos.Location = new System.Drawing.Point(105, 53);
this.txt_BaseDatos.Name = "txt_BaseDatos";
this.txt_BaseDatos.Size = new System.Drawing.Size(147, 20);
this.txt_BaseDatos.TabIndex = 15;
//
// txt_Servidor
//
this.txt_Servidor.Location = new System.Drawing.Point(105, 17);
this.txt_Servidor.Name = "txt_Servidor";
this.txt_Servidor.Size = new System.Drawing.Size(147, 20);
this.txt_Servidor.TabIndex = 14;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(18, 131);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(61, 13);
this.label4.TabIndex = 13;
this.label4.Text = "Contraseña";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(15, 56);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(75, 13);
this.label3.TabIndex = 12;
this.label3.Text = "Base de datos";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(18, 93);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(43, 13);
this.label2.TabIndex = 11;
this.label2.Text = "Usuario";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(15, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(46, 13);
this.label1.TabIndex = 10;
this.label1.Text = "Servidor";
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(299, 254);
this.Controls.Add(this.txt_IdUsuario);
this.Controls.Add(this.label5);
this.Controls.Add(this.btn_Actualizar);
this.Controls.Add(this.txt_Clave);
this.Controls.Add(this.txt_Usuario);
this.Controls.Add(this.txt_BaseDatos);
this.Controls.Add(this.txt_Servidor);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form2";
this.Text = "Form2";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form2_FormClosing);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txt_IdUsuario;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btn_Actualizar;
private System.Windows.Forms.TextBox txt_Clave;
private System.Windows.Forms.TextBox txt_Usuario;
private System.Windows.Forms.TextBox txt_BaseDatos;
private System.Windows.Forms.TextBox txt_Servidor;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
}
}

View File

@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
namespace Test
{
public partial class Form2 : Form
{
private string g_str_RUTA = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + @"\XML_DatosPrueba.xml";
public Form2(string _str_Servidor, string _str_BaseDatos, string _str_Usuario, string _str_Clave, string _str_IdUsuario)
{
InitializeComponent();
txt_Servidor.Text = _str_Servidor;
txt_BaseDatos.Text = _str_BaseDatos;
txt_Usuario.Text = _str_Usuario;
txt_Clave.Text = _str_Clave;
txt_IdUsuario.Text = _str_IdUsuario;
}
private void btn_Actualizar_Click(object sender, EventArgs e)
{
XmlDocument XDox = new XmlDocument();
XDox.Load(g_str_RUTA);
XmlNode obj_NodoPadre = XDox.GetElementsByTagName("Datos")[0];
obj_NodoPadre["servidor"].InnerText = txt_Servidor.Text;
obj_NodoPadre["basedatos"].InnerText = txt_BaseDatos.Text;
obj_NodoPadre["usuario"].InnerText = txt_Usuario.Text;
obj_NodoPadre["clave"].InnerText = txt_Clave.Text;
obj_NodoPadre["idusuario"].InnerText = txt_IdUsuario.Text;
XDox.Save(g_str_RUTA);
Application.Restart();
this.Close();
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
Application.Exit();
}
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Test
{
static class Program
{
/// <summary>
/// Punto de entrada principal para la aplicación.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// La información general de un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos valores de atributo para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Test")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
// para los componentes COM. Si necesita obtener acceso a un tipo de este ensamblado desde
// COM, establezca el atributo ComVisible en true en este tipo.
[assembly: ComVisible(false)]
// El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
[assembly: Guid("cd9cd799-233e-426f-bff8-d687eb96c449")]
// La información de versión de un ensamblado consta de los cuatro valores siguientes:
//
// Versión principal
// Versión secundaria
// Número de compilación
// Revisión
//
// Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
// mediante el carácter '*', como se muestra a continuación:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Este código fue generado por una herramienta.
// Versión de runtime: 4.0.30319.42000
//
// Los cambios de este archivo pueden provocar un comportamiento inesperado y se perderán si
// el código se vuelve a generar.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test.Properties
{
/// <summary>
/// Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc.
/// </summary>
// StronglyTypedResourceBuilder generó automáticamente esta clase
// a través de una herramienta como ResGen o Visual Studio.
// Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen
// con la opción /str o recompile su proyecto de VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Devuelve la instancia ResourceManager almacenada en caché utilizada por esta clase.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Invalida la propiedad CurrentUICulture del subproceso actual para todas las
/// búsquedas de recursos usando esta clase de recursos fuertemente tipados.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CD9CD799-233E-426F-BFF8-D687EB96C449}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Test</RootNamespace>
<AssemblyName>Test</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\EntityFramework.dll</HintPath>
</Reference>
<Reference Include="Exferia_Aplicacion, Version=1.0.0.7, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_Aplicacion.dll</HintPath>
</Reference>
<Reference Include="Exferia_Controles, Version=1.0.0.7, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_Controles.dll</HintPath>
</Reference>
<Reference Include="Exferia_EntityFramework, Version=1.0.0.7, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_EntityFramework.dll</HintPath>
</Reference>
<Reference Include="Exferia_Formularios, Version=1.0.0.8, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_Formularios.dll</HintPath>
</Reference>
<Reference Include="Exferia_General, Version=1.0.0.7, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Exferia_General.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Exferia_ServiciosWeb\Exferia_ServiciosWeb.csproj">
<Project>{104eeb06-db35-4b77-a0cb-099107e93b72}</Project>
<Name>Exferia_ServiciosWeb</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exferia_Sincronizacion", "Exferia_Sincronizacion\Exferia_Sincronizacion.csproj", "{B333C606-88A1-4A8C-8600-1EEAECAD26C5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{233796D2-7687-43EF-B7F8-E3954C1800BD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B333C606-88A1-4A8C-8600-1EEAECAD26C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B333C606-88A1-4A8C-8600-1EEAECAD26C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B333C606-88A1-4A8C-8600-1EEAECAD26C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B333C606-88A1-4A8C-8600-1EEAECAD26C5}.Release|Any CPU.Build.0 = Release|Any CPU
{233796D2-7687-43EF-B7F8-E3954C1800BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{233796D2-7687-43EF-B7F8-E3954C1800BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{233796D2-7687-43EF-B7F8-E3954C1800BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{233796D2-7687-43EF-B7F8-E3954C1800BD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,45 @@
using Exferia_Sincronizacion.General;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Conexion
{
public class Conexion
{
public static DbConnection Crear_Conexion()
{
DbConnection obj_DbConnection = null;
try
{
DbProviderFactory obj_SQL_Conection = DbProviderFactories.GetFactory("System.Data.SqlClient");
obj_DbConnection = obj_SQL_Conection.CreateConnection();
//Con Usuario y Contraseña
if (Variables_Sincronizacion.g_str_Conexion_Usuario.Trim().Length>0)
{
obj_DbConnection.ConnectionString = "server=" + Variables_Sincronizacion.g_str_Conexion_Servidor + ";database=" + Variables_Sincronizacion.g_str_Conexion_BaseDatos + ";User Id=" + Variables_Sincronizacion.g_str_Conexion_Usuario + ";Password=" + Variables_Sincronizacion.g_str_Conexion_Clave + ";";
}
//Sin usuario ni contraseña
else
{
obj_DbConnection.ConnectionString = "server=" + Variables_Sincronizacion.g_str_Conexion_Servidor + ";database=" + Variables_Sincronizacion.g_str_Conexion_BaseDatos + ";Trusted_Connection=True;";
}
obj_DbConnection.Open();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(Conexion) + "/" + nameof(Crear_Conexion));
throw;
}
return obj_DbConnection;
}
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.CTA
{
public class CTA_Departamentos_Modelo
{
public static string Tabla = "CTA_Departamentos";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Delegaciones_Modelo
{
public static string Tabla = "GEN_Delegaciones";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public int? tipoMicro { get; set; }
public int? modeloMicro { get; set; }
public int? tipoDelegacion { get; set; }
public string tipoCobrador { get; set; }
public long? idVendedorCobrador { get; set; }
public long? idDepartamento { get; set; }
public long? idTesoreria { get; set; }
public long? idCliente_PorDefecto { get; set; }
public long? idTesoreria_Caja { get; set; }
public bool rectificativa { get; set; }
public long? idMayor_OSSA { get; set; }
public long? idMayor_SSAE { get; set; }
public DateTime? fechaBorrado { get; set; }
public long? idMayor_CuentaContable { get; set; }
public long? idMayor_CuentaContraPartida { get; set; }
}
}

View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Direcciones_Modelo
{
public static string Tabla = "GEN_Direcciones";
public long id { get; set; }
public long? idCliente { get; set; }
public long? idProveedor { get; set; }
public long? idEmpleado { get; set; }
public long? idSocio { get; set; }
public long idPais { get; set; }
public long idProvincia { get; set; }
public long? idMunicipio { get; set; }
public long? idPoblacion { get; set; }
public long? idTipoVia { get; set; }
public string nombreVia { get; set; }
public string tipoNumeracion { get; set; }
public string numeroCasa { get; set; }
public string calificadorNumero { get; set; }
public string bloque { get; set; }
public string portal { get; set; }
public string escalera { get; set; }
public string planta { get; set; }
public string puerta { get; set; }
public string datosComplementariosDomicilio { get; set; }
public string codigoPostal { get; set; }
public string tipoDireccion { get; set; }
public long? idEmpresa { get; set; }
public long? idOrganismoCertificador { get; set; }
public long? idEmpresaInstaladora { get; set; }
public long? idCliente_HPV { get; set; }
public long? idAdministrador { get; set; }
public long? idInstalacionCabecera { get; set; }
public long? idJuzgado { get; set; }
}
}

View File

@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Empresas_Modelo
{
public static string Tabla = "GEN_Empresas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public string razonSocial { get; set; }
public string nif { get; set; }
public string telefonoOficina { get; set; }
public string telefonoParticular { get; set; }
public string telefonoMovil { get; set; }
public string telefonoFax { get; set; }
public string email { get; set; }
public string registroMercantil { get; set; }
public DateTime? promocionFechaInicio { get; set; }
public DateTime? promocionFechaFin { get; set; }
public bool noCargaMicro { get; set; }
public string emailDocumentacion { get; set; }
public string emailAdministracion { get; set; }
public string emailGerencia { get; set; }
public string representante_Nombre { get; set; }
public string representante_Cargo { get; set; }
public string representante_NIF { get; set; }
public string registroMercantil_Provincia { get; set; }
public string registroMercantil_Tomo { get; set; }
public string registroMercantil_Folio { get; set; }
public string registroMercantil_Hoja { get; set; }
public long? idAdministracion { get; set; }
public string CNAE { get; set; }
public string IAE { get; set; }
public string INE { get; set; }
public DateTime? fechaBorrado { get; set; }
public string NRBE { get; set; }
public bool? permiteCobrarAlbaran { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_ImpuestosCabecera_Modelo
{
public static string Tabla = "GEN_ImpuestosCabecera";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public bool? intracomunitario { get; set; }
public bool? regimenEspecialCanario { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_ImpuestosLineas_Modelo
{
public static string Tabla = "GEN_ImpuestosLineas";
public long id { get; set; }
public long? idImpuestoCabecera { get; set; }
public long? idImpuestoTipo { get; set; }
public decimal? impuesto { get; set; }
public decimal? recargo { get; set; }
public long? idMayor_Imp_Compras { get; set; }
public long? idMayor_Imp_Ventas { get; set; }
public long? idMayor_Rec_Ventas { get; set; }
public long? idMayor_BaseImponible_Ventas { get; set; }
public long? idMayor_BaseImponible_Compras { get; set; }
public long? idDepartamento { get; set; }
public long? idEmpresa { get; set; }
public DateTime fechaDesde { get; set; }
public DateTime? fechaHasta { get; set; }
public DateTime? fechaBorrado { get; set; }
public long? idMayor_Rec_Compras { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_ImpuestosTipos_Modelo
{
public static string Tabla = "GEN_ImpuestosTipos";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
public string vectorPreasiento { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_MonedasHistoricos_Modelo
{
public static string Tabla = "GEN_MonedasHistoricos";
public long id { get; set; }
public long idMoneda { get; set; }
public decimal cambio { get; set; }
public string operacion { get; set; }
public DateTime fecha { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Monedas_Modelo
{
public static string Tabla = "GEN_Monedas";
public long id { get; set; }
public string moneda { get; set; }
public string descripcion { get; set; }
public string textoFin { get; set; }
public int redondeoPrecio { get; set; }
public int redondeoImporte { get; set; }
public DateTime? fechaBorrado { get; set; }
public string numero { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Municipios_Modelo
{
public static string Tabla = "GEN_Municipios";
public long id { get; set; }
public long idProvincia { get; set; }
public string codigoINE { get; set; }
public string codigoAEAT { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Paises_Modelo
{
public static string Tabla = "GEN_Paises";
public long id { get; set; }
public string codigo_ISO2D { get; set; }
public string descripcion { get; set; }
public string codigo_ISO3D { get; set; }
public int? codigo_ISONumerico { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Poblaciones_Modelo
{
public static string Tabla = "GEN_Poblaciones";
public long id { get; set; }
public long idMunicipio { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Provincias_Modelo
{
public static string Tabla = "GEN_Provincias";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idPais { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_Terminales_Modelo
{
public static string Tabla = "GEN_Terminales";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public int tipo { get; set; }
public int? tipoPantalla { get; set; }
public DateTime? fechaBorrado { get; set; }
public string codigoValidacion { get; set; }
public bool? codigoValidacionUtilizado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_TiposCompraVenta_Modelo
{
public static string Tabla = "GEN_TiposCompraVenta";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public int tipo { get; set; }
public string opcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GEN
{
public class GEN_TiposVias_Modelo
{
public static string Tabla = "GEN_TiposVias";
public long id { get; set; }
public string codigoINE { get; set; }
public string codigoAEAT { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.GTT
{
public class GTT_Socios_Modelo
{
public static string Tabla = "GTT_Socios";
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPVS_Gastos_Modelo
{
public static string Tabla = "HPVS_Gastos";
public long numeroGasto { get; set; }
public long idTerminal { get; set; }
public string fechaHora { get; set; }
public long idCamarero { get; set; }
public long idEmpresa { get; set; }
public long idTipoGasto { get; set; }
public decimal importe { get; set; }
public string guid { get; set; }
public string tipoAccion { get; set; }
public string fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPVS_Liquidaciones_Modelo
{
public static string Tabla = "HPVS_Liquidaciones";
public long numeroLiquidacion { get; set; }
public long idTerminal { get; set; }
public long idEmpresa { get; set; }
public string fechaHora_Inicial { get; set; }
public string fechaHora_Final { get; set; }
public long idCamarero_Inicial { get; set; }
public long? idCamarero_Final { get; set; }
public int arqueoInicial_001 { get; set; }
public int arqueoInicial_002 { get; set; }
public int arqueoInicial_005 { get; set; }
public int arqueoInicial_010 { get; set; }
public int arqueoInicial_020 { get; set; }
public int arqueoInicial_050 { get; set; }
public int arqueoInicial_1 { get; set; }
public int arqueoInicial_2 { get; set; }
public int arqueoInicial_5 { get; set; }
public int arqueoInicial_10 { get; set; }
public int arqueoInicial_20 { get; set; }
public int arqueoInicial_50 { get; set; }
public int arqueoInicial_100 { get; set; }
public int arqueoInicial_200 { get; set; }
public int arqueoInicial_500 { get; set; }
public bool sinArqueoInicial { get; set; }
public decimal arqueoInicial_Metalico_Total { get; set; }
public int? arqueoFinal_001 { get; set; }
public int? arqueoFinal_002 { get; set; }
public int? arqueoFinal_005 { get; set; }
public int? arqueoFinal_010 { get; set; }
public int? arqueoFinal_020 { get; set; }
public int? arqueoFinal_050 { get; set; }
public int? arqueoFinal_1 { get; set; }
public int? arqueoFinal_2 { get; set; }
public int? arqueoFinal_5 { get; set; }
public int? arqueoFinal_10 { get; set; }
public int? arqueoFinal_20 { get; set; }
public int? arqueoFinal_50 { get; set; }
public int? arqueoFinal_100 { get; set; }
public int? arqueoFinal_200 { get; set; }
public int? arqueoFinal_500 { get; set; }
public bool sinArqueoFinal { get; set; }
public decimal arqueoFinal_Metalico_Total { get; set; }
public decimal importeTotal_Calculado { get; set; }
public decimal importeTotal_Gastos { get; set; }
public decimal importeTotal_Cierre { get; set; }
public decimal importeTotal_Encaja { get; set; }
public string guid { get; set; }
public string tipoAccion { get; set; }
public string fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPVS_Tickets_Cabecera_Modelo
{
public static string Tabla = "HPVS_Tickets_Cabecera";
public long numero { get; set; }
public long idEmpresa { get; set; }
public long idTerminal { get; set; }
public long idSala { get; set; }
public string fechaHora { get; set; }
public string alias { get; set; }
public long idCliente { get; set; }
public long idImpuestoCabecera { get; set; }
public long idCamarero_Creacion { get; set; }
public long idCamarero_UltimaModificacion { get; set; }
public long? idMesa { get; set; }
public long? idPuntoBarra { get; set; }
public decimal? importeTotal { get; set; }
public bool cobrado { get; set; }
public bool modificado { get; set; }
public string guid { get; set; }
public string tipoAccion { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesClientesCabeceras_Modelo
{
public static string Tabla = "HPV_AgrupacionesClientesCabeceras";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? sinRepeticion { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesClientesLineas_Modelo
{
public static string Tabla = "HPV_AgrupacionesClientesLineas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public long idAgrupacionClienteCabecera { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesPLVCabeceras_Modelo
{
public static string Tabla = "HPV_AgrupacionesPLVCabeceras";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? sinRepeticion { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesPLVLineasFotos_Modelo
{
public static string Tabla = "HPV_AgrupacionesPLVLineasFotos";
public long id { get; set; }
public long idAgrupacionPLVLinea { get; set; }
public byte[] foto { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesPLVLineas_Impresoras_Modelo
{
public static string Tabla = "HPV_AgrupacionesPLVLineas_Impresoras";
public long idAgrupacionPLVLinea { get; set; }
public long idImpresora { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_AgrupacionesPLVLineas_Modelo
{
public static string Tabla = "HPV_AgrupacionesPLVLineas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public string colorFondo { get; set; }
public string colorLetra { get; set; }
public long idEmpresa { get; set; }
public long idAgrupacionPLVCabecera { get; set; }
public DateTime? fechaBorrado { get; set; }
public int? orden { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_CamarerosPerfiles_Modelo
{
public static string Tabla = "HPV_CamarerosPerfiles";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_CamarerosPerfiles_Permisos_Modelo
{
public static string Tabla = "HPV_CamarerosPerfiles_Permisos";
public long idCamareroPerfil { get; set; }
public long permiso { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Camareros_Modelo
{
public static string Tabla = "HPV_Camareros";
public long id { get; set; }
public long? idEmpleado { get; set; }
public long? idProveedor { get; set; }
public string codigo { get; set; }
public string nombre { get; set; }
public DateTime fechaAlta { get; set; }
public DateTime? fechaBaja { get; set; }
public string validacion_Nombre { get; set; }
public string validacion_Clave { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public byte[] foto { get; set; }
public long? idCamareroPerfil { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_CaracteristicasTipos_Modelo
{
public static string Tabla = "HPV_CaracteristicasTipos";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Caracteristicas_Modelo
{
public static string Tabla = "HPV_Caracteristicas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idCaracteristicaTipo { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Clientes_AgrupacionesClientesLineas_Modelo
{
public static string Tabla = "HPV_Clientes_AgrupacionesClientesLineas";
public long idCliente { get; set; }
public long idAgrupacionClienteLinea { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Clientes_Modelo
{
public static string Tabla = "HPV_Clientes";
public long id { get; set; }
public string codigo { get; set; }
public string telefono1 { get; set; }
public string telefono2 { get; set; }
public string observaciones { get; set; }
public long idImpuestoCabecera { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? porDefecto { get; set; }
public string nombreComercial { get; set; }
public string razonSocial { get; set; }
public string cif { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Escandallos_Modelo
{
public static string Tabla = "HPV_Escandallos";
public long idPLV { get; set; }
public long idPLV_Escandallo { get; set; }
public string observaciones { get; set; }
public long idSeccionMenu { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Impresoras_Modelo
{
public static string Tabla = "HPV_Impresoras";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public int tipo { get; set; }
public int papel_Ancho { get; set; }
public int papel_Alto { get; set; }
public bool logo { get; set; }
public int logo_Ancho { get; set; }
public int logo_Alto { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Ingredientes_Caracteristicas_Modelo
{
public static string Tabla = "HPV_Ingredientes_Caracteristicas";
public long idIngrediente { get; set; }
public long idCaracteristica { get; set; }
public string observaciones { get; set; }
public int agrupado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Ingredientes_Modelo
{
public static string Tabla = "HPV_Ingredientes";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public string observaciones { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Mesas_Modelo
{
public static string Tabla = "HPV_Mesas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public long idSala { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLVFotos_Modelo
{
public static string Tabla = "HPV_PLVFotos";
public long id { get; set; }
public long idPLV { get; set; }
public byte[] foto { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLV_AgrupacionesPLVLineas_Modelo
{
public static string Tabla = "HPV_PLV_AgrupacionesPLVLineas";
public long idPLV { get; set; }
public long idAgrupacionPLVLinea { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLV_Impresoras_Modelo
{
public static string Tabla = "HPV_PLV_Impresoras";
public long idPLV { get; set; }
public long idImpresora { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLV_Ingredientes_Modelo
{
public static string Tabla = "HPV_PLV_Ingredientes";
public long idPLV { get; set; }
public long idIngrediente { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLV_Modelo
{
public static string Tabla = "HPV_PLV";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public string observaciones { get; set; }
public string colorFondo { get; set; }
public string colorLetra { get; set; }
public bool esTipoMenu { get; set; }
public decimal precio { get; set; }
public long idImpuestoTipo { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public int? orden { get; set; }
public bool? permiteDecimales { get; set; }
public bool? permitePeso { get; set; }
public bool? libre { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PLV_SalasPrecios_Modelo
{
public static string Tabla = "HPV_PLV_SalasPrecios";
public long idPLV { get; set; }
public long idSala { get; set; }
public decimal? precio { get; set; }
public decimal? descuento { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Perfiles_Modelo
{
public static string Tabla = "HPV_Perfiles";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public long? idAgrupacionPLVCabecera { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_PuntosBarra_Modelo
{
public static string Tabla = "HPV_PuntosBarra";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public long idSala { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Salas_Impresoras_Modelo
{
public static string Tabla = "HPV_Salas_Impresoras";
public long idSala { get; set; }
public long idImpresora { get; set; }
public bool porDefecto { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Salas_Modelo
{
public static string Tabla = "HPV_Salas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_SeccionesMenu_Modelo
{
public static string Tabla = "HPV_SeccionesMenu";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public int? orden { get; set; }
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Tarifas_Modelo
{
public static string Tabla = "HPV_Tarifas";
public long id { get; set; }
public long? idCliente { get; set; }
public long? idAgrupacionClienteLinea { get; set; }
public long? idPLV { get; set; }
public long? idAgrupacionPLVLinea { get; set; }
public decimal? precio { get; set; }
public decimal? descuento { get; set; }
public DateTime? fechaDesde { get; set; }
public DateTime? fechaHasta { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public int orden { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Tarifas_SalasPrecios_Modelo
{
public static string Tabla = "HPV_Tarifas_SalasPrecios";
public long idTarifa { get; set; }
public long idSala { get; set; }
public decimal? precio { get; set; }
public decimal? descuento { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Terminales_AgrupacionesTerminales_Modelo
{
public static string Tabla = "HPV_Terminales_AgrupacionesTerminales";
public long idTerminal { get; set; }
public long idAgrupacionTerminal { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Terminales_Modelo
{
public static string Tabla = "HPV_Terminales";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idPerfil { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? permite_Arqueo { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.HPV
{
public class HPV_Terminales_Salas_Modelo
{
public static string Tabla = "HPV_Terminales_Salas";
public long idTerminal { get; set; }
public long idSala { get; set; }
public string observaciones { get; set; }
public bool porDefecto { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos
{
public class INTERNO_ValorDevuelto_Modelo
{
public INTERNO_ValorDevuelto_Modelo()
{
}
public INTERNO_ValorDevuelto_Modelo(bool _bol_TodoCorrecto, string _str_Mensaje)
{
TodoCorrecto = _bol_TodoCorrecto;
Mensaje = _str_Mensaje;
}
public bool TodoCorrecto { get; set; }
public string Mensaje { get; set; }
public long Id { get; set; }
public List<long> Listado_Id { get; set; }
public object Objeto { get; set; }
public dynamic Valor_Anterior { get; set; }
public object Objeto_Auxiliar_1 { get; set; }
public object Objeto_Auxiliar_2 { get; set; }
public object Objeto_Auxiliar_3 { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AbonosTipos_Modelo
{
public static string Tabla = "MAE_AbonosTipos";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AgrupacionesArticulosCabeceras_Modelo
{
public static string Tabla = "MAE_AgrupacionesArticulosCabeceras";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public int clienteProveedor { get; set; }
public bool? sinRepeticion { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AgrupacionesArticulosLineasFotos_Modelo
{
public static string Tabla = "MAE_AgrupacionesArticulosLineasFotos";
public long id { get; set; }
public long idAgrupacionArticuloLinea { get; set; }
public byte[] foto { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AgrupacionesArticulosLineas_Modelo
{
public static string Tabla = "MAE_AgrupacionesArticulosLineas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public long idAgrupacionArticuloCabecera { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AgrupacionesClientesCabeceras_Modelo
{
public static string Tabla = "MAE_AgrupacionesClientesCabeceras";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? sinRepeticion { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_AgrupacionesClientesLineas_Modelo
{
public static string Tabla = "MAE_AgrupacionesClientesLineas";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public long idAgrupacionClienteCabecera { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_ArticulosCodigosBarras_Modelo
{
public static string Tabla = "MAE_ArticulosCodigosBarras";
public long id { get; set; }
public string codigo { get; set; }
public long idArticulo { get; set; }
public long idEmpresa { get; set; }
public long idEmbalaje { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_ArticulosComodin_Modelo
{
public static string Tabla = "MAE_ArticulosComodin";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idImpuestoTipo { get; set; }
public long idNomenclaturaPrecio_Venta_PorDefecto { get; set; }
public long idNomenclaturaPrecio_Compra_PorDefecto { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaBorrado { get; set; }
public long? idRetencionTipo_Venta { get; set; }
public long? idRetencionTipo_Compra { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_ArticulosTotalizados_Modelo
{
public static string Tabla = "MAE_ArticulosTotalizados";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_AgrupacionesArticulosLineas_Modelo
{
public static string Tabla = "MAE_Articulos_AgrupacionesArticulosLineas";
public long idArticulo { get; set; }
public long idAgrupacionArticuloLinea { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_EmbalajesPrincipal_Precios_Historico_Modelo
{
public static string Tabla = "MAE_Articulos_EmbalajesPrincipal_Precios_Historico";
public long id { get; set; }
public long idArticulo { get; set; }
public long idEmbalaje { get; set; }
public long idNomenclaturaPrecio { get; set; }
public long idEmpresa { get; set; }
public DateTime? fechaHora { get; set; }
public decimal precio { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_EmbalajesPrincipal_Precios_Modelo
{
public static string Tabla = "MAE_Articulos_EmbalajesPrincipal_Precios";
public long id { get; set; }
public long idArticulo_Embalaje { get; set; }
public long idNomenclaturaPrecio { get; set; }
public decimal precio { get; set; }
public int? actualizarPreciosCompras_Cuando { get; set; }
public bool? actualizarPreciosCompras_Preguntar { get; set; }
public int? actualizarPreciosCompras_Tipo { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_Embalajes_Modelo
{
public static string Tabla = "MAE_Articulos_Embalajes";
public long id { get; set; }
public long idArticulo { get; set; }
public long idEmbalajePrincipal { get; set; }
public decimal cantidadEmbalajePrincipal { get; set; }
public long? idEmbalajeRelacional { get; set; }
public decimal? cantidadEmbalajeRelacional { get; set; }
public bool esPrincipal { get; set; }
public int? precio_Cantidad_SegundaUnidad { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
public string operacion { get; set; }
}
}

View File

@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_Modelo
{
public static string Tabla = "MAE_Articulos";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public string descripcionCorta { get; set; }
public string tipoPrecio { get; set; }
public long idImpuestoTipo { get; set; }
public long idEmpresa { get; set; }
public long? idMedidaCompra { get; set; }
public long? idMedidaVenta { get; set; }
public long? idMayor_Compras { get; set; }
public long? idMayor_Ventas { get; set; }
public long? idTipoProducto { get; set; }
public long? idProveedor { get; set; }
public long? idDepartamento { get; set; }
public string codigo_EAN { get; set; }
public bool? esMateriaPrima { get; set; }
public bool? permitirVenta_BajoCoste { get; set; }
public bool? darBaja_SinStock { get; set; }
public bool? mostrarEnWeb { get; set; }
public bool? mostrarEnTerminal { get; set; }
public bool? esDeLoteProducto { get; set; }
public string observaciones { get; set; }
public DateTime fechaAlta { get; set; }
public DateTime? fechaBaja { get; set; }
public DateTime? fechaBorrado { get; set; }
public string descripcionAmpliada { get; set; }
public long? idNomenclaturaPrecio_Venta_PorDefecto { get; set; }
public long? idNomenclaturaPrecio_Compra_PorDefecto { get; set; }
public decimal? porcentajeCancelacion_Compras { get; set; }
public decimal? porcentajeCancelacion_Ventas { get; set; }
public string tipoTrazabilidad_Entradas { get; set; }
public string tipoTrazabilidad_Salidas { get; set; }
public bool? esManoDeObra { get; set; }
public bool? esDesplazamiento { get; set; }
public long? idArticuloTotalizado { get; set; }
public int? tipoPantalla { get; set; }
public long? idRetencionTipo_Venta { get; set; }
public long? idRetencionTipo_Compra { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Articulos_Trazabilidad_Modelo
{
public static string Tabla = "MAE_Articulos_Trazabilidad";
public long id { get; set; }
public string lote { get; set; }
public DateTime? fechaCaducidad { get; set; }
public string observaciones { get; set; }
public long idArticulo { get; set; }
public DateTime? fechaBorrado { get; set; }
public bool? tieneStock { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_CategoriasProfesionales_Modelo
{
public static string Tabla = "MAE_CategoriasProfesionales";
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public DateTime? fechaBorrado { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Clientes_AgrupacionesClientesLineas_Modelo
{
public static string Tabla = "MAE_Clientes_AgrupacionesClientesLineas";
public long idCliente { get; set; }
public long idAgrupacionClienteLinea { get; set; }
public string observaciones { get; set; }
}
}

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_Sincronizacion._0_Modelos.MAE
{
public class MAE_Clientes_Articulos_Modelo
{
public static string Tabla = "MAE_Clientes_Articulos";
public long id { get; set; }
public long? idAgrupacionClienteLinea { get; set; }
public long? idAgrupacionArticuloLinea { get; set; }
public long? idCliente { get; set; }
public long? idArticulo { get; set; }
public int orden { get; set; }
public DateTime? desactivada { get; set; }
public bool? mostrarWeb { get; set; }
public bool? libreObligatorio { get; set; }
public long idEmpresa { get; set; }
public long? idTarifaPromocion { get; set; }
public long? idPromocionEsquemaCabecera { get; set; }
public DateTime? fechaDesde { get; set; }
public DateTime? fechaHasta { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More