214 lines
11 KiB
C#
214 lines
11 KiB
C#
using Exferia_Aplicacion.General;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Runtime.CompilerServices;
|
|
using Exferia_Formularios;
|
|
using Exferia_Controles;
|
|
|
|
namespace Exferia_KairosPro_Informes
|
|
{
|
|
public class Opciones
|
|
{
|
|
/// <summary>
|
|
/// Evento que se activa cuando se selecciona un registro
|
|
/// </summary>
|
|
///
|
|
public event EventHandler<INTERNO_EventArgs_Listado> ABS_Opciones_Evento_RegistroSeleccionado;
|
|
protected void Evento_RegistroSeleccionado(object sender, INTERNO_EventArgs_Listado e)
|
|
{
|
|
INTERNO_EventArgs_Listado obj_Exferia_EventArgs = new INTERNO_EventArgs_Listado(null, null, e.REGISTRO_SELECCIONADO, null,e.Objeto_Auxiliar,e.Listado_INTERNO_Filtro_OpcionPadre_Modelo,e.CamposValores_ParaMantenimiento);
|
|
EventHandler<INTERNO_EventArgs_Listado> obj_EventHandler = ABS_Opciones_Evento_RegistroSeleccionado;
|
|
if (obj_EventHandler != null)
|
|
obj_EventHandler(this, obj_Exferia_EventArgs);
|
|
}
|
|
|
|
#region Listado
|
|
private void CARGAR_LISTADO(string _str_Opcion, bool _bol_ListadoSeleccionable,
|
|
int _int_AccionesPermitidas,
|
|
P_Base _frm_P_Base_Origen,
|
|
INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo,
|
|
DateTime _dtt_FechaPorDefecto,
|
|
string _str_SeleccionFiltro_NombreCampo,
|
|
string _str_SeleccionFiltro_Valor,
|
|
bool _bol_SeleccionFiltro_SencibleMayusculasMinusculas,
|
|
bool _bol_SeleccionFiltro_PalabraCompleta,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo,
|
|
Dictionary<string, object> _dct_ListadoFiltros,
|
|
object _obj_Auxiliar,
|
|
object _obj_Filtros_Auxiliar,
|
|
ABS_Listado _obj_ABS_Listado)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private List<dynamic> OBTENER_LISTADO(string _str_Opcion,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<string> _lst_CamposConRelacionABuscar,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic OBTENER_REGISTROSLISTADO(string _str_Opcion,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<string> _lst_CamposConRelacionABuscar,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo,
|
|
long _lng_id,
|
|
List<long> _lst_id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
#endregion
|
|
|
|
#region Listado Secundario
|
|
private void MOSTRAR_LISTADO_SECUNDARIO(string _str_Opcion,
|
|
string _str_idNodoArbolSecundarioSeleccion,
|
|
P_Base _frm_P_Base_Origen,
|
|
INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo,
|
|
DateTime _dtt_FechaPorDefecto,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo,
|
|
Dictionary<string, object> _dct_ListadoFiltros,
|
|
object _obj_Auxiliar)
|
|
{
|
|
//Nombre de la DLL Actual
|
|
string str_Nombre_DLL = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
|
|
|
|
Funciones_Listado_Secundario obj_Funciones_Listado_Secundario = new Funciones_Listado_Secundario();
|
|
|
|
//Datos Variables segun Opcione ###########################################################
|
|
ABS_Listado obj_ABS_Listado_Auxiliar = null;
|
|
|
|
//Llamar a la Funcion general que cargara los datos y generar la pantalla del listado
|
|
obj_Funciones_Listado_Secundario.Mostrar_Listado(_frm_P_Base_Origen,
|
|
_str_idNodoArbolSecundarioSeleccion,
|
|
_mdl_INTERNO_ValoresGenerales_Modelo,
|
|
_dtt_FechaPorDefecto,
|
|
str_Nombre_DLL,
|
|
_str_Opcion,
|
|
obj_ABS_Listado_Auxiliar,
|
|
_lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
_lst_INTERNO_Filtro_Modelo,
|
|
_dct_ListadoFiltros,
|
|
_obj_Auxiliar);
|
|
}
|
|
private List<dynamic> OBTENER_LISTADO_SECUNDARIO(string _str_Opcion,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<string> _lst_CamposConRelacionABuscar,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
|
|
{
|
|
List<dynamic> lst_Valores = null;
|
|
|
|
try
|
|
{
|
|
}
|
|
catch (Control_Errores)
|
|
{ }
|
|
catch (Exception)
|
|
{ }
|
|
|
|
return lst_Valores;
|
|
}
|
|
private dynamic OBTENER_REGISTROSLISTADO_SECUNDARIO(string _str_Opcion,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<string> _lst_CamposConRelacionABuscar,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo,
|
|
long _lng_id,
|
|
List<long> _lst_ids)
|
|
{
|
|
dynamic dnm_Valor = null;
|
|
|
|
try
|
|
{
|
|
}
|
|
catch (Control_Errores)
|
|
{ }
|
|
catch (Exception)
|
|
{ }
|
|
|
|
return dnm_Valor;
|
|
}
|
|
#endregion
|
|
|
|
private dynamic OBTENER_REGISTRO_F3(string _str_Opcion,
|
|
string _str_Filtro,
|
|
string _str_CampoBusqueda,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo,
|
|
object _obj_Filtros_Auxiliar)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic OBTENER_REGISTRO_F3_PORID(string _str_Opcion,
|
|
long _lng_id,
|
|
long _lng_idEmpresaSeleccionada,
|
|
long _lng_idEjercicioActual,
|
|
List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo,
|
|
List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private ABS_F3 OBTENCION_ABS_F3(string _str_Opcion)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private void MOSTRAR_EN_MANTENIMIENTO(string _str_Opcion,
|
|
P_Base _frm_P_Base_Origen,
|
|
Exferia_F3 _usc_Exferia_F3_Origen,
|
|
INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo,
|
|
DateTime _dtt_FechaPorDefecto,
|
|
INTERNO_OpcionesDetalle_Modelo _mdl_INTERNO_OpcionesDetalle_Modelo,
|
|
long _lng_idRegistroSeleccionado,
|
|
string _str_Campo1_Valor,
|
|
string _str_Campo2_Valor,
|
|
object _obj_Auxiliar,
|
|
List<INTERNO_CampoValor_Modelo> _lst_ListadoArgumentos_ParaMantemiento)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic OBTENER_REGISTRO(string _str_Opcion, long _lng_id, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic GRABAR_REGISTRO(string _str_Opcion, dynamic _dnm_Modelo)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic BORRAR_REGISTRO(string _str_Opcion, long _lng_id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private dynamic OBTENER_REGISTRO_TEXTBOXBUSQUEDA(string _str_Opcion, string _str_Filtro, string _str_CampoBusqueda, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private ABS_TextBox_Busqueda OBTENCION_ABS_TEXTBOXBUSQUEDA(string _str_Opcion)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
}
|
|
}
|