83 lines
3.4 KiB
C#
83 lines
3.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: AyABL.TRAN.firmaDigitalBL
|
|
// Assembly: AyABL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 0F2FF6EC-B53C-44DB-9E00-2F932BF80762
|
|
// Assembly location: C:\Users\EQUIPO\Downloads\Raiz\Raiz\bin\AyABL.dll
|
|
|
|
using AyADAL;
|
|
using AyAEL.Tran;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Data;
|
|
|
|
namespace AyABL.TRAN
|
|
{
|
|
public class firmaDigitalBL : AyABL
|
|
{
|
|
public firmaDigitalBL()
|
|
{
|
|
this.objfirmaDigitalEL = new firmaDigitalEL();
|
|
this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.solicitudfirmaDigital.ToString();
|
|
this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString();
|
|
}
|
|
|
|
public firmaDigitalEL objfirmaDigitalEL { get; set; }
|
|
|
|
public DataSet dsListaFirmaDigital(ArrayList arlCondicionesFiltroBusqueda)
|
|
{
|
|
try
|
|
{
|
|
ArrayList arrayList = new ArrayList();
|
|
this.cargarCondicionBusqueda(arrayList, arlCondicionesFiltroBusqueda);
|
|
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, arrayList, (string) null, "ORDER BY PKSOLICITUDFIRMADIGITAL ASC");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public int insertarFirmaDigital()
|
|
{
|
|
try
|
|
{
|
|
this.CamposTabla = t_dis_solicitudfirmadigital.NOMBREDOCUMENTO.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + t_dis_solicitudfirmadigital.IDDOCUMENTOHERMES.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + t_dis_inspeccion.FKSOLICITUD.ToString() + ", " + t_dis_solicitudfirmadigital.FECHA.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.solicitudfirmaDigital.ToString();
|
|
this.ValoresCampos = new object[5]
|
|
{
|
|
(object) this.objfirmaDigitalEL.NOMBREDOCUMENTO,
|
|
(object) this.objfirmaDigitalEL.IDDOCUMENTOHERMES,
|
|
(object) this.objfirmaDigitalEL.FKSOLICITUD,
|
|
(object) this.objfirmaDigitalEL.FECHA,
|
|
(object) true
|
|
};
|
|
return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public int modificarFirmaDigital()
|
|
{
|
|
try
|
|
{
|
|
ArrayList p_arlCondiciones = new ArrayList();
|
|
p_arlCondiciones.Add((object) this.buscarPorPK(this.objfirmaDigitalEL.PK, Tablas.solicitudfirmaDigital, operadorLogico.NONE));
|
|
this.CamposTabla = t_dis_solicitudfirmadigital.NOMBREDOCUMENTO.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + t_dis_solicitudfirmadigital.IDDOCUMENTOHERMES.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + t_dis_solicitudfirmadigital.FECHA.ToString() + Tablas.solicitudfirmaDigital.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.solicitudfirmaDigital.ToString();
|
|
this.ValoresCampos = new object[4]
|
|
{
|
|
(object) this.objfirmaDigitalEL.NOMBREDOCUMENTO,
|
|
(object) this.objfirmaDigitalEL.IDDOCUMENTOHERMES,
|
|
(object) this.objfirmaDigitalEL.FECHA,
|
|
(object) true
|
|
};
|
|
return this.baseDAL.Actualizar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_arlCondiciones);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
}
|
|
}
|