Compare commits

...

19 Commits

Author SHA1 Message Date
Gerardo 9eace6128b (facturas-e-iv)
add de botones para acceder a las facturas electronicas
2023-08-08 12:08:07 +02:00
Gerardo f7045e9273 (factura-e-iv)
ocultar boton si no esta cerrada la factura
2023-08-07 15:45:30 +02:00
Gerardo 6a4cd4b02b (factura-e-iv) añadido icono y boton factura electronica en gui 2023-08-07 14:17:18 +02:00
Gerardo 21d9e385e2 Correcciones en listado firmas electronicas 2023-08-07 12:51:31 +02:00
Gerardo 70b6cc4d4c (firmas-e)Firmas electronicas
correcciones y pruebas generales
2023-08-04 16:34:27 +02:00
Gerardo 1020c1cabd (firmas-e)Firmas electronicas
correcciones modelo y vista
2023-08-04 11:26:54 +02:00
Gerardo 202d50c07c (firmas-e)Firmas electronicas
avance en vista controlador de ventana
2023-08-04 01:16:06 +02:00
Gerardo 8bf7b188ab (firmas-e)Firmas electronicas
correcciones modelo
2023-08-04 00:35:27 +02:00
Gerardo d70a212443 (firmas-e)Firmas electronicas
desarrollo de modelo interno y listado
2023-08-03 22:36:18 +02:00
Gerardo 68c0c1baf0 correccion sintaxis 2023-08-03 13:39:20 +02:00
Gerardo e07edb65f4 Merge branch 'factura-e/firmas-e' into factura-e/firmas-e-modelo 2023-08-03 13:37:55 +02:00
Gerardo 3cb6211105 (firmas-e)Firmas electronicas
generacion de modelo entityframework
2023-08-03 13:36:18 +02:00
Gerardo 06eca71b22 (firmas-e)Firmas electronicas
actualizacion de script bbdd
2023-08-03 12:29:31 +02:00
Gerardo d9a77d2672 modificacion diseño bbdd 2023-08-03 12:27:57 +02:00
Gerardo e21308ed69 (firmas-e)Firmas electronicas
script tabla firmas electronicas
2023-08-03 10:45:14 +02:00
Gerardo 2e13e8ff4e Merge branch 'develop' into factura-e/firmas-e 2023-08-03 10:17:46 +02:00
Gerardo 96d90cf3f0 (firmas-e)Firmas electronicas
creaccion opcion en menu para ver firmas digitales
2023-08-03 10:11:26 +02:00
Gerardo 863f6aacfd factura- (rutas-r-e) script de actualizacion y defines 2023-08-02 13:59:31 +02:00
Gerardo 930725abc4 Error compilado exferia ventas 2023-08-02 12:58:15 +02:00
38 changed files with 4408 additions and 202 deletions

View File

@ -337,7 +337,7 @@
<Compile Include="Modelos_Volcado\INTERNO_PER_NominasPagos_Volcado_Modelo.cs" /> <Compile Include="Modelos_Volcado\INTERNO_PER_NominasPagos_Volcado_Modelo.cs" />
<Compile Include="Modelos_Volcado\INTERNO_PER_Nominas_Volcado_Modelo.cs" /> <Compile Include="Modelos_Volcado\INTERNO_PER_Nominas_Volcado_Modelo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
@ -356,6 +356,7 @@
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -832,9 +833,14 @@
<None Include="Resources\i_gasolina.png" /> <None Include="Resources\i_gasolina.png" />
<None Include="Resources\i_ascii347.png" /> <None Include="Resources\i_ascii347.png" />
<None Include="Resources\i_ascii415.jpg" /> <None Include="Resources\i_ascii415.jpg" />
<None Include="Resources\i_factura_e.png" />
<None Include="Resources\i_firma_e.png" />
<Content Include="Resources\i_pdfFile.png" /> <Content Include="Resources\i_pdfFile.png" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy $(TargetPath) $(SolutionDir)..\..\DLL\</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

View File

@ -165,7 +165,8 @@ namespace Exferia_Aplicacion.General
private static Image G_IMG_VER_WEB = global::Exferia_Aplicacion.Properties.Resources.i_ver_web; private static Image G_IMG_VER_WEB = global::Exferia_Aplicacion.Properties.Resources.i_ver_web;
private static Image G_IMG_VOLCAR = global::Exferia_Aplicacion.Properties.Resources.i_volcar; private static Image G_IMG_VOLCAR = global::Exferia_Aplicacion.Properties.Resources.i_volcar;
private static Image G_IMG_VOLCAR_GRANDE = global::Exferia_Aplicacion.Properties.Resources.i_volcar_g; private static Image G_IMG_VOLCAR_GRANDE = global::Exferia_Aplicacion.Properties.Resources.i_volcar_g;
private static Image G_IMG_FACTURA_E = global::Exferia_Aplicacion.Properties.Resources.i_factura_e;
private static Image G_IMG_FIRMA_E = global::Exferia_Aplicacion.Properties.Resources.i_firma_e;
#endregion #endregion
@ -304,7 +305,9 @@ namespace Exferia_Aplicacion.General
G_IMG_VACIAR_SINCRONIZACION, G_IMG_VACIAR_SINCRONIZACION,
G_IMG_VACIAR_SUBIDA, G_IMG_VACIAR_SUBIDA,
G_IMG_FLECHA_ABAJO, G_IMG_FLECHA_ABAJO,
G_IMG_GASOLINA G_IMG_GASOLINA,
G_IMG_FACTURA_E,
G_IMG_FIRMA_E,
} }
#endregion #endregion
@ -494,6 +497,8 @@ namespace Exferia_Aplicacion.General
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_VACIAR_SUBIDA), G_IMG_VACIAR_SUBIDA); G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_VACIAR_SUBIDA), G_IMG_VACIAR_SUBIDA);
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_FLECHA_ABAJO), G_IMG_FLECHA_ABAJO); G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_FLECHA_ABAJO), G_IMG_FLECHA_ABAJO);
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_GASOLINA), G_IMG_GASOLINA); G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_GASOLINA), G_IMG_GASOLINA);
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_FACTURA_E), G_IMG_FACTURA_E);
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_FIRMA_E), G_IMG_FIRMA_E);
} }
} }

View File

@ -1432,6 +1432,7 @@ namespace Exferia_Aplicacion.General
public static string G_STR_OPCION_COM_FACTURACABECERA_AUX_BOLSA = "COM_FACTURACABECERA_AUX_BOLSA"; public static string G_STR_OPCION_COM_FACTURACABECERA_AUX_BOLSA = "COM_FACTURACABECERA_AUX_BOLSA";
public static string G_STR_OPCION_COM_FACTURACABECERA_AUX_2 = "COM_FACTURACABECERA_AUX_2"; public static string G_STR_OPCION_COM_FACTURACABECERA_AUX_2 = "COM_FACTURACABECERA_AUX_2";
public static string G_STR_OPCION_COM_PAGO = "COM_PAGO"; public static string G_STR_OPCION_COM_PAGO = "COM_PAGO";
public static string G_STR_OPCION_COM_IMPORTA = "COM_ IMPORTA";
public static string G_STR_OPCION_COM_PAGO_BOLSA = "COM_PAGO_BOLSA"; public static string G_STR_OPCION_COM_PAGO_BOLSA = "COM_PAGO_BOLSA";
public static string G_STR_OPCION_COM_PEDIDOCOMPRACABECERA = "COM_PEDIDOCOMPRACABECERA"; public static string G_STR_OPCION_COM_PEDIDOCOMPRACABECERA = "COM_PEDIDOCOMPRACABECERA";
public static string G_STR_OPCION_COM_PEDIDOCOMPRACABECERA_BOLSA = "COM_PEDIDOCOMPRACABECERA_BOLSA"; public static string G_STR_OPCION_COM_PEDIDOCOMPRACABECERA_BOLSA = "COM_PEDIDOCOMPRACABECERA_BOLSA";
@ -1455,6 +1456,7 @@ namespace Exferia_Aplicacion.General
public static string G_STR_OPCION_COM_LISTADOPROCESOS = "COM_LISTADOPROCESOS"; public static string G_STR_OPCION_COM_LISTADOPROCESOS = "COM_LISTADOPROCESOS";
public static string G_STR_OPCION_COM_LISTADOPROCESOS_DESDEBOLSA = "COM_LISTADOPROCESOS_DESDEBOLSA"; public static string G_STR_OPCION_COM_LISTADOPROCESOS_DESDEBOLSA = "COM_LISTADOPROCESOS_DESDEBOLSA";
public static string G_STR_OPCION_COM_FACTURA_ELECTRONICA = "COM_FACTURA_ELECTRONICA";
#endregion #endregion
#region CTA #region CTA
@ -1524,6 +1526,7 @@ namespace Exferia_Aplicacion.General
public static string G_STR_OPCION_GEN_CAMBIARCLIENTE = "GEN_CAMBIARCLIENTE"; public static string G_STR_OPCION_GEN_CAMBIARCLIENTE = "GEN_CAMBIARCLIENTE";
public static string G_STR_OPCION_GEN_CONEXION = "GEN_CONEXION"; public static string G_STR_OPCION_GEN_CONEXION = "GEN_CONEXION";
public static string G_STR_OPCION_GEN_CONFIGURACION_INFORMES = "GEN_CONFIGURACION_INFORMES"; public static string G_STR_OPCION_GEN_CONFIGURACION_INFORMES = "GEN_CONFIGURACION_INFORMES";
public static string G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS = "GEN_FIRMAS_ELECTRONICAS";
public static string G_STR_OPCION_GEN_CONFIGURACIONEMAIL = "GEN_CONFIGURACIONEMAIL"; public static string G_STR_OPCION_GEN_CONFIGURACIONEMAIL = "GEN_CONFIGURACIONEMAIL";
public static string G_STR_OPCION_GEN_CONFIGURACION_SW_SIGMA = "GEN_CONFIGURACION_SW_SIGMA"; public static string G_STR_OPCION_GEN_CONFIGURACION_SW_SIGMA = "GEN_CONFIGURACION_SW_SIGMA";
public static string G_STR_OPCION_GEN_CONFIGURACIONESQUEMA_MENU = "GEN_CONFIGURACIONESQUEMA_MENU"; public static string G_STR_OPCION_GEN_CONFIGURACIONESQUEMA_MENU = "GEN_CONFIGURACIONESQUEMA_MENU";
@ -2112,6 +2115,8 @@ namespace Exferia_Aplicacion.General
public static long G_LNG_RUTA_CARTASNOTIFICACIONTASAANUAL = 13; public static long G_LNG_RUTA_CARTASNOTIFICACIONTASAANUAL = 13;
public static long G_LNG_RUTA_Modelo347 = 14; public static long G_LNG_RUTA_Modelo347 = 14;
public static long G_LNG_RUTA_FACTURA_E_IN = 15;
public static long G_LNG_RUTA__FACTURA_E_OUT = 16;
public static List<INF_Rutas> G_LST_RUTAS = null; public static List<INF_Rutas> G_LST_RUTAS = null;

File diff suppressed because it is too large Load Diff

View File

@ -592,4 +592,10 @@
<data name="i_imprimir_modelo347" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="i_imprimir_modelo347" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\i_ascii347.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\i_ascii347.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="i_factura_e" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\i_factura_e.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="i_firma_e" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\i_firma_e.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -291,6 +291,7 @@ namespace Exferia_Compras._3_Vistas.Listados
//Añadir al listado //Añadir al listado
lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda.Add(mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_DELALL); lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda.Add(mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_DELALL);
//Boton de procesos //Boton de procesos
INTERNO_Listado_BotonesAuxiliares_Modelo mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL = new INTERNO_Listado_BotonesAuxiliares_Modelo(); INTERNO_Listado_BotonesAuxiliares_Modelo mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL = new INTERNO_Listado_BotonesAuxiliares_Modelo();
mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL.Boton_Visible = true; mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL.Boton_Visible = true;
@ -303,12 +304,28 @@ namespace Exferia_Compras._3_Vistas.Listados
mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL.Listado_Botones_Izquierdos = lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda; mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL.Listado_Botones_Izquierdos = lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda;
return mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL; return mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL;
} }
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_3() public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_3()
{ {
return null; //inportar facturas electronicas
INTERNO_Listado_BotonesAuxiliares_Modelo mdl_INTERNO_Listado_Facturas_electronicas = new INTERNO_Listado_BotonesAuxiliares_Modelo();
mdl_INTERNO_Listado_Facturas_electronicas.Boton_Visible = true;
mdl_INTERNO_Listado_Facturas_electronicas.Boton_Nombre = "Importar Facturas Electrónicas";
mdl_INTERNO_Listado_Facturas_electronicas.Boton_Imagen = Imagenes.G_ENUM_IMAGENES.G_IMG_FACTURA_E;
mdl_INTERNO_Listado_Facturas_electronicas.Tipo_Seleccion_Registros = G_ENUM_TIPOSELECCION_LISTADO.Todos_id;
mdl_INTERNO_Listado_Facturas_electronicas.Nombre_Libreria = Variables.G_STR_LIBRERIA_COMPRAS;
mdl_INTERNO_Listado_Facturas_electronicas.Nombre_Clase = Variables.G_STR_LIBRERIA_OPCIONES;
mdl_INTERNO_Listado_Facturas_electronicas.Nombre_Procedimiento = Variables.G_STR_OPCION_COM_FACTURA_ELECTRONICA;
mdl_INTERNO_Listado_Facturas_electronicas.Opcion_Principal = Variables.G_STR_OPCION_COM_IMPORTA;
mdl_INTERNO_Listado_Facturas_electronicas.MenuBotonesIzquierdo = false;
//mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL.Listado_Botones_Izquierdos = lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda;
return mdl_INTERNO_Listado_Facturas_electronicas;
} }
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_4() public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_4()

View File

@ -33,7 +33,7 @@ namespace Exferia_Compras
public event EventHandler<INTERNO_EventArgs_Listado> ABS_Opciones_Evento_RegistroSeleccionado; public event EventHandler<INTERNO_EventArgs_Listado> ABS_Opciones_Evento_RegistroSeleccionado;
protected void Evento_RegistroSeleccionado(object sender, INTERNO_EventArgs_Listado e) 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); 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; EventHandler<INTERNO_EventArgs_Listado> obj_EventHandler = ABS_Opciones_Evento_RegistroSeleccionado;
if (obj_EventHandler != null) if (obj_EventHandler != null)
obj_EventHandler(this, obj_Exferia_EventArgs); obj_EventHandler(this, obj_Exferia_EventArgs);
@ -539,7 +539,7 @@ namespace Exferia_Compras
_obj_Auxiliar); _obj_Auxiliar);
} }
private List<dynamic> OBTENER_LISTADO( string _str_Opcion, private List<dynamic> OBTENER_LISTADO(string _str_Opcion,
long _lng_idEmpresaSeleccionada, long _lng_idEmpresaSeleccionada,
long _lng_idEjercicioActual, long _lng_idEjercicioActual,
List<string> _lst_CamposConRelacionABuscar, List<string> _lst_CamposConRelacionABuscar,
@ -1166,7 +1166,7 @@ namespace Exferia_Compras
//Mayor_CuentaContable //Mayor_CuentaContable
else if (_int_Tipo == 3) else if (_int_Tipo == 3)
{ {
long lng_idProveedor= (_lst_INTERNO_Filtro_OpcionPadre_Modelo != null && _lst_INTERNO_Filtro_OpcionPadre_Modelo.Count > 0) ? _lst_INTERNO_Filtro_OpcionPadre_Modelo.FirstOrDefault().VALOR : -1; long lng_idProveedor = (_lst_INTERNO_Filtro_OpcionPadre_Modelo != null && _lst_INTERNO_Filtro_OpcionPadre_Modelo.Count > 0) ? _lst_INTERNO_Filtro_OpcionPadre_Modelo.FirstOrDefault().VALOR : -1;
#region BUSCAR EL IDMAYORCUENTACONTABLE DEL PROVEEDOR SI LO TUVIERA #region BUSCAR EL IDMAYORCUENTACONTABLE DEL PROVEEDOR SI LO TUVIERA
//Cargamos el ensamblado //Cargamos el ensamblado
@ -1180,7 +1180,7 @@ namespace Exferia_Compras
object[] arr_Parametros = { lng_idProveedor }; object[] arr_Parametros = { lng_idProveedor };
//Pasamos los parametros al metodo y lo ejecutamos //Pasamos los parametros al metodo y lo ejecutamos
long? lng_idMayor_CuentaContable=(long?) obj_MethodInfo.Invoke(obj_Clase, arr_Parametros); long? lng_idMayor_CuentaContable = (long?)obj_MethodInfo.Invoke(obj_Clase, arr_Parametros);
#endregion #endregion
#region MOSTRAR MANTENIMIENTO #region MOSTRAR MANTENIMIENTO
@ -1211,7 +1211,7 @@ namespace Exferia_Compras
} }
} }
catch (Control_Errores) catch (Control_Errores)
{} { }
catch (Exception ex) catch (Exception ex)
{ {
Control_Errores.Errores_Log("", ex, nameof(Opciones) + "/" + nameof(MOSTRAR_PANTALLA_SECUNDARIO)); Control_Errores.Errores_Log("", ex, nameof(Opciones) + "/" + nameof(MOSTRAR_PANTALLA_SECUNDARIO));
@ -1562,7 +1562,7 @@ namespace Exferia_Compras
//DEVOLUCIONESPAGO //DEVOLUCIONESPAGO
if (_str_Opcion.Equals(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO)) if (_str_Opcion.Equals(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO))
{ {
P_DevolucionPago frm_P_DevolucionPago = new P_DevolucionPago(_mdl_INTERNO_ValoresGenerales_Modelo, _dtt_FechaPorDefecto, _mdl_INTERNO_OpcionesDetalle_Modelo,null); P_DevolucionPago frm_P_DevolucionPago = new P_DevolucionPago(_mdl_INTERNO_ValoresGenerales_Modelo, _dtt_FechaPorDefecto, _mdl_INTERNO_OpcionesDetalle_Modelo, null);
frm_P_DevolucionPago.P_Base_Campo_1 = _str_Campo1_Valor; frm_P_DevolucionPago.P_Base_Campo_1 = _str_Campo1_Valor;
frm_P_DevolucionPago.P_Base_Campo_2 = _str_Campo2_Valor; frm_P_DevolucionPago.P_Base_Campo_2 = _str_Campo2_Valor;
@ -3184,5 +3184,17 @@ namespace Exferia_Compras
#endregion #endregion
private void COM_FACTURA_ELECTRONICA(string _str_Opcion,
P_Base _frm_P_Base_Origen,
INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo,
DateTime _dtt_FechaPorDefecto,
List<dynamic> _lst_FilaSelecionadas)
{
//TODOO FACTURA ELECTRONICA PCION AQUI DE FACTURA ELECTRONICA
int I = 0;
I++;
}
} }
} }

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram />

View File

@ -1,10 +1,10 @@
// La generación de código T4 está habilitada para el modelo 'C:\Proyectos\Visual Studio 2015\Projects\Exferia_Librerias_Proyectos\Exferia_EntityFramework\Exferia_EntityFramework\EF_BaseDatos.edmx'. // T4 code generation is enabled for model 'D:\desa\Exferia\Exferia\Exferia_EntityFramework\Exferia_EntityFramework\EF_BaseDatos.edmx'.
// Para habilitar la generación de código heredada, cambie el valor de la propiedad del diseñador 'Estrategia de generación de código' // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// por 'ObjectContext heredado'. Esta propiedad está disponible en la ventana Propiedades cuando se abre // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// el modelo en el diseñador. // is open in the designer.
// Si no se ha generado ninguna clase de contexto y de entidad, puede que haya creado un modelo vacío pero // If no context and entity classes have been generated, it may be because you created an empty model but
// no haya elegido todavía la versión de Entity Framework que se va a usar. Para generar una clase de contexto y clases de entidad // have not yet chosen which version of Entity Framework to use. To generate a context class and entity
// para el modelo, abra el modelo en el diseñador, haga clic con el botón secundario en la superficie del diseñador y // classes for your model, open the model in the designer, right-click on the designer surface, and
// seleccione 'Actualizar modelo desde base de datos...', 'Generar base de datos desde modelo...' o 'Agregar elemento de generación // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
// de código...'. // Item...'.

View File

