parent
202d50c07c
commit
1020c1cabd
|
|
@ -160,8 +160,6 @@ namespace Exferia_General._1_Datos
|
|||
{ }
|
||||
#endregion
|
||||
|
||||
#region Obtener
|
||||
|
||||
#region Obtener Simple
|
||||
private dynamic g_dnm_Modelo_Obtener = null;
|
||||
|
||||
|
|
@ -198,39 +196,7 @@ namespace Exferia_General._1_Datos
|
|||
//Rellenar el Modelo
|
||||
g_dnm_Modelo_Obtener = obj_Exferia_Entities.Database.SqlQuery<GEN_Firmas_Electronicas>(str_SQL, arr_Parametros).FirstOrDefault();
|
||||
|
||||
#region Rellenar tablas Relacionadas
|
||||
if (g_dnm_Modelo_Obtener != null)
|
||||
{
|
||||
//reiniciar Valores de los hilos
|
||||
for (int int_Contador = 0; int_Contador < g_int_TotalHilos_Obtener; int_Contador++)
|
||||
{
|
||||
g_bol_Hilos_Terminados_Obtener[int_Contador] = false;
|
||||
}
|
||||
|
||||
//GEN_EjerciciosActivos_Empresa ##########################################################################################
|
||||
ThreadStart obj_ThreadStart_EJERCICIO = new ThreadStart(Obtener_Ejercicio_Modelo_Obtener);
|
||||
Thread obj_Thread_EJERCICIO = new Thread(obj_ThreadStart_EJERCICIO);
|
||||
obj_Thread_EJERCICIO.Start();
|
||||
|
||||
//Esperando a que terminen todos los hilos .........................................
|
||||
bool bol_Termino = false;
|
||||
while (bol_Termino == false)
|
||||
{
|
||||
bol_Termino = true;
|
||||
foreach (bool bol_Termino_Hilo in g_bol_Hilos_Terminados_Obtener)
|
||||
{
|
||||
if (bol_Termino_Hilo == false)
|
||||
{
|
||||
bol_Termino = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
//.................................................................................
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{
|
||||
|
|
@ -247,22 +213,7 @@ namespace Exferia_General._1_Datos
|
|||
}
|
||||
return g_dnm_Modelo_Obtener;
|
||||
}
|
||||
#region Tablas Relacionadas
|
||||
private void Obtener_Ejercicio_Modelo_Obtener()
|
||||
{
|
||||
try
|
||||
{
|
||||
g_dnm_Modelo_Obtener.GEN_EjerciciosActivos_Empresa = Datos_Generales.GEN_EjerciciosActivos_Empresa_Obtener_Por_Id(g_dnm_Modelo_Obtener.idEjercicio, false, false, false);
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{ }
|
||||
finally
|
||||
{
|
||||
g_bol_Hilos_Terminados_Obtener[0] = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
public override dynamic Obtener_Registro_PorCampo(string _str_Filtro, string _str_CampoBusqueda, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1152,40 +1152,40 @@ namespace Exferia_General
|
|||
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
|
||||
{
|
||||
//todo firmas-electronicas
|
||||
/*
|
||||
P_Configuracion_Informes frm_P_Configuracion_Informes = new P_Configuracion_Informes(_mdl_INTERNO_ValoresGenerales_Modelo, _dtt_FechaPorDefecto, _mdl_INTERNO_OpcionesDetalle_Modelo);
|
||||
frm_P_Configuracion_Informes.P_Base_Campo_1 = _str_Campo1_Valor;
|
||||
frm_P_Configuracion_Informes.P_Base_Campo_2 = _str_Campo2_Valor;
|
||||
|
||||
P_Firmas_Electronicas frm_P_Firmas_Electronicas = new P_Firmas_Electronicas(_mdl_INTERNO_ValoresGenerales_Modelo, _dtt_FechaPorDefecto, _mdl_INTERNO_OpcionesDetalle_Modelo);
|
||||
frm_P_Firmas_Electronicas.P_Base_Campo_1 = _str_Campo1_Valor;
|
||||
frm_P_Firmas_Electronicas.P_Base_Campo_2 = _str_Campo2_Valor;
|
||||
|
||||
//Se llamo desde una pantalla
|
||||
if (_frm_P_Base_Origen != null)
|
||||
{
|
||||
frm_P_Configuracion_Informes.P_Base_PantallaPadre_IdentificadorTAG = _frm_P_Base_Origen.Tag.ToString();
|
||||
frm_P_Configuracion_Informes.P_Base_PantallaOrigen = _frm_P_Base_Origen;
|
||||
frm_P_Firmas_Electronicas.P_Base_PantallaPadre_IdentificadorTAG = _frm_P_Base_Origen.Tag.ToString();
|
||||
frm_P_Firmas_Electronicas.P_Base_PantallaOrigen = _frm_P_Base_Origen;
|
||||
}
|
||||
//Se llamo desde un control F3
|
||||
else
|
||||
{
|
||||
frm_P_Configuracion_Informes.P_Base_PantallaPadre_IdentificadorTAG = "";
|
||||
frm_P_Configuracion_Informes.P_Base_F3Origen = _usc_Exferia_F3_Origen;
|
||||
frm_P_Firmas_Electronicas.P_Base_PantallaPadre_IdentificadorTAG = "";
|
||||
frm_P_Firmas_Electronicas.P_Base_F3Origen = _usc_Exferia_F3_Origen;
|
||||
}
|
||||
|
||||
//Modificar
|
||||
if (_lng_RegistroSeleccionado > 0)
|
||||
{
|
||||
frm_P_Configuracion_Informes.P_Base_TituloPantalla_CaminoHormigas = _mdl_INTERNO_OpcionesDetalle_Modelo.descripcion_TituloMantenimiento.ToUpper();
|
||||
frm_P_Configuracion_Informes.P_Base_id = _lng_RegistroSeleccionado;
|
||||
frm_P_Configuracion_Informes.P_Base_TipoAperturaPantalla = 1;
|
||||
frm_P_Firmas_Electronicas.P_Base_TituloPantalla_CaminoHormigas = _mdl_INTERNO_OpcionesDetalle_Modelo.descripcion_TituloMantenimiento.ToUpper();
|
||||
frm_P_Firmas_Electronicas.P_Base_id = _lng_RegistroSeleccionado;
|
||||
frm_P_Firmas_Electronicas.P_Base_TipoAperturaPantalla = 1;
|
||||
}
|
||||
//Alta
|
||||
else
|
||||
{
|
||||
frm_P_Configuracion_Informes.P_Base_TipoAperturaPantalla = 0;
|
||||
frm_P_Configuracion_Informes.P_Base_TituloPantalla_CaminoHormigas = _mdl_INTERNO_OpcionesDetalle_Modelo.descripcion_TituloMantenimiento.ToUpper() + " -> Alta";
|
||||
frm_P_Firmas_Electronicas.P_Base_TipoAperturaPantalla = 0;
|
||||
frm_P_Firmas_Electronicas.P_Base_TituloPantalla_CaminoHormigas = _mdl_INTERNO_OpcionesDetalle_Modelo.descripcion_TituloMantenimiento.ToUpper() + " -> Alta";
|
||||
}
|
||||
|
||||
Funciones_PanelPrincipal.Cargar_PantallaEmpotrada(frm_P_Configuracion_Informes, _str_Opcion);
|
||||
*/
|
||||
Funciones_PanelPrincipal.Cargar_PantallaEmpotrada(frm_P_Firmas_Electronicas, _str_Opcion);
|
||||
|
||||
}
|
||||
//CONFIGURACIONEMAIL
|
||||
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
|
||||
|
|
|
|||
Loading…
Reference in New Issue