TFS_ANTIGUO/SIGPC/AyABL/Tran/temporalBL.cs
kledezma 7fdadc4709 KLB
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C519
2021-01-22 15:05:35 +00:00

73 lines
2.2 KiB
C#

// Decompiled with JetBrains decompiler
// Type: AyABL.Tran.temporalBL
// 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.TRA;
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;
using System.Data;
namespace AyABL.Tran
{
public class temporalBL : AyABL
{
private static NameValueCollection appSettings = ConfigurationManager.AppSettings;
public temporalBL()
{
this.objTemporalEL = new temporalEL();
this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.temporal.ToString();
this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString();
}
public temporalEL objTemporalEL { get; set; }
public int insertarTemporal()
{
try
{
this.CamposTabla = t_dis_temporal.USER.ToString() + Tablas.temporal.ToString();
this.ValoresCampos = new object[1]
{
(object) this.objTemporalEL.USER
};
return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD);
}
catch (Exception ex)
{
throw ex;
}
}
public DataSet listarTemporales()
{
try
{
ArrayList p_arlCondiciones = new ArrayList();
if (this.objTemporalEL.USER != string.Empty)
p_arlCondiciones.Add((object) this.buscarPorUSER(this.objTemporalEL.USER, operadorLogico.NONE));
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, p_arlCondiciones, (string) null, "ORDER BY PKTEMPORAL DESC");
}
catch (Exception ex)
{
throw ex;
}
}
private CondicionDAL buscarPorUSER(string p_nUSERTEMPORAL, operadorLogico operador)
{
return new CondicionDAL()
{
valorIzquierdo = t_dis_temporal.USER.ToString() + Tablas.temporal.ToString(),
operadorGeneral = operadorGeneral.EQUAL,
operadorLogico = operador,
valorDerecho = (object) p_nUSERTEMPORAL
};
}
}
}