@ -2006,6 +2006,17 @@
<Property Name="opcion" Type="varchar" MaxLength="100" Nullable="false" /> <Property Name="opcion" Type="varchar" MaxLength="100" Nullable="false" />
<Property Name="nombreCampoCodigo" Type="varchar" MaxLength="50" Nullable="false" /> <Property Name="nombreCampoCodigo" Type="varchar" MaxLength="50" Nullable="false" />
</EntityType> </EntityType>
<EntityType Name="GEN_Firmas_Electronicas">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="codigo" Type="varchar" MaxLength="10" Nullable="false" />
<Property Name="descripcion" Type="varchar" MaxLength="50" Nullable="false" />
<Property Name="fecha_fin" Type="datetime" />
<Property Name="idEmpresa" Type="bigint" Nullable="false"/>
<Property Name="text_perm" Type="text"/>
</EntityType>
<EntityType Name="GEN_Configuracion_Informes"> <EntityType Name="GEN_Configuracion_Informes">
<Key> <Key>
<PropertyRef Name="id" /> <PropertyRef Name="id" />
@ -12451,7 +12462,19 @@
</Dependent> </Dependent>
</ReferentialConstraint> </ReferentialConstraint>
</Association> </Association>
<Association Name="FK_GEN_Control_GEN_PerfilesFuncionalidad"> <Association Name="FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" Type="Self.GEN_Empresas" Multiplicity="1" />
<End Role="GEN_Firmas_Electronicas" Type="Self.GEN_Firmas_Electronicas" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="GEN_Empresas">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="GEN_Firmas_Electronicas">
<PropertyRef Name="idEmpresa" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_GEN_Control_GEN_PerfilesFuncionalidad">
<End Role="GEN_PerfilesFuncionalidad" Type="Self.GEN_PerfilesFuncionalidad" Multiplicity="1" /> <End Role="GEN_PerfilesFuncionalidad" Type="Self.GEN_PerfilesFuncionalidad" Multiplicity="1" />
<End Role="GEN_Control" Type="Self.GEN_Control" Multiplicity="*" /> <End Role="GEN_Control" Type="Self.GEN_Control" Multiplicity="*" />
<ReferentialConstraint> <ReferentialConstraint>
@ -26653,6 +26676,7 @@
<EntitySet Name="GEN_Almacenes" EntityType="Self.GEN_Almacenes" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Almacenes" EntityType="Self.GEN_Almacenes" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_CampoCodigo" EntityType="Self.GEN_Configuracion_CampoCodigo" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_CampoCodigo" EntityType="Self.GEN_Configuracion_CampoCodigo" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_Informes" EntityType="Self.GEN_Configuracion_Informes" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_Informes" EntityType="Self.GEN_Configuracion_Informes" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Firmas_Electronicas" EntityType="Self.GEN_Firmas_Electronicas" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_SW_Sigma" EntityType="Self.GEN_Configuracion_SW_Sigma" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_SW_Sigma" EntityType="Self.GEN_Configuracion_SW_Sigma" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_ConfiguracionesEmails" EntityType="Self.GEN_ConfiguracionesEmails" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_ConfiguracionesEmails" EntityType="Self.GEN_ConfiguracionesEmails" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Control" EntityType="Self.GEN_Control" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Control" EntityType="Self.GEN_Control" Schema="dbo" store:Type="Tables" />
@ -28478,6 +28502,10 @@
<End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" /> <End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" />
<End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" /> <End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" />
</AssociationSet> </AssociationSet>
<AssociationSet Name="FK_GEN_Firmas_Electronicas_GEN_Empresas" Association="Self.FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
<End Role="GEN_Firmas_Electronicas" EntitySet="GEN_Firmas_Electronicas" />
</AssociationSet>
<AssociationSet Name="FK_GEN_Control_GEN_PerfilesFuncionalidad" Association="Self.FK_GEN_Control_GEN_PerfilesFuncionalidad"> <AssociationSet Name="FK_GEN_Control_GEN_PerfilesFuncionalidad" Association="Self.FK_GEN_Control_GEN_PerfilesFuncionalidad">
<End Role="GEN_PerfilesFuncionalidad" EntitySet="GEN_PerfilesFuncionalidad" /> <End Role="GEN_PerfilesFuncionalidad" EntitySet="GEN_PerfilesFuncionalidad" />
<End Role="GEN_Control" EntitySet="GEN_Control" /> <End Role="GEN_Control" EntitySet="GEN_Control" />
@ -37372,6 +37400,7 @@
<End Role="EPD_Procedimientos" EntitySet="EPD_Procedimientos" /> <End Role="EPD_Procedimientos" EntitySet="EPD_Procedimientos" />
</AssociationSet> </AssociationSet>
<EntitySet Name="GEN_Configuracion_Informes" EntityType="SigmaERP2017Model.GEN_Configuracion_Informes" /> <EntitySet Name="GEN_Configuracion_Informes" EntityType="SigmaERP2017Model.GEN_Configuracion_Informes" />
<EntitySet Name="GEN_Firmas_Electronicas" EntityType="SigmaERP2017Model.GEN_Firmas_Electronicas" />
<EntitySet Name="MYT_Configuracion_Informes" EntityType="SigmaERP2017Model.MYT_Configuracion_Informes" /> <EntitySet Name="MYT_Configuracion_Informes" EntityType="SigmaERP2017Model.MYT_Configuracion_Informes" />
<EntitySet Name="CTA_DiarioCabecera" EntityType="SigmaERP2017Model.CTA_DiarioCabecera" /> <EntitySet Name="CTA_DiarioCabecera" EntityType="SigmaERP2017Model.CTA_DiarioCabecera" />
<AssociationSet Name="FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros" Association="SigmaERP2017Model.FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros"> <AssociationSet Name="FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros" Association="SigmaERP2017Model.FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros">
@ -38793,6 +38822,10 @@
<AssociationSet Name="FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" Association="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa"> <AssociationSet Name="FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" Association="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa">
<End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" /> <End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" />
<End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" /> <End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" />
</AssociationSet>
<AssociationSet Name="FK_GEN_Firmas_Electronicas_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
<End Role="GEN_Firmas_Electronicas" EntitySet="GEN_Firmas_Electronicas" />
</AssociationSet> </AssociationSet>
<AssociationSet Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas"> <AssociationSet Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" /> <End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
@ -50392,6 +50425,7 @@
<Property Name="fechaBorrado" Type="DateTime" Precision="3" /> <Property Name="fechaBorrado" Type="DateTime" Precision="3" />
<Property Name="NRBE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" /> <Property Name="NRBE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="permiteCobrarAlbaran" Type="Boolean" /> <Property Name="permiteCobrarAlbaran" Type="Boolean" />
<NavigationProperty Name="GEN_Firmas_Electronicas" Relationship="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas" FromRole="GEN_Empresas" ToRole="GEN_Firmas_Electronicas" />
<NavigationProperty Name="CRM_ClientesPotenciales" Relationship="SigmaERP2017Model.FK_CRM_ClientesPotenciales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_ClientesPotenciales" /> <NavigationProperty Name="CRM_ClientesPotenciales" Relationship="SigmaERP2017Model.FK_CRM_ClientesPotenciales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_ClientesPotenciales" />
<NavigationProperty Name="CRM_Terminales" Relationship="SigmaERP2017Model.FK_CRM_Terminales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_Terminales" /> <NavigationProperty Name="CRM_Terminales" Relationship="SigmaERP2017Model.FK_CRM_Terminales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_Terminales" />
<NavigationProperty Name="CTA_AmortizacionesCabecera" Relationship="SigmaERP2017Model.FK_CTA_AmortizacionesCabecera_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CTA_AmortizacionesCabecera" /> <NavigationProperty Name="CTA_AmortizacionesCabecera" Relationship="SigmaERP2017Model.FK_CTA_AmortizacionesCabecera_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CTA_AmortizacionesCabecera" />
@ -57030,6 +57064,18 @@
<Property Name="venta_Factura_Informe_TextoFinal" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" /> <Property Name="venta_Factura_Informe_TextoFinal" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<NavigationProperty Name="GEN_EjerciciosActivos_Empresa" Relationship="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" FromRole="GEN_Configuracion_Informes" ToRole="GEN_EjerciciosActivos_Empresa" /> <NavigationProperty Name="GEN_EjerciciosActivos_Empresa" Relationship="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" FromRole="GEN_Configuracion_Informes" ToRole="GEN_EjerciciosActivos_Empresa" />
</EntityType> </EntityType>
<EntityType Name="GEN_Firmas_Electronicas">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="codigo" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="descripcion" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="idEmpresa" Type="Int64" Nullable="false" />
<Property Name="fecha_fin" Type="DateTime" Precision="3" />
<Property Name="text_perm" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<NavigationProperty Name="GEN_Empresas" Relationship="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas" FromRole="GEN_Firmas_Electronicas" ToRole="GEN_Empresas" />
</EntityType>
<EntityType Name="MYT_Configuracion_Informes"> <EntityType Name="MYT_Configuracion_Informes">
<Key> <Key>
<PropertyRef Name="id" /> <PropertyRef Name="id" />
@ -62995,6 +63041,18 @@
</Dependent> </Dependent>
</ReferentialConstraint> </ReferentialConstraint>
</Association> </Association>
<Association Name="FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" />
<End Type="SigmaERP2017Model.GEN_Firmas_Electronicas" Role="GEN_Firmas_Electronicas" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="GEN_Empresas">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="GEN_Firmas_Electronicas">
<PropertyRef Name="idEmpresa" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas"> <Association Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas">
<End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" /> <End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" />
<End Type="SigmaERP2017Model.GEN_EjerciciosActivos_Empresa" Role="GEN_EjerciciosActivos_Empresa" Multiplicity="*" /> <End Type="SigmaERP2017Model.GEN_EjerciciosActivos_Empresa" Role="GEN_EjerciciosActivos_Empresa" Multiplicity="*" />
@ -74646,6 +74704,18 @@
</MappingFragment> </MappingFragment>
</EntityTypeMapping> </EntityTypeMapping>
</EntitySetMapping> </EntitySetMapping>
<EntitySetMapping Name="GEN_Firmas_Electronicas">
<EntityTypeMapping TypeName="SigmaERP2017Model.GEN_Firmas_Electronicas">
<MappingFragment StoreEntitySet="GEN_Firmas_Electronicas">
<ScalarProperty Name="text_perm" ColumnName="text_perm" />
<ScalarProperty Name="idEmpresa" ColumnName="idEmpresa" />
<ScalarProperty Name="fecha_fin" ColumnName="fecha_fin" />
<ScalarProperty Name="descripcion" ColumnName="descripcion" />
<ScalarProperty Name="codigo" ColumnName="codigo" />
<ScalarProperty Name="id" ColumnName="id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="MYT_Configuracion_Informes"> <EntitySetMapping Name="MYT_Configuracion_Informes">
<EntityTypeMapping TypeName="SigmaERP2017Model.MYT_Configuracion_Informes"> <EntityTypeMapping TypeName="SigmaERP2017Model.MYT_Configuracion_Informes">
<MappingFragment StoreEntitySet="MYT_Configuracion_Informes"> <MappingFragment StoreEntitySet="MYT_Configuracion_Informes">

View File

@ -490,6 +490,9 @@
<Compile Include="GEN_FicherosASCII.cs"> <Compile Include="GEN_FicherosASCII.cs">
<DependentUpon>EF_BaseDatos.tt</DependentUpon> <DependentUpon>EF_BaseDatos.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="GEN_Firmas_Electronicas.cs">
<DependentUpon>EF_BaseDatos.tt</DependentUpon>
</Compile>
<Compile Include="GEN_ImpuestosCabecera.cs"> <Compile Include="GEN_ImpuestosCabecera.cs">
<DependentUpon>EF_BaseDatos.tt</DependentUpon> <DependentUpon>EF_BaseDatos.tt</DependentUpon>
</Compile> </Compile>
@ -1714,6 +1717,7 @@
<Compile Include="Script_Actualizacion\Scripts_Version_1419.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1419.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1418.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1418.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1417.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1417.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1440.cs" />
<Compile Include="Script_Actualizacion\Versiones_EF.cs" /> <Compile Include="Script_Actualizacion\Versiones_EF.cs" />
<Compile Include="Script_Iniciales\Scripts_Iniciales.cs" /> <Compile Include="Script_Iniciales\Scripts_Iniciales.cs" />
<Compile Include="SGA_InventarioCabecera_TMP.cs"> <Compile Include="SGA_InventarioCabecera_TMP.cs">

View File

