Compare commits
26 Commits
master
...
factura-e/
| Author | SHA1 | Date |
|---|---|---|
|
|
3a5abaf6a6 | |
|
|
03d7306745 | |
|
|
4cbf5df086 | |
|
|
80751b0889 | |
|
|
1919e5ed01 | |
|
|
353932e811 | |
|
|
e946d3dae9 | |
|
|
9eace6128b | |
|
|
f7045e9273 | |
|
|
6a4cd4b02b | |
|
|
21d9e385e2 | |
|
|
70b6cc4d4c | |
|
|
1020c1cabd | |
|
|
202d50c07c | |
|
|
8bf7b188ab | |
|
|
d70a212443 | |
|
|
68c0c1baf0 | |
|
|
e07edb65f4 | |
|
|
3cb6211105 | |
|
|
06eca71b22 | |
|
|
d9a77d2672 | |
|
|
e21308ed69 | |
|
|
2e13e8ff4e | |
|
|
96d90cf3f0 | |
|
|
863f6aacfd | |
|
|
930725abc4 |
|
|
@ -110,6 +110,15 @@
|
|||
<Compile Include="Modelos_Existencias\INTERNO_Existencias_Busqueda_Modelo.cs" />
|
||||
<Compile Include="Modelos_Existencias\INTERNO_Existencias_Modelo.cs" />
|
||||
<Compile Include="Modelos_Existencias\INTERNO_Existencias_MovimientosArticulos_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_CentroAdministrativo_Factura_E_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Comprador_Factura_E_modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Correcciones_Factura_E_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Direccion_Factura_E_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Entidad_Factura_E_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Impuestos_Factura_E_modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Item_Factura_E_modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Vendedor_Factura_E_Modelo.cs" />
|
||||
<Compile Include="Modelos_Factura_E\INTERNO_Factura_e_Modelo.cs" />
|
||||
<Compile Include="Modelos_Generales\INTERNO_ArticuloTrazabilidadDiarioActualizar_Modelo.cs" />
|
||||
<Compile Include="Modelos_Generales\INTERNO_ArticuloTrazabilidadDiarioActualizar_Documentos_Modelo.cs" />
|
||||
<Compile Include="Modelos_Generales\INTERNO_ArticuloDiarioActualizar_Documentos_Modelo.cs" />
|
||||
|
|
@ -356,6 +365,7 @@
|
|||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
@ -832,9 +842,14 @@
|
|||
<None Include="Resources\i_gasolina.png" />
|
||||
<None Include="Resources\i_ascii347.png" />
|
||||
<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" />
|
||||
</ItemGroup>
|
||||
<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.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
|
|||
|
|
@ -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_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_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
|
||||
|
||||
|
|
@ -304,7 +305,9 @@ namespace Exferia_Aplicacion.General
|
|||
G_IMG_VACIAR_SINCRONIZACION,
|
||||
G_IMG_VACIAR_SUBIDA,
|
||||
G_IMG_FLECHA_ABAJO,
|
||||
G_IMG_GASOLINA
|
||||
G_IMG_GASOLINA,
|
||||
G_IMG_FACTURA_E,
|
||||
G_IMG_FIRMA_E,
|
||||
}
|
||||
#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_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_FACTURA_E), G_IMG_FACTURA_E);
|
||||
G_DCT_IMAGEN_ABIERTO.Add(nameof(G_IMG_FIRMA_E), G_IMG_FIRMA_E);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ namespace Exferia_Aplicacion.General
|
|||
public static string G_STR_MENSAJES_DOCUMENTO_VOLCADO_REVISARLINEASVOLCADO() { return "Revise las linea del Volcado."; }
|
||||
public static string G_STR_MENSAJES_DOCUMENTO_VOLCADO_VALOR_CERO_NOSEVUELCA() { return "No se vuelca un valor 0."; }
|
||||
public static string G_STR_ESPERANDO_ENVIANDO_MENSAJES() { return "Enviando mensajes , espere por favor ..."; }
|
||||
|
||||
public static string G_STR_ESPERANDO_GENERA_FACTURA_E() { return "Generando Facturas , espere por favor ..."; }
|
||||
public static string G_STR_VALIDACION_HAYDOCUMENTOSCERRADOS_POSTERIORES() { return "Hay documentos cerrados poesteriores a este, por favor reviselos."; }
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -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_2 = "COM_FACTURACABECERA_AUX_2";
|
||||
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_PEDIDOCOMPRACABECERA = "COM_PEDIDOCOMPRACABECERA";
|
||||
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_DESDEBOLSA = "COM_LISTADOPROCESOS_DESDEBOLSA";
|
||||
public static string G_STR_OPCION_COM_FACTURA_ELECTRONICA = "COM_FACTURA_ELECTRONICA";
|
||||
#endregion
|
||||
|
||||
#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_CONEXION = "GEN_CONEXION";
|
||||
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_CONFIGURACION_SW_SIGMA = "GEN_CONFIGURACION_SW_SIGMA";
|
||||
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_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;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_CentroAdministrativo_Factura_E_Modelo : INTERNO_Direccion_Factura_E_Modelo
|
||||
{
|
||||
public string Codigo { get; set; }
|
||||
public string Role { get; set;}
|
||||
public string Encargado { get; set; }
|
||||
public string Descripcion { get; set; }
|
||||
|
||||
public INTERNO_CentroAdministrativo_Factura_E_Modelo()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Comprador_Factura_E_modelo : INTERNO_Entidad_Factura_E_Modelo
|
||||
{
|
||||
|
||||
|
||||
public INTERNO_CentroAdministrativo_Factura_E_Modelo[] Centros { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Correcciones_Factura_E_Modelo
|
||||
{
|
||||
public long NumeroFactura { get; set; }//numero factura que rectifica
|
||||
public String SerieDelegacion { get; set; }//serie de la factura que rectifica
|
||||
public string RazonCode { get; set; }//(ReasonDescription)
|
||||
public DateTime Inicio { get; set; }
|
||||
public DateTime Fin { get; set; }
|
||||
public string RazonCorreccion { get; set; }//CorrectionMethodDescription
|
||||
public string Observaciones { get; set; }//AdditionalReasonDescription
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Direccion_Factura_E_Modelo
|
||||
{
|
||||
public String Direccion { get; set; }
|
||||
public String CP { get; set; }
|
||||
public String Poblacion { get; set; }
|
||||
public String Provincia { get; set; }
|
||||
public String Pais { get; set; }//ESP
|
||||
public String Tlf { get; set; }
|
||||
public String Fax { get; set; }
|
||||
public String Web { get; set; }
|
||||
public String Email { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Entidad_Factura_E_Modelo : INTERNO_Direccion_Factura_E_Modelo
|
||||
{
|
||||
public String Tipo { get; set; }//F o J
|
||||
public String IdImpuestos { get; set; }//nif o paisEmpresa+NIF
|
||||
public String RazonSocial { get; set; }//CorporateName
|
||||
public String NombreComercial { get; set; }//TradeName
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Impuestos_Factura_E_modelo
|
||||
{
|
||||
public decimal? Porcentaje { get; set; }
|
||||
public long? Tipo { get; set; }
|
||||
public decimal? Base { get; set; }
|
||||
public decimal? Importe { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Item_Factura_E_modelo: INTERNO_Impuestos_Factura_E_modelo
|
||||
{
|
||||
public string Codigo { get; set; }//(DeliveryNoteNumber)
|
||||
public string CodigoArticulo { get; set; }
|
||||
|
||||
public DateTime Fecha { get; set; }
|
||||
public long Cantidad { get; set; }
|
||||
public string Descripcion { get; set; }
|
||||
public decimal Precio { get; set; }
|
||||
public decimal Total { get; set; }
|
||||
public string DescuentoRazon { get; set; }
|
||||
public decimal? DescuentoPorcentaje { get; set; }
|
||||
public decimal? Descuentoimporte { get; set; }
|
||||
|
||||
public decimal ImporteBruto { get; set; }//despues de descuentos
|
||||
public string Adicional { get; set; }
|
||||
public DateTime FechaAlbaran { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||
{
|
||||
public class INTERNO_Vendedor_Factura_E_modelo: INTERNO_Entidad_Factura_E_Modelo
|
||||
{
|
||||
|
||||
|
||||
public INTERNO_Vendedor_Factura_E_modelo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -592,4 +592,10 @@
|
|||
<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>
|
||||
</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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
|
|
@ -0,0 +1,164 @@
|
|||
using Exferia_Aplicacion.General;
|
||||
using Exferia_Compras._1_Datos;
|
||||
using Exferia_Compras._3_Vistas.Listados;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Exferia_Compras._3_Vistas.Controladoras
|
||||
{
|
||||
public class P_ImportacionFacturaE_Controladora
|
||||
|
||||
{
|
||||
#region Variables Generales
|
||||
private P_ImportacionFacturaE g_frm_P_ImportacionFactureaE = null;//Variable que enlaza con la pantalla asociada
|
||||
|
||||
//Clases de Negocio
|
||||
private COM_DevolucionesPagos_Bolsa_Datos g_obj_COM_DevolucionesPagos_Bolsa_Datos = new COM_DevolucionesPagos_Bolsa_Datos();
|
||||
|
||||
#region BOLSA LISTADO
|
||||
private BackgroundWorker g_obj_TareaAsincrona_Rellenar_Listado;
|
||||
private bool g_bol_TareaAsincrona_Rellenar_Listado_Cancelar = false;
|
||||
|
||||
public List<dynamic> g_lst_Valores = null;
|
||||
|
||||
public List<string> g_lst_ColumnasAMostrar_BOLSA = new List<string>();
|
||||
public ABS_Listado_COM_DevolucionesPagos_Bolsa g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa = null;
|
||||
public Dictionary<string, object> g_dct_ListadoFiltros_BOLSA = new Dictionary<string, object>();
|
||||
private int g_int_TotalRegistrosInsertados_BOLSA = 0;
|
||||
public List<INTERNO_ComboBox_Modelo> g_lst_INTERNO_ComboBox_Modelo_Filtros_BOLSA = new List<INTERNO_ComboBox_Modelo>();
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
public P_ImportacionFacturaE_Controladora(P_ImportacionFacturaE _frm_P_DevolucionPago_Bolsa)
|
||||
{
|
||||
g_frm_P_ImportacionFactureaE = _frm_P_DevolucionPago_Bolsa;
|
||||
|
||||
g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa = new ABS_Listado_COM_DevolucionesPagos_Bolsa(g_frm_P_ImportacionFactureaE.P_Base_ValoresGenerales.lng_idEmpresa);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Recargar Listado
|
||||
public void Recargar_Listado(bool _bol_Recargar_Desde_BD)
|
||||
{
|
||||
try
|
||||
{
|
||||
// Si la tarea asincrona esta en marcha la paro
|
||||
if (g_obj_TareaAsincrona_Rellenar_Listado != null)
|
||||
{
|
||||
g_bol_TareaAsincrona_Rellenar_Listado_Cancelar = true;
|
||||
|
||||
while (g_obj_TareaAsincrona_Rellenar_Listado.IsBusy)
|
||||
Application.DoEvents();
|
||||
|
||||
g_bol_TareaAsincrona_Rellenar_Listado_Cancelar = false;
|
||||
|
||||
//Vaciar
|
||||
g_frm_P_ImportacionFactureaE.Exferia_DataGridView_Listado.Rows.Clear();
|
||||
g_int_TotalRegistrosInsertados_BOLSA = 0;
|
||||
g_frm_P_ImportacionFactureaE.Exferia_BarraProgreso_Bolsa.Exferia_BarraProgreso_Total = 0;
|
||||
g_frm_P_ImportacionFactureaE.Exferia_BarraProgreso_Bolsa.Exferia_BarraProgreso_Actualizar = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
g_bol_TareaAsincrona_Rellenar_Listado_Cancelar = false;
|
||||
|
||||
g_obj_TareaAsincrona_Rellenar_Listado = new BackgroundWorker();
|
||||
g_obj_TareaAsincrona_Rellenar_Listado.DoWork += new DoWorkEventHandler(TareaAsincrona_Rellenar_Listado_DoWork);
|
||||
g_obj_TareaAsincrona_Rellenar_Listado.ProgressChanged += new ProgressChangedEventHandler(TareaAsincrona_Rellenar_Listado_ProgressChanged);
|
||||
g_obj_TareaAsincrona_Rellenar_Listado.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_Rellenar_Listado_Completed);
|
||||
g_obj_TareaAsincrona_Rellenar_Listado.WorkerReportsProgress = true;
|
||||
}
|
||||
|
||||
//(Tarea Asincrona) Cargar Datos ##################################################################
|
||||
g_obj_TareaAsincrona_Rellenar_Listado.RunWorkerAsync(_bol_Recargar_Desde_BD);
|
||||
//#################################################################################################
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Control_Errores("", ex, nameof(P_DevolucionPago_Bolsa_Controladora) + "/" + nameof(Recargar_Listado), true);
|
||||
}
|
||||
}
|
||||
private void TareaAsincrona_Rellenar_Listado_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool bol_Recargar_Desde_DB = (bool)e.Argument;
|
||||
|
||||
//RECARGAR DESDE BASE DE DATOS
|
||||
if (bol_Recargar_Desde_DB)
|
||||
{
|
||||
g_lst_Valores = g_obj_COM_DevolucionesPagos_Bolsa_Datos.Obtener_Listado(g_frm_P_ImportacionFactureaE.P_Base_ValoresGenerales.lng_idEmpresa,
|
||||
((g_frm_P_ImportacionFactureaE.P_Base_ValoresGenerales != null && g_frm_P_ImportacionFactureaE.P_Base_ValoresGenerales.EjercicioActivo != null) ? g_frm_P_ImportacionFactureaE.P_Base_ValoresGenerales.EjercicioActivo.id : -1),
|
||||
g_lst_ColumnasAMostrar_BOLSA,
|
||||
null,
|
||||
null);
|
||||
|
||||
}
|
||||
|
||||
if (g_lst_Valores != null && g_lst_Valores.Count > 0)
|
||||
{
|
||||
g_frm_P_ImportacionFactureaE.Exferia_BarraProgreso_Bolsa.Exferia_BarraProgreso_Total = g_lst_Valores.Count;
|
||||
|
||||
object[] row;
|
||||
foreach (dynamic dnm_Valor in g_lst_Valores)
|
||||
{
|
||||
//Se Cancelo la tarea asincrona ---------------------------
|
||||
if (g_bol_TareaAsincrona_Rellenar_Listado_Cancelar || g_frm_P_ImportacionFactureaE.IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//Añadir Fila con Columnas .............................
|
||||
row = Funciones_Listado.Transformar_Dynamic_A_Row(dnm_Valor, g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa);
|
||||
|
||||
//Llamar al Progress
|
||||
g_int_TotalRegistrosInsertados_BOLSA += 1;
|
||||
|
||||
((BackgroundWorker)sender).ReportProgress(1, row);
|
||||
|
||||
//Application.DoEvents();
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (ThreadAbortException ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa_Controladora) + "/" + nameof(TareaAsincrona_Rellenar_Listado_DoWork));
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{ }
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa_Controladora) + "/" + nameof(TareaAsincrona_Rellenar_Listado_DoWork));
|
||||
}
|
||||
}
|
||||
private void TareaAsincrona_Rellenar_Listado_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!g_frm_P_ImportacionFactureaE.IsDisposed)
|
||||
{
|
||||
g_frm_P_ImportacionFactureaE.Exferia_DataGridView_Listado.Rows.Add((object[])e.UserState);
|
||||
|
||||
g_frm_P_ImportacionFactureaE.Exferia_BarraProgreso_Bolsa.Exferia_BarraProgreso_Actualizar = g_int_TotalRegistrosInsertados_BOLSA;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{ }
|
||||
|
||||
}
|
||||
private void TareaAsincrona_Rellenar_Listado_Completed(object sender, RunWorkerCompletedEventArgs e)
|
||||
{ }
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -291,6 +291,7 @@ namespace Exferia_Compras._3_Vistas.Listados
|
|||
//Añadir al listado
|
||||
lst_INTERNO_Listado_BotonesAuxiliares_Modelo_MenuIzquierda.Add(mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_DELALL);
|
||||
|
||||
|
||||
//Boton de procesos
|
||||
INTERNO_Listado_BotonesAuxiliares_Modelo mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL = new INTERNO_Listado_BotonesAuxiliares_Modelo();
|
||||
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;
|
||||
|
||||
|
||||
|
||||
|
||||
return mdl_INTERNO_Listado_BotonesAuxiliares_Modelo_FINAL;
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
297
Exferia_Compras/Exferia_Compras/3_Vistas/P_ImportacionFacturaE.Designer.cs
generated
Normal file
297
Exferia_Compras/Exferia_Compras/3_Vistas/P_ImportacionFacturaE.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,297 @@
|
|||
namespace Exferia_Compras._3_Vistas
|
||||
{
|
||||
partial class P_ImportacionFacturaE
|
||||
{
|
||||
/// <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.pnl_Contenedor_Inferior = new System.Windows.Forms.Panel();
|
||||
this.panel1 = new Exferia_Controles.Exferia_Panel_Degradado();
|
||||
this.exferia_Label3 = new Exferia_Controles.Exferia_Label();
|
||||
this.exferia_Label2 = new Exferia_Controles.Exferia_Label();
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa = new Exferia_Controles.Exferia_Label();
|
||||
this.ex_txt_P_ImportacionFacturaE_path = new Exferia_Controles.Exferia_TextBox();
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso = new Exferia_Controles.Exferia_BarraProgreso();
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado = new Exferia_Controles.Exferia_Button();
|
||||
this.exferia_Label1 = new Exferia_Controles.Exferia_Label();
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado = new Exferia_Controles.Exferia_DataGridView();
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar = new Exferia_Controles.Exferia_Button();
|
||||
this.P_ImportacionFacturaE_Total = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.P_ImportacionFacturaE_Comprador = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.P_ImportacionFacturaE_vendedor = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.pnl_Contenedor_Inferior.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ex_dgv_P_ImportacionFacturaE_Listado)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnl_Contenedor_Inferior
|
||||
//
|
||||
this.pnl_Contenedor_Inferior.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pnl_Contenedor_Inferior.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.panel1);
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.ex_txt_P_ImportacionFacturaE_path);
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.ex_pgb_P_ImportacionFacturaE_BarraProgreso);
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.exferia_Label1);
|
||||
this.pnl_Contenedor_Inferior.Controls.Add(this.ex_dgv_P_ImportacionFacturaE_Listado);
|
||||
this.pnl_Contenedor_Inferior.Location = new System.Drawing.Point(5, 72);
|
||||
this.pnl_Contenedor_Inferior.Name = "pnl_Contenedor_Inferior";
|
||||
this.pnl_Contenedor_Inferior.Size = new System.Drawing.Size(743, 583);
|
||||
this.pnl_Contenedor_Inferior.TabIndex = 69;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.P_ImportacionFacturaE_vendedor);
|
||||
this.panel1.Controls.Add(this.P_ImportacionFacturaE_Comprador);
|
||||
this.panel1.Controls.Add(this.P_ImportacionFacturaE_Total);
|
||||
this.panel1.Controls.Add(this.exferia_Label3);
|
||||
this.panel1.Controls.Add(this.exferia_Label2);
|
||||
this.panel1.Controls.Add(this.ex_lbl_P_FacturaCabecera_Anexo_Empresa);
|
||||
this.panel1.Exferia_Panel_Degradado_Color_Borde = System.Drawing.Color.White;
|
||||
this.panel1.Exferia_Panel_Degradado_Color_Desde = System.Drawing.Color.White;
|
||||
this.panel1.Exferia_Panel_Degradado_Color_Hasta = System.Drawing.Color.White;
|
||||
this.panel1.Exferia_Panel_Degradado_TipoDegradado = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
|
||||
this.panel1.Location = new System.Drawing.Point(505, 35);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(210, 520);
|
||||
this.panel1.TabIndex = 51;
|
||||
//
|
||||
// exferia_Label3
|
||||
//
|
||||
this.exferia_Label3.AutoSize = true;
|
||||
this.exferia_Label3.Location = new System.Drawing.Point(21, 129);
|
||||
this.exferia_Label3.Name = "exferia_Label3";
|
||||
this.exferia_Label3.Size = new System.Drawing.Size(70, 13);
|
||||
this.exferia_Label3.TabIndex = 183;
|
||||
this.exferia_Label3.Text = "Total Factura";
|
||||
//
|
||||
// exferia_Label2
|
||||
//
|
||||
this.exferia_Label2.AutoSize = true;
|
||||
this.exferia_Label2.Location = new System.Drawing.Point(21, 82);
|
||||
this.exferia_Label2.Name = "exferia_Label2";
|
||||
this.exferia_Label2.Size = new System.Drawing.Size(58, 13);
|
||||
this.exferia_Label2.TabIndex = 182;
|
||||
this.exferia_Label2.Text = "Comprador";
|
||||
//
|
||||
// ex_lbl_P_FacturaCabecera_Anexo_Empresa
|
||||
//
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.AutoSize = true;
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.Location = new System.Drawing.Point(21, 30);
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.Name = "ex_lbl_P_FacturaCabecera_Anexo_Empresa";
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.Size = new System.Drawing.Size(53, 13);
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.TabIndex = 181;
|
||||
this.ex_lbl_P_FacturaCabecera_Anexo_Empresa.Text = "Vendedor";
|
||||
//
|
||||
// ex_txt_P_ImportacionFacturaE_path
|
||||
//
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Bloqueable = true;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_MaxLength = 199;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Multiline = false;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_NoBloquear = true;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Obligatorio = false;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_PasswordChar = '\0';
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Permitir_CambioFuenteAutomatico = true;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_ReadOnly = false;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_SelectionLength = 0;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_SelectionStart = 0;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_TabStop_Txt = true;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Texto_Inicial = "";
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Exferia_TextBox_UseSystemPasswordChar = false;
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Location = new System.Drawing.Point(65, 7);
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Name = "ex_txt_P_ImportacionFacturaE_path";
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.ex_txt_P_ImportacionFacturaE_path.Size = new System.Drawing.Size(407, 22);
|
||||
this.ex_txt_P_ImportacionFacturaE_path.TabIndex = 50;
|
||||
//
|
||||
// ex_pgb_P_ImportacionFacturaE_BarraProgreso
|
||||
//
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.Exferia_BarraProgreso_Total = 0;
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.Location = new System.Drawing.Point(4, 558);
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.Name = "ex_pgb_P_ImportacionFacturaE_BarraProgreso";
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.Size = new System.Drawing.Size(495, 21);
|
||||
this.ex_pgb_P_ImportacionFacturaE_BarraProgreso.TabIndex = 48;
|
||||
//
|
||||
// ex_btn_P_ImportacionFacturaE_actualizaListado
|
||||
//
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.BackColor = System.Drawing.Color.Maroon;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_Bloqueable = true;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_ORDEN_ASC;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_ReadOnly = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_TabStop = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Exferia_Button_ToolTip = "Cambiar Orden del Listado";
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.FlatAppearance.BorderSize = 0;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Location = new System.Drawing.Point(478, 9);
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Name = "ex_btn_P_ImportacionFacturaE_actualizaListado";
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Size = new System.Drawing.Size(21, 21);
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.TabIndex = 47;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.TabStop = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Tag = "0";
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.UseVisualStyleBackColor = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_actualizaListado.Click += new System.EventHandler(this.ex_btn_P_ImportacionFacturaE__ActualizaListado_Click);
|
||||
//
|
||||
// exferia_Label1
|
||||
//
|
||||
this.exferia_Label1.AutoSize = true;
|
||||
this.exferia_Label1.Font = new System.Drawing.Font("Corbel", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.exferia_Label1.Location = new System.Drawing.Point(5, 13);
|
||||
this.exferia_Label1.Name = "exferia_Label1";
|
||||
this.exferia_Label1.Size = new System.Drawing.Size(54, 13);
|
||||
this.exferia_Label1.TabIndex = 40;
|
||||
this.exferia_Label1.Text = "Directorio";
|
||||
//
|
||||
// ex_dgv_P_ImportacionFacturaE_Listado
|
||||
//
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.AllowUserToAddRows = false;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.AllowUserToDeleteRows = false;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.AllowUserToOrderColumns = true;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.EnableHeadersVisualStyles = false;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.Location = new System.Drawing.Point(3, 35);
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.Name = "ex_dgv_P_ImportacionFacturaE_Listado";
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.RowHeadersVisible = false;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.ShowCellErrors = false;
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.Size = new System.Drawing.Size(496, 520);
|
||||
this.ex_dgv_P_ImportacionFacturaE_Listado.TabIndex = 43;
|
||||
//
|
||||
// ex_btn_P_ImportacionFacturaE_Importar
|
||||
//
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.BackColor = System.Drawing.Color.Maroon;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_Bloqueable = true;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_EXCEL;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_ReadOnly = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_TabStop = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Exferia_Button_ToolTip = "Exportar a Excel ()";
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.FlatAppearance.BorderSize = 0;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Location = new System.Drawing.Point(754, 72);
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Name = "ex_btn_P_ImportacionFacturaE_Importar";
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Size = new System.Drawing.Size(31, 36);
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.TabIndex = 68;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.TabStop = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.UseVisualStyleBackColor = false;
|
||||
this.ex_btn_P_ImportacionFacturaE_Importar.Click += new System.EventHandler(this.ex_btn_P_ImportacionFacturaE_importar_Click);
|
||||
//
|
||||
// P_ImportacionFacturaE_Total
|
||||
//
|
||||
this.P_ImportacionFacturaE_Total.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.P_ImportacionFacturaE_Total.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.P_ImportacionFacturaE_Total.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.P_ImportacionFacturaE_Total.Location = new System.Drawing.Point(21, 148);
|
||||
this.P_ImportacionFacturaE_Total.Name = "P_ImportacionFacturaE_Total";
|
||||
this.P_ImportacionFacturaE_Total.Size = new System.Drawing.Size(167, 23);
|
||||
this.P_ImportacionFacturaE_Total.TabIndex = 445;
|
||||
this.P_ImportacionFacturaE_Total.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// P_ImportacionFacturaE_Comprador
|
||||
//
|
||||
this.P_ImportacionFacturaE_Comprador.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.P_ImportacionFacturaE_Comprador.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.P_ImportacionFacturaE_Comprador.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.P_ImportacionFacturaE_Comprador.Location = new System.Drawing.Point(21, 100);
|
||||
this.P_ImportacionFacturaE_Comprador.Name = "P_ImportacionFacturaE_Comprador";
|
||||
this.P_ImportacionFacturaE_Comprador.Size = new System.Drawing.Size(167, 23);
|
||||
this.P_ImportacionFacturaE_Comprador.TabIndex = 446;
|
||||
this.P_ImportacionFacturaE_Comprador.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// P_ImportacionFacturaE_vendedor
|
||||
//
|
||||
this.P_ImportacionFacturaE_vendedor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.P_ImportacionFacturaE_vendedor.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.P_ImportacionFacturaE_vendedor.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.P_ImportacionFacturaE_vendedor.Location = new System.Drawing.Point(21, 55);
|
||||
this.P_ImportacionFacturaE_vendedor.Name = "P_ImportacionFacturaE_vendedor";
|
||||
this.P_ImportacionFacturaE_vendedor.Size = new System.Drawing.Size(167, 23);
|
||||
this.P_ImportacionFacturaE_vendedor.TabIndex = 447;
|
||||
this.P_ImportacionFacturaE_vendedor.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// P_ImportacionFacturaE
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.ClientSize = new System.Drawing.Size(797, 670);
|
||||
this.Controls.Add(this.pnl_Contenedor_Inferior);
|
||||
this.Controls.Add(this.ex_btn_P_ImportacionFacturaE_Importar);
|
||||
this.Name = "P_ImportacionFacturaE";
|
||||
this.Load += new System.EventHandler(this.P_DevolucionPago_Bolsa_Load);
|
||||
this.Shown += new System.EventHandler(this.P_DevolucionPago_Bolsa_Shown);
|
||||
this.Controls.SetChildIndex(this.ex_btn_P_ImportacionFacturaE_Importar, 0);
|
||||
this.Controls.SetChildIndex(this.pnl_Contenedor_Inferior, 0);
|
||||
this.pnl_Contenedor_Inferior.ResumeLayout(false);
|
||||
this.pnl_Contenedor_Inferior.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ex_dgv_P_ImportacionFacturaE_Listado)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Panel pnl_Contenedor_Inferior;
|
||||
private Exferia_Controles.Exferia_BarraProgreso ex_pgb_P_ImportacionFacturaE_BarraProgreso;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_ImportacionFacturaE_actualizaListado;
|
||||
private Exferia_Controles.Exferia_Label exferia_Label1;
|
||||
public Exferia_Controles.Exferia_DataGridView ex_dgv_P_ImportacionFacturaE_Listado;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_ImportacionFacturaE_Importar;
|
||||
private Exferia_Controles.Exferia_TextBox ex_txt_P_ImportacionFacturaE_path;
|
||||
private Exferia_Controles.Exferia_Panel_Degradado panel1;
|
||||
private Exferia_Controles.Exferia_Label exferia_Label3;
|
||||
private Exferia_Controles.Exferia_Label exferia_Label2;
|
||||
private Exferia_Controles.Exferia_Label ex_lbl_P_FacturaCabecera_Anexo_Empresa;
|
||||
private Exferia_Controles.Exferia_Label_SinColor P_ImportacionFacturaE_vendedor;
|
||||
private Exferia_Controles.Exferia_Label_SinColor P_ImportacionFacturaE_Comprador;
|
||||
private Exferia_Controles.Exferia_Label_SinColor P_ImportacionFacturaE_Total;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,941 @@
|
|||
using Exferia_Aplicacion.General;
|
||||
using Exferia_Aplicacion.Visualizacion;
|
||||
using Exferia_Controles;
|
||||
using Exferia_General;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Linq;
|
||||
using static Exferia_Aplicacion.General.Enumerados;
|
||||
using Exferia_Aplicacion.Modelos_Listado_Filtros;
|
||||
using ClosedXML.Excel;
|
||||
using System.Reflection;
|
||||
using Exferia_Formularios;
|
||||
using Exferia_Compras._3_Vistas.Controladoras;
|
||||
|
||||
namespace Exferia_Compras._3_Vistas
|
||||
{
|
||||
public partial class P_ImportacionFacturaE : Exferia_Formularios.P_Base_Mantenimientos
|
||||
{
|
||||
#region Variables General
|
||||
private P_ImportacionFacturaE_Controladora g_obj_Controladora;
|
||||
|
||||
public INTERNO_OpcionesDetalle_Modelo g_mdl_INTERNO_OpcionesDetalle_Modelo = null;
|
||||
|
||||
private bool g_bol_ConstructorPantalla_Terminado_Correctamente = true;
|
||||
internal List<INTERNO_Permisos_Modelo> g_lst_INTERNO_Permisos_Modelo = null;
|
||||
|
||||
//Clientes a Seleccionar
|
||||
private INTERNO_ConfiguracionPantalla_Modelo g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA = null;
|
||||
#endregion
|
||||
|
||||
#region Objetos en Pantalla
|
||||
//Exferia_BarraProgreso
|
||||
internal Exferia_BarraProgreso Exferia_BarraProgreso_Bolsa { get { return ex_pgb_P_ImportacionFacturaE_BarraProgreso; } }
|
||||
|
||||
//Exferia_DataGridView
|
||||
internal Exferia_DataGridView Exferia_DataGridView_Listado { get { return ex_dgv_P_ImportacionFacturaE_Listado; } }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Constructor
|
||||
public P_ImportacionFacturaE(INTERNO_ValoresGenerales_Modelo _mdl_INTERNO_ValoresGenerales_Modelo, DateTime _dtt_FechaTrabajo)
|
||||
{
|
||||
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_INTERNO_OpcionesDetalle_Modelo = Datos_Generales.PRV_Opciones_Buscar_Detalles(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO_BOLSA);
|
||||
|
||||
//Instanciar Controladora
|
||||
g_obj_Controladora = new P_ImportacionFacturaE_Controladora(this);
|
||||
|
||||
//Buscar los Permisos
|
||||
g_lst_INTERNO_Permisos_Modelo = Datos_Generales.Permisos_Buscar(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO_BOLSA);
|
||||
|
||||
//Titulo de la Pantalla .............................................................................
|
||||
P_Base_TituloPantalla = g_mdl_INTERNO_OpcionesDetalle_Modelo.descripcion_TituloMantenimiento;
|
||||
|
||||
if (Variables.G_DCT_CONFIGURACIONPANTALLA != null && Variables.G_DCT_CONFIGURACIONPANTALLA.Count > 0)
|
||||
{
|
||||
//Listado bolsa
|
||||
if (Variables.G_DCT_CONFIGURACIONPANTALLA.ContainsKey(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.NOMBRELISTADO_ALMACENARCONFIGURACION()))
|
||||
{
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA = Variables.G_DCT_CONFIGURACIONPANTALLA[g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.NOMBRELISTADO_ALMACENARCONFIGURACION()];
|
||||
}
|
||||
}
|
||||
|
||||
// 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_DevolucionPago_Bolsa) + "/" + nameof(P_DevolucionPago_Bolsa));
|
||||
}
|
||||
}
|
||||
//....................................................................................................
|
||||
|
||||
//Bloquear pantalla hasta que termine la carga por defecto .....
|
||||
Enabled = false;
|
||||
//.............................................................
|
||||
}
|
||||
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_DevolucionPago_Bolsa) + "/" + nameof(P_DevolucionPago_Bolsa));
|
||||
}
|
||||
finally
|
||||
{
|
||||
//Bloquear pantalla hasta que termine la carga por defecto .....
|
||||
Enabled = true;
|
||||
//.............................................................
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Inicio de pantalla
|
||||
|
||||
private void P_DevolucionPago_Bolsa_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
#region LISTADO BOLSA
|
||||
//Crear Columnas Listado
|
||||
CrearColumnas_Listado();
|
||||
|
||||
//Poner el tipo de orden si lo hubiera por defecto ###################################################################################
|
||||
if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_DIRECCION_PORDEFECTO != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_DIRECCION_PORDEFECTO.Trim().Length > 0)
|
||||
{
|
||||
//Descendente
|
||||
if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_DIRECCION_PORDEFECTO.Equals("1"))
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(0, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
ex_btn_P_ImportacionFacturaE_actualizaListado.Tag = "1";
|
||||
}
|
||||
//Ascendente
|
||||
else
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(1, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
ex_btn_P_ImportacionFacturaE_actualizaListado.Tag = "0";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_TIPO_PORDEFECTO().Trim().Length > 0)
|
||||
{
|
||||
//Descendente
|
||||
if (g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_TIPO_PORDEFECTO().Equals("1"))
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(0, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
ex_btn_P_ImportacionFacturaE_actualizaListado.Tag = "1";
|
||||
}
|
||||
//Ascendente
|
||||
else
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(1, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
ex_btn_P_ImportacionFacturaE_actualizaListado.Tag = "0";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Seleccionar Orden por Defecto en Combo ###########################################################################################################
|
||||
if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_COLUMNA_PORDEFECTO != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_COLUMNA_PORDEFECTO.Trim().Length > 0)
|
||||
{
|
||||
ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem = ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.Items.Cast<INTERNO_ComboBox_Modelo>().Where(m => m.Descripcion.Equals(g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_ORDEN_COLUMNA_PORDEFECTO)).FirstOrDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_NOMBRECOLUMNA_PORDEFECTO().Trim().Length > 0)
|
||||
{
|
||||
ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem = ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.Items.Cast<INTERNO_ComboBox_Modelo>().Where(m => m.Identificador.Equals(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_NOMBRECOLUMNA_PORDEFECTO())).FirstOrDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem = ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.Items.Cast<INTERNO_ComboBox_Modelo>().FirstOrDefault();
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(P_DevolucionPago_Bolsa_Load));
|
||||
|
||||
g_bol_ConstructorPantalla_Terminado_Correctamente = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void P_DevolucionPago_Bolsa_Shown(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (g_bol_ConstructorPantalla_Terminado_Correctamente)
|
||||
{
|
||||
//Rellenar el Listado
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
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 pero se guarda en el log
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(P_DevolucionPago_Bolsa_Shown));
|
||||
|
||||
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_CARGARDATOSPANTALLA());
|
||||
Salir_P_Base();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Listado
|
||||
private void CrearColumnas_Listado()
|
||||
{
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.AutoGenerateColumns = false;
|
||||
|
||||
foreach (INTERNO_ABS_Listado_ColumnasDatos_Modelo mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo in g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.LISTADO_COLUMNAS().Values.ToList())
|
||||
{
|
||||
DataGridViewTextBoxColumn dgv_Columna = new DataGridViewTextBoxColumn();
|
||||
dgv_Columna.DataPropertyName = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna;
|
||||
dgv_Columna.Name = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna;
|
||||
dgv_Columna.HeaderText = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_AMostrar;
|
||||
|
||||
//Poner visible o no .........................................................................
|
||||
bool bol_Visible = true;
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.NoOcultable == false)
|
||||
{
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Oculto)
|
||||
{
|
||||
bol_Visible = false;
|
||||
}
|
||||
else if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNASAMOSTRAR != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNASAMOSTRAR.Count > 0)
|
||||
{
|
||||
if (!g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNASAMOSTRAR.Contains(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna))
|
||||
{
|
||||
bol_Visible = false;
|
||||
}
|
||||
}
|
||||
else if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Mostrado_PorDefecto == false)
|
||||
{
|
||||
bol_Visible = false;
|
||||
}
|
||||
}
|
||||
dgv_Columna.Visible = bol_Visible;
|
||||
|
||||
|
||||
if (bol_Visible)
|
||||
{
|
||||
g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA.Add(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna);
|
||||
}
|
||||
//.....................................................................................................
|
||||
|
||||
//Tipo de Formateo si fuera Fecha
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.DATETIME))
|
||||
{
|
||||
dgv_Columna.DefaultCellStyle.Format = "d";
|
||||
}
|
||||
|
||||
//Poner Ancho Columna ................................................................................
|
||||
if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ANCHO != null &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ANCHO.Count > 0 &&
|
||||
g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ANCHO.ContainsKey(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna))
|
||||
{
|
||||
dgv_Columna.Width = g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ANCHO[mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Ancho > 0)
|
||||
{
|
||||
dgv_Columna.Width = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Ancho;
|
||||
}
|
||||
}
|
||||
//................................................................................................................
|
||||
|
||||
dgv_Columna.ReadOnly = true;
|
||||
|
||||
//Poner alineado segun tipo de datos ......................................................................................
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.DECIMAL) ||
|
||||
mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.LONG) ||
|
||||
mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.LONG_TEXT) ||
|
||||
mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.INT))
|
||||
{
|
||||
dgv_Columna.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
|
||||
}
|
||||
else
|
||||
{
|
||||
dgv_Columna.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;
|
||||
}
|
||||
//..............................................................................................................................
|
||||
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.Columns.Add(dgv_Columna);
|
||||
|
||||
//RELLENAR EL ORDEN EN COMBO
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Oculto == false)
|
||||
{
|
||||
ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.Items.Add(new INTERNO_ComboBox_Modelo(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna, mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_AMostrar, null));
|
||||
}
|
||||
}
|
||||
|
||||
//Cambiar el orden de las columnas ........
|
||||
if (g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA != null && g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ORDEN != null && g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ORDEN.Count > 0)
|
||||
{
|
||||
foreach (KeyValuePair<string, int> kvp_Valores in g_mdl_INTERNO_ConfiguracionPantalla_Modelo_BOLSA.LISTADO_COLUMNAS_ORDEN)
|
||||
{
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.Columns[kvp_Valores.Key].DisplayIndex = kvp_Valores.Value;
|
||||
}
|
||||
}
|
||||
//.........................................
|
||||
}
|
||||
|
||||
#region Orden
|
||||
private void ex_btn_P_ImportacionFacturaE__ActualizaListado_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Esta Descedente
|
||||
if (ex_btn_P_ImportacionFacturaE_actualizaListado.Tag.ToString().Equals("1"))
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(1, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
}
|
||||
//Esta Ascendente
|
||||
else
|
||||
{
|
||||
Funciones.Cambiar_Imagen_Boton_Orden(0, ex_btn_P_ImportacionFacturaE_actualizaListado);
|
||||
}
|
||||
|
||||
//Ordena el Listado
|
||||
Ordenar_DataGridView();
|
||||
}
|
||||
|
||||
private void ex_cbo_P_DevolucionPago_Bolsa_OrdenListado_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
//Ordena el Listado
|
||||
Ordenar_DataGridView();
|
||||
}
|
||||
private void Ordenar_DataGridView()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (ex_dgv_P_ImportacionFacturaE_Listado.Rows.Count > 0)
|
||||
{
|
||||
//Saber el Tipo de Ordenacion .................................
|
||||
ListSortDirection obj_ListSortDirection = ListSortDirection.Ascending;
|
||||
if (ex_btn_P_ImportacionFacturaE_actualizaListado.Tag.ToString().Equals("1"))
|
||||
{
|
||||
obj_ListSortDirection = ListSortDirection.Descending;
|
||||
}
|
||||
//..............................................................
|
||||
|
||||
if (ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem != null && ((INTERNO_ComboBox_Modelo)ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem).Identificador.Trim().Length > 0)
|
||||
{
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.Sort(ex_dgv_P_ImportacionFacturaE_Listado.Columns[((INTERNO_ComboBox_Modelo)ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem).Identificador], obj_ListSortDirection);
|
||||
|
||||
|
||||
//Ordenar el Listado ##################
|
||||
|
||||
//Descendente
|
||||
if (ex_btn_P_ImportacionFacturaE_actualizaListado.Tag.ToString().Equals("1"))
|
||||
{
|
||||
g_obj_Controladora.g_lst_Valores = g_obj_Controladora.g_lst_Valores.OrderByDescending(m => m.GetType().GetProperty(((INTERNO_ComboBox_Modelo)ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem).Identificador).GetValue(m, null)).ToList();
|
||||
}
|
||||
//Ascendente
|
||||
else
|
||||
{
|
||||
g_obj_Controladora.g_lst_Valores = g_obj_Controladora.g_lst_Valores.OrderBy(m => m.GetType().GetProperty(((INTERNO_ComboBox_Modelo)ex_cbo_P_DevolucionPago_Bolsa_OrdenListado.SelectedItem).Identificador).GetValue(m, null)).ToList();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.Sort(ex_dgv_P_ImportacionFacturaE_Listado.Columns[g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_NOMBRECOLUMNA_PORDEFECTO()], obj_ListSortDirection);
|
||||
|
||||
//Descendente
|
||||
if (ex_btn_P_ImportacionFacturaE_actualizaListado.Tag.ToString().Equals("1"))
|
||||
{
|
||||
g_obj_Controladora.g_lst_Valores = g_obj_Controladora.g_lst_Valores.OrderByDescending(m => m.GetType().GetProperty(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_NOMBRECOLUMNA_PORDEFECTO()).GetValue(m, null)).ToList();
|
||||
}
|
||||
//Ascendente
|
||||
else
|
||||
{
|
||||
g_obj_Controladora.g_lst_Valores = g_obj_Controladora.g_lst_Valores.OrderBy(m => m.GetType().GetProperty(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.ORDENACION_NOMBRECOLUMNA_PORDEFECTO()).GetValue(m, null)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
string str_NombreCampoClave = "id";
|
||||
INTERNO_ABS_Listado_ColumnasDatos_Modelo mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo = g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.LISTADO_COLUMNAS().Values.Where(m => m.ColumnaClave).FirstOrDefault();
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo != null)
|
||||
{
|
||||
str_NombreCampoClave = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna;
|
||||
}
|
||||
|
||||
///m.GetType().GetProperty(str_NombreCampoClave).GetValue(m, null)
|
||||
P_Base_Objetos_Filtrados = g_obj_Controladora.g_lst_Valores.Select(m => new INTERNO_Listado_CamposClave_Modelo { ID = m.GetType().GetProperty(str_NombreCampoClave).GetValue(m) }).ToList();
|
||||
//...........................................................................................................
|
||||
|
||||
//Seleccionar la primera
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.ClearSelection();
|
||||
ex_dgv_P_ImportacionFacturaE_Listado.Rows[0].Selected = true;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{ }
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Eventos y Procedimientos Publicos
|
||||
public override void P_Base_ActualizarRegistros_Campo(List<INTERNO_ActualizarCampoListadoGeneral_Modelo> _lst_CamposActualizar, G_ENUM_TIPOACCION _enum_TipoAccion)
|
||||
{
|
||||
if (_lst_CamposActualizar != null && _lst_CamposActualizar.Count > 0)
|
||||
{
|
||||
//Actualizar el Listado Principal
|
||||
if (P_Base_PantallaOrigen != null)
|
||||
{
|
||||
P_Base_PantallaOrigen.P_Base_ActualizarRegistros_Campo(_lst_CamposActualizar, _enum_TipoAccion);
|
||||
}
|
||||
|
||||
//Cargar los Datos desde Base de datos
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Botones
|
||||
//Exportar a Excel
|
||||
private void ex_btn_P_ImportacionFacturaE_importar_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Exportar_Excel();
|
||||
}
|
||||
private void Exportar_Excel()
|
||||
{
|
||||
if (Datos_Generales.Permisos_Comprobar(g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.ExportarAExcel, true))
|
||||
{
|
||||
XLWorkbook obj_XLWorkbook = new XLWorkbook();
|
||||
|
||||
try
|
||||
{
|
||||
//Crea la hoja del Excell
|
||||
var obj_worksheet = obj_XLWorkbook.Worksheets.Add("Hoja 1");
|
||||
|
||||
//Cabecera
|
||||
int int_Contador = 1;
|
||||
|
||||
List<DataGridViewColumn> lst_ColumnasVisibles = ex_dgv_P_ImportacionFacturaE_Listado.Columns
|
||||
.Cast<DataGridViewColumn>()
|
||||
.Where(r => r.Visible)
|
||||
.OrderBy(r => r.DisplayIndex)
|
||||
.ToList();
|
||||
|
||||
foreach (DataGridViewColumn dgvc_Columna in lst_ColumnasVisibles)
|
||||
{
|
||||
obj_worksheet.Cell(1, int_Contador).Value = dgvc_Columna.HeaderText;
|
||||
|
||||
//Formato de color al texto y al fondo
|
||||
obj_worksheet.Cell(1, int_Contador).Style.Fill.BackgroundColor = XLColor.FromHtml(Funciones.Convertir_Color_Hexadecimal(Colores.G_COLOR_PRINCIPAL_BASE));
|
||||
obj_worksheet.Cell(1, int_Contador).Style.Font.FontColor = XLColor.FromHtml(Funciones.Convertir_Color_Hexadecimal(Colores.G_COLOR_LISTADO_CABECERA_LETRA));
|
||||
int_Contador++;
|
||||
}
|
||||
|
||||
//Lineas
|
||||
int int_Contador_Fila = 0;
|
||||
int int_Contador_Columna = 0;
|
||||
if (g_obj_Controladora.g_lst_Valores != null)
|
||||
{
|
||||
//Recorrer las Filas
|
||||
foreach (dynamic dnm_Registro in g_obj_Controladora.g_lst_Valores)
|
||||
{
|
||||
//Recorrer Columnas Visibles
|
||||
foreach (DataGridViewColumn dgvc_Columna in lst_ColumnasVisibles)
|
||||
{
|
||||
string str_NombreColumna = dgvc_Columna.Name;
|
||||
|
||||
//Buscar el modelo para poder saber que tipo de columna es
|
||||
INTERNO_ABS_Listado_ColumnasDatos_Modelo mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo = g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.LISTADO_COLUMNAS()[str_NombreColumna];
|
||||
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo != null)
|
||||
{
|
||||
//Tipo fecha
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.DATETIME))
|
||||
{
|
||||
DateTime? dtt_Valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
|
||||
if (dtt_Valor != null)
|
||||
{
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(dtt_Valor.Value.ToString("dd/MM/yyyy")).Style.DateFormat.SetFormat("dd/mm/yyyy");
|
||||
}
|
||||
else
|
||||
{
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Value = "";
|
||||
}
|
||||
}
|
||||
//Tipo booleano
|
||||
else if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.BOOLEAN))
|
||||
{
|
||||
bool? bol_Valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
string str_Valor = bol_Valor != null && bol_Valor.Value ? "X" : "";
|
||||
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(str_Valor).SetDataType(XLCellValues.Text);
|
||||
}
|
||||
//Tipo decimal
|
||||
else if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.DECIMAL))
|
||||
{
|
||||
decimal? dcm_valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
string str_Valor = (dcm_valor != null ? dcm_valor.ToString() : "").Replace(",", ".");
|
||||
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(str_Valor).SetDataType(XLCellValues.Number);
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.NumberFormat.Format = "0.0#?";
|
||||
|
||||
//Alinear los numeros a la derecha
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
|
||||
}
|
||||
//Tipo long
|
||||
else if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.LONG))
|
||||
{
|
||||
long? lng_valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
string str_Valor = lng_valor != null ? lng_valor.ToString() : "";
|
||||
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(str_Valor).SetDataType(XLCellValues.Number);
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.NumberFormat.Format = "0";
|
||||
|
||||
//Alinear los numeros a la derecha
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
}
|
||||
//Tipo int
|
||||
else if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.TipoDato.Equals(G_ENUM_TIPOSDATOS.INT))
|
||||
{
|
||||
int? int_valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
string str_Valor = int_valor != null ? int_valor.ToString() : "";
|
||||
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(str_Valor).SetDataType(XLCellValues.Number);
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.NumberFormat.Format = "0";
|
||||
|
||||
//Alinear los numeros a la derecha
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
}
|
||||
//Tipo texto
|
||||
else
|
||||
{
|
||||
string str_valor = dnm_Registro.GetType().GetProperty(mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna).GetValue(dnm_Registro, null);
|
||||
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).SetValue(str_valor).SetDataType(XLCellValues.Text);
|
||||
|
||||
//Alinear los texto a la derecha
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
obj_worksheet.Cell(int_Contador_Fila + 2, int_Contador_Columna + 1).Value = "";
|
||||
}
|
||||
|
||||
//Sumo 1 a la columna
|
||||
int_Contador_Columna += 1;
|
||||
}
|
||||
|
||||
//Sumo 1 a la fila
|
||||
int_Contador_Fila += 1;
|
||||
|
||||
//las Columnas se reinician a 0
|
||||
int_Contador_Columna = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//Ajusto el Excell al contenido
|
||||
obj_worksheet.Columns().AdjustToContents();
|
||||
|
||||
//Abro un dialog para Guardar
|
||||
SaveFileDialog save = new SaveFileDialog();
|
||||
save.Filter = "Excel (*.xlsx)|*.xlsx";
|
||||
save.Title = "Excel";
|
||||
|
||||
if (save.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
//Guardo el Excell
|
||||
obj_XLWorkbook.SaveAs(save.FileName);
|
||||
|
||||
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_EXPORTAREXCEL_CORRECTO());
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(Exportar_Excel));
|
||||
Mensajes.MostrarMensaje(Mensajes.G_STR_MENSAJES_GENERAL_ERROR_EXPORTAREXCEL());
|
||||
}
|
||||
finally
|
||||
{
|
||||
obj_XLWorkbook.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Borrar Lineas
|
||||
private void ex_btn_P_DevolucionPago_Bolsa_Borrar_Click(object sender, EventArgs e)
|
||||
{
|
||||
Borrar();
|
||||
}
|
||||
private void Borrar()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Datos_Generales.Permisos_Comprobar(g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Borrar, true))
|
||||
{
|
||||
//Registro Seleccionados ........................................
|
||||
List<dynamic> lst_ids = new List<dynamic>();
|
||||
|
||||
if (ex_dgv_P_ImportacionFacturaE_Listado.Rows.Count > 0)
|
||||
{
|
||||
//Buscar el Campo Clave
|
||||
string str_NombreCampoClave = "id";
|
||||
INTERNO_ABS_Listado_ColumnasDatos_Modelo mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo = g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa.LISTADO_COLUMNAS().Values.Where(m => m.ColumnaClave).FirstOrDefault();
|
||||
if (mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo != null)
|
||||
{
|
||||
str_NombreCampoClave = mdl_INTERNO_ABS_Listado_ColumnasDatos_Modelo.Descripcion_Interna;
|
||||
}
|
||||
|
||||
if (ex_dgv_P_ImportacionFacturaE_Listado.SelectedRows != null && ex_dgv_P_ImportacionFacturaE_Listado.SelectedRows.Count > 0)
|
||||
{
|
||||
foreach (DataGridViewRow dgvr in ex_dgv_P_ImportacionFacturaE_Listado.SelectedRows)
|
||||
{
|
||||
lst_ids.Add(long.Parse(dgvr.Cells[str_NombreCampoClave].Value.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
//................................................................
|
||||
|
||||
//Cargamos el ensamblado
|
||||
Assembly m_assembly = Assembly.LoadFrom(Variables.G_STR_LIBRERIA_RUTAINICIAL + @"\" + Variables.G_STR_LIBRERIA_COMPRAS + ".dll");
|
||||
//Obtenemos el tipo de la clase
|
||||
Type m_type = m_assembly.GetType(Variables.G_STR_LIBRERIA_COMPRAS + "." + 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_BORRAR_BOLSA, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
object[] arr_Parametros = { g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion,
|
||||
this,
|
||||
Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO,
|
||||
this.P_Base_FechaTrabajo,
|
||||
lst_ids
|
||||
};
|
||||
|
||||
//Pasamos los parametros al metodo y lo ejecutamos
|
||||
obj_MethodInfo.Invoke(obj_Clase, arr_Parametros);
|
||||
}
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{ }
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(Borrar));
|
||||
}
|
||||
}
|
||||
|
||||
//Añadir segun filtros
|
||||
private void ex_btn_P_DevolucionPago_Bolsa_FiltroAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
FiltroAdd();
|
||||
}
|
||||
private void FiltroAdd()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Datos_Generales.Permisos_Comprobar(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO_BOLSA, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Anadir, true))
|
||||
{
|
||||
Dictionary<string, object> dct_ListadoFiltros_Agregados = new Dictionary<string, object>();
|
||||
|
||||
PE_Listados_Filtros frm_PE_Listados_Filtros = new PE_Listados_Filtros(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa, ex_dgv_P_ImportacionFacturaE_Listado.Columns, dct_ListadoFiltros_Agregados);
|
||||
frm_PE_Listados_Filtros.ShowDialog();
|
||||
|
||||
if (frm_PE_Listados_Filtros.g_bol_BotonAceptar)
|
||||
{
|
||||
//Mostrar/Ocultar las Columnas que no esten en el Listado ############################################
|
||||
g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA = frm_PE_Listados_Filtros.g_lst_ColumnasAMostrar;
|
||||
|
||||
bool bol_Cambio_MostraroOcultar_Columnas = false;
|
||||
|
||||
foreach (DataGridViewColumn dgvc_ColumnasActuales in ex_dgv_P_ImportacionFacturaE_Listado.Columns)
|
||||
{
|
||||
//Mostrar
|
||||
if (g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA.Contains(dgvc_ColumnasActuales.Name))
|
||||
{
|
||||
if (!dgvc_ColumnasActuales.Visible)
|
||||
{
|
||||
bol_Cambio_MostraroOcultar_Columnas = true;
|
||||
}
|
||||
|
||||
dgvc_ColumnasActuales.Visible = true;
|
||||
}
|
||||
//Ocultar
|
||||
else
|
||||
{
|
||||
if (dgvc_ColumnasActuales.Visible)
|
||||
{
|
||||
bol_Cambio_MostraroOcultar_Columnas = true;
|
||||
}
|
||||
|
||||
dgvc_ColumnasActuales.Visible = false;
|
||||
}
|
||||
}
|
||||
//######################################################################################################
|
||||
|
||||
//Rellenar los bolsa con los filtros hechos #############################################################################################################################
|
||||
dct_ListadoFiltros_Agregados = frm_PE_Listados_Filtros.g_dct_ListadoFiltros.ToDictionary(entry => entry.Key, entry => entry.Value);
|
||||
|
||||
//Si no cambio ninguna columna (mostrar/Ocultar) y no hay filtros, se cargar los filtros avanzados
|
||||
//Si no cambio ninguna columna (mostrar/Ocultar) y hay filtros, se cargar los filtros avanzados
|
||||
//Si cambio alguna columna (mostrar/Ocultar) y no hay filtros, no se cargar los filtros avanzados
|
||||
//Si cambio alguna columna (mostrar/Ocultar) y hay filtros, se cargar los filtros avanzados
|
||||
|
||||
if (bol_Cambio_MostraroOcultar_Columnas && (dct_ListadoFiltros_Agregados == null || dct_ListadoFiltros_Agregados.Count == 0))
|
||||
{
|
||||
if (frm_PE_Listados_Filtros.g_bol_RecargarListado)
|
||||
{
|
||||
//Cargar los Datos desde Base de datos
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
else if (dct_ListadoFiltros_Agregados != null && dct_ListadoFiltros_Agregados.Count > 0)
|
||||
{
|
||||
//Cargamos el ensamblado
|
||||
Assembly m_assembly = Assembly.LoadFrom(Variables.G_STR_LIBRERIA_RUTAINICIAL + @"\" + Variables.G_STR_LIBRERIA_COMPRAS + ".dll");
|
||||
//Obtenemos el tipo de la clase
|
||||
Type m_type = m_assembly.GetType(Variables.G_STR_LIBRERIA_COMPRAS + "." + 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_FILTRAR_REGISTROS_PARA_BOLSA, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
object[] arr_Parametros = { g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion,
|
||||
Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO,
|
||||
P_Base_ValoresGenerales.lng_idEmpresa,
|
||||
P_Base_ValoresGenerales.EjercicioActivo.id,
|
||||
g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA,
|
||||
dct_ListadoFiltros_Agregados
|
||||
};
|
||||
|
||||
//Pasamos los parametros al metodo y lo ejecutamos
|
||||
List<long> lst_id_Agregar = (List<long>)obj_MethodInfo.Invoke(obj_Clase, arr_Parametros);
|
||||
//########################################################################################################################################################################
|
||||
|
||||
if (lst_id_Agregar != null && lst_id_Agregar.Count > 0)
|
||||
{
|
||||
List<dynamic> lst_id_AgregarFInal = lst_id_Agregar.Cast<dynamic>().ToList();
|
||||
|
||||
|
||||
//creamos la instancia
|
||||
var obj_Clase2 = Activator.CreateInstance(m_type);
|
||||
//Cargamos el metodo solicitado
|
||||
MethodInfo obj_MethodInfo2 = obj_Clase2.GetType().GetMethod(Variables.G_STR_LIBRERIA_OPCIONES_PROCEDIMIENTO_AGREGAR_BOLSA, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
object[] arr_Parametros2 = { g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion,
|
||||
this,
|
||||
Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO,
|
||||
this.P_Base_FechaTrabajo,
|
||||
lst_id_AgregarFInal
|
||||
};
|
||||
|
||||
//Pasamos los parametros al metodo y lo ejecutamos
|
||||
obj_MethodInfo2.Invoke(obj_Clase2, arr_Parametros2);
|
||||
}
|
||||
else if (frm_PE_Listados_Filtros.g_bol_RecargarListado)
|
||||
{
|
||||
//Cargar los Datos desde Base de datos
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{ }
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(FiltroAdd));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Quitar segun Filtros
|
||||
private void ex_btn_P_DevolucionPago_Bolsa_FiltroBorrar_Click(object sender, EventArgs e)
|
||||
{
|
||||
FiltroBorrar();
|
||||
}
|
||||
private void FiltroBorrar()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Datos_Generales.Permisos_Comprobar(Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO_BOLSA, g_lst_INTERNO_Permisos_Modelo, (int)G_ENUM_PERMISOS.Borrar, true))
|
||||
{
|
||||
Dictionary<string, object> dct_ListadoFiltros_Agregados = new Dictionary<string, object>();
|
||||
|
||||
PE_Listados_Filtros frm_PE_Listados_Filtros = new PE_Listados_Filtros(g_obj_Controladora.g_obj_ABS_Listado_COM_DevolucionesPagos_Bolsa, ex_dgv_P_ImportacionFacturaE_Listado.Columns, dct_ListadoFiltros_Agregados);
|
||||
frm_PE_Listados_Filtros.ShowDialog();
|
||||
|
||||
if (frm_PE_Listados_Filtros.g_bol_BotonAceptar)
|
||||
{
|
||||
//Mostrar/Ocultar las Columnas que no esten en el Listado ############################################
|
||||
g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA = frm_PE_Listados_Filtros.g_lst_ColumnasAMostrar;
|
||||
|
||||
bool bol_Cambio_MostraroOcultar_Columnas = false;
|
||||
|
||||
foreach (DataGridViewColumn dgvc_ColumnasActuales in ex_dgv_P_ImportacionFacturaE_Listado.Columns)
|
||||
{
|
||||
//Mostrar
|
||||
if (g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA.Contains(dgvc_ColumnasActuales.Name))
|
||||
{
|
||||
if (!dgvc_ColumnasActuales.Visible)
|
||||
{
|
||||
bol_Cambio_MostraroOcultar_Columnas = true;
|
||||
}
|
||||
|
||||
dgvc_ColumnasActuales.Visible = true;
|
||||
}
|
||||
//Ocultar
|
||||
else
|
||||
{
|
||||
if (dgvc_ColumnasActuales.Visible)
|
||||
{
|
||||
bol_Cambio_MostraroOcultar_Columnas = true;
|
||||
}
|
||||
|
||||
dgvc_ColumnasActuales.Visible = false;
|
||||
}
|
||||
}
|
||||
//######################################################################################################
|
||||
|
||||
//Rellenar los bolsa con los filtros hechos #############################################################################################################################
|
||||
dct_ListadoFiltros_Agregados = frm_PE_Listados_Filtros.g_dct_ListadoFiltros.ToDictionary(entry => entry.Key, entry => entry.Value);
|
||||
|
||||
//Si no cambio ninguna columna (mostrar/Ocultar) y no hay filtros, se cargar los filtros avanzados
|
||||
//Si no cambio ninguna columna (mostrar/Ocultar) y hay filtros, se cargar los filtros avanzados
|
||||
//Si cambio alguna columna (mostrar/Ocultar) y no hay filtros, no se cargar los filtros avanzados
|
||||
//Si cambio alguna columna (mostrar/Ocultar) y hay filtros, se cargar los filtros avanzados
|
||||
|
||||
if (bol_Cambio_MostraroOcultar_Columnas && (dct_ListadoFiltros_Agregados == null || dct_ListadoFiltros_Agregados.Count == 0))
|
||||
{
|
||||
if (frm_PE_Listados_Filtros.g_bol_RecargarListado)
|
||||
{
|
||||
//Cargar los Datos desde Base de datos
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
else if (dct_ListadoFiltros_Agregados != null && dct_ListadoFiltros_Agregados.Count > 0)
|
||||
{
|
||||
//Cargamos el ensamblado
|
||||
Assembly m_assembly = Assembly.LoadFrom(Variables.G_STR_LIBRERIA_RUTAINICIAL + @"\" + Variables.G_STR_LIBRERIA_COMPRAS + ".dll");
|
||||
//Obtenemos el tipo de la clase
|
||||
Type m_type = m_assembly.GetType(Variables.G_STR_LIBRERIA_COMPRAS + "." + 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_FILTRAR_REGISTROS_PARA_BOLSA, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
object[] arr_Parametros = { g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion,
|
||||
Variables.G_STR_OPCION_COM_DEVOLUCIONPAGO,
|
||||
P_Base_ValoresGenerales.lng_idEmpresa,
|
||||
P_Base_ValoresGenerales.EjercicioActivo.id,
|
||||
g_obj_Controladora.g_lst_ColumnasAMostrar_BOLSA,
|
||||
dct_ListadoFiltros_Agregados
|
||||
};
|
||||
|
||||
//Pasamos los parametros al metodo y lo ejecutamos
|
||||
List<long> lst_id_Agregar = (List<long>)obj_MethodInfo.Invoke(obj_Clase, arr_Parametros);
|
||||
//########################################################################################################################################################################
|
||||
|
||||
|
||||
if (lst_id_Agregar != null && lst_id_Agregar.Count > 0)
|
||||
{
|
||||
List<dynamic> lst_id_AgregarFInal = lst_id_Agregar.Cast<dynamic>().ToList();
|
||||
|
||||
//creamos la instancia
|
||||
var obj_Clase2 = Activator.CreateInstance(m_type);
|
||||
//Cargamos el metodo solicitado
|
||||
MethodInfo obj_MethodInfo2 = obj_Clase2.GetType().GetMethod(Variables.G_STR_LIBRERIA_OPCIONES_PROCEDIMIENTO_BORRAR_BOLSA, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
object[] arr_Parametros2 = { g_mdl_INTERNO_OpcionesDetalle_Modelo.opcion,
|
||||
this,
|
||||
Variables.G_MDL_INTERNO_VALORESGENERALES_MODELO,
|
||||
this.P_Base_FechaTrabajo,
|
||||
lst_id_AgregarFInal
|
||||
};
|
||||
|
||||
//Pasamos los parametros al metodo y lo ejecutamos
|
||||
obj_MethodInfo2.Invoke(obj_Clase2, arr_Parametros2);
|
||||
}
|
||||
else if (frm_PE_Listados_Filtros.g_bol_RecargarListado)
|
||||
{
|
||||
//Cargar los Datos desde Base de datos
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{ }
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_DevolucionPago_Bolsa) + "/" + nameof(FiltroBorrar));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void ex_btn_P_DevolucionPago_Bolsa_Actualizar_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (g_obj_Controladora != null)
|
||||
{
|
||||
g_obj_Controladora.Recargar_Listado(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void exferia_TextBox1_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -147,6 +147,7 @@
|
|||
<Compile Include="3_Vistas\Bolsa\ABS_Listado_COM_PedidosComprasCabecera_Bolsa.cs" />
|
||||
<Compile Include="3_Vistas\Bolsa\ABS_Listado_COM_SolicitudesOfertaCabecera_Bolsa.cs" />
|
||||
<Compile Include="3_Vistas\Bolsa\ABS_Listado_COM_Vencimientos_Bolsa.cs" />
|
||||
<Compile Include="3_Vistas\Controladoras\P_ImportacionFacturaE_Controladora.cs" />
|
||||
<Compile Include="3_Vistas\Controladoras\P_DevolucionPago_Controladora.cs" />
|
||||
<Compile Include="3_Vistas\Controladoras\P_DevolucionPago_Bolsa_Controladora.cs" />
|
||||
<Compile Include="3_Vistas\Controladoras\P_DevolucionPago_Procesos_Controladora.cs" />
|
||||
|
|
@ -256,6 +257,12 @@
|
|||
<Compile Include="3_Vistas\P_DevolucionPago.Designer.cs">
|
||||
<DependentUpon>P_DevolucionPago.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="3_Vistas\P_ImportacionFacturaE.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="3_Vistas\P_ImportacionFacturaE.Designer.cs">
|
||||
<DependentUpon>P_ImportacionFacturaE.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="3_Vistas\P_EntradaMercanciaCabecera.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -464,6 +471,9 @@
|
|||
<EmbeddedResource Include="3_Vistas\P_DevolucionPago_Procesos.resx">
|
||||
<DependentUpon>P_DevolucionPago_Procesos.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="3_Vistas\P_ImportacionFacturaE.resx">
|
||||
<DependentUpon>P_ImportacionFacturaE.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="3_Vistas\P_Pago_Procesos.resx">
|
||||
<DependentUpon>P_Pago_Procesos.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace Exferia_Compras
|
|||
public event EventHandler<INTERNO_EventArgs_Listado> ABS_Opciones_Evento_RegistroSeleccionado;
|
||||
protected void Evento_RegistroSeleccionado(object sender, INTERNO_EventArgs_Listado e)
|
||||
{
|
||||
INTERNO_EventArgs_Listado obj_Exferia_EventArgs = new INTERNO_EventArgs_Listado(null, null, e.REGISTRO_SELECCIONADO, null, e.Objeto_Auxiliar,e.Listado_INTERNO_Filtro_OpcionPadre_Modelo,e.CamposValores_ParaMantenimiento);
|
||||
INTERNO_EventArgs_Listado obj_Exferia_EventArgs = new INTERNO_EventArgs_Listado(null, null, e.REGISTRO_SELECCIONADO, null, e.Objeto_Auxiliar, e.Listado_INTERNO_Filtro_OpcionPadre_Modelo, e.CamposValores_ParaMantenimiento);
|
||||
EventHandler<INTERNO_EventArgs_Listado> obj_EventHandler = ABS_Opciones_Evento_RegistroSeleccionado;
|
||||
if (obj_EventHandler != null)
|
||||
obj_EventHandler(this, obj_Exferia_EventArgs);
|
||||
|
|
@ -539,7 +539,7 @@ namespace Exferia_Compras
|
|||
_obj_Auxiliar);
|
||||
}
|
||||
|
||||
private List<dynamic> OBTENER_LISTADO( string _str_Opcion,
|
||||
private List<dynamic> OBTENER_LISTADO(string _str_Opcion,
|
||||
long _lng_idEmpresaSeleccionada,
|
||||
long _lng_idEjercicioActual,
|
||||
List<string> _lst_CamposConRelacionABuscar,
|
||||
|
|
@ -1166,7 +1166,7 @@ namespace Exferia_Compras
|
|||
//Mayor_CuentaContable
|
||||
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
|
||||
//Cargamos el ensamblado
|
||||
|
|
@ -1180,7 +1180,7 @@ namespace Exferia_Compras
|
|||
|
||||
object[] arr_Parametros = { lng_idProveedor };
|
||||
//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
|
||||
|
||||
#region MOSTRAR MANTENIMIENTO
|
||||
|
|
@ -1211,7 +1211,7 @@ namespace Exferia_Compras
|
|||
}
|
||||
}
|
||||
catch (Control_Errores)
|
||||
{}
|
||||
{ }
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(Opciones) + "/" + nameof(MOSTRAR_PANTALLA_SECUNDARIO));
|
||||
|
|
@ -1562,7 +1562,7 @@ namespace Exferia_Compras
|
|||
//DEVOLUCIONESPAGO
|
||||
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_2 = _str_Campo2_Valor;
|
||||
|
||||
|
|
@ -3184,5 +3184,17 @@ namespace Exferia_Compras
|
|||
|
||||
|
||||
#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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ClassDiagram />
|
||||
|
|
@ -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'.
|
||||
// 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'
|
||||
// por 'ObjectContext heredado'. Esta propiedad está disponible en la ventana Propiedades cuando se abre
|
||||
// el modelo en el diseñador.
|
||||
// T4 code generation is enabled for model 'D:\desa\Exferia\Exferia\Exferia_EntityFramework\Exferia_EntityFramework\EF_BaseDatos.edmx'.
|
||||
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
|
||||
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
|
||||
// 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
|
||||
// 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
|
||||
// para el modelo, abra el modelo en el diseñador, haga clic con el botón secundario en la superficie del diseñador y
|
||||
// seleccione 'Actualizar modelo desde base de datos...', 'Generar base de datos desde modelo...' o 'Agregar elemento de generación
|
||||
// de código...'.
|
||||
// If no context and entity classes have been generated, it may be because you created an empty model but
|
||||
// have not yet chosen which version of Entity Framework to use. To generate a context class and entity
|
||||
// classes for your model, open the model in the designer, right-click on the designer surface, and
|
||||
// select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
|
||||
// Item...'.
|
||||
|
|
@ -2006,6 +2006,17 @@
|
|||
<Property Name="opcion" Type="varchar" MaxLength="100" Nullable="false" />
|
||||
<Property Name="nombreCampoCodigo" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
</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">
|
||||
<Key>
|
||||
<PropertyRef Name="id" />
|
||||
|
|
@ -12450,6 +12461,18 @@
|
|||
<PropertyRef Name="idEjercicio" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<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" />
|
||||
|
|
@ -26653,6 +26676,7 @@
|
|||
<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_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_ConfiguracionesEmails" EntityType="Self.GEN_ConfiguracionesEmails" 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_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" />
|
||||
</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">
|
||||
<End Role="GEN_PerfilesFuncionalidad" EntitySet="GEN_PerfilesFuncionalidad" />
|
||||
<End Role="GEN_Control" EntitySet="GEN_Control" />
|
||||
|
|
@ -37372,6 +37400,7 @@
|
|||
<End Role="EPD_Procedimientos" EntitySet="EPD_Procedimientos" />
|
||||
</AssociationSet>
|
||||
<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="CTA_DiarioCabecera" EntityType="SigmaERP2017Model.CTA_DiarioCabecera" />
|
||||
<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">
|
||||
<End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" />
|
||||
<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 Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas">
|
||||
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
|
||||
|
|
@ -50392,6 +50425,7 @@
|
|||
<Property Name="fechaBorrado" Type="DateTime" Precision="3" />
|
||||
<Property Name="NRBE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<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_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" />
|
||||
|
|
@ -57030,6 +57064,18 @@
|
|||
<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" />
|
||||
</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">
|
||||
<Key>
|
||||
<PropertyRef Name="id" />
|
||||
|
|
@ -62995,6 +63041,18 @@
|
|||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</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">
|
||||
<End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" />
|
||||
<End Type="SigmaERP2017Model.GEN_EjerciciosActivos_Empresa" Role="GEN_EjerciciosActivos_Empresa" Multiplicity="*" />
|
||||
|
|
@ -74646,6 +74704,18 @@
|
|||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</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">
|
||||
<EntityTypeMapping TypeName="SigmaERP2017Model.MYT_Configuracion_Informes">
|
||||
<MappingFragment StoreEntitySet="MYT_Configuracion_Informes">
|
||||
|
|
|
|||
|
|
@ -490,6 +490,9 @@
|
|||
<Compile Include="GEN_FicherosASCII.cs">
|
||||
<DependentUpon>EF_BaseDatos.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="GEN_Firmas_Electronicas.cs">
|
||||
<DependentUpon>EF_BaseDatos.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="GEN_ImpuestosCabecera.cs">
|
||||
<DependentUpon>EF_BaseDatos.tt</DependentUpon>
|
||||
</Compile>
|
||||
|
|
@ -1714,6 +1717,7 @@
|
|||
<Compile Include="Script_Actualizacion\Scripts_Version_1419.cs" />
|
||||
<Compile Include="Script_Actualizacion\Scripts_Version_1418.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_Iniciales\Scripts_Iniciales.cs" />
|
||||
<Compile Include="SGA_InventarioCabecera_TMP.cs">
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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.
|
||||
// Los cambios manuales en este archivo se sobrescribirán si se regenera el código.
|
||||
// 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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -16,6 +16,7 @@ namespace Exferia_EntityFramework
|
|||
{
|
||||
public GEN_Empresas()
|
||||
{
|
||||
this.GEN_Firmas_Electronicas = new HashSet<GEN_Firmas_Electronicas>();
|
||||
this.CRM_ClientesPotenciales = new HashSet<CRM_ClientesPotenciales>();
|
||||
this.CRM_Terminales = new HashSet<CRM_Terminales>();
|
||||
this.CTA_AmortizacionesCabecera = new HashSet<CTA_AmortizacionesCabecera>();
|
||||
|
|
@ -193,6 +194,7 @@ namespace Exferia_EntityFramework
|
|||
public string NRBE { 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_Terminales> CRM_Terminales { get; set; }
|
||||
public virtual ICollection<CTA_AmortizacionesCabecera> CTA_AmortizacionesCabecera { get; set; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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 "
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -38,6 +38,8 @@
|
|||
this.ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes = new Exferia_Controles.Exferia_Button();
|
||||
this.exferia_Label5 = new Exferia_Controles.Exferia_Label();
|
||||
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();
|
||||
//
|
||||
// ex_btn_P_ConfiguracioGeneral_ConfiguracionCampoCodigo
|
||||
|
|
@ -190,10 +192,42 @@
|
|||
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);
|
||||
//
|
||||
// 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
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
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.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma);
|
||||
this.Controls.Add(this.exferia_Label4);
|
||||
|
|
@ -215,6 +249,8 @@
|
|||
this.Controls.SetChildIndex(this.exferia_Label4, 0);
|
||||
this.Controls.SetChildIndex(this.ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma, 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.PerformLayout();
|
||||
|
||||
|
|
@ -232,5 +268,7 @@
|
|||
private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionInformes;
|
||||
private Exferia_Controles.Exferia_Label exferia_Label5;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_ConfiguracioGeneral_ConfiguracionSWSigma;
|
||||
private Exferia_Controles.Exferia_Button exferia_Button1;
|
||||
private Exferia_Controles.Exferia_Label exferia_Label6;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,8 +246,41 @@ namespace Exferia_General._3_Vistas
|
|||
Control_Errores.Errores_Log("", ex, nameof(P_ConfiguracionGeneral) + "/" + nameof(ConfiguracionDireccionesSWSigma));
|
||||
}
|
||||
}
|
||||
|
||||
#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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
308
Exferia_General/Exferia_General/3_Vistas/P_Firmas_Electronicas.Designer.cs
generated
Normal file
308
Exferia_General/Exferia_General/3_Vistas/P_Firmas_Electronicas.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -81,6 +81,7 @@
|
|||
<Compile Include="0_Modelos\INTERNO_Criterio.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_GEN_Firmas_Electronicas_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_OpcionesDisponibles_Actualizacion_Modelo.cs" />
|
||||
|
|
@ -129,6 +130,7 @@
|
|||
<Compile Include="1_Datos\GEN_Delegaciones_AlmacenesAControlar_Datos.cs" />
|
||||
<Compile Include="1_Datos\GEN_Delegaciones_DelegacionesAsociadas_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_Terminales_Delegaciones_Configuracion_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_Usuarios_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_ValoresGenerales_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_TipoEmail.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_GEN_Almacenes_P_Delegacion_IncluirRegistros.cs" />
|
||||
<Compile Include="3_Vistas\Listados\ABS_Listado_GEN_Almacenes_P_Delegacion.cs" />
|
||||
|
|
@ -381,6 +385,12 @@
|
|||
<Compile Include="3_Vistas\Pruebas.Designer.cs">
|
||||
<DependentUpon>Pruebas.cs</DependentUpon>
|
||||
</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">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -634,6 +644,9 @@
|
|||
<EmbeddedResource Include="3_Vistas\Pruebas.resx">
|
||||
<DependentUpon>Pruebas.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="3_Vistas\P_Firmas_Electronicas.resx">
|
||||
<DependentUpon>P_Firmas_Electronicas.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="3_Vistas\P_ERP_TasaCombustible.resx">
|
||||
<DependentUpon>P_ERP_TasaCombustible.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
|||
|
|
@ -110,6 +110,10 @@ namespace Exferia_General
|
|||
{
|
||||
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
|
||||
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();
|
||||
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
|
||||
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();
|
||||
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
|
||||
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);
|
||||
}
|
||||
//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
|
||||
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();
|
||||
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
|
||||
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();
|
||||
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
|
||||
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();
|
||||
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
|
||||
else if (_str_Opcion.Equals(Variables.G_STR_OPCION_GEN_CONFIGURACIONEMAIL))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@
|
|||
"GEN_EJERCICIOACTIVO",
|
||||
"GEN_EMPRESA",
|
||||
"GEN_ENTIDADBANCARIA",
|
||||
"GEN_FIRMAS_ELECTRONICAS",
|
||||
"GEN_IMPUESTOCABECERA",
|
||||
"GEN_IMPUESTOLINEA",
|
||||
"GEN_IMPUESTOTIPO",
|
||||
|
|
|
|||
|
|
@ -1114,7 +1114,7 @@ namespace Exferia_Ventas._1_Datos
|
|||
_lst_ids);
|
||||
|
||||
|
||||
|
||||
string cif = "cif";// nameof(INTERNO_VTA_FacturasCabecera_Listado_Modelo.MAE_Clientes.cif);
|
||||
|
||||
string str_SQL =
|
||||
" SELECT " +
|
||||
|
|
@ -1202,14 +1202,14 @@ namespace Exferia_Ventas._1_Datos
|
|||
) +
|
||||
//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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
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
|
||||
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
|
||||
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);
|
||||
|
|
@ -11298,7 +11299,96 @@ namespace Exferia_Ventas._3_Vistas.Controladoras
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
#region Proceso Factura electronica
|
||||
public void Proceso_FacturaE()
|
||||
{
|
||||
try
|
||||
{
|
||||
//Bloquear el formulario para que no se pueda hacer nada hasta que termine
|
||||
g_frm_P_FacturaCabecera.Enabled = false;
|
||||
|
||||
//Mostrar la pantalla de espera
|
||||
g_frm_PE_Esperando_BarraProgreso = new PE_Esperando_BarraProgreso(Mensajes.G_STR_ESPERANDO_GENERA_FACTURA_E());
|
||||
|
||||
// Si la tarea asincrona esta en marcha la paro
|
||||
if (g_obj_TareaAsincrona_ProcesoEnviarMensajes != null)
|
||||
{
|
||||
while (g_obj_TareaAsincrona_ProcesoEnviarMensajes.IsBusy)
|
||||
Application.DoEvents();
|
||||
}
|
||||
else
|
||||
{
|
||||
g_obj_TareaAsincrona_ProcesoEnviarMensajes = new BackgroundWorker();
|
||||
g_obj_TareaAsincrona_ProcesoEnviarMensajes.DoWork += new DoWorkEventHandler(TareaAsincrona_ProcesoFacturaE_DoWork);
|
||||
//g_obj_TareaAsincrona_ProcesoEnviarMensajes.ProgressChanged += new ProgressChangedEventHandler(TareaAsincrona_ProcesoEnviarMensajes_ProgressChanged);
|
||||
g_obj_TareaAsincrona_ProcesoEnviarMensajes.RunWorkerCompleted += new RunWorkerCompletedEventHandler(TareaAsincrona_ProcesoFacturaE_Completed);
|
||||
g_obj_TareaAsincrona_ProcesoEnviarMensajes.WorkerReportsProgress = false;
|
||||
}
|
||||
|
||||
//(Tarea Asincrona) ##################################################################
|
||||
g_obj_TareaAsincrona_ProcesoEnviarMensajes.RunWorkerAsync();
|
||||
//#################################################################################################
|
||||
|
||||
g_frm_PE_Esperando_BarraProgreso.Show();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
g_frm_P_FacturaCabecera.Enabled = true;
|
||||
|
||||
if (g_frm_PE_Esperando_BarraProgreso != null)
|
||||
{
|
||||
g_frm_PE_Esperando_BarraProgreso.Close();
|
||||
g_frm_PE_Esperando_BarraProgreso = null;
|
||||
}
|
||||
|
||||
throw new Control_Errores("", ex, nameof(P_FacturaCabecera_Procesos_Controladora) + "/" + nameof(Proceso_FacturaE), true);
|
||||
}
|
||||
}
|
||||
|
||||
private void TareaAsincrona_ProcesoFacturaE_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
//G_MDL_TIPOEMAIL_FACTURAS
|
||||
try
|
||||
{
|
||||
|
||||
INTERNO_ERP_ValoresGenerales_Listado_Modelo _ERP_ValoresGenerales = Obtener_ERP_ValoresGenerales();
|
||||
var resul = Funciones_Ventas.GenerarFacturaElectronica( g_mdl_INTERNO_VTA_FacturasCabecera_Modelo, "c:\temp\factura.xml");
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_FacturaCabecera_Procesos_Controladora) + "/" + nameof(TareaAsincrona_ProcesoFacturaE_DoWork));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
private void TareaAsincrona_ProcesoFacturaE_Completed(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (g_frm_PE_Esperando_BarraProgreso != null)
|
||||
{
|
||||
g_frm_PE_Esperando_BarraProgreso.Close();
|
||||
g_frm_PE_Esperando_BarraProgreso = null;
|
||||
}
|
||||
|
||||
INTERNO_ValorDevuelto_Modelo mdl_ValorDevuelto_Modelo_Resultado = (INTERNO_ValorDevuelto_Modelo)e.Result;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Control_Errores.Errores_Log("", ex, nameof(P_FacturaCabecera_Procesos_Controladora) + "/" + nameof(TareaAsincrona_ProcesoFacturaE_Completed));
|
||||
}
|
||||
finally
|
||||
{
|
||||
//Desbloquear el Formulario
|
||||
g_frm_P_FacturaCabecera.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region Enviar Mensajes
|
||||
public void Proceso_EnviarMensajes()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -202,6 +202,10 @@ namespace Exferia_Ventas._3_Vistas.Controladoras
|
|||
|
||||
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_EnviarMensajes_Total_Abiertos.Text = int_Totalregistros_Abiertos.ToString();
|
||||
#endregion
|
||||
|
||||
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_Factura_E_Total_Cerrados.Text = int_Totalregistros_Cerrados.ToString();
|
||||
|
||||
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_Factura_E_Total_Abiertos.Text = int_Totalregistros_Abiertos.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@
|
|||
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_EnviarMensajes = new Exferia_Controles.Exferia_Button();
|
||||
this.ex_btn_P_FacturaCabecera_FacturaE = new Exferia_Controles.Exferia_Button();
|
||||
this.pnl_Scroll.SuspendLayout();
|
||||
this.ex_tbc_Principal.SuspendLayout();
|
||||
this.tbp_Lineas.SuspendLayout();
|
||||
|
|
@ -3080,10 +3081,33 @@
|
|||
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);
|
||||
//
|
||||
// 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
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
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_Volcado);
|
||||
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_Volcado, 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.PerformLayout();
|
||||
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_Label exferia_Label2;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_EnviarMensajes;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_FacturaE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_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_factura_electonica { get { return ex_btn_P_FacturaCabecera_FacturaE; } }
|
||||
|
||||
//Exferia_Button_Situacion
|
||||
internal Exferia_Button_Situacion Exferia_Button_Situacion_PagoPendiente { get { return ex_btn_P_FacturaCabecera_SituacionPago_Pendiente; } }
|
||||
|
|
@ -233,7 +234,7 @@ namespace Exferia_Ventas._3_Vistas
|
|||
|
||||
ex_btn_P_FacturaCabecera_RecalcularResumen.Exferia_Button_Bloqueable = false;
|
||||
ex_btn_P_FacturaCabecera_EnviarMensajes.Exferia_Button_Bloqueable = false;
|
||||
|
||||
ex_btn_P_FacturaCabecera_FacturaE.Exferia_Button_Bloqueable = false;
|
||||
//Anexo
|
||||
ex_btn_P_FacturaCabecera_Anexo_Actualizar.Exferia_Button_Bloqueable = false;
|
||||
ex_txt_P_FacturaCabecera_Anexo_NumeroPedidoCliente.Exferia_TextBox_Bloqueable = false;
|
||||
|
|
@ -4107,5 +4108,10 @@ namespace Exferia_Ventas._3_Vistas
|
|||
{
|
||||
g_obj_Controladora.Proceso_EnviarMensajes();
|
||||
}
|
||||
|
||||
private void ex_btn_P_FacturaCabecera_FacturaE_Click(object sender, EventArgs e)
|
||||
{
|
||||
g_obj_Controladora.Proceso_FacturaE();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,6 +64,15 @@
|
|||
this.exferia_Label_SinColor12 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.exferia_Label_SinColor13 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado = new Exferia_Controles.Exferia_TextBox();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso = new Exferia_Controles.Exferia_Button();
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado = new Exferia_Controles.Exferia_TextBox();
|
||||
this.exferia_Label_SinColor17 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.exferia_GroupBox5 = new Exferia_Controles.Exferia_GroupBox();
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.exferia_Label_SinColor14 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.exferia_Label_SinColor16 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
this.exferia_GroupBox1 = new Exferia_Controles.Exferia_GroupBox();
|
||||
this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados = new Exferia_Controles.Exferia_RadioButton();
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Registros_Total_Titulo = new Exferia_Controles.Exferia_Label_SinColor();
|
||||
|
|
@ -72,6 +81,8 @@
|
|||
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_EnviarMensajes = new Exferia_Controles.Exferia_Button();
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica = new Exferia_Controles.Exferia_Button();
|
||||
this.checkEnviaEmails = new System.Windows.Forms.CheckBox();
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.SuspendLayout();
|
||||
this.tbp_Cerrar.SuspendLayout();
|
||||
this.exferia_GroupBox2.SuspendLayout();
|
||||
|
|
@ -80,6 +91,8 @@
|
|||
this.tbp_RecalcularResumen.SuspendLayout();
|
||||
this.tbp_EnvioMensajes.SuspendLayout();
|
||||
this.exferia_GroupBox4.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.exferia_GroupBox5.SuspendLayout();
|
||||
this.exferia_GroupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
|
@ -92,6 +105,7 @@
|
|||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_Abrir);
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_RecalcularResumen);
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_EnvioMensajes);
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tabPage1);
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Cambiado = System.Drawing.Color.WhiteSmoke;
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Normal = System.Drawing.Color.WhiteSmoke;
|
||||
|
|
@ -638,6 +652,143 @@
|
|||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.Size = new System.Drawing.Size(716, 338);
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.TabIndex = 1080;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.checkEnviaEmails);
|
||||
this.tabPage1.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso);
|
||||
this.tabPage1.Controls.Add(this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado);
|
||||
this.tabPage1.Controls.Add(this.exferia_Label_SinColor17);
|
||||
this.tabPage1.Controls.Add(this.exferia_GroupBox5);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(728, 479);
|
||||
this.tabPage1.TabIndex = 9;
|
||||
this.tabPage1.Text = "Factura Electrónica";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso
|
||||
//
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.BackColor = System.Drawing.Color.Maroon;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Bloqueable = true;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_ACTUALIZAR;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_ReadOnly = false;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_TabStop = false;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_ToolTip = "Generar Facturas";
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.FlatAppearance.BorderSize = 0;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Location = new System.Drawing.Point(691, 7);
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Name = "ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso";
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Size = new System.Drawing.Size(31, 36);
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TabIndex = 1086;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TabStop = false;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.UseVisualStyleBackColor = false;
|
||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso_Click);
|
||||
//
|
||||
// ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado
|
||||
//
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Bloqueable = true;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_MaxLength = 32767;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Multiline = true;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_NoBloquear = true;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Obligatorio = false;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_PasswordChar = '\0';
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Permitir_CambioFuenteAutomatico = false;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_ReadOnly = true;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_SelectionLength = 0;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_SelectionStart = 0;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_TabStop_Txt = true;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Texto_Inicial = "";
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_UseSystemPasswordChar = false;
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Location = new System.Drawing.Point(7, 138);
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Name = "ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado";
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Size = new System.Drawing.Size(716, 338);
|
||||
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.TabIndex = 1085;
|
||||
//
|
||||
// exferia_Label_SinColor17
|
||||
//
|
||||
this.exferia_Label_SinColor17.AutoSize = true;
|
||||
this.exferia_Label_SinColor17.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.exferia_Label_SinColor17.Location = new System.Drawing.Point(3, 109);
|
||||
this.exferia_Label_SinColor17.Name = "exferia_Label_SinColor17";
|
||||
this.exferia_Label_SinColor17.Size = new System.Drawing.Size(133, 24);
|
||||
this.exferia_Label_SinColor17.TabIndex = 1084;
|
||||
this.exferia_Label_SinColor17.Text = "RESULTADO";
|
||||
//
|
||||
// exferia_GroupBox5
|
||||
//
|
||||
this.exferia_GroupBox5.Controls.Add(this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados);
|
||||
this.exferia_GroupBox5.Controls.Add(this.exferia_Label_SinColor14);
|
||||
this.exferia_GroupBox5.Controls.Add(this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos);
|
||||
this.exferia_GroupBox5.Controls.Add(this.exferia_Label_SinColor16);
|
||||
this.exferia_GroupBox5.Location = new System.Drawing.Point(6, 6);
|
||||
this.exferia_GroupBox5.Name = "exferia_GroupBox5";
|
||||
this.exferia_GroupBox5.Size = new System.Drawing.Size(235, 80);
|
||||
this.exferia_GroupBox5.TabIndex = 1083;
|
||||
this.exferia_GroupBox5.TabStop = false;
|
||||
this.exferia_GroupBox5.Text = "RESUMEN DE REGISTROS";
|
||||
//
|
||||
// ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados
|
||||
//
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.AutoSize = true;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.ForeColor = System.Drawing.Color.ForestGreen;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Location = new System.Drawing.Point(140, 47);
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Name = "ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados";
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Size = new System.Drawing.Size(15, 16);
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.TabIndex = 1069;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Text = "0";
|
||||
//
|
||||
// exferia_Label_SinColor14
|
||||
//
|
||||
this.exferia_Label_SinColor14.AutoSize = true;
|
||||
this.exferia_Label_SinColor14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.exferia_Label_SinColor14.ForeColor = System.Drawing.Color.ForestGreen;
|
||||
this.exferia_Label_SinColor14.Location = new System.Drawing.Point(35, 47);
|
||||
this.exferia_Label_SinColor14.Name = "exferia_Label_SinColor14";
|
||||
this.exferia_Label_SinColor14.Size = new System.Drawing.Size(64, 16);
|
||||
this.exferia_Label_SinColor14.TabIndex = 1068;
|
||||
this.exferia_Label_SinColor14.Text = "Cerrados";
|
||||
//
|
||||
// ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos
|
||||
//
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.AutoSize = true;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.ForeColor = System.Drawing.Color.Maroon;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Location = new System.Drawing.Point(140, 21);
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Name = "ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos";
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Size = new System.Drawing.Size(15, 16);
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.TabIndex = 1064;
|
||||
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Text = "0";
|
||||
//
|
||||
// exferia_Label_SinColor16
|
||||
//
|
||||
this.exferia_Label_SinColor16.AutoSize = true;
|
||||
this.exferia_Label_SinColor16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.exferia_Label_SinColor16.ForeColor = System.Drawing.Color.Maroon;
|
||||
this.exferia_Label_SinColor16.Location = new System.Drawing.Point(35, 21);
|
||||
this.exferia_Label_SinColor16.Name = "exferia_Label_SinColor16";
|
||||
this.exferia_Label_SinColor16.Size = new System.Drawing.Size(58, 16);
|
||||
this.exferia_Label_SinColor16.TabIndex = 1059;
|
||||
this.exferia_Label_SinColor16.Text = "Abiertos";
|
||||
//
|
||||
// exferia_GroupBox1
|
||||
//
|
||||
this.exferia_GroupBox1.Controls.Add(this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados);
|
||||
|
|
@ -777,10 +928,43 @@
|
|||
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);
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// checkEnviaEmails
|
||||
//
|
||||
this.checkEnviaEmails.AutoSize = true;
|
||||
this.checkEnviaEmails.Location = new System.Drawing.Point(262, 14);
|
||||
this.checkEnviaEmails.Name = "checkEnviaEmails";
|
||||
this.checkEnviaEmails.Size = new System.Drawing.Size(200, 17);
|
||||
this.checkEnviaEmails.TabIndex = 1087;
|
||||
this.checkEnviaEmails.Text = "Envia facturas por correo electrónico";
|
||||
this.checkEnviaEmails.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// P_FacturaCabecera_Procesos
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
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_Abrir);
|
||||
this.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Cerrar);
|
||||
|
|
@ -796,6 +980,7 @@
|
|||
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_EnviarMensajes, 0);
|
||||
this.Controls.SetChildIndex(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica, 0);
|
||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.ResumeLayout(false);
|
||||
this.tbp_Cerrar.ResumeLayout(false);
|
||||
this.tbp_Cerrar.PerformLayout();
|
||||
|
|
@ -811,6 +996,10 @@
|
|||
this.tbp_EnvioMensajes.PerformLayout();
|
||||
this.exferia_GroupBox4.ResumeLayout(false);
|
||||
this.exferia_GroupBox4.PerformLayout();
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.exferia_GroupBox5.ResumeLayout(false);
|
||||
this.exferia_GroupBox5.PerformLayout();
|
||||
this.exferia_GroupBox1.ResumeLayout(false);
|
||||
this.exferia_GroupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
|
@ -862,5 +1051,16 @@
|
|||
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor12;
|
||||
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_Button ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso;
|
||||
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado;
|
||||
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor17;
|
||||
private Exferia_Controles.Exferia_GroupBox exferia_GroupBox5;
|
||||
private Exferia_Controles.Exferia_Label_SinColor ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados;
|
||||
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor14;
|
||||
private Exferia_Controles.Exferia_Label_SinColor ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos;
|
||||
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor16;
|
||||
private System.Windows.Forms.CheckBox checkEnviaEmails;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ namespace Exferia_Ventas._3_Vistas
|
|||
internal TabPage TabPage_Cerrar = null;
|
||||
internal TabPage TabPage_Abrir = null;
|
||||
internal TabPage TabPage_EnviarMensajes = null;
|
||||
internal TabPage TabPage_FacturaElectronica = null;
|
||||
|
||||
|
||||
#region RECALCULAR RESUMEN
|
||||
// Exferia_TextBox
|
||||
|
|
@ -84,6 +86,16 @@ namespace Exferia_Ventas._3_Vistas
|
|||
|
||||
#endregion
|
||||
|
||||
#region FACTURA ELECTRONICA
|
||||
//Exferia_Label_SinColor
|
||||
internal Exferia_Label_SinColor Exferia_Label_SinColor_Factura_E_Total_Abiertos { get { return ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos; } }
|
||||
internal Exferia_Label_SinColor Exferia_Label_SinColor_Factura_E_Total_Cerrados { get { return ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados; } }
|
||||
|
||||
// Exferia_TextBox
|
||||
internal Exferia_TextBox Exferia_TextBox_Factura_Es_Resumen { get { return ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
|
@ -137,7 +149,7 @@ namespace Exferia_Ventas._3_Vistas
|
|||
TabPage_Abrir = tbp_Abrir;
|
||||
TabPage_RecalcularResumen = tbp_RecalcularResumen;
|
||||
TabPage_EnviarMensajes = tbp_EnvioMensajes;
|
||||
|
||||
TabPage_FacturaElectronica = tabPage1;
|
||||
EliminarTabs();
|
||||
|
||||
//Poner Cerrar
|
||||
|
|
@ -313,5 +325,18 @@ namespace Exferia_Ventas._3_Vistas
|
|||
}
|
||||
|
||||
#endregion Enviar mensajes
|
||||
|
||||
private void ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click(object sender, EventArgs e)
|
||||
{
|
||||
EliminarTabs();
|
||||
|
||||
//Añadir el tab
|
||||
ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.TabPages.Add(TabPage_FacturaElectronica);
|
||||
}
|
||||
|
||||
private void ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using Exferia_Aplicacion.Calculos;
|
||||
using Exferia_Aplicacion.Calculos.VentasCompras;
|
||||
using Exferia_Aplicacion.General;
|
||||
using Exferia_Aplicacion.Modelos_Factura_E;
|
||||
using Exferia_Aplicacion.Modelos_Generales;
|
||||
using Exferia_Aplicacion.Modelos_Informes;
|
||||
using Exferia_EntityFramework;
|
||||
|
|
@ -946,6 +947,107 @@ namespace Exferia_Ventas.General
|
|||
return mdl_INTERNO_ValorDevuelto_Modelo;
|
||||
}
|
||||
#endregion
|
||||
public static INTERNO_ValorDevuelto_Modelo GenerarFacturaElectronica( VTA_FacturasCabecera factura, string path)
|
||||
{
|
||||
INTERNO_ValorDevuelto_Modelo res = new INTERNO_ValorDevuelto_Modelo();
|
||||
res.TodoCorrecto = true;
|
||||
try
|
||||
{
|
||||
var empresaVendedor=Datos_Generales.GEN_Empresas_Obtener_Modelo_Por_Id(factura.idEmpresa);
|
||||
var empresaComprador = Datos_Generales.GEN_Empresas_Obtener_Modelo_Por_Id(factura.MAE_Clientes.idEmpresa);
|
||||
|
||||
INTERNO_Factura_e_Modelo factura_e = new INTERNO_Factura_e_Modelo();
|
||||
|
||||
var idEmpresa = new List<long>();
|
||||
idEmpresa.Add(factura.idEmpresa);
|
||||
var idEmpresacomprador = new List<long>();
|
||||
idEmpresa.Add(empresaComprador.id);
|
||||
//conseguir direcciones--------------
|
||||
var direcliente = Datos_Generales.GEN_Direcciones_Obtener_Modelo_Listado_Por_IdsEmpresaTipoDireccion(idEmpresacomprador, "2", true, true, true, true, true).FirstOrDefault();// factura.MAE_Clientes.GEN_Direcciones.FirstOrDefault(e => int.Parse(e.tipoDireccion) == 2);
|
||||
var direEmpresa = Datos_Generales.GEN_Direcciones_Obtener_Modelo_Listado_Por_IdsEmpresaTipoDireccion(idEmpresa, "2", true, true, true, true, true).FirstOrDefault();
|
||||
//delegacion
|
||||
var delegacion = Datos_Generales.GEN_Delegaciones_Obtener_Modelo_Por_Id(factura.idDelegacion);
|
||||
|
||||
var albaranes = factura.VTA_AlbaranesFacturasLineas;//lineas factura
|
||||
|
||||
//rellenar datos
|
||||
factura_e.Identificador = factura.MAE_Clientes.cif + factura.numeroFactura + factura.GEN_Delegaciones.codigo;
|
||||
factura_e.TotalFactura = factura.total_Final;
|
||||
factura_e.TotalPendiente = factura.total_Final;
|
||||
|
||||
//vendedor--------------------------------------------------------------------------------------------------
|
||||
factura_e.Vendedor = new INTERNO_Vendedor_Factura_E_modelo();
|
||||
if ('0' >= empresaVendedor.nif[0] && '9' <= empresaVendedor.nif[0])
|
||||
factura_e.Vendedor.Tipo = "F";
|
||||
else
|
||||
factura_e.Vendedor.Tipo = "J";
|
||||
|
||||
factura_e.Vendedor.IdImpuestos = (direcliente.idPais == direEmpresa.idPais ? "" : direEmpresa.GEN_Paises.codigo_ISO2D) + empresaVendedor.nif;
|
||||
factura_e.Vendedor.RazonSocial = empresaVendedor.razonSocial;
|
||||
factura_e.Vendedor.NombreComercial = empresaVendedor.descripcion;
|
||||
factura_e.Vendedor.Direccion = direEmpresa.nombreVia+", "+direcliente.numeroCasa;
|
||||
factura_e.Vendedor.CP = direEmpresa.codigoPostal;
|
||||
factura_e.Vendedor.Poblacion = direEmpresa.GEN_Poblaciones.descripcion;
|
||||
factura_e.Vendedor.Provincia = direEmpresa.GEN_Provincias.descripcion;
|
||||
factura_e.Vendedor.Pais = direEmpresa.GEN_Paises.descripcion;
|
||||
factura_e.Vendedor.Tlf = empresaVendedor.telefonoOficina;
|
||||
factura_e.Vendedor.Fax = empresaVendedor.telefonoFax;
|
||||
factura_e.Vendedor.Web = null;
|
||||
factura_e.Vendedor.Email = empresaVendedor.email;
|
||||
|
||||
//cliente--------------------------------------------------------------------------------------------------
|
||||
factura_e.Comprador = new INTERNO_Comprador_Factura_E_modelo();
|
||||
if ('0' >= empresaComprador.nif[0] && '9' <= empresaComprador.nif[0])
|
||||
factura_e.Comprador.Tipo = "F";
|
||||
else
|
||||
factura_e.Comprador.Tipo = "J";
|
||||
factura_e.Comprador.IdImpuestos = (direcliente.idPais == direEmpresa.idPais ? "" : direcliente.GEN_Paises.codigo_ISO2D) + empresaComprador.nif;
|
||||
factura_e.Comprador.RazonSocial = empresaComprador.razonSocial;
|
||||
factura_e.Comprador.NombreComercial = empresaComprador.descripcion;
|
||||
factura_e.Comprador.Direccion = direcliente.nombreVia + ", " + direcliente.numeroCasa;
|
||||
factura_e.Comprador.CP = direcliente.codigoPostal;
|
||||
factura_e.Comprador.Poblacion = direcliente.GEN_Poblaciones.descripcion;
|
||||
factura_e.Comprador.Provincia = direcliente.GEN_Provincias.descripcion;
|
||||
factura_e.Comprador.Pais = direcliente.GEN_Paises.descripcion;
|
||||
//factura_e.Comprador = null;
|
||||
|
||||
//datos factura----------------------
|
||||
factura_e.NumeroFactura = factura.numeroFactura;
|
||||
factura_e.SerieDelegacion = delegacion.codigo;
|
||||
factura_e.FacturaOriginal = true;
|
||||
factura_e.Fecha = factura.fecha;
|
||||
|
||||
//correcciones--------------------
|
||||
|
||||
factura_e.Fecha = factura.fecha;
|
||||
|
||||
//invoice Periodo-----------------------
|
||||
|
||||
//impuestos-------------------
|
||||
|
||||
//totales----------------------------
|
||||
|
||||
//lineas-----------------------------
|
||||
|
||||
|
||||
|
||||
//exporta---------------------------------------------------------------------------------------------------
|
||||
string resul =factura_e.exportarXML(path);
|
||||
if(resul!=null)
|
||||
{
|
||||
res.TodoCorrecto = false;
|
||||
Control_Errores.Errores_Log(resul, nameof(Funciones_Ventas) + "/" + nameof(GenerarFacturaElectronica));
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.TodoCorrecto = false;
|
||||
Control_Errores.Errores_Log("", ex, nameof(Funciones_Ventas) + "/" + nameof(GenerarFacturaElectronica));
|
||||
}
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue