TFS_ANTIGUO/SIGPC/AyABL/Tran/otropropiedadfrenteaBL.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

80 lines
2.7 KiB
C#

// Decompiled with JetBrains decompiler
// Type: AyABL.Tran.otropropiedadfrenteaBL
// 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;
namespace AyABL.Tran
{
public class otropropiedadfrenteaBL : AyABL
{
private static NameValueCollection appSettings = ConfigurationManager.AppSettings;
public otropropiedadfrenteaBL()
{
this.objOtroPropiedadFrenteaEL = new otropropiedadfrenteaEL();
this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.otropropiedadfrentea.ToString();
this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString();
}
public otropropiedadfrenteaEL objOtroPropiedadFrenteaEL { get; set; }
public int insertarOtroPropiedadFrenteA()
{
try
{
this.CamposTabla = t_dis_otropropiedadfrentea.DESCRIPCION.ToString() + Tablas.otropropiedadfrentea.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.otropropiedadfrentea.ToString();
this.ValoresCampos = new object[2]
{
(object) this.objOtroPropiedadFrenteaEL.DESCRIPCION,
(object) true
};
return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD);
}
catch (Exception ex)
{
throw ex;
}
}
public int modificarOtroPropiedadFrenteA()
{
try
{
ArrayList p_arlCondiciones = new ArrayList();
p_arlCondiciones.Add((object) this.buscarPorPK(this.objOtroPropiedadFrenteaEL.PK, Tablas.otropropiedadfrentea, operadorLogico.NONE));
this.CamposTabla = t_dis_otropropiedadfrentea.DESCRIPCION.ToString() + Tablas.otropropiedadfrentea.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.otropropiedadfrentea.ToString();
this.ValoresCampos = new object[2]
{
(object) this.objOtroPropiedadFrenteaEL.DESCRIPCION,
(object) true
};
return this.baseDAL.Actualizar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_arlCondiciones);
}
catch (Exception ex)
{
throw ex;
}
}
private CondicionDAL buscarPorNUMSOLICITUD(
int p_nNUMSOLICITUD,
operadorLogico operador)
{
return new CondicionDAL()
{
valorIzquierdo = t_dis_cancelar.FKSOLICITUD.ToString(),
operadorGeneral = operadorGeneral.EQUAL,
operadorLogico = operador,
valorDerecho = (object) p_nNUMSOLICITUD
};
}
}
}