@ -1,9 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Este código se generó a partir de una plantilla. // This code was generated from a template.
// //
// Los cambios manuales en este archivo pueden causar un comportamiento inesperado de la aplicación. // Manual changes to this file may cause unexpected behavior in your application.
// Los cambios manuales en este archivo se sobrescribirán si se regenera el código. // Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -16,6 +16,7 @@ namespace Exferia_EntityFramework
{ {
public GEN_Empresas() public GEN_Empresas()
{ {
this.GEN_Firmas_Electronicas = new HashSet<GEN_Firmas_Electronicas>();
this.CRM_ClientesPotenciales = new HashSet<CRM_ClientesPotenciales>(); this.CRM_ClientesPotenciales = new HashSet<CRM_ClientesPotenciales>();
this.CRM_Terminales = new HashSet<CRM_Terminales>(); this.CRM_Terminales = new HashSet<CRM_Terminales>();
this.CTA_AmortizacionesCabecera = new HashSet<CTA_AmortizacionesCabecera>(); this.CTA_AmortizacionesCabecera = new HashSet<CTA_AmortizacionesCabecera>();
@ -193,6 +194,7 @@ namespace Exferia_EntityFramework
public string NRBE { get; set; } public string NRBE { get; set; }
public Nullable<bool> permiteCobrarAlbaran { get; set; } public Nullable<bool> permiteCobrarAlbaran { get; set; }
public virtual ICollection<GEN_Firmas_Electronicas> GEN_Firmas_Electronicas { get; set; }
public virtual ICollection<CRM_ClientesPotenciales> CRM_ClientesPotenciales { get; set; } public virtual ICollection<CRM_ClientesPotenciales> CRM_ClientesPotenciales { get; set; }
public virtual ICollection<CRM_Terminales> CRM_Terminales { get; set; } public virtual ICollection<CRM_Terminales> CRM_Terminales { get; set; }
public virtual ICollection<CTA_AmortizacionesCabecera> CTA_AmortizacionesCabecera { get; set; } public virtual ICollection<CTA_AmortizacionesCabecera> CTA_AmortizacionesCabecera { get; set; }

View File

@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Exferia_EntityFramework
{
using System;
using System.Collections.Generic;
public partial class GEN_Firmas_Electronicas
{
public long id { get; set; }
public string codigo { get; set; }
public string descripcion { get; set; }
public long idEmpresa { get; set; }
public Nullable<System.DateTime> fecha_fin { get; set; }
public string text_perm { get; set; }
public virtual GEN_Empresas GEN_Empresas { get; set; }
}
}

View File

@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_EntityFramework.Script_Actualizacion
{
class Scripts_Version_1440
{
public static Version G_VRS_VERSION = new Version("1.4.4.0");
public static long G_LNG_VERSION = 1437;
public static int G_INT_TIPO = 0;
public static string G_STR_SCRIPT =
//creaccion de rutas--------------------------------
$@"
IF (not exists
(
SELECT *
FROM INF_Rutas
WHERE id = 15
)
)
BEGIN
INSERT INTO INF_Rutas(id, codigo, descripcion, rutaFichero) VALUES (15, 15, 'Recepción de facturas electrónicas', 'C:\Pruebas\factura-e-recep')
END
IF (exists
(
SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'INF_Rutas'
)
) AND
(not exists
(
SELECT *
FROM INF_Rutas
WHERE id = 16
)
)
BEGIN
INSERT INTO INF_Rutas(id, codigo, descripcion, rutaFichero) VALUES (16, 16, 'Emisión de facturas electrónicas', 'C:\Pruebas\factura-e-emi')
END
"+
//CREAR TABLA GEN_Firmas_Electronicas---------------------------------------------------
" IF not exists " +
" ( " +
" SELECT * " +
" FROM INFORMATION_SCHEMA.TABLES " +
" WHERE TABLE_NAME = 'GEN_Firmas_Electronicas' " +
" ) " +
" BEGIN " +
" CREATE TABLE[dbo].[GEN_Firmas_Electronicas]" +
" (" +
" [id][bigint] IDENTITY(1,1) NOT NULL," +
" [codigo] [varchar](10) NOT NULL," +
" [descripcion] [varchar](50) NOT NULL," +
" [fecha_fin] [datetime] NOT NULL," +
" [idEmpresa] [bigint] NULL," +
" [text_perm][text] NULL," +
" CONSTRAINT[PK_GEN_Firmas_Electronicas] PRIMARY KEY CLUSTERED" +
" (" +
" [id] ASC" +
" )WITH(PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON[PRIMARY]" +
" ) ON[PRIMARY]" +
"ALTER TABLE [dbo].[GEN_Firmas_Electronicas] WITH CHECK ADD CONSTRAINT [FK_GEN_Firmas_Electronicas_GEN_Empresas] FOREIGN KEY([idEmpresa])"+
"REFERENCES [dbo].[GEN_Empresas] ([id])"+
" END "
+
//opciones firmas electronicas
$@" IF (not exists
(
SELECT*
FROM PRV_Opciones
WHERE opcion = 'GEN_FIRMAS_ELECTRONICAS'
)
)
BEGIN
INSERT into PRV_Opciones
(opcion, libreria, descripcionAMostrar, mostrable_Arbol, fechaCreacion)
VALUES
('GEN_FIRMAS_ELECTRONICAS', 'Exferia_General', 'Firmas electronicas',1, GETDATE())
END" +
" END " +
//opciones detalle firmas electronicas
$@" IF (not exists
(
SELECT*
FROM PRV_OpcionesDetalle
WHERE opcion = 'GEN_FIRMAS_ELECTRONICAS'
)
)
BEGIN
INSERT into PRV_OpcionesDetalle
(opcion, descripcion_TituloListado, descripcion_TituloMantenimiento, descripcion_Plural, descripcion_Singular)
VALUES
('GEN_FIRMAS_ELECTRONICAS', 'Firmas electronicas', 'Firmas electronicas', 'Firmas electronicas', 'Firmas electronicas')
END" +
" END "
;
}
}

View File

@ -0,0 +1,971 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
IIS configuration sections.
For schema documentation, see
%IIS_BIN%\config\schema\IIS_schema.xml.
Please make a backup of this file before making any changes to it.
NOTE: The following environment variables are available to be used
within this file and are understood by the IIS Express.
%IIS_USER_HOME% - The IIS Express home directory for the user
%IIS_SITES_HOME% - The default home directory for sites
%IIS_BIN% - The location of the IIS Express binaries
%SYSTEMDRIVE% - The drive letter of %IIS_BIN%
-->
<configuration>
<!--
The <configSections> section controls the registration of sections.
Section is the basic unit of deployment, locking, searching and
containment for configuration settings.
Every section belongs to one section group.
A section group is a container of logically-related sections.
Sections cannot be nested.
Section groups may be nested.
<section
name="" [Required, Collection Key] [XML name of the section]
allowDefinition="Everywhere" [MachineOnly|MachineToApplication|AppHostOnly|Everywhere] [Level where it can be set]
overrideModeDefault="Allow" [Allow|Deny] [Default delegation mode]
allowLocation="true" [true|false] [Allowed in location tags]
/>
The recommended way to unlock sections is by using a location tag:
<location path="Default Web Site" overrideMode="Allow">
<system.webServer>
<asp />
</system.webServer>
</location>
-->
<configSections>
<sectionGroup name="system.applicationHost">
<section name="applicationPools" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="configHistory" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="customMetadata" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="listenerAdapters" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="log" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="serviceAutoStartProviders" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="sites" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="webLimits" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
</sectionGroup>
<sectionGroup name="system.webServer">
<section name="asp" overrideModeDefault="Deny" />
<section name="caching" overrideModeDefault="Allow" />
<section name="cgi" overrideModeDefault="Deny" />
<section name="defaultDocument" overrideModeDefault="Allow" />
<section name="directoryBrowse" overrideModeDefault="Allow" />
<section name="fastCgi" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="globalModules" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="handlers" overrideModeDefault="Deny" />
<section name="httpCompression" overrideModeDefault="Allow" allowDefinition="Everywhere" />
<section name="httpErrors" overrideModeDefault="Allow" />
<section name="httpLogging" overrideModeDefault="Deny" />
<section name="httpProtocol" overrideModeDefault="Allow" />
<section name="httpRedirect" overrideModeDefault="Allow" />
<section name="httpTracing" overrideModeDefault="Deny" />
<section name="isapiFilters" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="applicationInitialization" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
<section name="odbcLogging" overrideModeDefault="Deny" />
<sectionGroup name="security">
<section name="access" overrideModeDefault="Deny" />
<section name="applicationDependencies" overrideModeDefault="Deny" />
<sectionGroup name="authentication">
<section name="anonymousAuthentication" overrideModeDefault="Deny" />
<section name="basicAuthentication" overrideModeDefault="Deny" />
<section name="clientCertificateMappingAuthentication" overrideModeDefault="Deny" />
<section name="digestAuthentication" overrideModeDefault="Deny" />
<section name="iisClientCertificateMappingAuthentication" overrideModeDefault="Deny" />
<section name="windowsAuthentication" overrideModeDefault="Deny" />
</sectionGroup>
<section name="authorization" overrideModeDefault="Allow" />
<section name="ipSecurity" overrideModeDefault="Deny" />
<section name="dynamicIpSecurity" overrideModeDefault="Deny" />
<section name="isapiCgiRestriction" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="requestFiltering" overrideModeDefault="Allow" />
</sectionGroup>
<section name="serverRuntime" overrideModeDefault="Deny" />
<section name="serverSideInclude" overrideModeDefault="Deny" />
<section name="staticContent" overrideModeDefault="Allow" />
<sectionGroup name="tracing">
<section name="traceFailedRequests" overrideModeDefault="Allow" />
<section name="traceProviderDefinitions" overrideModeDefault="Deny" />
</sectionGroup>
<section name="urlCompression" overrideModeDefault="Allow" />
<section name="validation" overrideModeDefault="Allow" />
<sectionGroup name="webdav">
<section name="globalSettings" overrideModeDefault="Deny" />
<section name="authoring" overrideModeDefault="Deny" />
<section name="authoringRules" overrideModeDefault="Deny" />
</sectionGroup>
<sectionGroup name="rewrite">
<section name="allowedServerVariables" overrideModeDefault="Deny" />
<section name="rules" overrideModeDefault="Allow" />
<section name="outboundRules" overrideModeDefault="Allow" />
<section name="globalRules" overrideModeDefault="Deny" allowDefinition="AppHostOnly" />
<section name="providers" overrideModeDefault="Allow" />
<section name="rewriteMaps" overrideModeDefault="Allow" />
</sectionGroup>
<section name="webSocket" overrideModeDefault="Deny" />
<section name="aspNetCore" overrideModeDefault="Allow" /></sectionGroup>
</configSections>
<configProtectedData>
<providers>
<add name="IISWASOnlyRsaProvider" type="" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="iisWasKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="AesProvider" type="Microsoft.ApplicationHost.AesProtectedConfigurationProvider" description="Uses an AES session key to encrypt and decrypt" keyContainerName="iisConfigurationKey" cspProviderName="" useOAEP="false" useMachineContainer="true" sessionKey="AQIAAA5mAAAApAAA/HKxkz6alrlAPez0IUgujj/6k3WxCDriHp6jvpv3yEZmo7h6SMzGLxo4mTrIQVHSkB7tmElHKfUFTzE2BWF7nFWHY6Z6qmGBauFzwJMwESjril7Gjz69RBFH259HQ6aRDq9Xfx7U7H4HtdmnKNqGjgl/hwPQBGeIlWiDh+sYv3vKB0QU971tjX6H2B+9armlnC8UOuA6JYMDMI/VLLL16sng0fWAy5JYe0YVABVjiAWDW264RZW9Tr1Oax4qHZKg+SdjULxeOc2YmpX+d0yeITo1HkPF1hN1gHpIPIUDo05ilHUNfR3OkjVCIQK4cFKCq1s8NH+y+13MxUC4Fn1AlQ==" />
<add name="IISWASOnlyAesProvider" type="Microsoft.ApplicationHost.AesProtectedConfigurationProvider" description="Uses an AES session key to encrypt and decrypt" keyContainerName="iisWasKey" cspProviderName="" useOAEP="false" useMachineContainer="true" sessionKey="AQIAAA5mAAAApAAALmU8lTC+v2qtfQiiiquvvLpUQqKLEXs+jSKoWCM/uPhyB++k4dwug19mGidNK5FYiWK2KYE1yhjVJcbp12E98Q0R2nT7eBiCMY2JairxQ591rqABK7keGaIjwH7PwGzSpILl3RJ4YFvJ/7ZXEJxeDZIjW8ZxWVXx+/VyHs9U3WguLEkgMUX3jrxJi8LouxaIVPJAv/YQ1ZCWs8zImitxX/C/7o7yaIxznfsN5nGQzQfpUDPeby99aw2zPVTtZI2LaWIBON8guABvZ6JtJVDWmfdK6sodbnwdZkr6/Z2rfvamT1dC1SpQrGG7ulR/f9/GXvCaW10ZVKxekBF/CYlNMg==" />
</providers>
</configProtectedData>
<system.applicationHost>
<applicationPools>
<add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
<add name="Clr4ClassicAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Classic" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
<add name="Clr2IntegratedAppPool" managedRuntimeVersion="v2.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
<add name="Clr2ClassicAppPool" managedRuntimeVersion="v2.0" managedPipelineMode="Classic" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
<add name="UnmanagedClassicAppPool" managedRuntimeVersion="" managedPipelineMode="Classic" autoStart="true" />
<applicationPoolDefaults managedRuntimeVersion="v4.0">
<processModel loadUserProfile="true" setProfileEnvironment="false" />
</applicationPoolDefaults>
</applicationPools>
<!--
The <listenerAdapters> section defines the protocols with which the
Windows Process Activation Service (WAS) binds.
-->
<listenerAdapters>
<add name="http" />
</listenerAdapters>
<sites>
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
<siteDefaults>
<!-- To enable logging, please change the below attribute "enabled" to "true" -->
<logFile logFormat="W3C" directory="%AppData%\Microsoft\IISExpressLogs" enabled="false" />
<traceFailedRequestsLogging directory="%AppData%\Microsoft" enabled="false" maxLogFileSizeKB="1024" />
</siteDefaults>
<applicationDefaults applicationPool="Clr4IntegratedAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
<webLimits />
</system.applicationHost>
<system.webServer>
<serverRuntime />
<asp scriptErrorSentToBrowser="true">
<cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
<limits />
</asp>
<caching enabled="true" enableKernelCache="true">
</caching>
<cgi />
<defaultDocument enabled="true">
<files>
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
<directoryBrowse enabled="false" />
<fastCgi />
<!--
The <globalModules> section defines all native-code modules.
To enable a module, specify it in the <modules> section.
-->
<globalModules>
<add name="HttpLoggingModule" image="%IIS_BIN%\loghttp.dll" />
<add name="UriCacheModule" image="%IIS_BIN%\cachuri.dll" />
<add name="TokenCacheModule" image="%IIS_BIN%\cachtokn.dll" />
<add name="DynamicCompressionModule" image="%IIS_BIN%\compdyn.dll" />
<add name="StaticCompressionModule" image="%IIS_BIN%\compstat.dll" />
<add name="DefaultDocumentModule" image="%IIS_BIN%\defdoc.dll" />
<add name="DirectoryListingModule" image="%IIS_BIN%\dirlist.dll" />
<add name="ProtocolSupportModule" image="%IIS_BIN%\protsup.dll" />
<add name="HttpRedirectionModule" image="%IIS_BIN%\redirect.dll" />
<add name="ServerSideIncludeModule" image="%IIS_BIN%\iis_ssi.dll" />
<add name="StaticFileModule" image="%IIS_BIN%\static.dll" />
<add name="AnonymousAuthenticationModule" image="%IIS_BIN%\authanon.dll" />
<add name="CertificateMappingAuthenticationModule" image="%IIS_BIN%\authcert.dll" />
<add name="UrlAuthorizationModule" image="%IIS_BIN%\urlauthz.dll" />
<add name="BasicAuthenticationModule" image="%IIS_BIN%\authbas.dll" />
<add name="WindowsAuthenticationModule" image="%IIS_BIN%\authsspi.dll" />
<add name="IISCertificateMappingAuthenticationModule" image="%IIS_BIN%\authmap.dll" />
<add name="IpRestrictionModule" image="%IIS_BIN%\iprestr.dll" />
<add name="DynamicIpRestrictionModule" image="%IIS_BIN%\diprestr.dll" />
<add name="RequestFilteringModule" image="%IIS_BIN%\modrqflt.dll" />
<add name="CustomLoggingModule" image="%IIS_BIN%\logcust.dll" />
<add name="CustomErrorModule" image="%IIS_BIN%\custerr.dll" />
<add name="FailedRequestsTracingModule" image="%IIS_BIN%\iisfreb.dll" />
<add name="RequestMonitorModule" image="%IIS_BIN%\iisreqs.dll" />
<add name="IsapiModule" image="%IIS_BIN%\isapi.dll" />
<add name="IsapiFilterModule" image="%IIS_BIN%\filter.dll" />
<add name="CgiModule" image="%IIS_BIN%\cgi.dll" />
<add name="FastCgiModule" image="%IIS_BIN%\iisfcgi.dll" />
<!-- <add name="WebDAVModule" image="%IIS_BIN%\webdav.dll" /> -->
<add name="RewriteModule" image="%IIS_BIN%\rewrite.dll" />
<add name="ConfigurationValidationModule" image="%IIS_BIN%\validcfg.dll" />
<add name="WebSocketModule" image="%IIS_BIN%\iiswsock.dll" />
<add name="WebMatrixSupportModule" image="%IIS_BIN%\webmatrixsup.dll" />
<add name="ManagedEngine" image="%windir%\Microsoft.NET\Framework\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness32" />
<add name="ManagedEngine64" image="%windir%\Microsoft.NET\Framework64\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness64" />
<add name="ManagedEngineV4.0_32bit" image="%windir%\Microsoft.NET\Framework\v4.0.30319\webengine4.dll" preCondition="integratedMode,runtimeVersionv4.0,bitness32" />
<add name="ManagedEngineV4.0_64bit" image="%windir%\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll" preCondition="integratedMode,runtimeVersionv4.0,bitness64" />
<add name="ApplicationInitializationModule" image="%IIS_BIN%\warmup.dll" />
<add name="AspNetCoreModuleV2" image="%IIS_BIN%\Asp.Net Core Module\V2\aspnetcorev2.dll" />
</globalModules>
<httpCompression directory="%TEMP%">
<scheme name="gzip" dll="%IIS_BIN%\gzip.dll" />
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="image/svg+xml" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
<httpErrors lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath">
<error statusCode="401" prefixLanguageFilePath="%IIS_BIN%\custerr" path="401.htm" />
<error statusCode="403" prefixLanguageFilePath="%IIS_BIN%\custerr" path="403.htm" />
<error statusCode="404" prefixLanguageFilePath="%IIS_BIN%\custerr" path="404.htm" />
<error statusCode="405" prefixLanguageFilePath="%IIS_BIN%\custerr" path="405.htm" />
<error statusCode="406" prefixLanguageFilePath="%IIS_BIN%\custerr" path="406.htm" />
<error statusCode="412" prefixLanguageFilePath="%IIS_BIN%\custerr" path="412.htm" />
<error statusCode="500" prefixLanguageFilePath="%IIS_BIN%\custerr" path="500.htm" />
<error statusCode="501" prefixLanguageFilePath="%IIS_BIN%\custerr" path="501.htm" />
<error statusCode="502" prefixLanguageFilePath="%IIS_BIN%\custerr" path="502.htm" />
</httpErrors>
<httpLogging dontLog="false" />
<httpProtocol>
<customHeaders>
<clear />
<add name="X-Powered-By" value="ASP.NET" />
</customHeaders>
<redirectHeaders>
<clear />
</redirectHeaders>
</httpProtocol>
<httpRedirect enabled="false" />
<httpTracing />
<isapiFilters>
<filter name="ASP.Net_2.0.50727-64" path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll" enableCache="true" preCondition="bitness64,runtimeVersionv2.0" />
<filter name="ASP.Net_2.0.50727.0" path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enableCache="true" preCondition="bitness32,runtimeVersionv2.0" />
<filter name="ASP.Net_2.0_for_v1.1" path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enableCache="true" preCondition="runtimeVersionv1.1" />
<filter name="ASP.Net_4.0_32bit" path="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" enableCache="true" preCondition="bitness32,runtimeVersionv4.0" />
<filter name="ASP.Net_4.0_64bit" path="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_filter.dll" enableCache="true" preCondition="bitness64,runtimeVersionv4.0" />
</isapiFilters>
<odbcLogging />
<security>
<access sslFlags="None" />
<applicationDependencies>
<application name="Active Server Pages" groupId="ASP" />
</applicationDependencies>
<authentication>
<anonymousAuthentication enabled="true" userName="" />
<basicAuthentication enabled="false" />
<clientCertificateMappingAuthentication enabled="false" />
<digestAuthentication enabled="false" />
<iisClientCertificateMappingAuthentication enabled="false">
</iisClientCertificateMappingAuthentication>
<windowsAuthentication enabled="false">
<providers>
<add value="Negotiate" />
<add value="NTLM" />
</providers>
</windowsAuthentication>
</authentication>
<authorization>
<add accessType="Allow" users="*" />
</authorization>
<ipSecurity allowUnlisted="true" />
<isapiCgiRestriction notListedIsapisAllowed="true" notListedCgisAllowed="true">
<add path="%windir%\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll" allowed="true" groupId="ASP.NET_v4.0" description="ASP.NET_v4.0" />
<add path="%windir%\Microsoft.NET\Framework\v4.0.30319\webengine4.dll" allowed="true" groupId="ASP.NET_v4.0" description="ASP.NET_v4.0" />
<add path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
<add path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" allowed="true" groupId="ASP.NET v2.0.50727" description="ASP.NET v2.0.50727" />
</isapiCgiRestriction>
<requestFiltering>
<fileExtensions allowUnlisted="true" applyToWebDAV="true">
<add fileExtension=".asa" allowed="false" />
<add fileExtension=".asax" allowed="false" />
<add fileExtension=".ascx" allowed="false" />
<add fileExtension=".master" allowed="false" />
<add fileExtension=".skin" allowed="false" />
<add fileExtension=".browser" allowed="false" />
<add fileExtension=".sitemap" allowed="false" />
<add fileExtension=".config" allowed="false" />
<add fileExtension=".cs" allowed="false" />
<add fileExtension=".csproj" allowed="false" />
<add fileExtension=".vb" allowed="false" />
<add fileExtension=".vbproj" allowed="false" />
<add fileExtension=".webinfo" allowed="false" />
<add fileExtension=".licx" allowed="false" />
<add fileExtension=".resx" allowed="false" />
<add fileExtension=".resources" allowed="false" />
<add fileExtension=".mdb" allowed="false" />
<add fileExtension=".vjsproj" allowed="false" />
<add fileExtension=".java" allowed="false" />
<add fileExtension=".jsl" allowed="false" />
<add fileExtension=".ldb" allowed="false" />
<add fileExtension=".dsdgm" allowed="false" />
<add fileExtension=".ssdgm" allowed="false" />
<add fileExtension=".lsad" allowed="false" />
<add fileExtension=".ssmap" allowed="false" />
<add fileExtension=".cd" allowed="false" />
<add fileExtension=".dsprototype" allowed="false" />
<add fileExtension=".lsaprototype" allowed="false" />
<add fileExtension=".sdm" allowed="false" />
<add fileExtension=".sdmDocument" allowed="false" />
<add fileExtension=".mdf" allowed="false" />
<add fileExtension=".ldf" allowed="false" />
<add fileExtension=".ad" allowed="false" />
<add fileExtension=".dd" allowed="false" />
<add fileExtension=".ldd" allowed="false" />
<add fileExtension=".sd" allowed="false" />
<add fileExtension=".adprototype" allowed="false" />
<add fileExtension=".lddprototype" allowed="false" />
<add fileExtension=".exclude" allowed="false" />
<add fileExtension=".refresh" allowed="false" />
<add fileExtension=".compiled" allowed="false" />
<add fileExtension=".msgx" allowed="false" />
<add fileExtension=".vsdisco" allowed="false" />
<add fileExtension=".rules" allowed="false" />
</fileExtensions>
<verbs allowUnlisted="true" applyToWebDAV="true" />
<hiddenSegments applyToWebDAV="true">
<add segment="web.config" />
<add segment="bin" />
<add segment="App_code" />
<add segment="App_GlobalResources" />
<add segment="App_LocalResources" />
<add segment="App_WebReferences" />
<add segment="App_Data" />
<add segment="App_Browsers" />
</hiddenSegments>
</requestFiltering>
</security>
<serverSideInclude ssiExecDisable="false" />
<staticContent lockAttributes="isDocFooterFileName">
<mimeMap fileExtension=".323" mimeType="text/h323" />
<mimeMap fileExtension=".3g2" mimeType="video/3gpp2" />
<mimeMap fileExtension=".3gp2" mimeType="video/3gpp2" />
<mimeMap fileExtension=".3gp" mimeType="video/3gpp" />
<mimeMap fileExtension=".3gpp" mimeType="video/3gpp" />
<mimeMap fileExtension=".aac" mimeType="audio/aac" />
<mimeMap fileExtension=".aaf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".aca" mimeType="application/octet-stream" />
<mimeMap fileExtension=".accdb" mimeType="application/msaccess" />
<mimeMap fileExtension=".accde" mimeType="application/msaccess" />
<mimeMap fileExtension=".accdt" mimeType="application/msaccess" />
<mimeMap fileExtension=".acx" mimeType="application/internet-property-stream" />
<mimeMap fileExtension=".adt" mimeType="audio/vnd.dlna.adts" />
<mimeMap fileExtension=".adts" mimeType="audio/vnd.dlna.adts" />
<mimeMap fileExtension=".afm" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ai" mimeType="application/postscript" />
<mimeMap fileExtension=".aif" mimeType="audio/x-aiff" />
<mimeMap fileExtension=".aifc" mimeType="audio/aiff" />
<mimeMap fileExtension=".aiff" mimeType="audio/aiff" />
<mimeMap fileExtension=".appcache" mimeType="text/cache-manifest" />
<mimeMap fileExtension=".application" mimeType="application/x-ms-application" />
<mimeMap fileExtension=".art" mimeType="image/x-jg" />
<mimeMap fileExtension=".asd" mimeType="application/octet-stream" />
<mimeMap fileExtension=".asf" mimeType="video/x-ms-asf" />
<mimeMap fileExtension=".asi" mimeType="application/octet-stream" />
<mimeMap fileExtension=".asm" mimeType="text/plain" />
<mimeMap fileExtension=".asr" mimeType="video/x-ms-asf" />
<mimeMap fileExtension=".asx" mimeType="video/x-ms-asf" />
<mimeMap fileExtension=".atom" mimeType="application/atom+xml" />
<mimeMap fileExtension=".au" mimeType="audio/basic" />
<mimeMap fileExtension=".avi" mimeType="video/avi" />
<mimeMap fileExtension=".axs" mimeType="application/olescript" />
<mimeMap fileExtension=".bas" mimeType="text/plain" />
<mimeMap fileExtension=".bcpio" mimeType="application/x-bcpio" />
<mimeMap fileExtension=".bin" mimeType="application/octet-stream" />
<mimeMap fileExtension=".bmp" mimeType="image/bmp" />
<mimeMap fileExtension=".c" mimeType="text/plain" />
<mimeMap fileExtension=".cab" mimeType="application/vnd.ms-cab-compressed" />
<mimeMap fileExtension=".calx" mimeType="application/vnd.ms-office.calx" />
<mimeMap fileExtension=".cat" mimeType="application/vnd.ms-pki.seccat" />
<mimeMap fileExtension=".cdf" mimeType="application/x-cdf" />
<mimeMap fileExtension=".chm" mimeType="application/octet-stream" />
<mimeMap fileExtension=".class" mimeType="application/x-java-applet" />
<mimeMap fileExtension=".clp" mimeType="application/x-msclip" />
<mimeMap fileExtension=".cmx" mimeType="image/x-cmx" />
<mimeMap fileExtension=".cnf" mimeType="text/plain" />
<mimeMap fileExtension=".cod" mimeType="image/cis-cod" />
<mimeMap fileExtension=".cpio" mimeType="application/x-cpio" />
<mimeMap fileExtension=".cpp" mimeType="text/plain" />
<mimeMap fileExtension=".crd" mimeType="application/x-mscardfile" />
<mimeMap fileExtension=".crl" mimeType="application/pkix-crl" />
<mimeMap fileExtension=".crt" mimeType="application/x-x509-ca-cert" />
<mimeMap fileExtension=".csh" mimeType="application/x-csh" />
<mimeMap fileExtension=".css" mimeType="text/css" />
<mimeMap fileExtension=".csv" mimeType="application/octet-stream" />
<mimeMap fileExtension=".cur" mimeType="application/octet-stream" />
<mimeMap fileExtension=".dcr" mimeType="application/x-director" />
<mimeMap fileExtension=".deploy" mimeType="application/octet-stream" />
<mimeMap fileExtension=".der" mimeType="application/x-x509-ca-cert" />
<mimeMap fileExtension=".dib" mimeType="image/bmp" />
<mimeMap fileExtension=".dir" mimeType="application/x-director" />
<mimeMap fileExtension=".disco" mimeType="text/xml" />
<mimeMap fileExtension=".dll" mimeType="application/x-msdownload" />
<mimeMap fileExtension=".dll.config" mimeType="text/xml" />
<mimeMap fileExtension=".dlm" mimeType="text/dlm" />
<mimeMap fileExtension=".doc" mimeType="application/msword" />
<mimeMap fileExtension=".docm" mimeType="application/vnd.ms-word.document.macroEnabled.12" />
<mimeMap fileExtension=".docx" mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
<mimeMap fileExtension=".dot" mimeType="application/msword" />
<mimeMap fileExtension=".dotm" mimeType="application/vnd.ms-word.template.macroEnabled.12" />
<mimeMap fileExtension=".dotx" mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.template" />
<mimeMap fileExtension=".dsp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".dtd" mimeType="text/xml" />
<mimeMap fileExtension=".dvi" mimeType="application/x-dvi" />
<mimeMap fileExtension=".dvr-ms" mimeType="video/x-ms-dvr" />
<mimeMap fileExtension=".dwf" mimeType="drawing/x-dwf" />
<mimeMap fileExtension=".dwp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".dxr" mimeType="application/x-director" />
<mimeMap fileExtension=".eml" mimeType="message/rfc822" />
<mimeMap fileExtension=".emz" mimeType="application/octet-stream" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".eps" mimeType="application/postscript" />
<mimeMap fileExtension=".esd" mimeType="application/vnd.ms-cab-compressed" />
<mimeMap fileExtension=".etx" mimeType="text/x-setext" />
<mimeMap fileExtension=".evy" mimeType="application/envoy" />
<mimeMap fileExtension=".exe" mimeType="application/octet-stream" />
<mimeMap fileExtension=".exe.config" mimeType="text/xml" />
<mimeMap fileExtension=".fdf" mimeType="application/vnd.fdf" />
<mimeMap fileExtension=".fif" mimeType="application/fractals" />
<mimeMap fileExtension=".fla" mimeType="application/octet-stream" />
<mimeMap fileExtension=".flr" mimeType="x-world/x-vrml" />
<mimeMap fileExtension=".flv" mimeType="video/x-flv" />
<mimeMap fileExtension=".gif" mimeType="image/gif" />
<mimeMap fileExtension=".glb" mimeType="model/gltf-binary" />
<mimeMap fileExtension=".gtar" mimeType="application/x-gtar" />
<mimeMap fileExtension=".gz" mimeType="application/x-gzip" />
<mimeMap fileExtension=".h" mimeType="text/plain" />
<mimeMap fileExtension=".hdf" mimeType="application/x-hdf" />
<mimeMap fileExtension=".hdml" mimeType="text/x-hdml" />
<mimeMap fileExtension=".hhc" mimeType="application/x-oleobject" />
<mimeMap fileExtension=".hhk" mimeType="application/octet-stream" />
<mimeMap fileExtension=".hhp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".hlp" mimeType="application/winhlp" />
<mimeMap fileExtension=".hqx" mimeType="application/mac-binhex40" />
<mimeMap fileExtension=".hta" mimeType="application/hta" />
<mimeMap fileExtension=".htc" mimeType="text/x-component" />
<mimeMap fileExtension=".htm" mimeType="text/html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
<mimeMap fileExtension=".htt" mimeType="text/webviewhtml" />
<mimeMap fileExtension=".hxt" mimeType="text/html" />
<mimeMap fileExtension=".ico" mimeType="image/x-icon" />
<mimeMap fileExtension=".ics" mimeType="text/calendar" />
<mimeMap fileExtension=".ief" mimeType="image/ief" />
<mimeMap fileExtension=".iii" mimeType="application/x-iphone" />
<mimeMap fileExtension=".inf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ins" mimeType="application/x-internet-signup" />
<mimeMap fileExtension=".isp" mimeType="application/x-internet-signup" />
<mimeMap fileExtension=".IVF" mimeType="video/x-ivf" />
<mimeMap fileExtension=".jar" mimeType="application/java-archive" />
<mimeMap fileExtension=".java" mimeType="application/octet-stream" />
<mimeMap fileExtension=".jck" mimeType="application/liquidmotion" />
<mimeMap fileExtension=".jcz" mimeType="application/liquidmotion" />
<mimeMap fileExtension=".jfif" mimeType="image/pjpeg" />
<mimeMap fileExtension=".jpb" mimeType="application/octet-stream" />
<mimeMap fileExtension=".jpe" mimeType="image/jpeg" />
<mimeMap fileExtension=".jpeg" mimeType="image/jpeg" />
<mimeMap fileExtension=".jpg" mimeType="image/jpeg" />
<mimeMap fileExtension=".js" mimeType="application/javascript" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".jsonld" mimeType="application/ld+json" />
<mimeMap fileExtension=".jsx" mimeType="text/jscript" />
<mimeMap fileExtension=".latex" mimeType="application/x-latex" />
<mimeMap fileExtension=".less" mimeType="text/css" />
<mimeMap fileExtension=".lit" mimeType="application/x-ms-reader" />
<mimeMap fileExtension=".lpk" mimeType="application/octet-stream" />
<mimeMap fileExtension=".lsf" mimeType="video/x-la-asf" />
<mimeMap fileExtension=".lsx" mimeType="video/x-la-asf" />
<mimeMap fileExtension=".lzh" mimeType="application/octet-stream" />
<mimeMap fileExtension=".m13" mimeType="application/x-msmediaview" />
<mimeMap fileExtension=".m14" mimeType="application/x-msmediaview" />
<mimeMap fileExtension=".m1v" mimeType="video/mpeg" />
<mimeMap fileExtension=".m2ts" mimeType="video/vnd.dlna.mpeg-tts" />
<mimeMap fileExtension=".m3u" mimeType="audio/x-mpegurl" />
<mimeMap fileExtension=".m4a" mimeType="audio/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/mp4" />
<mimeMap fileExtension=".man" mimeType="application/x-troff-man" />
<mimeMap fileExtension=".manifest" mimeType="application/x-ms-manifest" />
<mimeMap fileExtension=".map" mimeType="text/plain" />
<mimeMap fileExtension=".mdb" mimeType="application/x-msaccess" />
<mimeMap fileExtension=".mdp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".me" mimeType="application/x-troff-me" />
<mimeMap fileExtension=".mht" mimeType="message/rfc822" />
<mimeMap fileExtension=".mhtml" mimeType="message/rfc822" />
<mimeMap fileExtension=".mid" mimeType="audio/mid" />
<mimeMap fileExtension=".midi" mimeType="audio/mid" />
<mimeMap fileExtension=".mix" mimeType="application/octet-stream" />
<mimeMap fileExtension=".mmf" mimeType="application/x-smaf" />
<mimeMap fileExtension=".mno" mimeType="text/xml" />
<mimeMap fileExtension=".mny" mimeType="application/x-msmoney" />
<mimeMap fileExtension=".mov" mimeType="video/quicktime" />
<mimeMap fileExtension=".movie" mimeType="video/x-sgi-movie" />
<mimeMap fileExtension=".mp2" mimeType="video/mpeg" />
<mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".mp4v" mimeType="video/mp4" />
<mimeMap fileExtension=".mpa" mimeType="video/mpeg" />
<mimeMap fileExtension=".mpe" mimeType="video/mpeg" />
<mimeMap fileExtension=".mpeg" mimeType="video/mpeg" />
<mimeMap fileExtension=".mpg" mimeType="video/mpeg" />
<mimeMap fileExtension=".mpp" mimeType="application/vnd.ms-project" />
<mimeMap fileExtension=".mpv2" mimeType="video/mpeg" />
<mimeMap fileExtension=".ms" mimeType="application/x-troff-ms" />
<mimeMap fileExtension=".msi" mimeType="application/octet-stream" />
<mimeMap fileExtension=".mso" mimeType="application/octet-stream" />
<mimeMap fileExtension=".mvb" mimeType="application/x-msmediaview" />
<mimeMap fileExtension=".mvc" mimeType="application/x-miva-compiled" />
<mimeMap fileExtension=".nc" mimeType="application/x-netcdf" />
<mimeMap fileExtension=".nsc" mimeType="video/x-ms-asf" />
<mimeMap fileExtension=".nws" mimeType="message/rfc822" />
<mimeMap fileExtension=".ocx" mimeType="application/octet-stream" />
<mimeMap fileExtension=".oda" mimeType="application/oda" />
<mimeMap fileExtension=".odc" mimeType="text/x-ms-odc" />
<mimeMap fileExtension=".ods" mimeType="application/oleobject" />
<mimeMap fileExtension=".oga" mimeType="audio/ogg" />
<mimeMap fileExtension=".ogg" mimeType="video/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".one" mimeType="application/onenote" />
<mimeMap fileExtension=".onea" mimeType="application/onenote" />
<mimeMap fileExtension=".onetoc" mimeType="application/onenote" />
<mimeMap fileExtension=".onetoc2" mimeType="application/onenote" />
<mimeMap fileExtension=".onetmp" mimeType="application/onenote" />
<mimeMap fileExtension=".onepkg" mimeType="application/onenote" />
<mimeMap fileExtension=".osdx" mimeType="application/opensearchdescription+xml" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".p10" mimeType="application/pkcs10" />
<mimeMap fileExtension=".p12" mimeType="application/x-pkcs12" />
<mimeMap fileExtension=".p7b" mimeType="application/x-pkcs7-certificates" />
<mimeMap fileExtension=".p7c" mimeType="application/pkcs7-mime" />
<mimeMap fileExtension=".p7m" mimeType="application/pkcs7-mime" />
<mimeMap fileExtension=".p7r" mimeType="application/x-pkcs7-certreqresp" />
<mimeMap fileExtension=".p7s" mimeType="application/pkcs7-signature" />
<mimeMap fileExtension=".pbm" mimeType="image/x-portable-bitmap" />
<mimeMap fileExtension=".pcx" mimeType="application/octet-stream" />
<mimeMap fileExtension=".pcz" mimeType="application/octet-stream" />
<mimeMap fileExtension=".pdf" mimeType="application/pdf" />
<mimeMap fileExtension=".pfb" mimeType="application/octet-stream" />
<mimeMap fileExtension=".pfm" mimeType="application/octet-stream" />
<mimeMap fileExtension=".pfx" mimeType="application/x-pkcs12" />
<mimeMap fileExtension=".pgm" mimeType="image/x-portable-graymap" />
<mimeMap fileExtension=".pko" mimeType="application/vnd.ms-pki.pko" />
<mimeMap fileExtension=".pma" mimeType="application/x-perfmon" />
<mimeMap fileExtension=".pmc" mimeType="application/x-perfmon" />
<mimeMap fileExtension=".pml" mimeType="application/x-perfmon" />
<mimeMap fileExtension=".pmr" mimeType="application/x-perfmon" />
<mimeMap fileExtension=".pmw" mimeType="application/x-perfmon" />
<mimeMap fileExtension=".png" mimeType="image/png" />
<mimeMap fileExtension=".pnm" mimeType="image/x-portable-anymap" />
<mimeMap fileExtension=".pnz" mimeType="image/png" />
<mimeMap fileExtension=".pot" mimeType="application/vnd.ms-powerpoint" />
<mimeMap fileExtension=".potm" mimeType="application/vnd.ms-powerpoint.template.macroEnabled.12" />
<mimeMap fileExtension=".potx" mimeType="application/vnd.openxmlformats-officedocument.presentationml.template" />
<mimeMap fileExtension=".ppam" mimeType="application/vnd.ms-powerpoint.addin.macroEnabled.12" />
<mimeMap fileExtension=".ppm" mimeType="image/x-portable-pixmap" />
<mimeMap fileExtension=".pps" mimeType="application/vnd.ms-powerpoint" />
<mimeMap fileExtension=".ppsm" mimeType="application/vnd.ms-powerpoint.slideshow.macroEnabled.12" />
<mimeMap fileExtension=".ppsx" mimeType="application/vnd.openxmlformats-officedocument.presentationml.slideshow" />
<mimeMap fileExtension=".ppt" mimeType="application/vnd.ms-powerpoint" />
<mimeMap fileExtension=".pptm" mimeType="application/vnd.ms-powerpoint.presentation.macroEnabled.12" />
<mimeMap fileExtension=".pptx" mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
<mimeMap fileExtension=".prf" mimeType="application/pics-rules" />
<mimeMap fileExtension=".prm" mimeType="application/octet-stream" />
<mimeMap fileExtension=".prx" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ps" mimeType="application/postscript" />
<mimeMap fileExtension=".psd" mimeType="application/octet-stream" />
<mimeMap fileExtension=".psm" mimeType="application/octet-stream" />
<mimeMap fileExtension=".psp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".pub" mimeType="application/x-mspublisher" />
<mimeMap fileExtension=".qt" mimeType="video/quicktime" />
<mimeMap fileExtension=".qtl" mimeType="application/x-quicktimeplayer" />
<mimeMap fileExtension=".qxd" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ra" mimeType="audio/x-pn-realaudio" />
<mimeMap fileExtension=".ram" mimeType="audio/x-pn-realaudio" />
<mimeMap fileExtension=".rar" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ras" mimeType="image/x-cmu-raster" />
<mimeMap fileExtension=".rf" mimeType="image/vnd.rn-realflash" />
<mimeMap fileExtension=".rgb" mimeType="image/x-rgb" />
<mimeMap fileExtension=".rm" mimeType="application/vnd.rn-realmedia" />
<mimeMap fileExtension=".rmi" mimeType="audio/mid" />
<mimeMap fileExtension=".roff" mimeType="application/x-troff" />
<mimeMap fileExtension=".rpm" mimeType="audio/x-pn-realaudio-plugin" />
<mimeMap fileExtension=".rtf" mimeType="application/rtf" />
<mimeMap fileExtension=".rtx" mimeType="text/richtext" />
<mimeMap fileExtension=".scd" mimeType="application/x-msschedule" />
<mimeMap fileExtension=".sct" mimeType="text/scriptlet" />
<mimeMap fileExtension=".sea" mimeType="application/octet-stream" />
<mimeMap fileExtension=".setpay" mimeType="application/set-payment-initiation" />
<mimeMap fileExtension=".setreg" mimeType="application/set-registration-initiation" />
<mimeMap fileExtension=".sgml" mimeType="text/sgml" />
<mimeMap fileExtension=".sh" mimeType="application/x-sh" />
<mimeMap fileExtension=".shar" mimeType="application/x-shar" />
<mimeMap fileExtension=".sit" mimeType="application/x-stuffit" />
<mimeMap fileExtension=".sldm" mimeType="application/vnd.ms-powerpoint.slide.macroEnabled.12" />
<mimeMap fileExtension=".sldx" mimeType="application/vnd.openxmlformats-officedocument.presentationml.slide" />
<mimeMap fileExtension=".smd" mimeType="audio/x-smd" />
<mimeMap fileExtension=".smi" mimeType="application/octet-stream" />
<mimeMap fileExtension=".smx" mimeType="audio/x-smd" />
<mimeMap fileExtension=".smz" mimeType="audio/x-smd" />
<mimeMap fileExtension=".snd" mimeType="audio/basic" />
<mimeMap fileExtension=".snp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".spc" mimeType="application/x-pkcs7-certificates" />
<mimeMap fileExtension=".spl" mimeType="application/futuresplash" />
<mimeMap fileExtension=".spx" mimeType="audio/ogg" />
<mimeMap fileExtension=".src" mimeType="application/x-wais-source" />
<mimeMap fileExtension=".ssm" mimeType="application/streamingmedia" />
<mimeMap fileExtension=".sst" mimeType="application/vnd.ms-pki.certstore" />
<mimeMap fileExtension=".stl" mimeType="application/vnd.ms-pki.stl" />
<mimeMap fileExtension=".sv4cpio" mimeType="application/x-sv4cpio" />
<mimeMap fileExtension=".sv4crc" mimeType="application/x-sv4crc" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
<mimeMap fileExtension=".swf" mimeType="application/x-shockwave-flash" />
<mimeMap fileExtension=".t" mimeType="application/x-troff" />
<mimeMap fileExtension=".tar" mimeType="application/x-tar" />
<mimeMap fileExtension=".tcl" mimeType="application/x-tcl" />
<mimeMap fileExtension=".tex" mimeType="application/x-tex" />
<mimeMap fileExtension=".texi" mimeType="application/x-texinfo" />
<mimeMap fileExtension=".texinfo" mimeType="application/x-texinfo" />
<mimeMap fileExtension=".tgz" mimeType="application/x-compressed" />
<mimeMap fileExtension=".thmx" mimeType="application/vnd.ms-officetheme" />
<mimeMap fileExtension=".thn" mimeType="application/octet-stream" />
<mimeMap fileExtension=".tif" mimeType="image/tiff" />
<mimeMap fileExtension=".tiff" mimeType="image/tiff" />
<mimeMap fileExtension=".toc" mimeType="application/octet-stream" />
<mimeMap fileExtension=".tr" mimeType="application/x-troff" />
<mimeMap fileExtension=".trm" mimeType="application/x-msterminal" />
<mimeMap fileExtension=".ts" mimeType="video/vnd.dlna.mpeg-tts" />
<mimeMap fileExtension=".tsv" mimeType="text/tab-separated-values" />
<mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".tts" mimeType="video/vnd.dlna.mpeg-tts" />
<mimeMap fileExtension=".txt" mimeType="text/plain" />
<mimeMap fileExtension=".u32" mimeType="application/octet-stream" />
<mimeMap fileExtension=".uls" mimeType="text/iuls" />
<mimeMap fileExtension=".ustar" mimeType="application/x-ustar" />
<mimeMap fileExtension=".vbs" mimeType="text/vbscript" />
<mimeMap fileExtension=".vcf" mimeType="text/x-vcard" />
<mimeMap fileExtension=".vcs" mimeType="text/plain" />
<mimeMap fileExtension=".vdx" mimeType="application/vnd.ms-visio.viewer" />
<mimeMap fileExtension=".vml" mimeType="text/xml" />
<mimeMap fileExtension=".vsd" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".vss" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".vst" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".vsto" mimeType="application/x-ms-vsto" />
<mimeMap fileExtension=".vsw" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".vsx" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".vtx" mimeType="application/vnd.visio" />
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
<mimeMap fileExtension=".wav" mimeType="audio/wav" />
<mimeMap fileExtension=".wax" mimeType="audio/x-ms-wax" />
<mimeMap fileExtension=".wbmp" mimeType="image/vnd.wap.wbmp" />
<mimeMap fileExtension=".wcm" mimeType="application/vnd.ms-works" />
<mimeMap fileExtension=".wdb" mimeType="application/vnd.ms-works" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<mimeMap fileExtension=".wks" mimeType="application/vnd.ms-works" />
<mimeMap fileExtension=".wm" mimeType="video/x-ms-wm" />
<mimeMap fileExtension=".wma" mimeType="audio/x-ms-wma" />
<mimeMap fileExtension=".wmd" mimeType="application/x-ms-wmd" />
<mimeMap fileExtension=".wmf" mimeType="application/x-msmetafile" />
<mimeMap fileExtension=".wml" mimeType="text/vnd.wap.wml" />
<mimeMap fileExtension=".wmlc" mimeType="application/vnd.wap.wmlc" />
<mimeMap fileExtension=".wmls" mimeType="text/vnd.wap.wmlscript" />
<mimeMap fileExtension=".wmlsc" mimeType="application/vnd.wap.wmlscriptc" />
<mimeMap fileExtension=".wmp" mimeType="video/x-ms-wmp" />
<mimeMap fileExtension=".wmv" mimeType="video/x-ms-wmv" />
<mimeMap fileExtension=".wmx" mimeType="video/x-ms-wmx" />
<mimeMap fileExtension=".wmz" mimeType="application/x-ms-wmz" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
<mimeMap fileExtension=".wps" mimeType="application/vnd.ms-works" />
<mimeMap fileExtension=".wri" mimeType="application/x-mswrite" />
<mimeMap fileExtension=".wrl" mimeType="x-world/x-vrml" />
<mimeMap fileExtension=".wrz" mimeType="x-world/x-vrml" />
<mimeMap fileExtension=".wsdl" mimeType="text/xml" />
<mimeMap fileExtension=".wtv" mimeType="video/x-ms-wtv" />
<mimeMap fileExtension=".wvx" mimeType="video/x-ms-wvx" />
<mimeMap fileExtension=".x" mimeType="application/directx" />
<mimeMap fileExtension=".xaf" mimeType="x-world/x-vrml" />
<mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" />
<mimeMap fileExtension=".xap" mimeType="application/x-silverlight-app" />
<mimeMap fileExtension=".xbap" mimeType="application/x-ms-xbap" />
<mimeMap fileExtension=".xbm" mimeType="image/x-xbitmap" />
<mimeMap fileExtension=".xdr" mimeType="text/plain" />
<mimeMap fileExtension=".xht" mimeType="application/xhtml+xml" />
<mimeMap fileExtension=".xhtml" mimeType="application/xhtml+xml" />
<mimeMap fileExtension=".xla" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xlam" mimeType="application/vnd.ms-excel.addin.macroEnabled.12" />
<mimeMap fileExtension=".xlc" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xlm" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xls" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xlsb" mimeType="application/vnd.ms-excel.sheet.binary.macroEnabled.12" />
<mimeMap fileExtension=".xlsm" mimeType="application/vnd.ms-excel.sheet.macroEnabled.12" />
<mimeMap fileExtension=".xlsx" mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
<mimeMap fileExtension=".xlt" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xltm" mimeType="application/vnd.ms-excel.template.macroEnabled.12" />
<mimeMap fileExtension=".xltx" mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.template" />
<mimeMap fileExtension=".xlw" mimeType="application/vnd.ms-excel" />
<mimeMap fileExtension=".xml" mimeType="text/xml" />
<mimeMap fileExtension=".xof" mimeType="x-world/x-vrml" />
<mimeMap fileExtension=".xpm" mimeType="image/x-xpixmap" />
<mimeMap fileExtension=".xps" mimeType="application/vnd.ms-xpsdocument" />
<mimeMap fileExtension=".xsd" mimeType="text/xml" />
<mimeMap fileExtension=".xsf" mimeType="text/xml" />
<mimeMap fileExtension=".xsl" mimeType="text/xml" />
<mimeMap fileExtension=".xslt" mimeType="text/xml" />
<mimeMap fileExtension=".xsn" mimeType="application/octet-stream" />
<mimeMap fileExtension=".xtp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".xwd" mimeType="image/x-xwindowdump" />
<mimeMap fileExtension=".z" mimeType="application/x-compress" />
<mimeMap fileExtension=".zip" mimeType="application/x-zip-compressed" />
</staticContent>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="ASP" verbosity="Verbose" />
<add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
<add provider="ISAPI Extension" verbosity="Verbose" />
<add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,Rewrite,WebSocket" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="200-999" />
</add>
</traceFailedRequests>
<traceProviderDefinitions>
<add name="WWW Server" guid="{3a2a4e84-4c21-4981-ae10-3fda0d9b0f83}">
<areas>
<clear />
<add name="Authentication" value="2" />
<add name="Security" value="4" />
<add name="Filter" value="8" />
<add name="StaticFile" value="16" />
<add name="CGI" value="32" />
<add name="Compression" value="64" />
<add name="Cache" value="128" />
<add name="RequestNotifications" value="256" />
<add name="Module" value="512" />
<add name="Rewrite" value="1024" />
<add name="FastCGI" value="4096" />
<add name="WebSocket" value="16384" />
<add name="ANCM" value="65536" />
</areas>
</add>
<add name="ASP" guid="{06b94d9a-b15e-456e-a4ef-37c984a2cb4b}">
<areas>
<clear />
</areas>
</add>
<add name="ISAPI Extension" guid="{a1c2040e-8840-4c31-ba11-9871031a19ea}">
<areas>
<clear />
</areas>
</add>
<add name="ASPNET" guid="{AFF081FE-0247-4275-9C4E-021F3DC1DA35}">
<areas>
<add name="Infrastructure" value="1" />
<add name="Module" value="2" />
<add name="Page" value="4" />
<add name="AppServices" value="8" />
</areas>
</add>
</traceProviderDefinitions>
</tracing>
<urlCompression />
<validation />
<webdav>
<globalSettings>
<propertyStores>
<add name="webdav_simple_prop" image="%IIS_BIN%\webdav_simple_prop.dll" image32="%IIS_BIN%\webdav_simple_prop.dll" />
</propertyStores>
<lockStores>
<add name="webdav_simple_lock" image="%IIS_BIN%\webdav_simple_lock.dll" image32="%IIS_BIN%\webdav_simple_lock.dll" />
</lockStores>
</globalSettings>
<authoring>
<locks enabled="true" lockStore="webdav_simple_lock" />
</authoring>
<authoringRules />
</webdav>
<webSocket />
<applicationInitialization />
</system.webServer>
<location path="" overrideMode="Allow">
<system.webServer>
<modules>
<add name="IsapiFilterModule" lockItem="true" />
<add name="BasicAuthenticationModule" lockItem="true" />
<add name="IsapiModule" lockItem="true" />
<add name="HttpLoggingModule" lockItem="true" />
<add name="DynamicCompressionModule" lockItem="true" />
<add name="StaticCompressionModule" lockItem="true" />
<add name="DefaultDocumentModule" lockItem="true" />
<add name="DirectoryListingModule" lockItem="true" />
<add name="ProtocolSupportModule" lockItem="true" />
<add name="HttpRedirectionModule" lockItem="true" />
<add name="ServerSideIncludeModule" lockItem="true" />
<add name="StaticFileModule" lockItem="true" />
<add name="AnonymousAuthenticationModule" lockItem="true" />
<add name="CertificateMappingAuthenticationModule" lockItem="true" />
<add name="UrlAuthorizationModule" lockItem="true" />
<add name="WindowsAuthenticationModule" lockItem="true" />
<add name="IISCertificateMappingAuthenticationModule" lockItem="true" />
<add name="WebMatrixSupportModule" lockItem="true" />
<add name="IpRestrictionModule" lockItem="true" />
<add name="DynamicIpRestrictionModule" lockItem="true" />
<add name="RequestFilteringModule" lockItem="true" />
<add name="CustomLoggingModule" lockItem="true" />
<add name="CustomErrorModule" lockItem="true" />
<add name="FailedRequestsTracingModule" lockItem="true" />
<add name="CgiModule" lockItem="true" />
<add name="FastCgiModule" lockItem="true" />
<!-- <add name="WebDAVModule" /> -->
<add name="RewriteModule" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" preCondition="managedHandler" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="managedHandler" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" preCondition="managedHandler" />
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" preCondition="managedHandler" />
<add name="DefaultAuthentication" type="System.Web.Security.DefaultAuthenticationModule" preCondition="managedHandler" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" preCondition="managedHandler" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" preCondition="managedHandler" />
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" preCondition="managedHandler" />
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" preCondition="managedHandler" />
<add name="Profile" type="System.Web.Profile.ProfileModule" preCondition="managedHandler" />
<add name="UrlMappingsModule" type="System.Web.UrlMappingsModule" preCondition="managedHandler" />
<add name="ApplicationInitializationModule" lockItem="true" />
<add name="WebSocketModule" lockItem="true" />
<add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule,System.ServiceModel.Activation,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv4.0" />
<add name="ConfigurationValidationModule" lockItem="true" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="managedHandler,runtimeVersionv4.0" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv4.0" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />
<add name="AspNetCoreModuleV2" lockItem="true" />
</modules>
<handlers accessPolicy="Read, Script">
<!-- <add name="WebDAV" path="*" verb="PROPFIND,PROPPATCH,MKCOL,PUT,COPY,DELETE,MOVE,LOCK,UNLOCK" modules="WebDAVModule" resourceType="Unspecified" requireAccess="None" /> -->
<add name="AXD-ISAPI-4.0_64bit" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="PageHandlerFactory-ISAPI-4.0_64bit" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-4.0_64bit" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="WebServiceHandlerFactory-ISAPI-4.0_64bit" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_64bit" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-soap-ISAPI-4.0_64bit" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="svc-ISAPI-4.0_64bit" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
<add name="rules-ISAPI-4.0_64bit" path="*.rules" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
<add name="xoml-ISAPI-4.0_64bit" path="*.xoml" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
<add name="xamlx-ISAPI-4.0_64bit" path="*.xamlx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
<add name="aspq-ISAPI-4.0_64bit" path="*.aspq" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="cshtm-ISAPI-4.0_64bit" path="*.cshtm" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="cshtml-ISAPI-4.0_64bit" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="vbhtm-ISAPI-4.0_64bit" path="*.vbhtm" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="vbhtml-ISAPI-4.0_64bit" path="*.vbhtml" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="svc-ISAPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="xoml-Integrated" path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="xoml-ISAPI-2.0" path="*.xoml" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="rules-Integrated" path="*.rules" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="rules-ISAPI-2.0" path="*.rules" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="AXD-ISAPI-4.0_32bit" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="PageHandlerFactory-ISAPI-4.0_32bit" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-4.0_32bit" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="WebServiceHandlerFactory-ISAPI-4.0_32bit" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_32bit" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-soap-ISAPI-4.0_32bit" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="svc-ISAPI-4.0_32bit" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
<add name="rules-ISAPI-4.0_32bit" path="*.rules" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
<add name="xoml-ISAPI-4.0_32bit" path="*.xoml" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
<add name="xamlx-ISAPI-4.0_32bit" path="*.xamlx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
<add name="aspq-ISAPI-4.0_32bit" path="*.aspq" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="cshtm-ISAPI-4.0_32bit" path="*.cshtm" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="cshtml-ISAPI-4.0_32bit" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="vbhtm-ISAPI-4.0_32bit" path="*.vbhtm" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="vbhtml-ISAPI-4.0_32bit" path="*.vbhtml" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="TraceHandler-Integrated-4.0" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="WebAdminHandler-Integrated-4.0" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="WebServiceHandlerFactory-Integrated-4.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="HttpRemotingHandlerFactory-rem-Integrated-4.0" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="HttpRemotingHandlerFactory-soap-Integrated-4.0" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="rules-Integrated-4.0" path="*.rules" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="xoml-Integrated-4.0" path="*.xoml" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="xamlx-Integrated-4.0" path="*.xamlx" verb="GET,HEAD,POST,DEBUG" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="aspq-Integrated-4.0" path="*.aspq" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="cshtm-Integrated-4.0" path="*.cshtm" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="cshtml-Integrated-4.0" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="vbhtm-Integrated-4.0" path="*.vbhtm" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="vbhtml-Integrated-4.0" path="*.vbhtml" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="ScriptHandlerFactoryAppServices-Integrated-4.0" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="ScriptResourceIntegrated-4.0" path="*ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%IIS_BIN%\asp.dll" resourceType="File" />
<add name="SecurityCertificate" path="*.cer" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%IIS_BIN%\asp.dll" resourceType="File" />
<add name="ISAPI-dll" path="*.dll" verb="*" modules="IsapiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
<add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory,System.Web.Services,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory,System.Runtime.Remoting,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory,System.Runtime.Remoting,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="AXD-ISAPI-2.0" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="WebServiceHandlerFactory-ISAPI-2.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="svc-ISAPI-2.0-64" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
<add name="AXD-ISAPI-2.0-64" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="PageHandlerFactory-ISAPI-2.0-64" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-2.0-64" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="WebServiceHandlerFactory-ISAPI-2.0-64" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0-64" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0-64" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
<add name="rules-64-ISAPI-2.0" path="*.rules" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
<add name="xoml-64-ISAPI-2.0" path="*.xoml" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
<add name="CGI-exe" path="*.exe" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
<add name="SSINC-stm" path="*.stm" verb="GET,HEAD,POST" modules="ServerSideIncludeModule" resourceType="File" />
<add name="SSINC-shtm" path="*.shtm" verb="GET,HEAD,POST" modules="ServerSideIncludeModule" resourceType="File" />
<add name="SSINC-shtml" path="*.shtml" verb="GET,HEAD,POST" modules="ServerSideIncludeModule" resourceType="File" />
<add name="TRACEVerbHandler" path="*" verb="TRACE" modules="ProtocolSupportModule" requireAccess="None" />
<add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" modules="ProtocolSupportModule" requireAccess="None" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" />
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
</handlers>
</system.webServer>
</location>
</configuration>

View File

@ -0,0 +1,49 @@
using Exferia_Aplicacion.General;
using Exferia_EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exferia_General._0_Modelos
{
public class INTERNO_GEN_Firmas_Electronicas_Listado_Modelo : GEN_Firmas_Electronicas
{
public INTERNO_GEN_Firmas_Electronicas_Listado_Modelo()
{ }
public long codigo_Long
{
get
{
long lng_Codigo = 0;
if (Funciones.IsNumeric(codigo))
{
lng_Codigo = long.Parse(codigo);
}
return lng_Codigo;
}
}
public string Empresa
{
get
{
try
{
if (GEN_Empresas != null)
return GEN_Empresas.descripcion;
}
catch
{
}
return DescripcionEmpresa;
}
}
public string DescripcionEmpresa { get; set; }
}
}

View File

@ -0,0 +1,612 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Herencia.Capas;
using Exferia_EntityFramework;
using Exferia_General._0_Modelos;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Transactions;
using static Exferia_Aplicacion.General.Enumerados;
using System.Runtime.CompilerServices;
namespace Exferia_General._1_Datos
{
public class GEN_Firmas_Electronicas_Datos : ABS_Datos
{
#region Listado
private List<INTERNO_GEN_Firmas_Electronicas_Listado_Modelo> g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo = null;
public override List<dynamic> Obtener_Listado(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)
{
Exferia_Entities obj_Exferia_Entities = null;
List<dynamic> lst_INF = null;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
// Consulta .....................................................
ConsultaRellenar_Listado(obj_Exferia_Entities, _lng_idEmpresaSeleccionada, _lng_idEjercicioActual, Datos_Generales.GEN_Empresas_Devolver_EmpresasCompartidas_SegunFichero(_lng_idEmpresaSeleccionada, typeof(GEN_Firmas_Electronicas).Name), _lst_CamposConRelacionABuscar, -1, null, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo);
// ..............................................................
if ((g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo != null) && (g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo.Count() > 0))
{
lst_INF = g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo.Cast<dynamic>().ToList();
}
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Obtener_Listado), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return lst_INF;
}
public override dynamic Obtener_RegistroListado(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)
{
Exferia_Entities obj_Exferia_Entities = null;
dynamic dnm_INF = null;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
// Consulta .....................................................
ConsultaRellenar_Listado(obj_Exferia_Entities, _lng_idEmpresaSeleccionada, _lng_idEjercicioActual, Datos_Generales.GEN_Empresas_Devolver_EmpresasCompartidas_SegunFichero(_lng_idEmpresaSeleccionada, typeof(GEN_Firmas_Electronicas).Name), _lst_CamposConRelacionABuscar, _lng_id, _lst_id,_lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo);
//ConsultaRellenar_Listado(obj_Exferia_Entities, _lng_idEmpresaSeleccionada, _lng_idEjercicioActual, Datos_Generales.GEN_Empresas_Devolver_EmpresasCompartidas_SegunFichero(_lng_idEmpresaSeleccionada, typeof(GEN_Firmas_Electronicas).Name), _lst_CamposConRelacionABuscar, _lng_id, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lng_id, _lst_id, _lst_INTERNO_Filtro_Modelo);
// ..............................................................
if ((g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo != null) && (g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo.Count() > 0))
{
dnm_INF = g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo.Cast<dynamic>().ToList();
}
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Obtener_RegistroListado), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return dnm_INF;
}
protected override void ConsultaRellenar_Listado(Exferia_Entities _obj_Exferia_Entities, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual, List<long> _lst_idEmpresasRelacionas, List<string> _lst_CamposConRelacionABuscar, long _lng_id, List<long> _lst_id, List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo, List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
{
try
{
string where = "";
if(_lng_idEmpresaSeleccionada>-1)
{
where=nameof(GEN_Firmas_Electronicas.idEmpresa) + "=@idEmpresa and ";
}
string str_SQL =
" SELECT " +
//GEN_Configuracion_Informes
"f."+nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.id) + "," +
"f." + nameof(GEN_Firmas_Electronicas.codigo) +"," +
"f." + nameof(GEN_Firmas_Electronicas.descripcion) + "," +
"f." + nameof(GEN_Firmas_Electronicas.fecha_fin) + "," +
"f." + nameof(GEN_Firmas_Electronicas.idEmpresa) + ","+
"f." + nameof(GEN_Firmas_Electronicas.text_perm) + ","+
"e." + nameof(GEN_Firmas_Electronicas.descripcion) + " " + nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.DescripcionEmpresa) +
" FROM " + nameof(GEN_Firmas_Electronicas) +" f inner join " + nameof(GEN_Empresas)+
" e on e." + nameof(GEN_Empresas.id) +"="+ nameof(GEN_Firmas_Electronicas.idEmpresa) +
" WHERE "+ where+ (_lng_id > -1 ? (nameof(GEN_Firmas_Electronicas.id) + "=@id") : "1 = 1");
//Parametros
object[] arr_Parametros = new object[]
{
new SqlParameter("@id", _lng_id),
new SqlParameter("@idEmpresa", _lng_idEmpresaSeleccionada)
};
//Rellenar el Modelo
g_lst_INTERNO_GEN_Firmas_Electronicas_Modelo = _obj_Exferia_Entities.Database.SqlQuery<INTERNO_GEN_Firmas_Electronicas_Listado_Modelo>(str_SQL, arr_Parametros).ToList();
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(ConsultaRellenar_Listado), true);
}
}
#endregion
#region Listado Secundario
public override List<dynamic> Obtener_Listado_Secundario(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)
{
return null;
}
public override dynamic Obtener_RegistroListado_Secundario(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)
{
return null;
}
protected override void ConsultaRellenar_Listado_Secundario(Exferia_Entities _obj_Exferia_Entities, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual, List<long> _lst_idEmpresasRelacionadas, List<string> _lst_CamposConRelacionABuscar, long _lng_id, List<long> _lst_ids, List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo, List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
{ }
#endregion
#region F3
public override dynamic Obtener_F3(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)
{
throw new NotImplementedException();
}
public override dynamic Obtener_F3_PorId(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();
}
protected override void ConsultaRellenar_F3(Exferia_Entities _obj_Exferia_Entities, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual, List<long> _lst_idEmpresasRelacionadas, string _str_CampoBusqueda, string _str_Filtro, long _lng_id, List<INTERNO_Filtro_OpcionPadre_Modelo> _lst_INTERNO_Filtro_OpcionPadre_Modelo, List<INTERNO_Filtro_Modelo> _lst_INTERNO_Filtro_Modelo)
{ }
#endregion
#region Obtener Simple
private dynamic g_dnm_Modelo_Obtener = null;
private static int g_int_TotalHilos_Obtener = 1;
private bool[] g_bol_Hilos_Terminados_Obtener = new bool[g_int_TotalHilos_Obtener];
public override dynamic Obtener(long _lng_id)
{
Exferia_Entities obj_Exferia_Entities = null;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
string str_SQL =
" SELECT " +
nameof(GEN_Firmas_Electronicas.id) + "," +
nameof(GEN_Firmas_Electronicas.codigo) + "," +
nameof(GEN_Firmas_Electronicas.descripcion) + "," +
nameof(GEN_Firmas_Electronicas.fecha_fin) + "," +
nameof(GEN_Firmas_Electronicas.text_perm) + "," +
nameof(GEN_Firmas_Electronicas.idEmpresa) +
" FROM " + nameof(GEN_Firmas_Electronicas) +
" WHERE " + nameof(GEN_Firmas_Electronicas.id) + "=@id ";
//Parametros
object[] arr_Parametros = new object[]
{
new SqlParameter("@id", _lng_id)
};
//Rellenar el Modelo
g_dnm_Modelo_Obtener = obj_Exferia_Entities.Database.SqlQuery<GEN_Firmas_Electronicas>(str_SQL, arr_Parametros).FirstOrDefault();
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas) + "/" + nameof(Obtener), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return g_dnm_Modelo_Obtener;
}
public override dynamic Obtener_Registro_PorCampo(string _str_Filtro, string _str_CampoBusqueda, long _lng_idEmpresaSeleccionada, long _lng_idEjercicioActual)
{
throw new NotImplementedException();
}
public List<dynamic> Obtener_Listado_Simple()
{
Exferia_Entities obj_Exferia_Entities = null;
List<dynamic> lst_INF = null;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
string str_SQL =
" SELECT " +
//GEN_Configuracion_Informes
"f." + nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.id) + "," +
"f." + nameof(GEN_Firmas_Electronicas.codigo) + "," +
"f." + nameof(GEN_Firmas_Electronicas.descripcion) + "," +
"f." + nameof(GEN_Firmas_Electronicas.fecha_fin) + "," +
"f." + nameof(GEN_Firmas_Electronicas.idEmpresa) + "," +
"f." + nameof(GEN_Firmas_Electronicas.text_perm) + "," +
"e." + nameof(GEN_Firmas_Electronicas.descripcion) + " " + nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.DescripcionEmpresa) +
" FROM " + nameof(GEN_Firmas_Electronicas) + " f inner join " + nameof(GEN_Empresas) +
" e on e." + nameof(GEN_Empresas.id) + "=" + nameof(GEN_Firmas_Electronicas.idEmpresa);
//Rellenar el Modelo
List <INTERNO_GEN_Firmas_Electronicas_Listado_Modelo> lst_INTERNO_GEN_Configuracion_Informes_Listado_Modelo = obj_Exferia_Entities.Database.SqlQuery<INTERNO_GEN_Firmas_Electronicas_Listado_Modelo>(str_SQL, new object[] { }).ToList();
if ((lst_INTERNO_GEN_Configuracion_Informes_Listado_Modelo != null) && (lst_INTERNO_GEN_Configuracion_Informes_Listado_Modelo.Count() > 0))
{
lst_INF = lst_INTERNO_GEN_Configuracion_Informes_Listado_Modelo.Cast<dynamic>().ToList();
}
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Obtener_Listado_Simple), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return lst_INF;
}
#endregion
#region MODELOS
#region Modelo Simple
private GEN_Firmas_Electronicas g_mdl_GEN_Configuracion_Informes = null;
public GEN_Firmas_Electronicas Obtener_Modelo_Por_Id(long _lng_Id,
bool _bol_Cargar_Ejercicio)
{
try
{
string str_SQL = Obtener_Consulta_Modelo() +
//WHERE
" WHERE " +
nameof(GEN_Firmas_Electronicas) + "." + nameof(GEN_Firmas_Electronicas.id) + "=@id ";
//Parametros
object[] arr_Parametros = new object[]
{
new SqlParameter("@id", _lng_Id)
};
//Ejecutar y rellenar el modelo
Ejecutar_Consulta_Modelo(str_SQL,
arr_Parametros,
_bol_Cargar_Ejercicio);
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Obtener_Modelo_Por_Id), true);
}
return g_mdl_GEN_Configuracion_Informes;
}
/*
public GEN_Configuracion_Informes Obtener_Modelo_Por_IdEjercicio(long _lng_idEjercicio)
{
try
{
string str_SQL = Obtener_Consulta_Modelo() +
//WHERE
" WHERE " +
nameof(GEN_Firmas_Electronicas) + "." + nameof(GEN_Configuracion_Informes.idEjercicio) + "=@idEjercicio";
//Parametros
object[] arr_Parametros = new object[]
{
new SqlParameter("@idEjercicio", _lng_idEjercicio)
};
//Ejecutar y rellenar el modelo
Ejecutar_Consulta_Modelo(str_SQL,
arr_Parametros,
false);
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Configuracion_Informes_Datos) + "/" + nameof(Obtener_Modelo_Por_IdEjercicio), true);
}
return g_mdl_GEN_Configuracion_Informes;
}
*/
#region Ejecutar_Consulta_Modelo
private static int g_int_TotalHilos_Modelo = 1;
private bool[] g_bol_Hilos_Terminados_Modelo = new bool[g_int_TotalHilos_Modelo];
private void Ejecutar_Consulta_Modelo(string _str_SQL,
object[] _arr_Parametros,
bool _bol_Cargar_Ejercicio)
{
Exferia_Entities obj_Exferia_Entities = null;
try
{
//Conexion
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
//Rellenar el Modelo
g_mdl_GEN_Configuracion_Informes = obj_Exferia_Entities.Database.SqlQuery<GEN_Firmas_Electronicas>(_str_SQL, _arr_Parametros).FirstOrDefault();
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Ejecutar_Consulta_Modelo), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
}
#region Tablas Relacionadas
#endregion
#endregion
#endregion
#region ModeloListado
#endregion
private string Obtener_Consulta_Modelo()
{
return
" SELECT " +
nameof(GEN_Firmas_Electronicas.id) + "," +
nameof(GEN_Firmas_Electronicas.codigo) + "," +
nameof(GEN_Firmas_Electronicas.descripcion) + "," +
nameof(GEN_Firmas_Electronicas.idEmpresa) + "," +
nameof(GEN_Firmas_Electronicas.fecha_fin) + "," +
nameof(GEN_Firmas_Electronicas.text_perm) +
" FROM " + nameof(GEN_Firmas_Electronicas);
}
#endregion
#region Grabar
public override INTERNO_ValorDevuelto_Modelo Grabar(object _mdl_obj)
{
Exferia_Entities obj_Exferia_Entities = null;
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
GEN_Firmas_Electronicas mdl_GEN_Configuracion_Informes_AGrabar = (GEN_Firmas_Electronicas)_mdl_obj;
GEN_Firmas_Electronicas mdl_GEN_Configuracion_Informes_DatosViejos = new GEN_Firmas_Electronicas();
// Ver si existe ######################################################################
GEN_Firmas_Electronicas mdl_GEN_Configuracion_Informes_Final = Obtener_Modelo_Por_Id(mdl_GEN_Configuracion_Informes_AGrabar.id, false);
//######################################################################################
if (mdl_GEN_Configuracion_Informes_Final != null)
{
//Tipo de Accion que se va a realizar
mdl_INTERNO_ValorDevuelto_Modelo.TipoAccion = G_ENUM_TIPOACCION.INT_MODIFICAR;
//Datos viejos para la trazabilidad
Funciones.CopiarPropiedadesObjetos(mdl_GEN_Configuracion_Informes_Final, mdl_GEN_Configuracion_Informes_DatosViejos, false, false);
// Cargar los Datos Nuevos del Modelo
Funciones.CopiarPropiedadesObjetos(mdl_GEN_Configuracion_Informes_AGrabar, mdl_GEN_Configuracion_Informes_Final, false, false);
#region Update
string str_SQL_Update = " UPDATE " + nameof(GEN_Firmas_Electronicas) +
" SET " +
nameof(GEN_Firmas_Electronicas.codigo) + "=@codigo, " +
nameof(GEN_Firmas_Electronicas.descripcion) + "=@descripcion, " +
nameof(GEN_Firmas_Electronicas.idEmpresa) + "=@idEmpresa, " +
nameof(GEN_Firmas_Electronicas.text_perm) + "=@text_perm, " +
nameof(GEN_Firmas_Electronicas.fecha_fin) + "=@fecha_fin " +
" WHERE " +
nameof(GEN_Firmas_Electronicas.id) + "=@id";
//Parametros
SqlParameter obj_SqlParameter_imagen_Logo_SuperiorIzquierda = new SqlParameter("@imagen_Logo_SuperiorIzquierda", SqlDbType.Binary);
object[] arr_Parametros_Update = new object[]
{
new SqlParameter("@codigo", mdl_GEN_Configuracion_Informes_AGrabar.codigo),
new SqlParameter("@descripcion", mdl_GEN_Configuracion_Informes_AGrabar.descripcion),
new SqlParameter("@idEmpresa", mdl_GEN_Configuracion_Informes_AGrabar.idEmpresa),
new SqlParameter("@text_perm", mdl_GEN_Configuracion_Informes_AGrabar.text_perm),
new SqlParameter("@fecha_fin", mdl_GEN_Configuracion_Informes_AGrabar.fecha_fin),
new SqlParameter("@id", mdl_GEN_Configuracion_Informes_AGrabar.id)
};
#endregion
//Update
obj_Exferia_Entities.Database.ExecuteSqlCommand(str_SQL_Update, arr_Parametros_Update);
//Id de la tabla
mdl_INTERNO_ValorDevuelto_Modelo.Id = mdl_GEN_Configuracion_Informes_AGrabar.id;
}
else
{
mdl_GEN_Configuracion_Informes_Final = new GEN_Firmas_Electronicas();
//Tipo de Accion que se va a realizar
mdl_INTERNO_ValorDevuelto_Modelo.TipoAccion = G_ENUM_TIPOACCION.INT_INSERTAR;
// Cargar los Datos del Modelo
Funciones.CopiarPropiedadesObjetos(mdl_GEN_Configuracion_Informes_AGrabar, mdl_GEN_Configuracion_Informes_Final, false, false);
#region INSERT
string str_SQL_Insert = " INSERT INTO " + nameof(GEN_Firmas_Electronicas) +
" (" +
nameof(GEN_Firmas_Electronicas.codigo) + "," +
nameof(GEN_Firmas_Electronicas.descripcion) + "," +
nameof(GEN_Firmas_Electronicas.idEmpresa) + "," +
nameof(GEN_Firmas_Electronicas.text_perm) + "," +
nameof(GEN_Firmas_Electronicas.fecha_fin) +
" ) " +
" OUTPUT INSERTED." + nameof(GEN_Firmas_Electronicas.id) +
" VALUES " +
" ( " +
"@codigo, " +
"@descripcion, " +
"@idEmpresa, " +
"@text_perm , " +
"@fecha_fin " +
" ) ";
//Parametros
object[] arr_Parametros_Insert = new object[]
{
new SqlParameter("@codigo", mdl_GEN_Configuracion_Informes_AGrabar.codigo),
new SqlParameter("@descripcion", mdl_GEN_Configuracion_Informes_AGrabar.descripcion),
new SqlParameter("@idEmpresa", mdl_GEN_Configuracion_Informes_AGrabar.idEmpresa),
new SqlParameter("@text_perm", mdl_GEN_Configuracion_Informes_AGrabar.text_perm),
new SqlParameter("@fecha_fin", mdl_GEN_Configuracion_Informes_AGrabar.fecha_fin)
};
#endregion
//Id de la tabla
mdl_INTERNO_ValorDevuelto_Modelo.Id = obj_Exferia_Entities.Database.SqlQuery<long>(str_SQL_Insert, arr_Parametros_Insert).Single();
}
// Grabar un registro de trazabilidad con los datos de la transaccion realizada.
Datos_Generales.USR_Trazabilidad_Grabar(typeof(GEN_Firmas_Electronicas), mdl_GEN_Configuracion_Informes_DatosViejos, mdl_GEN_Configuracion_Informes_Final, mdl_INTERNO_ValorDevuelto_Modelo.TipoAccion, obj_Exferia_Entities);
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Grabar), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
#region Borrar
public override INTERNO_ValorDevuelto_Modelo Borrar(long _lng_id)
{
Exferia_Entities obj_Exferia_Entities = null;
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
//Tipo de Accion que se va a realizar
mdl_INTERNO_ValorDevuelto_Modelo.TipoAccion = G_ENUM_TIPOACCION.INT_ELIMINAR;
try
{
obj_Exferia_Entities = new Exferia_Entities();
obj_Exferia_Entities.Configuration.LazyLoadingEnabled = false;
// Ver si existe ######################################################################
GEN_Firmas_Electronicas mdl_GEN_Firma_electronica_Final = Obtener_Modelo_Por_Id(_lng_id, false);
//######################################################################################
if (mdl_GEN_Firma_electronica_Final != null)
{
#region Delete
string str_SQL_Delete = " DELETE FROM " + nameof(GEN_Firmas_Electronicas) +
" WHERE " +
nameof(GEN_Firmas_Electronicas.id) + "=@id";
//Parametros
object[] arr_Parametros_Delete = new object[]
{
new SqlParameter("@id", _lng_id)
};
#endregion
//Update
obj_Exferia_Entities.Database.ExecuteSqlCommand(str_SQL_Delete, arr_Parametros_Delete);
// Grabar un registro de trazabilidad con los datos de la transaccion realizada.
Datos_Generales.USR_Trazabilidad_Grabar(typeof(GEN_Firmas_Electronicas), null, mdl_GEN_Firma_electronica_Final, G_ENUM_TIPOACCION.INT_ELIMINAR, obj_Exferia_Entities);
}
// Devolver también el Objeto
mdl_INTERNO_ValorDevuelto_Modelo.Id = _lng_id;
}
catch (Control_Errores)
{
throw;
}
catch (Exception ex)
{
throw new Control_Errores("", ex, nameof(GEN_Firmas_Electronicas_Datos) + "/" + nameof(Borrar), true);
}
finally
{
obj_Exferia_Entities.Database.Connection.Close();
obj_Exferia_Entities.Dispose();
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
public override INTERNO_ValorDevuelto_Modelo Borrar(long _lng_id, long _lng_idAuxiliar)
{
throw new NotImplementedException();
}
public override INTERNO_ValorDevuelto_Modelo Borrar(object _mdl_obj)
{
return null;
}
#endregion
}
}

