Compare commits

...

4 Commits

Author SHA1 Message Date
Gerardo 2e13e8ff4e Merge branch 'develop' into factura-e/firmas-e 2023-08-03 10:17:46 +02:00
Gerardo 96d90cf3f0 (firmas-e)Firmas electronicas
creaccion opcion en menu para ver firmas digitales
2023-08-03 10:11:26 +02:00
Gerardo 863f6aacfd factura- (rutas-r-e) script de actualizacion y defines 2023-08-02 13:59:31 +02:00
Gerardo 930725abc4 Error compilado exferia ventas 2023-08-02 12:58:15 +02:00
6 changed files with 132 additions and 4 deletions

View File

@ -1524,6 +1524,7 @@ namespace Exferia_Aplicacion.General
public static string G_STR_OPCION_GEN_CAMBIARCLIENTE = "GEN_CAMBIARCLIENTE"; public static string G_STR_OPCION_GEN_CAMBIARCLIENTE = "GEN_CAMBIARCLIENTE";
public static string G_STR_OPCION_GEN_CONEXION = "GEN_CONEXION"; public static string G_STR_OPCION_GEN_CONEXION = "GEN_CONEXION";
public static string G_STR_OPCION_GEN_CONFIGURACION_INFORMES = "GEN_CONFIGURACION_INFORMES"; public static string G_STR_OPCION_GEN_CONFIGURACION_INFORMES = "GEN_CONFIGURACION_INFORMES";
public static string G_STR_OPCION_GEN_CONFIGURACION_FIRMAS_DIGITALES = "GEN_CONFIGURACION_FIRMAS_DIGITALES";
public static string G_STR_OPCION_GEN_CONFIGURACIONEMAIL = "GEN_CONFIGURACIONEMAIL"; public static string G_STR_OPCION_GEN_CONFIGURACIONEMAIL = "GEN_CONFIGURACIONEMAIL";
public static string G_STR_OPCION_GEN_CONFIGURACION_SW_SIGMA = "GEN_CONFIGURACION_SW_SIGMA"; public static string G_STR_OPCION_GEN_CONFIGURACION_SW_SIGMA = "GEN_CONFIGURACION_SW_SIGMA";
public static string G_STR_OPCION_GEN_CONFIGURACIONESQUEMA_MENU = "GEN_CONFIGURACIONESQUEMA_MENU"; public static string G_STR_OPCION_GEN_CONFIGURACIONESQUEMA_MENU = "GEN_CONFIGURACIONESQUEMA_MENU";
@ -2112,6 +2113,8 @@ namespace Exferia_Aplicacion.General
public static long G_LNG_RUTA_CARTASNOTIFICACIONTASAANUAL = 13; public static long G_LNG_RUTA_CARTASNOTIFICACIONTASAANUAL = 13;
public static long G_LNG_RUTA_Modelo347 = 14; public static long G_LNG_RUTA_Modelo347 = 14;
public static long G_LNG_RUTA_FACTURA_E_IN = 15;
public static long G_LNG_RUTA__FACTURA_E_OUT = 16;
public static List<INF_Rutas> G_LST_RUTAS = null; public static List<INF_Rutas> G_LST_RUTAS = null;

View File

@ -1714,6 +1714,7 @@
<Compile Include="Script_Actualizacion\Scripts_Version_1419.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1419.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1418.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1418.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1417.cs" /> <Compile Include="Script_Actualizacion\Scripts_Version_1417.cs" />
<Compile Include="Script_Actualizacion\Scripts_Version_1440.cs" />
<Compile Include="Script_Actualizacion\Versiones_EF.cs" /> <Compile Include="Script_Actualizacion\Versiones_EF.cs" />
<Compile Include="Script_Iniciales\Scripts_Iniciales.cs" /> <Compile Include="Script_Iniciales\Scripts_Iniciales.cs" />
<Compile Include="SGA_InventarioCabecera_TMP.cs"> <Compile Include="SGA_InventarioCabecera_TMP.cs">

View File

@ -0,0 +1,53 @@
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 =
$@"
IF (exists
(
SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'INF_Rutas'
)
) AND
(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
";
}
}

View File

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

View File

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

View File

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