View File

@ -0,0 +1,897 @@
using Exferia_Aplicacion.General;
using Exferia_EntityFramework;
using Exferia_Formularios;
using Exferia_General._1_Datos;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Transactions;
using System.Windows.Forms;
namespace Exferia_General._3_Vistas.Controladoras
{
public class P_Firmas_Electronicas_Controladora
{
#region Variables Generales
private P_Firmas_Electronicas g_frm_P_Firmas_Electronicas = null;//Variable que enlaza con la pantalla asociada
private PE_Esperando g_frm_PE_Esperando;//Pantalla de Espera, para cuando se ejecutan tareas pesadas como cargar, guardar, etc
//Clases de Negocio Necesarias para la carga de datos
private GEN_Firmas_Electronicas_Datos g_obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
private GEN_Firmas_Electronicas g_mdl_GEN_Firmas_Electronicas;
public bool g_bol_Termino_CargaDatos_Inicial = false;//Se utiliza para saber cuando se termina la carga de datos estaticos inciales
public long IdEmpresaDef { get; set; }
//Tareea Asincrona de carga de datos
private BackgroundWorker g_obj_TareaAsincrona_CargarDatos=null;
//Tareea Asincrona de grabar de datos
private BackgroundWorker g_obj_TareaAsincrona_GrabarDatos = null;
private bool g_bol_GrabarDatos_TerminoCorrectamente = true;
private bool g_bol_GrabarDatos_VolverListado = true;
//Tareea Asincrona de borrar de datos
private BackgroundWorker g_obj_TareaAsincrona_BorrarDatos = null;
private bool g_bol_BorrarDatos_VolverListado = true;
public bool g_bol_CampoCodigo_Numerico = true;
#endregion
#region Constructor
public P_Firmas_Electronicas_Controladora(P_Firmas_Electronicas _frm_P_Firmas_Electronicas)
{
g_frm_P_Firmas_Electronicas = _frm_P_Firmas_Electronicas;
g_bol_Termino_CargaDatos_Inicial = true;
}
#endregion
#region VaciarDatos
public void VaciarDatos(bool _bol_Vaciar_Titulo)
{
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text = "";
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Descripcion.Text = "";
g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Fecha = "";
g_frm_P_Firmas_Electronicas.Exferia_TextBox_TextPerm.Text = "";
//Actualizar el Boton de Seleccion de pantalla ####################################################
Variables.G_EMS_CONTROL_MENUSUPERIOR.Update_Texto_NombrePantalla(g_frm_P_Firmas_Electronicas.Tag.ToString());
//#################################################################################################
}
#endregion
#region BuscarCogidoSiguiente
public INTERNO_ValorDevuelto_Modelo Buscar_CodigoSiguiente()
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
string str_CodigoSiguiente = Datos_Generales.Buscar_CodigoSiguiente(nameof(GEN_Firmas_Electronicas),
nameof(GEN_Firmas_Electronicas.codigo),
"",
-1,
false,
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Exferia_TextBox_MaxLength);
if (!str_CodigoSiguiente.Equals("-1"))
{
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text = str_CodigoSiguiente;
}
else
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_CODIGOSIGUIENTE_LIMITEALCANZADO(g_frm_P_Firmas_Electronicas.Exferia_Label_Codigo.Text);
}
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BUSCARCODIGOSIGUIENTE();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(Buscar_CodigoSiguiente));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BUSCARCODIGOSIGUIENTE();
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
#region Comprobacion de cambios, para grabar o no antes de salir o cambiar de registro
public bool ComprobarCambios()
{
if (g_frm_P_Firmas_Electronicas.P_Base_SeModificoDatosPantalla)
{
if (Mensajes.MostrarMensaje_Pregunta(Mensajes.G_STR_MENSAJES_GENERAL_PREGUNTA_GUARDARCAMBIOS()))
{
GrabarDatos(false);
//Te quedas espernado a que termine la tarea asincrona de grabar
while (g_obj_TareaAsincrona_GrabarDatos.IsBusy)
Application.DoEvents();
return g_bol_GrabarDatos_TerminoCorrectamente;
}
}
return true;
}
#endregion
#region Cargar Datos
public void RecargarDatos()
{
try
{
//Bloquear el formulario para que no se pueda hacer nada hasta que termine
g_frm_P_Firmas_Electronicas.Enabled = false;
//Mostrar la pantalla de espera
g_frm_PE_Esperando = new PE_Esperando();
// Si la tarea asincrona esta en marcha la paro
if (g_obj_TareaAsincrona_CargarDatos != null)
{
while (g_obj_TareaAsincrona_CargarDatos.IsBusy)
Application.DoEvents();
//Vaciar
VaciarDatos(true);
}
else
{
g_obj_TareaAsincrona_CargarDatos = new BackgroundWorker();
g_obj_TareaAsincrona_CargarDatos.DoWork += new DoWorkEventHandler(TareaAsincrona_CargarDatos_DoWork);
g_obj_TareaAsincrona_CargarDatos.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_CargarDatos_Completed);
g_obj_TareaAsincrona_CargarDatos.WorkerReportsProgress = false;
}
//(Tarea Asincrona) Cargar Datos ##################################################################
g_obj_TareaAsincrona_CargarDatos.RunWorkerAsync();
//#################################################################################################
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
g_frm_P_Firmas_Electronicas.Enabled = true;
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
throw new Control_Errores("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(RecargarDatos), true);
}
}
private void TareaAsincrona_CargarDatos_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
// Cargar Valores
if (CargarDatos(g_frm_P_Firmas_Electronicas.P_Base_id) == false)
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
}
catch (ThreadAbortException ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_DoWork));
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
catch (Control_Errores)
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_DoWork));
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
finally
{
e.Result = mdl_ValorDevuelto_Modelo;
}
}
private void TareaAsincrona_CargarDatos_Completed(object sender, RunWorkerCompletedEventArgs e)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
//Desbloquear el Formulario
g_frm_P_Firmas_Electronicas.Enabled = true;
try
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
//Mostrar si tuviera algun mensaje
if (mdl_ValorDevuelto_Modelo_Resultado.TodoCorrecto == false)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo_Resultado.Mensaje);
g_frm_P_Firmas_Electronicas.Salir_P_Base();
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_Completed));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
g_frm_P_Firmas_Electronicas.Salir_P_Base();
}
finally
{
//Hacemos foco al primer control.
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Exferia_TextBox_Foco();
}
}
public bool CargarDatos(long _lng_id)
{
bool bol_ValorDevuelto = true;
try
{
if (g_frm_P_Firmas_Electronicas.P_Base_ValoresGenerales != null)
{
g_mdl_GEN_Firmas_Electronicas = g_obj_GEN_Firmas_Electronicas_Datos.Obtener(_lng_id);
string str_MenuSuperior_Codigo = "";
//Si no es Nulo Cargo lo Datos
if (g_mdl_GEN_Firmas_Electronicas != null)
{
//Paginador ................................................................................
if (g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen != null &&
g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_Objetos_Filtrados != null &&
g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_Objetos_Filtrados.Count > 0)
{
long lng_id_ParaPaginacion = g_mdl_GEN_Firmas_Electronicas.id;
int int_PaginaDelObjeto = g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_Objetos_Filtrados.IndexOf(g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_Objetos_Filtrados.Where(n => n.ID.Equals(lng_id_ParaPaginacion)).FirstOrDefault());
g_frm_P_Firmas_Electronicas.g_obj_Funciones_Paginador.SetPaginaActual(int_PaginaDelObjeto);
// Asignando al paginador la pagina actual.
g_frm_P_Firmas_Electronicas.Exferia_Paginador_Firma_Electronica.PaginaActual = g_frm_P_Firmas_Electronicas.g_obj_Funciones_Paginador.GetPaginaActual();
}
//...........................................................................................
//codigo
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text = g_mdl_GEN_Firmas_Electronicas.codigo;
//descripcion
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Descripcion.Text = g_mdl_GEN_Firmas_Electronicas.descripcion;
//perm
g_frm_P_Firmas_Electronicas.Exferia_TextBox_TextPerm.Text = g_mdl_GEN_Firmas_Electronicas.text_perm;
g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Fecha = g_mdl_GEN_Firmas_Electronicas.fecha_fin?.ToString("dd/MM/yyyy");
//Actualizar el Boton de Seleccion de pantalla ####################################################
//Variables.G_EMS_CONTROL_MENUSUPERIOR.Add_Texto_NombrePantalla_Descripciones(g_frm_P_Firmas_Electronicas.Tag.ToString(), str_MenuSuperior_Codigo);
//#################################################################################################
g_frm_P_Firmas_Electronicas.P_Base_SeModificoDatosPantalla = false;
}
}
}
catch (Control_Errores)
{
bol_ValorDevuelto = false;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(CargarDatos));
bol_ValorDevuelto = false;
}
return bol_ValorDevuelto;
}
#endregion
#region Grabar Datos
public void GrabarDatos(bool _bol_VolverAlListado)
{
try
{
g_bol_GrabarDatos_VolverListado = _bol_VolverAlListado;
g_bol_GrabarDatos_TerminoCorrectamente = true;
g_frm_P_Firmas_Electronicas.Enabled = false;
g_frm_PE_Esperando = new PE_Esperando(Mensajes.G_STR_ESPERANDO_GRABANDODATOS());
//Argumentos ...................................................
List<object> lst_Argumentos = new List<object>();
//lst_Argumentos.Add(g_frm_P_Firmas_Electronicas.Exferia_TextboxHTML_Albaran_TextoFinal.Exferia_TextboxHTML_CuerpoHTML);
//lst_Argumentos.Add(g_frm_P_Firmas_Electronicas.Exferia_TextboxHTML_Factura_TextoFinal.Exferia_TextboxHTML_CuerpoHTML);
//..............................................................
g_obj_TareaAsincrona_GrabarDatos = new BackgroundWorker();
g_obj_TareaAsincrona_GrabarDatos.DoWork += new DoWorkEventHandler(TareaAsincrona_GrabarDatos_DoWork);
g_obj_TareaAsincrona_GrabarDatos.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_GrabarDatos_Completed);
g_obj_TareaAsincrona_GrabarDatos.RunWorkerAsync(lst_Argumentos);
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
g_bol_GrabarDatos_TerminoCorrectamente = false;
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
g_frm_P_Firmas_Electronicas.Enabled = true;
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(GrabarDatos));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA());
}
}
private void TareaAsincrona_GrabarDatos_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
// Validar Primero
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_VALIDACION = ValidarDatos();
if (mdl_ValorDevuelto_Modelo_VALIDACION.TodoCorrecto)
{
mdl_INTERNO_ValorDevuelto_Modelo = GrabarDatos_Final((List<object>)e.Argument);
}
else
{
mdl_INTERNO_ValorDevuelto_Modelo = mdl_ValorDevuelto_Modelo_VALIDACION;
}
}
catch (ThreadAbortException ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_GrabarDatos_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA();
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_GrabarDatos_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA();
}
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincrona_GrabarDatos_Completed(object sender, RunWorkerCompletedEventArgs e)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
g_frm_P_Firmas_Electronicas.Enabled = true;
try
{
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);
//Poner el Foco en el objeto que tuvoel problema en validar
if (mdl_ValorDevuelto_Modelo_Resultado.Objeto != null)
{
Funciones.Poner_Foco_Objeto(g_frm_P_Firmas_Electronicas, mdl_ValorDevuelto_Modelo_Resultado.Objeto);
}
}
g_bol_GrabarDatos_TerminoCorrectamente = false;
}
else
{
// Devolver al Listado el Row Añadido/Modificado
if (g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen != null)
{
g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_ActualizarRegistro(mdl_ValorDevuelto_Modelo_Resultado.Id, mdl_ValorDevuelto_Modelo_Resultado.TipoAccion);
}
else if (g_frm_P_Firmas_Electronicas.P_Base_F3Origen != null)
{
g_frm_P_Firmas_Electronicas.P_Base_F3Origen.Exferia_F3_ActualizarRegistro(mdl_ValorDevuelto_Modelo_Resultado.Id, mdl_ValorDevuelto_Modelo_Resultado.TipoAccion);
}
if (g_bol_GrabarDatos_VolverListado)
{
g_frm_P_Firmas_Electronicas.P_Base_SeModificoDatosPantalla = false;
g_frm_P_Firmas_Electronicas.Salir_P_Base();
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_GrabarDatos_Completed));
}
}
public INTERNO_ValorDevuelto_Modelo ValidarDatos()
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_ValorDevuelto_Modelo.TodoCorrecto = true;
//Solo se Utiliza para ver el Nombre de los campos
GEN_Firmas_Electronicas mdl_GEN_Firmas_Electronicas;
try
{
//Si el codigo esta vacio y se intenta buscar el ultimo numerico y llego al limite de base de datos
if (g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text.Trim().Length == 0)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = Buscar_CodigoSiguiente();
if (mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto == false)
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = mdl_INTERNO_ValorDevuelto_Modelo.Mensaje;
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo;
}
}
// El codigo no puede estar Repetido
if (mdl_ValorDevuelto_Modelo.TodoCorrecto)
{
string str_Codigo = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text.Trim();
if (g_bol_CampoCodigo_Numerico)
{
int int_Codigo = int.Parse(str_Codigo);
str_Codigo = int_Codigo.ToString();
}
if (Datos_Generales.Buscar_CodigoRepetido(nameof(GEN_Firmas_Electronicas), nameof(GEN_Firmas_Electronicas.codigo), str_Codigo, nameof(mdl_GEN_Firmas_Electronicas.id), (g_mdl_GEN_Firmas_Electronicas != null ? g_mdl_GEN_Firmas_Electronicas.id : -1), "", -1, false))
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_REPETIDO(g_frm_P_Firmas_Electronicas.Exferia_Label_Codigo.Text);
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo;
}
}
// La Descripcion no puede estar vacía
if ((mdl_ValorDevuelto_Modelo.TodoCorrecto) && (g_frm_P_Firmas_Electronicas.Exferia_TextBox_Descripcion.Text.Trim().Length == 0))
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_VACIO(g_frm_P_Firmas_Electronicas.Exferia_Label_Descripcion.Text);
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Descripcion;
}
// La textperm no puede estar vacía
if ((mdl_ValorDevuelto_Modelo.TodoCorrecto) && (g_frm_P_Firmas_Electronicas.Exferia_TextBox_TextPerm.Text.Trim().Length == 0))
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_VACIO(g_frm_P_Firmas_Electronicas.Exferia_Label_TextPerm.Text);
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_TextBox_TextPerm;
}
// La fecha no puede estar vacia y debe ser correcta
if (mdl_ValorDevuelto_Modelo.TodoCorrecto)
{
int int_fechaAlta_Respuesta = Funciones.Fecha_Validacion(g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Fecha.Trim(' ', '/'));
if (int_fechaAlta_Respuesta == 1)//Vacia
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_VACIO(g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Descripcion);
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha;
}
else if (int_fechaAlta_Respuesta == 2)//Incorrecta
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_GENERAL_VALIDACIONES_FECHA_INCORRECTA(g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Descripcion);
mdl_ValorDevuelto_Modelo.Objeto = g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha;
}
}
}
catch (Control_Errores)
{
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_VALIDARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(ValidarDatos));
mdl_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_VALIDARDATOSPANTALLA();
}
return mdl_ValorDevuelto_Modelo;
}
private INTERNO_ValorDevuelto_Modelo GrabarDatos_Final(List<object> _lst_Argumentos)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
try
{
GEN_Firmas_Electronicas mdl_GEN_Firmas_Electronicas = new GEN_Firmas_Electronicas();
//id
mdl_GEN_Firmas_Electronicas.id = g_mdl_GEN_Firmas_Electronicas != null ? g_mdl_GEN_Firmas_Electronicas.id : -1;
//codigo
if (g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text.Trim().Length == 0)
{
Buscar_CodigoSiguiente();
}
if (g_bol_CampoCodigo_Numerico)
{
int int_Codigo = int.Parse(g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text.Trim());
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text = int_Codigo.ToString();
}
mdl_GEN_Firmas_Electronicas.codigo = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Text.Trim();
mdl_GEN_Firmas_Electronicas.idEmpresa = IdEmpresaDef;
//descripcion
mdl_GEN_Firmas_Electronicas.descripcion = g_frm_P_Firmas_Electronicas.Exferia_TextBox_Descripcion.Text.Trim();
mdl_GEN_Firmas_Electronicas.text_perm = g_frm_P_Firmas_Electronicas.Exferia_TextBox_TextPerm.Text.Trim();
mdl_GEN_Firmas_Electronicas.fecha_fin = DateTime.ParseExact(g_frm_P_Firmas_Electronicas.Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Fecha, "dd/MM/yyyy", CultureInfo.InvariantCulture);
// Se graba el modelo ya relleno
mdl_INTERNO_ValorDevuelto_Modelo = g_obj_GEN_Firmas_Electronicas_Datos.Grabar(mdl_GEN_Firmas_Electronicas);
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(GrabarDatos_Final));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_GRABARDATOSPANTALLA();
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
#region Borrar Datos
public void BorrarDatos(bool _bol_VolverAlListado)
{
try
{
// Preguntar si esta Seguro de Borrar
if (Mensajes.MostrarMensaje_Pregunta(Mensajes.G_STR_MENSAJES_GENERAL_PREGUNTA_BORRAR()))
{
g_bol_BorrarDatos_VolverListado = _bol_VolverAlListado;
g_frm_P_Firmas_Electronicas.Enabled = false;
g_frm_PE_Esperando = new PE_Esperando(Mensajes.G_STR_ESPERANDO_BORRANDODATOS());
g_obj_TareaAsincrona_BorrarDatos = new BackgroundWorker();
g_obj_TareaAsincrona_BorrarDatos.DoWork += new DoWorkEventHandler(TareaAsincrona_BorrarDatos_DoWork);
g_obj_TareaAsincrona_BorrarDatos.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_BorrarDatos_Completed);
g_obj_TareaAsincrona_BorrarDatos.RunWorkerAsync();
g_frm_PE_Esperando.ShowDialog();
}
}
catch (Exception ex)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
g_frm_P_Firmas_Electronicas.Enabled = true;
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(BorrarDatos));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA());
}
}
private void TareaAsincrona_BorrarDatos_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
// Borrar
mdl_INTERNO_ValorDevuelto_Modelo = BorrarDatos_Final();
}
catch (ThreadAbortException ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_BorrarDatos_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA();
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_BorrarDatos_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA();
}
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincrona_BorrarDatos_Completed(object sender, RunWorkerCompletedEventArgs e)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
g_frm_P_Firmas_Electronicas.Enabled = true;
try
{
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);
}
}
else
{
// Devolver al Listado el Row Borrar
if (g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen != null)
{
g_frm_P_Firmas_Electronicas.P_Base_PantallaOrigen.P_Base_ActualizarRegistro(mdl_ValorDevuelto_Modelo_Resultado.Id, mdl_ValorDevuelto_Modelo_Resultado.TipoAccion);
}
else if (g_frm_P_Firmas_Electronicas.P_Base_F3Origen != null)
{
g_frm_P_Firmas_Electronicas.P_Base_F3Origen.Exferia_F3_ActualizarRegistro(mdl_ValorDevuelto_Modelo_Resultado.Id, mdl_ValorDevuelto_Modelo_Resultado.TipoAccion);
}
if (g_bol_BorrarDatos_VolverListado)
{
g_frm_P_Firmas_Electronicas.P_Base_SeModificoDatosPantalla = false;
g_frm_P_Firmas_Electronicas.Salir_P_Base();
}
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_BorrarDatos_Completed));
}
}
private INTERNO_ValorDevuelto_Modelo BorrarDatos_Final()
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
try
{
mdl_INTERNO_ValorDevuelto_Modelo = g_obj_GEN_Firmas_Electronicas_Datos.Borrar(g_mdl_GEN_Firmas_Electronicas != null ? g_mdl_GEN_Firmas_Electronicas.id : -1);
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(BorrarDatos_Final));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_BORRARDATOSPANTALLA();
}
return mdl_INTERNO_ValorDevuelto_Modelo;
}
#endregion
#region Copiar datos de otro año
public List<dynamic> Listado_Firmas_Electronicas()
{
return g_obj_GEN_Firmas_Electronicas_Datos.Obtener_Listado_Simple();
}
/*
public void Cargar_Datos_OtroAnyo(long _lng_id)
{
try
{
//Bloquear el formulario para que no se pueda hacer nada hasta que termine
g_frm_P_Firmas_Electronicas.Enabled = false;
//Mostrar la pantalla de espera
g_frm_PE_Esperando = new PE_Esperando();
// Si la tarea asincrona esta en marcha la paro
if (g_obj_TareaAsincrona_CargarDatos_OtroAnyo != null)
{
while (g_obj_TareaAsincrona_CargarDatos_OtroAnyo.IsBusy)
Application.DoEvents();
//Vaciar
VaciarDatos(true);
}
else
{
g_obj_TareaAsincrona_CargarDatos_OtroAnyo = new BackgroundWorker();
g_obj_TareaAsincrona_CargarDatos_OtroAnyo.DoWork += new DoWorkEventHandler(TareaAsincrona_CargarDatos_OtroAnyo_DoWork);
g_obj_TareaAsincrona_CargarDatos_OtroAnyo.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_CargarDatos_OtroAnyo_Completed);
g_obj_TareaAsincrona_CargarDatos_OtroAnyo.WorkerReportsProgress = false;
}
//(Tarea Asincrona) Cargar Datos ##################################################################
g_obj_TareaAsincrona_CargarDatos_OtroAnyo.RunWorkerAsync(_lng_id);
//#################################################################################################
g_frm_PE_Esperando.ShowDialog();
}
catch (Exception ex)
{
g_frm_P_Firmas_Electronicas.Enabled = true;
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
throw new Control_Errores("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(Cargar_Datos_OtroAnyo), true);
}
}
private void TareaAsincrona_CargarDatos_OtroAnyo_DoWork(object sender, DoWorkEventArgs e)
{
INTERNO_ValorDevuelto_Modelo mdl_INTERNO_ValorDevuelto_Modelo = new INTERNO_ValorDevuelto_Modelo();
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = true;
try
{
// Cargar Valores
if (CargarDatos_OtroAnyo_Final((long)e.Argument) == false)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
}
catch (ThreadAbortException ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_OtroAnyo_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
catch (Control_Errores)
{
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_OtroAnyo_DoWork));
mdl_INTERNO_ValorDevuelto_Modelo.TodoCorrecto = false;
mdl_INTERNO_ValorDevuelto_Modelo.Mensaje = Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA();
}
finally
{
e.Result = mdl_INTERNO_ValorDevuelto_Modelo;
}
}
private void TareaAsincrona_CargarDatos_OtroAnyo_Completed(object sender, RunWorkerCompletedEventArgs e)
{
if (g_frm_PE_Esperando != null)
{
g_frm_PE_Esperando.Close();
g_frm_PE_Esperando = null;
}
//Desbloquear el Formulario
g_frm_P_Firmas_Electronicas.Enabled = true;
try
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
//Mostrar si tuviera algun mensaje
if (mdl_ValorDevuelto_Modelo_Resultado.TodoCorrecto == false)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo_Resultado.Mensaje);
}
else
{
/*
if (g_mdl_GEN_Firmas_Electronicas_PARACOPIA != null)
{
if (g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Albaran_Informe_TextoFinal != null &&
g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Albaran_Informe_TextoFinal.Trim().Length > 0)
{
g_frm_P_Firmas_Electronicas.Exferia_TextboxHTML_Albaran_TextoFinal.Exferia_TextboxHTML_CuerpoHTML = g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Albaran_Informe_TextoFinal;
}
if (g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Factura_Informe_TextoFinal != null &&
g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Factura_Informe_TextoFinal.Trim().Length > 0)
{
g_frm_P_Firmas_Electronicas.Exferia_TextboxHTML_Factura_TextoFinal.Exferia_TextboxHTML_CuerpoHTML = g_mdl_GEN_Firmas_Electronicas_PARACOPIA.venta_Factura_Informe_TextoFinal;
}
}
* /
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(TareaAsincrona_CargarDatos_OtroAnyo_Completed));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
}
finally
{
//Hacemos foco al primer control.
g_frm_P_Firmas_Electronicas.Exferia_TextBox_Codigo.Exferia_TextBox_Foco();
}
}
private bool CargarDatos_OtroAnyo_Final(long _lng_id)
{
bool bol_ValorDevuelto = true;
try
{
g_mdl_GEN_Firmas_Electronicas_PARACOPIA = g_obj_GEN_Firmas_Electronicas_Datos.Obtener(_lng_id);
//Si no es Nulo Cargo lo Datos
if (g_mdl_GEN_Firmas_Electronicas_PARACOPIA != null)
{
/*
//Logo Superior Izquierda
if (g_mdl_GEN_Firmas_Electronicas_PARACOPIA.imagen_Logo_SuperiorIzquierda != null)
{
g_arr_Logo_SuperiorIzquierda_Inicial = g_mdl_GEN_Firmas_Electronicas_PARACOPIA.imagen_Logo_SuperiorIzquierda;
g_img_Logo_SuperiorIzquierda_Real = Funciones.Convertir_Arraybytes_Image(g_mdl_GEN_Firmas_Electronicas_PARACOPIA.imagen_Logo_SuperiorIzquierda);
}
* /
g_frm_P_Firmas_Electronicas.P_Base_SeModificoDatosPantalla = false;
}
}
catch (Control_Errores)
{
bol_ValorDevuelto = false;
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas_Controladora) + "/" + nameof(CargarDatos_OtroAnyo_Final));
bol_ValorDevuelto = false;
}
return bol_ValorDevuelto;
}
*/
#endregion
}
}

View File

@ -0,0 +1,115 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Modelos_Listado_Filtros;
using Exferia_EntityFramework;
using Exferia_General._0_Modelos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Exferia_Aplicacion.General.Enumerados;
namespace Exferia_General._3_Vistas.Listados
{
public class ABS_Listado_GEN_Firmas_Electronicas : ABS_Listado
{
private Dictionary<string, INTERNO_ABS_Listado_ColumnasDatos_Modelo> g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo = new Dictionary<string, INTERNO_ABS_Listado_ColumnasDatos_Modelo>();
//Constructor
public ABS_Listado_GEN_Firmas_Electronicas()
{
Rellenar_Columnas();
}
private void Rellenar_Columnas()
{
g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Add(nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.id), new INTERNO_ABS_Listado_ColumnasDatos_Modelo(true, nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.id), "id", G_ENUM_TIPOSDATOS.LONG, true, 0, false, false, true, false, "", null));
g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Add(nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.codigo), new INTERNO_ABS_Listado_ColumnasDatos_Modelo(false, nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.codigo), "Código", G_ENUM_TIPOSDATOS.LONG_TEXT, false, 90, true, true, true, false, "", null));
g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Add(nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.descripcion), new INTERNO_ABS_Listado_ColumnasDatos_Modelo(false, nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.descripcion), "Descripción", G_ENUM_TIPOSDATOS.TEXT, false, 250, true, true, true, false, "", null));
//Empresa
g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Add(nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.Empresa), new INTERNO_ABS_Listado_ColumnasDatos_Modelo(false, nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.Empresa), "Empresa", G_ENUM_TIPOSDATOS.TEXT, false, 250, true, true, true, false, "", null));
g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Add(nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.text_perm), new INTERNO_ABS_Listado_ColumnasDatos_Modelo(false, nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.text_perm), "Text_perm", G_ENUM_TIPOSDATOS.TEXT, false, 250, true, true, true, false, "", null));
}
public override List<dynamic> LISTADO()
{
return Registros;
}
public override INTERNO_OpcionesDetalle_Modelo DATOS_OPCION()
{
return Datos_Generales.PRV_Opciones_Buscar_Detalles(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS);
}
public override string NOMBRELISTADO_ALMACENARCONFIGURACION()
{
return Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS;
}
public override Dictionary<string, INTERNO_ABS_Listado_ColumnasDatos_Modelo> LISTADO_COLUMNAS()
{
return g_dct_INTERNO_ABS_Listado_ColumnasDatos_Modelo;
}
public override string ORDENACION_NOMBRECOLUMNA_PORDEFECTO()
{
return nameof(INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.codigo);
}
public override string ORDENACION_TIPO_PORDEFECTO()
{
return "0";
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_1()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_2()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_3()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_4()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_5()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_6()
{
return null;
}
public override INTERNO_Listado_BotonesAuxiliares_Modelo BOTONAUXILIAR_7()
{
return null;
}
public override List<INTERNO_ArbolSecundarioSeleccion_Modelo> LISTADO_ARBOLSECUNDARIOSELECCION()
{
return null;
}
public override List<INTERNO_Listado_Paginado_Filtro_Modelo> FILTRADO_PARAPAGINADO()
{
return null;
}
public override List<string> LISTADOCAMPOS_ENVIAR_A_MANTENIMIENTO()
{
return null;
}
}
}

View File

@ -38,6 +38,8 @@
this.ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes = new Exferia_Controles.Exferia_Button();
this.exferia_Label5 = new Exferia_Controles.Exferia_Label(); this.exferia_Label5 = new Exferia_Controles.Exferia_Label();
this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma = new Exferia_Controles.Exferia_Button();
this.exferia_Button1 = new Exferia_Controles.Exferia_Button();
this.exferia_Label6 = new Exferia_Controles.Exferia_Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// ex_btn_P_ConfiguracioGeneral_ConfiguracionCampoCodigo // ex_btn_P_ConfiguracioGeneral_ConfiguracionCampoCodigo
@ -190,10 +192,42 @@
this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma.UseVisualStyleBackColor = false; this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma.UseVisualStyleBackColor = false;
this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma.Click += new System.EventHandler(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma_Click); this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma.Click += new System.EventHandler(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma_Click);
// //
// firmas digitales
//
this.exferia_Button1.BackColor = System.Drawing.Color.Maroon;
this.exferia_Button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.exferia_Button1.Exferia_Button_Bloqueable = true;
this.exferia_Button1.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_FIRMA_E;
this.exferia_Button1.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.exferia_Button1.Exferia_Button_ReadOnly = false;
this.exferia_Button1.Exferia_Button_TabStop = false;
this.exferia_Button1.Exferia_Button_ToolTip = "Configuración de informes";
this.exferia_Button1.FlatAppearance.BorderSize = 0;
this.exferia_Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.exferia_Button1.Location = new System.Drawing.Point(12, 285);
this.exferia_Button1.Name = "exferia_Button1";
this.exferia_Button1.Size = new System.Drawing.Size(31, 36);
this.exferia_Button1.TabIndex = 55;
this.exferia_Button1.TabStop = false;
this.exferia_Button1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.exferia_Button1.UseVisualStyleBackColor = false;
this.exferia_Button1.Click += new System.EventHandler(this.firmasDigitales_Click);
//
// firmas digitales
//
this.exferia_Label6.AutoSize = true;
this.exferia_Label6.Location = new System.Drawing.Point(48, 308);
this.exferia_Label6.Name = "exferia_Label6";
this.exferia_Label6.Size = new System.Drawing.Size(78, 13);
this.exferia_Label6.TabIndex = 56;
this.exferia_Label6.Text = "Firmas digitales";
//
// P_ConfiguracionGeneral // P_ConfiguracionGeneral
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.ClientSize = new System.Drawing.Size(797, 670); this.ClientSize = new System.Drawing.Size(797, 670);
this.Controls.Add(this.exferia_Label6);
this.Controls.Add(this.exferia_Button1);
this.Controls.Add(this.exferia_Label5); this.Controls.Add(this.exferia_Label5);
this.Controls.Add(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma); this.Controls.Add(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma);
this.Controls.Add(this.exferia_Label4); this.Controls.Add(this.exferia_Label4);
@ -215,6 +249,8 @@
this.Controls.SetChildIndex(this.exferia_Label4, 0); this.Controls.SetChildIndex(this.exferia_Label4, 0);
this.Controls.SetChildIndex(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma, 0); this.Controls.SetChildIndex(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma, 0);
this.Controls.SetChildIndex(this.exferia_Label5, 0); this.Controls.SetChildIndex(this.exferia_Label5, 0);
this.Controls.SetChildIndex(this.exferia_Button1, 0);
this.Controls.SetChildIndex(this.exferia_Label6, 0);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -232,5 +268,7 @@
private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes; private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes;
private Exferia_Controles.Exferia_Label exferia_Label5; private Exferia_Controles.Exferia_Label exferia_Label5;
private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma; private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma;
private Exferia_Controles.Exferia_Button exferia_Button1;
private Exferia_Controles.Exferia_Label exferia_Label6;
} }
} }

View File

@ -246,8 +246,41 @@ namespace Exferia_General._3_Vistas
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionGeneral) + "/" + nameof(ConfiguracionDireccionesSWSigma)); Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionGeneral) + "/" + nameof(ConfiguracionDireccionesSWSigma));
} }
} }
#endregion #endregion
private void firmasDigitales_Click(object sender, EventArgs e)
{
ConfiguracionFirmasDigitales();
}
private void ConfiguracionFirmasDigitales()
{
try
{
INTERNO_OpcionesDetalle_Modelo mdl_INTERNO_OpcionesDetalle_Modelo = Datos_Generales.PRV_Opciones_Buscar_Detalles(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS);
if (mdl_INTERNO_OpcionesDetalle_Modelo != null)
{
//Cargamos el ensamblado
Assembly m_assembly = Assembly.LoadFrom(Variables.G_STR_LIBRERIA_RUTAINICIAL + @"\" + Variables.G_STR_LIBRERIA_GENERAL + ".dll");
//Obtenemos el tipo de la clase
Type m_type = m_assembly.GetType(Variables.G_STR_LIBRERIA_GENERAL + "." + Variables.G_STR_LIBRERIA_OPCIONES);
//creamos la instancia
var obj_Clase = Activator.CreateInstance(m_type);
//Cargamos el metodo solicitado
MethodInfo obj_MethodInfo = obj_Clase.GetType().GetMethod(Variables.G_STR_LIBRERIA_OPCIONES_PROCEDIMIENTO_CARGAR_LISTADO, BindingFlags.Instance | BindingFlags.NonPublic);
//Obtener valores
object[] arr_Parametros = { mdl_INTERNO_OpcionesDetalle_Modelo.opcion, false, 0, null, Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO, Variables.G_DTT_FECHA_INICIAL_PORDEFECTO, "", "", false, false, null, null, null, null, null, null };
//Pasamos los parametros al metodo y lo ejecutamos
obj_MethodInfo.Invoke(obj_Clase, arr_Parametros);
}
}
catch (Exception ex)
{
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionGeneral) + "/" + nameof(ConfiguracionFirmasDigitales));
}
}
} }
} }

View File

@ -0,0 +1,308 @@
namespace Exferia_General._3_Vistas
{
partial class P_Firmas_Electronicas
{
/// <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 Código generado por el Diseñador de Windows Forms
/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido de este método con el editor de código.
/// </summary>
private void InitializeComponent()
{
this.ex_lbl_P_Firma_Electronica_Codigo = new Exferia_Controles.Exferia_Label();
this.ex_btn_P_Firma_Electronical_Borrar = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_Firma_Electronica_Grabar = new Exferia_Controles.Exferia_Button();
this.ex_txt_P_Firma_Electronica_Codigo = new Exferia_Controles.Exferia_TextBox();
this.ex_txt_P_Firma_Electronica_textPerm = new Exferia_Controles.Exferia_TextBox();
this.ex_lbl_P_Firma_electronica_label_text_perm = new Exferia_Controles.Exferia_Label();
this.ex_Paginador_Firma_Electronica = new Exferia_Controles.Exferia_Paginador();
this.ex_btn_P_Firma_Electronica_CodigoSiguiente = new Exferia_Controles.Exferia_Button();
this.ex_txt_P_Firma_Electronica_Descripcion = new Exferia_Controles.Exferia_TextBox();
this.ex_lbl_P_Firma_Electronical_Descripcion = new Exferia_Controles.Exferia_Label();
this.ex_usc_Firma_Electronica_Fecha = new Exferia_Controles.Exferia_FechaSeleccion();
this.SuspendLayout();
//
// ex_lbl_P_Firma_Electronica_Codigo
//
this.ex_lbl_P_Firma_Electronica_Codigo.AutoSize = true;
this.ex_lbl_P_Firma_Electronica_Codigo.Location = new System.Drawing.Point(25, 105);
this.ex_lbl_P_Firma_Electronica_Codigo.Name = "ex_lbl_P_Firma_Electronica_Codigo";
this.ex_lbl_P_Firma_Electronica_Codigo.Size = new System.Drawing.Size(40, 13);
this.ex_lbl_P_Firma_Electronica_Codigo.TabIndex = 39;
this.ex_lbl_P_Firma_Electronica_Codigo.Text = "Código";
//
// ex_btn_P_Firma_Electronical_Borrar
//
this.ex_btn_P_Firma_Electronical_Borrar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ex_btn_P_Firma_Electronical_Borrar.BackColor = System.Drawing.Color.Maroon;
this.ex_btn_P_Firma_Electronical_Borrar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_Bloqueable = true;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_BORRAR;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_ReadOnly = false;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_TabStop = false;
this.ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_ToolTip = "Borrar (F5)";
this.ex_btn_P_Firma_Electronical_Borrar.FlatAppearance.BorderSize = 0;
this.ex_btn_P_Firma_Electronical_Borrar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ex_btn_P_Firma_Electronical_Borrar.Location = new System.Drawing.Point(754, 86);
this.ex_btn_P_Firma_Electronical_Borrar.Name = "ex_btn_P_Firma_Electronical_Borrar";
this.ex_btn_P_Firma_Electronical_Borrar.Size = new System.Drawing.Size(31, 36);
this.ex_btn_P_Firma_Electronical_Borrar.TabIndex = 42;
this.ex_btn_P_Firma_Electronical_Borrar.TabStop = false;
this.ex_btn_P_Firma_Electronical_Borrar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.ex_btn_P_Firma_Electronical_Borrar.UseVisualStyleBackColor = false;
this.ex_btn_P_Firma_Electronical_Borrar.Click += new System.EventHandler(this.ex_btn_P_ConfiguracionEmail_Borrar_Click);
//
// ex_btn_P_Firma_Electronica_Grabar
//
this.ex_btn_P_Firma_Electronica_Grabar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ex_btn_P_Firma_Electronica_Grabar.BackColor = System.Drawing.Color.Maroon;
this.ex_btn_P_Firma_Electronica_Grabar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_Bloqueable = true;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_GUARDAR;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_ReadOnly = false;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_TabStop = false;
this.ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_ToolTip = "Grabar (F2)";
this.ex_btn_P_Firma_Electronica_Grabar.FlatAppearance.BorderSize = 0;
this.ex_btn_P_Firma_Electronica_Grabar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ex_btn_P_Firma_Electronica_Grabar.Location = new System.Drawing.Point(754, 44);
this.ex_btn_P_Firma_Electronica_Grabar.Name = "ex_btn_P_Firma_Electronica_Grabar";
this.ex_btn_P_Firma_Electronica_Grabar.Size = new System.Drawing.Size(31, 36);
this.ex_btn_P_Firma_Electronica_Grabar.TabIndex = 41;
this.ex_btn_P_Firma_Electronica_Grabar.TabStop = false;
this.ex_btn_P_Firma_Electronica_Grabar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.ex_btn_P_Firma_Electronica_Grabar.UseVisualStyleBackColor = false;
this.ex_btn_P_Firma_Electronica_Grabar.Click += new System.EventHandler(this.ex_btn_P_ConfiguracionEmail_Grabar_Click);
//
// ex_txt_P_Firma_Electronica_Codigo
//
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Bloqueable = true;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(237)))), ((int)(((byte)(175)))));
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_MaxLength = 10;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Multiline = false;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_NoBloquear = true;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Obligatorio = true;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_PasswordChar = '\0';
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Permitir_CambioFuenteAutomatico = true;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_ReadOnly = false;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.None;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_SelectionLength = 0;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_SelectionStart = 0;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_TabStop_Txt = true;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Texto_Inicial = "";
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_UseSystemPasswordChar = false;
this.ex_txt_P_Firma_Electronica_Codigo.Location = new System.Drawing.Point(129, 97);
this.ex_txt_P_Firma_Electronica_Codigo.Name = "ex_txt_P_Firma_Electronica_Codigo";
this.ex_txt_P_Firma_Electronica_Codigo.Padding = new System.Windows.Forms.Padding(2);
this.ex_txt_P_Firma_Electronica_Codigo.Size = new System.Drawing.Size(250, 22);
this.ex_txt_P_Firma_Electronica_Codigo.TabIndex = 44;
this.ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Evento_TextChanged += new System.EventHandler(this.Controlar_Modificaciones_TextBox_TextChanged);
//
// ex_txt_P_Firma_Electronica_textPerm
//
this.ex_txt_P_Firma_Electronica_textPerm.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Bloqueable = true;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_MaxLength = 1025;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Multiline = true;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_NoBloquear = true;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Obligatorio = false;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_PasswordChar = '\0';
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Permitir_CambioFuenteAutomatico = true;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_ReadOnly = false;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.None;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_SelectionLength = 0;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_SelectionStart = 0;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_TabStop_Txt = true;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Texto_Inicial = "";
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_UseSystemPasswordChar = false;
this.ex_txt_P_Firma_Electronica_textPerm.Location = new System.Drawing.Point(25, 218);
this.ex_txt_P_Firma_Electronica_textPerm.Name = "ex_txt_P_Firma_Electronica_textPerm";
this.ex_txt_P_Firma_Electronica_textPerm.Padding = new System.Windows.Forms.Padding(2);
this.ex_txt_P_Firma_Electronica_textPerm.Size = new System.Drawing.Size(708, 282);
this.ex_txt_P_Firma_Electronica_textPerm.TabIndex = 48;
this.ex_txt_P_Firma_Electronica_textPerm.Exferia_TextBox_Evento_TextChanged += new System.EventHandler(this.Controlar_Modificaciones_TextBox_TextChanged);
//
// ex_lbl_P_Firma_electronica_label_text_perm
//
this.ex_lbl_P_Firma_electronica_label_text_perm.AutoSize = true;
this.ex_lbl_P_Firma_electronica_label_text_perm.Location = new System.Drawing.Point(25, 202);
this.ex_lbl_P_Firma_electronica_label_text_perm.Name = "ex_lbl_P_Firma_electronica_label_text_perm";
this.ex_lbl_P_Firma_electronica_label_text_perm.Size = new System.Drawing.Size(117, 13);
this.ex_lbl_P_Firma_electronica_label_text_perm.TabIndex = 47;
this.ex_lbl_P_Firma_electronica_label_text_perm.Text = "Perm Firma electronica:";
//
// ex_Paginador_Firma_Electronica
//
this.ex_Paginador_Firma_Electronica.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ex_Paginador_Firma_Electronica.Location = new System.Drawing.Point(25, 619);
this.ex_Paginador_Firma_Electronica.Name = "ex_Paginador_Firma_Electronica";
this.ex_Paginador_Firma_Electronica.PaginaActual = 1;
this.ex_Paginador_Firma_Electronica.PaginasTotales = 1;
this.ex_Paginador_Firma_Electronica.Size = new System.Drawing.Size(405, 39);
this.ex_Paginador_Firma_Electronica.TabIndex = 70;
this.ex_Paginador_Firma_Electronica.TabStop = false;
this.ex_Paginador_Firma_Electronica.txt_ValorPaginaActual = 999999999;
this.ex_Paginador_Firma_Electronica.Exferia_Paginador_Evento_Primera_Click += new System.EventHandler(this.ctu_Paginacion_Primera_Click);
this.ex_Paginador_Firma_Electronica.Exferia_Paginador_Evento_Anterior_Click += new System.EventHandler(this.ctu_Paginacion_Anterior_Click);
this.ex_Paginador_Firma_Electronica.Exferia_Paginador_Evento_Siguiente_Click += new System.EventHandler(this.ctu_Paginacion_Siguiente_Click);
this.ex_Paginador_Firma_Electronica.Exferia_Paginador_Evento_Ultima_Click += new System.EventHandler(this.ctu_Paginacion_Ultima_Click);
this.ex_Paginador_Firma_Electronica.Exferia_Paginador_Evento_PaginaActual_KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_PaginaActual_KeyPress);
//
// ex_btn_P_Firma_Electronica_CodigoSiguiente
//
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.BackColor = System.Drawing.Color.Maroon;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_Bloqueable = true;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_BUSCARCODIGO_P;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_ReadOnly = false;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_TabStop = false;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Exferia_Button_ToolTip = "";
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.FlatAppearance.BorderSize = 0;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Location = new System.Drawing.Point(383, 97);
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Name = "ex_btn_P_Firma_Electronica_CodigoSiguiente";
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Size = new System.Drawing.Size(21, 21);
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.TabIndex = 71;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.TabStop = false;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.UseVisualStyleBackColor = false;
this.ex_btn_P_Firma_Electronica_CodigoSiguiente.Click += new System.EventHandler(this.ex_btn_P_Firma_Electronica_BuscarCodigoSiguiente_Click);
//
// ex_txt_P_Firma_Electronica_Descripcion
//
this.ex_txt_P_Firma_Electronica_Descripcion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Bloqueable = true;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(237)))), ((int)(((byte)(175)))));
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_MaxLength = 50;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Multiline = false;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_NoBloquear = true;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Obligatorio = true;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_PasswordChar = '\0';
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Permitir_CambioFuenteAutomatico = true;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_ReadOnly = false;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.None;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_SelectionLength = 0;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_SelectionStart = 0;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_TabStop_Txt = true;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Texto_Inicial = "";
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_UseSystemPasswordChar = false;
this.ex_txt_P_Firma_Electronica_Descripcion.Location = new System.Drawing.Point(129, 125);
this.ex_txt_P_Firma_Electronica_Descripcion.Name = "ex_txt_P_Firma_Electronica_Descripcion";
this.ex_txt_P_Firma_Electronica_Descripcion.Padding = new System.Windows.Forms.Padding(2);
this.ex_txt_P_Firma_Electronica_Descripcion.Size = new System.Drawing.Size(596, 22);
this.ex_txt_P_Firma_Electronica_Descripcion.TabIndex = 74;
this.ex_txt_P_Firma_Electronica_Descripcion.Exferia_TextBox_Evento_TextChanged += new System.EventHandler(this.Controlar_Modificaciones_TextBox_TextChanged);
//
// ex_lbl_P_Firma_Electronical_Descripcion
//
this.ex_lbl_P_Firma_Electronical_Descripcion.AutoSize = true;
this.ex_lbl_P_Firma_Electronical_Descripcion.Location = new System.Drawing.Point(25, 128);
this.ex_lbl_P_Firma_Electronical_Descripcion.Name = "ex_lbl_P_Firma_Electronical_Descripcion";
this.ex_lbl_P_Firma_Electronical_Descripcion.Size = new System.Drawing.Size(63, 13);
this.ex_lbl_P_Firma_Electronical_Descripcion.TabIndex = 75;
this.ex_lbl_P_Firma_Electronical_Descripcion.Text = "Descripción";
//
// ex_usc_Firma_Electronica_Fecha
//
this.ex_usc_Firma_Electronica_Fecha.BackColor = System.Drawing.Color.Transparent;
this.ex_usc_Firma_Electronica_Fecha.Exferia_FechaSeleccion_Bloqueable = true;
this.ex_usc_Firma_Electronica_Fecha.Exferia_FechaSeleccion_Descripcion = "Fecha";
this.ex_usc_Firma_Electronica_Fecha.Exferia_FechaSeleccion_Fecha = " / /";
this.ex_usc_Firma_Electronica_Fecha.Exferia_FechaSeleccion_Obligatorio = true;
this.ex_usc_Firma_Electronica_Fecha.Exferia_FechaSeleccion_ReadOnly = false;
this.ex_usc_Firma_Electronica_Fecha.Location = new System.Drawing.Point(28, 153);
this.ex_usc_Firma_Electronica_Fecha.Name = "ex_usc_Firma_Electronica_Fecha";
this.ex_usc_Firma_Electronica_Fecha.Size = new System.Drawing.Size(212, 28);
this.ex_usc_Firma_Electronica_Fecha.TabIndex = 78;
//
// P_Firmas_Electronicas
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.ClientSize = new System.Drawing.Size(797, 670);
this.Controls.Add(this.ex_usc_Firma_Electronica_Fecha);
this.Controls.Add(this.ex_lbl_P_Firma_Electronical_Descripcion);
this.Controls.Add(this.ex_txt_P_Firma_Electronica_Descripcion);
this.Controls.Add(this.ex_btn_P_Firma_Electronica_CodigoSiguiente);
this.Controls.Add(this.ex_Paginador_Firma_Electronica);
this.Controls.Add(this.ex_txt_P_Firma_Electronica_textPerm);
this.Controls.Add(this.ex_lbl_P_Firma_electronica_label_text_perm);
this.Controls.Add(this.ex_txt_P_Firma_Electronica_Codigo);
this.Controls.Add(this.ex_btn_P_Firma_Electronical_Borrar);
this.Controls.Add(this.ex_btn_P_Firma_Electronica_Grabar);
this.Controls.Add(this.ex_lbl_P_Firma_Electronica_Codigo);
this.Name = "P_Firmas_Electronicas";
this.Load += new System.EventHandler(this.P_Firma_Electronica_Load);
this.Shown += new System.EventHandler(this.P_Firma_Electronica_Shown);
this.Controls.SetChildIndex(this.ex_lbl_P_Firma_Electronica_Codigo, 0);
this.Controls.SetChildIndex(this.ex_btn_P_Firma_Electronica_Grabar, 0);
this.Controls.SetChildIndex(this.ex_btn_P_Firma_Electronical_Borrar, 0);
this.Controls.SetChildIndex(this.ex_txt_P_Firma_Electronica_Codigo, 0);
this.Controls.SetChildIndex(this.ex_lbl_P_Firma_electronica_label_text_perm, 0);
this.Controls.SetChildIndex(this.ex_txt_P_Firma_Electronica_textPerm, 0);
this.Controls.SetChildIndex(this.ex_Paginador_Firma_Electronica, 0);
this.Controls.SetChildIndex(this.ex_btn_P_Firma_Electronica_CodigoSiguiente, 0);
this.Controls.SetChildIndex(this.ex_txt_P_Firma_Electronica_Descripcion, 0);
this.Controls.SetChildIndex(this.ex_lbl_P_Firma_Electronical_Descripcion, 0);
this.Controls.SetChildIndex(this.ex_usc_Firma_Electronica_Fecha, 0);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Exferia_Controles.Exferia_Label ex_lbl_P_Firma_Electronica_Codigo;
private Exferia_Controles.Exferia_Button ex_btn_P_Firma_Electronical_Borrar;
private Exferia_Controles.Exferia_Button ex_btn_P_Firma_Electronica_Grabar;
private Exferia_Controles.Exferia_TextBox ex_txt_P_Firma_Electronica_Codigo;
private Exferia_Controles.Exferia_TextBox ex_txt_P_Firma_Electronica_textPerm;
private Exferia_Controles.Exferia_Label ex_lbl_P_Firma_electronica_label_text_perm;
private Exferia_Controles.Exferia_Paginador ex_Paginador_Firma_Electronica;
private Exferia_Controles.Exferia_Button ex_btn_P_Firma_Electronica_CodigoSiguiente;
private Exferia_Controles.Exferia_TextBox ex_txt_P_Firma_Electronica_Descripcion;
private Exferia_Controles.Exferia_Label ex_lbl_P_Firma_Electronical_Descripcion;
private Exferia_Controles.Exferia_FechaSeleccion ex_usc_Firma_Electronica_Fecha;
}
}

View File

@ -0,0 +1,445 @@
using Exferia_Aplicacion.General;
using Exferia_Aplicacion.Visualizacion;
using Exferia_Controles;
using Exferia_EntityFramework;
using Exferia_Formularios;
using Exferia_General._0_Modelos;
using Exferia_General._3_Vistas.Controladoras;
using Exferia_General._3_Vistas.ListadosSeleccion;
using Exferia_General.General;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static Exferia_Aplicacion.General.Enumerados;
namespace Exferia_General._3_Vistas
{
public partial class P_Firmas_Electronicas : Exferia_Formularios.P_Base_Mantenimientos
{
#region Variables General
private P_Firmas_Electronicas_Controladora g_obj_Controladora;
private bool g_bol_ConstructorPantalla_Terminado_Correctamente = true;
public PRV_OpcionesDetalle g_mdl_PRV_OpcionesDetalle = null;
internal List<INTERNO_Permisos_Modelo> g_lst_INTERNO_Permisos_Modelo = null;
//Variables paginador......................................................................................
public Funciones_Paginador g_obj_Funciones_Paginador;
private System.Windows.Forms.Timer g_timer_Paginar = new System.Windows.Forms.Timer();
#endregion
#region Objetos en Pantalla
//Exferia_Label
internal Exferia_Label Exferia_Label_Codigo { get{ return ex_lbl_P_Firma_Electronica_Codigo; } }
internal Exferia_Label Exferia_Label_Descripcion { get{ return ex_lbl_P_Firma_Electronical_Descripcion; } }
internal Exferia_Label Exferia_Label_TextPerm { get{ return ex_lbl_P_Firma_electronica_label_text_perm; } }
//Exferia_TextBox
internal Exferia_TextBox Exferia_TextBox_Codigo { get{ return ex_txt_P_Firma_Electronica_Codigo; } }
internal Exferia_TextBox Exferia_TextBox_Descripcion { get{ return ex_txt_P_Firma_Electronica_Descripcion; } }
internal Exferia_FechaSeleccion Exferia_FechaSeleccion_Fecha { get { return ex_usc_Firma_Electronica_Fecha; } }
internal Exferia_TextBox Exferia_TextBox_TextPerm { get{ return ex_txt_P_Firma_Electronica_textPerm; } }
//Exferia_Paginador
internal Exferia_Paginador Exferia_Paginador_Firma_Electronica { get{ return ex_Paginador_Firma_Electronica; } }
#endregion
#region Constructor
public P_Firmas_Electronicas(INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo, DateTime _dtt_FechaTrabajo, PRV_OpcionesDetalle _mdl_PRV_OpcionesDetalle)
{
InitializeComponent();
try
{
Repintar.Empezar(this);
CheckForIllegalCrossThreadCalls = false;
//Empresa seleccionada y fecha de trabajo ..........................................................................
P_Base_ValoresGenerales = _mdl_INTERNO_ValoresGenerales_Modelo;
P_Base_FechaTrabajo = _dtt_FechaTrabajo;
//Datos de Opciones detalle
g_mdl_PRV_OpcionesDetalle = _mdl_PRV_OpcionesDetalle;
//Exferia_FechaSeleccion_Fecha.Exferia_FechaSeleccion_Descripcion='Fecha'
//Instanciar Controladora
g_obj_Controladora = new P_Firmas_Electronicas_Controladora(this);
g_obj_Controladora.IdEmpresaDef = P_Base_ValoresGenerales == null ? -1 : P_Base_ValoresGenerales.lng_idEmpresa;
//Buscar los Permisos
g_lst_INTERNO_Permisos_Modelo = Datos_Generales.Permisos_Buscar(g_mdl_PRV_OpcionesDetalle.opcion);
//Poner los Botones que no se pueden poner bloqueados o de solo lectura ............................................
ex_btn_P_Firma_Electronical_Borrar.Exferia_Button_Bloqueable = false;
ex_btn_P_Firma_Electronica_Grabar.Exferia_Button_Bloqueable = false;
//..................................................................................................................
//Mirar si hay que bloquear los controles, si solo puede ver los datos
if ((P_Base_TipoAperturaPantalla != 0 && Datos_Generales.Permisos_Comprobar(g_mdl_PRV_OpcionesDetalle.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Modificar, false)) == false)
{
//Bloqueo los Controles
SoloLectura.Empezar(this, true);
}
//Titulo de la Pantalla ............................................................................................
P_Base_TituloPantalla = _mdl_PRV_OpcionesDetalle.descripcion_TituloMantenimiento;
//Label con Empresa Seleccionada
if(P_Base_ValoresGenerales != null)
{
try
{
P_Base_Mantenimientos_InformacionEmpresaSeleccionada = P_Base_ValoresGenerales.str_Empresa_Descripcion + " - " +
"(" + P_Base_FechaTrabajo.ToString("dd/MM/yyyy") + ")";
}
catch (Exception ex)
{
//No se muestra mensaje pero se guarda en el log
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionEmail) + "/" + nameof(P_ConfiguracionEmail));
}
}
//..............................................................................................................
//Bloquear pantalla hasta que termine la carga por defecto ........
Enabled = false;
//.................................................................
g_obj_Funciones_Paginador = new Funciones_Paginador();
}
catch (Control_Errores)
{
g_bol_ConstructorPantalla_Terminado_Correctamente = false;
}
catch (Exception ex)
{
g_bol_ConstructorPantalla_Terminado_Correctamente = false;
//No se muestra mensaje pero se guarda en el log
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionEmail) + "/" + nameof(P_ConfiguracionEmail));
}
finally
{
//Bloquear pantalla hasta que termine la carga por defecto .....
Enabled = true;
//.............................................................
}
}
#endregion
#region Inicio de pantalla
private void P_Firma_Electronica_Load(object sender, EventArgs e)
{
try
{
//Configurar el Timer para Paginacion ###############################################################
g_timer_Paginar.Interval = 1000;
g_timer_Paginar.Tick += delegate (object s, EventArgs ee)
{
g_timer_Paginar.Stop();
try
{
g_obj_Controladora.RecargarDatos();
}
catch (Control_Errores)
{
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
Salir_P_Base();
}
};
}
catch (Exception ex)
{
//No se muestra mensaje pero se guarda en el log
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionEmail) + "/" + nameof(P_Firma_Electronica_Load));
g_bol_ConstructorPantalla_Terminado_Correctamente = false;
}
}
private void P_Firma_Electronica_Shown(object sender, EventArgs e)
{
try
{
if(g_bol_ConstructorPantalla_Terminado_Correctamente)
{
// Si el Tipo de Apertura de Pantalla es Añadir(g_int_tipoAperturaPantalla = 0), se desactivan los botones correspondientes
// Añadir
if(this.P_Base_TipoAperturaPantalla == 0)
{
P_Base_TituloPantalla = P_Base_TituloPantalla + " - Añadir";
ActivarBotones(false);
// g_obj_Controladora.CargarDatos();
//Se cambia el valor de la variable para que no salte el evento de se modifico algo
g_obj_Controladora.g_bol_Termino_CargaDatos_Inicial = false;
//Poner Texto predeterminado y foco
ex_txt_P_Firma_Electronica_Codigo.Exferia_TextBox_Foco();
g_obj_Controladora.g_bol_Termino_CargaDatos_Inicial = true;
}
//Modificar
else
{
ActivarBotones(true);
//Paginacion
if (P_Base_PantallaOrigen != null &&
P_Base_PantallaOrigen.P_Base_Objetos_Filtrados != null &&
P_Base_PantallaOrigen.P_Base_Objetos_Filtrados.Count > 0)
{
g_obj_Funciones_Paginador.Listado_ARecorrer(P_Base_PantallaOrigen.P_Base_Objetos_Filtrados.ToList(), 1);
// Asignando las paginas totales
Exferia_Paginador_Firma_Electronica.PaginasTotales = g_obj_Funciones_Paginador.Numero_Paginas_Totales;
}
else
{
Exferia_Paginador_Firma_Electronica.Visible = false;
}
g_obj_Controladora.RecargarDatos();
}
}
else
{
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
Salir_P_Base();
}
}
catch(Control_Errores)
{
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
Salir_P_Base();
}
catch(Exception ex)
{
//No se muestra mensaje para se guarda en el log
Control_Errores.Errores_Log("", ex, nameof(P_Firmas_Electronicas) + "/" + nameof(P_Firma_Electronica_Shown));
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
Salir_P_Base();
}
}
private void ActivarBotones(bool _bol_Activar)
{
if(Exferia_Paginador_Firma_Electronica.Visible)
{
Exferia_Paginador_Firma_Electronica.Visible = _bol_Activar;
}
if (ex_btn_P_Firma_Electronical_Borrar.Enabled)
{
ex_btn_P_Firma_Electronical_Borrar.Enabled = _bol_Activar;
}
}
#endregion
#region Botones Grabar,Borrar Email,SMTP,POP3
private void ex_btn_P_Firma_Electronica_BuscarCodigoSiguiente_Click(object sender, EventArgs e)
{
BuscarCodigoSiguiente();
}
private void BuscarCodigoSiguiente()
{
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo = g_obj_Controladora.Buscar_CodigoSiguiente();
if (mdl_ValorDevuelto_Modelo.TodoCorrecto == false && mdl_ValorDevuelto_Modelo.Mensaje.Trim().Length > 0)
{
Mensajes.MostrarMensaje(mdl_ValorDevuelto_Modelo.Mensaje);
}
else
{
P_Base_SeModificoDatosPantalla = true;
}
}
private void ex_btn_P_ConfiguracionEmail_Grabar_Click(object sender, EventArgs e)
{
Grabar();
}
private void Grabar()
{
if (//Añadir
(P_Base_TipoAperturaPantalla == 0 && Datos_Generales.Permisos_Comprobar(g_mdl_PRV_OpcionesDetalle.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Anadir, true)) ||
//Modificar
(P_Base_TipoAperturaPantalla != 0 && Datos_Generales.Permisos_Comprobar(g_mdl_PRV_OpcionesDetalle.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Modificar, true)))
{
g_obj_Controladora.GrabarDatos(true);
}
}
private void ex_btn_P_ConfiguracionEmail_EnviarEmailPrueba_Click(object sender, EventArgs e)
{
}
private void ex_btn_P_ConfiguracionEmail_Borrar_Click(object sender, EventArgs e)
{
Borrar();
}
private void Borrar()
{
if (Datos_Generales.Permisos_Comprobar(g_mdl_PRV_OpcionesDetalle.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Borrar, true))
{
g_obj_Controladora.BorrarDatos(true);
}
}
#endregion
#region Controlar si se modifico algo
private void Controlar_Modificaciones_TextBox_TextChanged(object sender, EventArgs e)
{
Controlar_Modificaciones();
}
private void Controlar_Modificaciones_CheckBox_CheckedChanged(object sender, EventArgs e)
{
Controlar_Modificaciones();
}
private void Controlar_Modificaciones()
{
if (Enabled && g_obj_Controladora != null && g_obj_Controladora.g_bol_Termino_CargaDatos_Inicial)
{
P_Base_SeModificoDatosPantalla = true;
}
}
#endregion
#region Eventos del Paginador
protected void ctu_Paginacion_Primera_Click(object sender, EventArgs e)
{
if (g_obj_Controladora.ComprobarCambios()) // Si no han habido contratiempos pasamos a la pagina indicada
{
if (g_obj_Funciones_Paginador.Primera())
{
// Asignando al control la pagina actual.
Exferia_Paginador_Firma_Electronica.PaginaActual = g_obj_Funciones_Paginador.GetPaginaActual();
// Refrescamos el listado a mostrar en el form.
P_Base_id = g_obj_Funciones_Paginador.Objeto_Devuelto.FirstOrDefault().ID;
g_timer_Paginar.Stop();
g_timer_Paginar.Start();
}
}
}
protected void ctu_Paginacion_Anterior_Click(object sender, EventArgs e)
{
if (g_obj_Controladora.ComprobarCambios()) // Si no han habido contratiempos pasamos a la pagina indicada
{
if (g_obj_Funciones_Paginador.Anterior())
{
// Asignando al control la pagina actual.
Exferia_Paginador_Firma_Electronica.PaginaActual = g_obj_Funciones_Paginador.GetPaginaActual();
// Refrescamos el listado a mostrar en el form.
P_Base_id = g_obj_Funciones_Paginador.Objeto_Devuelto.FirstOrDefault().ID;
g_timer_Paginar.Stop();
g_timer_Paginar.Start();
}
}
}
protected void ctu_Paginacion_Siguiente_Click(object sender, EventArgs e)
{
if (g_obj_Controladora.ComprobarCambios()) // Si no han habido contratiempos pasamos a la pagina indicada
{
if (g_obj_Funciones_Paginador.Siguiente())
{
// Asignando al control la pagina actual.
Exferia_Paginador_Firma_Electronica.PaginaActual = g_obj_Funciones_Paginador.GetPaginaActual();
// Refrescamos el listado a mostrar en el form.
P_Base_id = g_obj_Funciones_Paginador.Objeto_Devuelto.FirstOrDefault().ID;
g_timer_Paginar.Stop();
g_timer_Paginar.Start();
}
}
}
protected void ctu_Paginacion_Ultima_Click(object sender, EventArgs e)
{
if (g_obj_Controladora.ComprobarCambios()) // Si no han habido contratiempos pasamos a la pagina indicada
{
if (g_obj_Funciones_Paginador.Ultima())
{
// Asignando al control la pagina actual.
Exferia_Paginador_Firma_Electronica.PaginaActual = g_obj_Funciones_Paginador.GetPaginaActual();
// Refrescamos el listado a mostrar en el form.
P_Base_id = g_obj_Funciones_Paginador.Objeto_Devuelto.FirstOrDefault().ID;
g_timer_Paginar.Stop();
g_timer_Paginar.Start();
}
}
}
protected void txt_PaginaActual_KeyPress(object sender, KeyPressEventArgs e)
{
// Si pulsamos Enter.
if (e.KeyChar.Equals('\r'))
{
if (g_obj_Controladora.ComprobarCambios()) // Si no han habido contratiempos pasamos a la pagina indicada
{
// Asignamos a la paginacion el valor del textbox
g_obj_Funciones_Paginador.SetPaginaActual(Exferia_Paginador_Firma_Electronica.txt_ValorPaginaActual - 1);
// Asignando al control la pagina actual.
Exferia_Paginador_Firma_Electronica.PaginaActual = g_obj_Funciones_Paginador.GetPaginaActual();
// Refrescamos el listado a mostrar en el form.
P_Base_id = g_obj_Funciones_Paginador.Objeto_Devuelto.FirstOrDefault().ID;
g_timer_Paginar.Stop();
g_obj_Controladora.RecargarDatos();
}
}
}
#endregion
#region Teclas de acceso rapido
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
// Salir sin Seleccionar
if (keyData == Keys.F10)
{
Salir_P_Base();
return true;
}
// Grabar
else if (keyData == Keys.F2)
{
Grabar();
return true;
}
//Borrar
else if (keyData == Keys.F5)
{
Borrar();
return true;
}
//Enviar Email de Prueba
else if (keyData == Keys.F7)
{
// EnviarEmail();
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
#endregion
}
}

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,46 @@
namespace Exferia_General._3_Vistas
{
partial class p_prueba
{
/// <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.SuspendLayout();
//
// p_prueba
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(939, 498);
this.Name = "p_prueba";
this.Text = "p_prueba";
this.ResumeLayout(false);
}
#endregion
}
}

View File

@ -0,0 +1,20 @@
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;
namespace Exferia_General._3_Vistas
{
public partial class p_prueba : Form
{
public p_prueba()
{
InitializeComponent();
}
}
}

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

@ -81,6 +81,7 @@
<Compile Include="0_Modelos\INTERNO_Criterio.cs" /> <Compile Include="0_Modelos\INTERNO_Criterio.cs" />
<Compile Include="0_Modelos\INTERNO_GEN_Configuracion_Informes_Listado_Modelo.cs" /> <Compile Include="0_Modelos\INTERNO_GEN_Configuracion_Informes_Listado_Modelo.cs" />
<Compile Include="0_Modelos\INTERNO_ERP_ValoresGenerales_Listado_Modelo.cs" /> <Compile Include="0_Modelos\INTERNO_ERP_ValoresGenerales_Listado_Modelo.cs" />
<Compile Include="0_Modelos\INTERNO_GEN_Firmas_Electronicas_Listado_Modelo.cs" />
<Compile Include="0_Modelos\INTERNO_GEN_Terminales_Listado_Modelo.cs" /> <Compile Include="0_Modelos\INTERNO_GEN_Terminales_Listado_Modelo.cs" />
<Compile Include="0_Modelos\INTERNO_GEN_Delegaciones_Modelo.cs" /> <Compile Include="0_Modelos\INTERNO_GEN_Delegaciones_Modelo.cs" />
<Compile Include="0_Modelos\INTERNO_OpcionesDisponibles_Actualizacion_Modelo.cs" /> <Compile Include="0_Modelos\INTERNO_OpcionesDisponibles_Actualizacion_Modelo.cs" />
@ -129,6 +130,7 @@
<Compile Include="1_Datos\GEN_Delegaciones_AlmacenesAControlar_Datos.cs" /> <Compile Include="1_Datos\GEN_Delegaciones_AlmacenesAControlar_Datos.cs" />
<Compile Include="1_Datos\GEN_Delegaciones_DelegacionesAsociadas_Datos.cs" /> <Compile Include="1_Datos\GEN_Delegaciones_DelegacionesAsociadas_Datos.cs" />
<Compile Include="1_Datos\GEN_EmpresasLogos_Datos.cs" /> <Compile Include="1_Datos\GEN_EmpresasLogos_Datos.cs" />
<Compile Include="1_Datos\GEN_Firmas_Electronicas_Datos.cs" />
<Compile Include="1_Datos\GEN_RetencionesTipos_Datos.cs" /> <Compile Include="1_Datos\GEN_RetencionesTipos_Datos.cs" />
<Compile Include="1_Datos\GEN_Terminales_Delegaciones_Configuracion_Datos.cs" /> <Compile Include="1_Datos\GEN_Terminales_Delegaciones_Configuracion_Datos.cs" />
<Compile Include="1_Datos\GEN_Terminales_ValidacionesHistorico_Datos.cs" /> <Compile Include="1_Datos\GEN_Terminales_ValidacionesHistorico_Datos.cs" />
@ -183,6 +185,7 @@
<Compile Include="1_Datos\USR_Accesos_Datos.cs" /> <Compile Include="1_Datos\USR_Accesos_Datos.cs" />
<Compile Include="1_Datos\USR_Usuarios_Datos.cs" /> <Compile Include="1_Datos\USR_Usuarios_Datos.cs" />
<Compile Include="1_Datos\USR_Usuarios_Perfiles_Permisos_Datos.cs" /> <Compile Include="1_Datos\USR_Usuarios_Perfiles_Permisos_Datos.cs" />
<Compile Include="3_Vistas\Controladoras\P_Firma_Electronica_Controladora .cs" />
<Compile Include="3_Vistas\Controladoras\P_ERP_TasaCombustible_Controladora.cs" /> <Compile Include="3_Vistas\Controladoras\P_ERP_TasaCombustible_Controladora.cs" />
<Compile Include="3_Vistas\Controladoras\P_ERP_ValoresGenerales_Controladora.cs" /> <Compile Include="3_Vistas\Controladoras\P_ERP_ValoresGenerales_Controladora.cs" />
<Compile Include="3_Vistas\Controladoras\P_ConfiguracionEmail_Controladora.cs" /> <Compile Include="3_Vistas\Controladoras\P_ConfiguracionEmail_Controladora.cs" />
@ -333,6 +336,7 @@
<Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_Parametros.cs" /> <Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_Parametros.cs" />
<Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_TipoEmail.cs" /> <Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_TipoEmail.cs" />
<Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_GEN_Configuracion_Informes.cs" /> <Compile Include="3_Vistas\ListadosSeleccion\ABS_ListadoSeleccion_GEN_Configuracion_Informes.cs" />
<Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Firmas_Electronicas.cs" />
<Compile Include="3_Vistas\Listados\ABS_Listado_HRM_PreciosCombustible_Historico.cs" /> <Compile Include="3_Vistas\Listados\ABS_Listado_HRM_PreciosCombustible_Historico.cs" />
<Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Almacenes_P_Delegacion_IncluirRegistros.cs" /> <Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Almacenes_P_Delegacion_IncluirRegistros.cs" />
<Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Almacenes_P_Delegacion.cs" /> <Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Almacenes_P_Delegacion.cs" />
@ -381,6 +385,12 @@
<Compile Include="3_Vistas\Pruebas.Designer.cs"> <Compile Include="3_Vistas\Pruebas.Designer.cs">
<DependentUpon>Pruebas.cs</DependentUpon> <DependentUpon>Pruebas.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="3_Vistas\P_Firmas_Electronicas.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="3_Vistas\P_Firmas_Electronicas.Designer.cs">
<DependentUpon>P_Firmas_Electronicas.cs</DependentUpon>
</Compile>
<Compile Include="3_Vistas\P_ERP_TasaCombustible.cs"> <Compile Include="3_Vistas\P_ERP_TasaCombustible.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -634,6 +644,9 @@
<EmbeddedResource Include="3_Vistas\Pruebas.resx"> <EmbeddedResource Include="3_Vistas\Pruebas.resx">
<DependentUpon>Pruebas.cs</DependentUpon> <DependentUpon>Pruebas.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="3_Vistas\P_Firmas_Electronicas.resx">
<DependentUpon>P_Firmas_Electronicas.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="3_Vistas\P_ERP_TasaCombustible.resx"> <EmbeddedResource Include="3_Vistas\P_ERP_TasaCombustible.resx">
<DependentUpon>P_ERP_TasaCombustible.cs</DependentUpon> <DependentUpon>P_ERP_TasaCombustible.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -110,6 +110,10 @@ namespace Exferia_General
{ {
obj_ABS_Listado_Auxiliar = new ABS_Listado_GEN_Configuracion_Informes(); obj_ABS_Listado_Auxiliar = new ABS_Listado_GEN_Configuracion_Informes();
} }
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
obj_ABS_Listado_Auxiliar = new ABS_Listado_GEN_Firmas_Electronicas();
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -288,6 +292,12 @@ namespace Exferia_General
GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos(); GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos();
lst_Valores = obj_GEN_Configuracion_Informes_Datos.Obtener_Listado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo); lst_Valores = obj_GEN_Configuracion_Informes_Datos.Obtener_Listado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo);
} }
//CONFIGURACION_FIRMAS DIGITALES
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
GEN_Firmas_Electronicas_Datos obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
lst_Valores = obj_GEN_Firmas_Electronicas_Datos.Obtener_Listado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -465,6 +475,13 @@ namespace Exferia_General
GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos(); GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos();
dnm_Valor = obj_GEN_Configuracion_Informes_Datos.Obtener_RegistroListado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo, _lng_id, _lst_ids); dnm_Valor = obj_GEN_Configuracion_Informes_Datos.Obtener_RegistroListado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo, _lng_id, _lst_ids);
} }
//Firmas electronicas
//todo firmas-electronicas
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
GEN_Firmas_Electronicas_Datos obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
dnm_Valor = obj_GEN_Firmas_Electronicas_Datos.Obtener_RegistroListado(_lng_idEmpresaSeleccionada, _lng_idEjercicioActual, _lst_CamposConRelacionABuscar, _lst_INTERNO_Filtro_OpcionPadre_Modelo, _lst_INTERNO_Filtro_Modelo, _lng_id, _lst_ids);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -1131,6 +1148,44 @@ namespace Exferia_General
Funciones_PanelPrincipal.Cargar_PantallaEmpotrada(frm_P_Configuracion_Informes, _str_Opcion); Funciones_PanelPrincipal.Cargar_PantallaEmpotrada(frm_P_Configuracion_Informes, _str_Opcion);
} }
//firmas electronicas
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
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_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_Firmas_Electronicas.P_Base_PantallaPadre_IdentificadorTAG = "";
frm_P_Firmas_Electronicas.P_Base_F3Origen = _usc_Exferia_F3_Origen;
}
//Modificar
if (_lng_RegistroSeleccionado > 0)
{
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_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_Firmas_Electronicas, _str_Opcion);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -1807,6 +1862,12 @@ namespace Exferia_General
GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos(); GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos();
dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Obtener(_lng_id); dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Obtener(_lng_id);
} }
//Firmas electronicas
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
GEN_Firmas_Electronicas_Datos obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
dnm_Valores = obj_GEN_Firmas_Electronicas_Datos.Obtener(_lng_id);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -1919,6 +1980,12 @@ namespace Exferia_General
GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos(); GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos();
dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Grabar(_dnm_Modelo); dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Grabar(_dnm_Modelo);
} }
//Firmas electronicas
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
GEN_Firmas_Electronicas_Datos obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
dnm_Valores = obj_GEN_Firmas_Electronicas_Datos.Grabar(_dnm_Modelo);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {
@ -2036,6 +2103,12 @@ namespace Exferia_General
GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos(); GEN_Configuracion_Informes_Datos obj_GEN_Configuracion_Informes_Datos = new GEN_Configuracion_Informes_Datos();
dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Borrar(_lng_id); dnm_Valores = obj_GEN_Configuracion_Informes_Datos.Borrar(_lng_id);
} }
//Firmas electronicas
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_FIRMAS_ELECTRONICAS))
{
GEN_Firmas_Electronicas_Datos obj_GEN_Firmas_Electronicas_Datos = new GEN_Firmas_Electronicas_Datos();
dnm_Valores = obj_GEN_Firmas_Electronicas_Datos.Borrar(_lng_id);
}
//CONFIGURACIONEMAIL //CONFIGURACIONEMAIL
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL)) else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
{ {

View File

@ -181,6 +181,7 @@
"GEN_EJERCICIOACTIVO", "GEN_EJERCICIOACTIVO",
"GEN_EMPRESA", "GEN_EMPRESA",
"GEN_ENTIDADBANCARIA", "GEN_ENTIDADBANCARIA",
"GEN_FIRMAS_ELECTRONICAS",
"GEN_IMPUESTOCABECERA", "GEN_IMPUESTOCABECERA",
"GEN_IMPUESTOLINEA", "GEN_IMPUESTOLINEA",
"GEN_IMPUESTOTIPO", "GEN_IMPUESTOTIPO",

View File

@ -1114,7 +1114,7 @@ namespace Exferia_Ventas._1_Datos
_lst_ids); _lst_ids);
string cif = "cif";// nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif);
string str_SQL = string str_SQL =
" SELECT " + " SELECT " +
@ -1202,14 +1202,14 @@ namespace Exferia_Ventas._1_Datos
) + ) +
//Cliente_Cif //Cliente_Cif
( (
(_lst_CamposConRelacionABuscar.Contains(nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif))) (_lst_CamposConRelacionABuscar.Contains(cif/*nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif)*/))
? ?
( (
nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif) + " = " + nameof(MAE_Clientes) + "." + nameof(MAE_Clientes.cif) + "," cif/*nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif)*/ + " = " + nameof(MAE_Clientes) + "." + nameof(MAE_Clientes.cif) + ","
) )
: :
( (
nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif) + " = ''," cif/*nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif)*/ + " = '',"
) )
) + ) +
//Socio //Socio

View File

@ -9135,7 +9135,7 @@ namespace Exferia_Ventas._3_Vistas.Controladoras
//################################################################################################################################################################################################## //##################################################################################################################################################################################################
} }
g_frm_P_FacturaCabecera.Exferia_Button_factura_electonica.Visible = false;
//Buscar el Estado del Factura //Buscar el Estado del Factura
if (g_mdl_INTERNO_VTA_FacturasCabecera_Modelo != null) if (g_mdl_INTERNO_VTA_FacturasCabecera_Modelo != null)
{ {
@ -9146,6 +9146,7 @@ namespace Exferia_Ventas._3_Vistas.Controladoras
//Si esta Cerrado Bloqueo para que no deje hacer nada //Si esta Cerrado Bloqueo para que no deje hacer nada
if (g_str_Estado.Equals(Variables.G_STR_ESTADO_CONTABILIDAD_CERRADO)) if (g_str_Estado.Equals(Variables.G_STR_ESTADO_CONTABILIDAD_CERRADO))
{ {
g_frm_P_FacturaCabecera.Exferia_Button_factura_electonica.Visible = true;
//Cambiar Imagen del Boton de Desvolcar //Cambiar Imagen del Boton de Desvolcar
g_frm_P_FacturaCabecera.Exferia_Button_Volcado.Exferia_Button_Imagen = Imagenes.G_ENUM_IMAGENES.G_IMG_VOLCAR; g_frm_P_FacturaCabecera.Exferia_Button_Volcado.Exferia_Button_Imagen = Imagenes.G_ENUM_IMAGENES.G_IMG_VOLCAR;
Imagenes.Asignar_Imagen(g_frm_P_FacturaCabecera.Exferia_Button_Volcado); Imagenes.Asignar_Imagen(g_frm_P_FacturaCabecera.Exferia_Button_Volcado);

View File

@ -174,6 +174,7 @@
this.ex_btn_P_FacturaCabecera_Volcado = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_Volcado = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_Cuentas = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_Cuentas = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_EnviarMensajes = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_EnviarMensajes = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_FacturaE = new Exferia_Controles.Exferia_Button();
this.pnl_Scroll.SuspendLayout(); this.pnl_Scroll.SuspendLayout();
this.ex_tbc_Principal.SuspendLayout(); this.ex_tbc_Principal.SuspendLayout();
this.tbp_Lineas.SuspendLayout(); this.tbp_Lineas.SuspendLayout();
@ -3080,10 +3081,33 @@
this.ex_btn_P_FacturaCabecera_EnviarMensajes.UseVisualStyleBackColor = false; this.ex_btn_P_FacturaCabecera_EnviarMensajes.UseVisualStyleBackColor = false;
this.ex_btn_P_FacturaCabecera_EnviarMensajes.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_EnviarMensajes_Click); this.ex_btn_P_FacturaCabecera_EnviarMensajes.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_EnviarMensajes_Click);
// //
// ex_btn_P_FacturaCabecera_FacturaE
//
this.ex_btn_P_FacturaCabecera_FacturaE.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ex_btn_P_FacturaCabecera_FacturaE.BackColor = System.Drawing.Color.Maroon;
this.ex_btn_P_FacturaCabecera_FacturaE.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_Bloqueable = true;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_FACTURA_E;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_ReadOnly = false;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_TabStop = false;
this.ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_ToolTip = "Generar Factura Electrónica";
this.ex_btn_P_FacturaCabecera_FacturaE.FlatAppearance.BorderSize = 0;
this.ex_btn_P_FacturaCabecera_FacturaE.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ex_btn_P_FacturaCabecera_FacturaE.Location = new System.Drawing.Point(756, 554);
this.ex_btn_P_FacturaCabecera_FacturaE.Name = "ex_btn_P_FacturaCabecera_FacturaE";
this.ex_btn_P_FacturaCabecera_FacturaE.Size = new System.Drawing.Size(31, 36);
this.ex_btn_P_FacturaCabecera_FacturaE.TabIndex = 1084;
this.ex_btn_P_FacturaCabecera_FacturaE.TabStop = false;
this.ex_btn_P_FacturaCabecera_FacturaE.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.ex_btn_P_FacturaCabecera_FacturaE.UseVisualStyleBackColor = false;
this.ex_btn_P_FacturaCabecera_FacturaE.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_FacturaE_Click);
//
// P_FacturaCabecera // P_FacturaCabecera
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.ClientSize = new System.Drawing.Size(797, 670); this.ClientSize = new System.Drawing.Size(797, 670);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_FacturaE);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_EnviarMensajes); this.Controls.Add(this.ex_btn_P_FacturaCabecera_EnviarMensajes);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Volcado); this.Controls.Add(this.ex_btn_P_FacturaCabecera_Volcado);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Cuentas); this.Controls.Add(this.ex_btn_P_FacturaCabecera_Cuentas);
@ -3116,6 +3140,7 @@
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Cuentas, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Cuentas, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Volcado, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Volcado, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_EnviarMensajes, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_EnviarMensajes, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_FacturaE, 0);
this.pnl_Scroll.ResumeLayout(false); this.pnl_Scroll.ResumeLayout(false);
this.pnl_Scroll.PerformLayout(); this.pnl_Scroll.PerformLayout();
this.ex_tbc_Principal.ResumeLayout(false); this.ex_tbc_Principal.ResumeLayout(false);
@ -3305,5 +3330,6 @@
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Anexo_CodigoPostal; private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Anexo_CodigoPostal;
private Exferia_Controles.Exferia_Label exferia_Label2; private Exferia_Controles.Exferia_Label exferia_Label2;
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_EnviarMensajes; private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_EnviarMensajes;
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_FacturaE;
} }
} }

View File

@ -77,6 +77,7 @@ namespace Exferia_Ventas._3_Vistas
internal Exferia_Button Exferia_Button_Otros_Actualizar { get { return ex_btn_P_FacturaCabecera_Otros_Actualizar; } } internal Exferia_Button Exferia_Button_Otros_Actualizar { get { return ex_btn_P_FacturaCabecera_Otros_Actualizar; } }
internal Exferia_Button Exferia_Button_DatosViaje_Actualizar { get { return ex_btn_P_FacturaCabecera_DatosViaje_Actualizar; } } internal Exferia_Button Exferia_Button_DatosViaje_Actualizar { get { return ex_btn_P_FacturaCabecera_DatosViaje_Actualizar; } }
internal Exferia_Button Exferia_Button_Observaciones_Actualizar { get { return ex_btn_P_FacturaCabecera_Observaciones_Actualizar; } } internal Exferia_Button Exferia_Button_Observaciones_Actualizar { get { return ex_btn_P_FacturaCabecera_Observaciones_Actualizar; } }
internal Exferia_Button Exferia_Button_factura_electonica { get { return ex_btn_P_FacturaCabecera_FacturaE; } }
//Exferia_Button_Situacion //Exferia_Button_Situacion
internal Exferia_Button_Situacion Exferia_Button_Situacion_PagoPendiente { get { return ex_btn_P_FacturaCabecera_SituacionPago_Pendiente; } } internal Exferia_Button_Situacion Exferia_Button_Situacion_PagoPendiente { get { return ex_btn_P_FacturaCabecera_SituacionPago_Pendiente; } }
@ -4107,5 +4108,10 @@ namespace Exferia_Ventas._3_Vistas
{ {
g_obj_Controladora.Proceso_EnviarMensajes(); g_obj_Controladora.Proceso_EnviarMensajes();
} }
private void ex_btn_P_FacturaCabecera_FacturaE_Click(object sender, EventArgs e)
{
}
} }
} }

View File

@ -72,6 +72,7 @@
this.ex_btn_P_FacturaCabecera_Procesos_Abrir = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_Procesos_Abrir = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_Procesos_Cerrar = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_Procesos_Cerrar = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes = new Exferia_Controles.Exferia_Button(); this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes = new Exferia_Controles.Exferia_Button();
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica = new Exferia_Controles.Exferia_Button();
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.SuspendLayout(); this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.SuspendLayout();
this.tbp_Cerrar.SuspendLayout(); this.tbp_Cerrar.SuspendLayout();
this.exferia_GroupBox2.SuspendLayout(); this.exferia_GroupBox2.SuspendLayout();
@ -777,10 +778,33 @@
this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes.UseVisualStyleBackColor = false; this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes.UseVisualStyleBackColor = false;
this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes_Click); this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes_Click);
// //
// ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica
//
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.BackColor = System.Drawing.Color.Maroon;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_Bloqueable = true;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_FACTURA_E;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_ReadOnly = false;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_TabStop = false;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Exferia_Button_ToolTip = "Generar Factura Electrónica";
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.FlatAppearance.BorderSize = 0;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Location = new System.Drawing.Point(754, 254);
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Name = "ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica";
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Size = new System.Drawing.Size(31, 36);
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.TabIndex = 1083;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.TabStop = false;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.UseVisualStyleBackColor = false;
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click);
//
// P_FacturaCabecera_Procesos // P_FacturaCabecera_Procesos
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.ClientSize = new System.Drawing.Size(797, 670); this.ClientSize = new System.Drawing.Size(797, 670);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes); this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Abrir); this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Abrir);
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Cerrar); this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Cerrar);
@ -796,6 +820,7 @@
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Cerrar, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Cerrar, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Abrir, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Abrir, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes, 0); this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes, 0);
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica, 0);
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.ResumeLayout(false); this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.ResumeLayout(false);
this.tbp_Cerrar.ResumeLayout(false); this.tbp_Cerrar.ResumeLayout(false);
this.tbp_Cerrar.PerformLayout(); this.tbp_Cerrar.PerformLayout();
@ -862,5 +887,6 @@
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor12; private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor12;
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor13; private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor13;
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado; private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado;
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica;
} }
} }

View File

@ -313,5 +313,10 @@ namespace Exferia_Ventas._3_Vistas
} }
#endregion Enviar mensajes #endregion Enviar mensajes
private void ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click(object sender, EventArgs e)
{
}
} }
} }