TFS_ANTIGUO/SIGPC/AyABL/Usuario/cantonBL.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.4 KiB
C#

// Decompiled with JetBrains decompiler
// Type: AyABL.Usuario.cantonBL
// 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.MANT;
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Configuration;
using System.Data;
namespace AyABL.Usuario
{
public class cantonBL : AyABL
{
private static NameValueCollection appSettings = ConfigurationManager.AppSettings;
public cantonBL()
{
this.objcantonEL = new cantonEL();
this.NombreTabla = Modulos.t_adm_.ToString() + Tablas.canton.ToString();
this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString();
}
public cantonEL objcantonEL { get; set; }
public DataSet dsListaCantones(ArrayList arlCondicionesFiltroBusqueda)
{
try
{
ArrayList arrayList = new ArrayList();
this.cargarCondicionBusqueda(arrayList, arlCondicionesFiltroBusqueda);
if (this.objcantonEL.FKPROVINCIA != 0)
arrayList.Add((object) this.buscarPorProvincia(this.objcantonEL.FKPROVINCIA, operadorLogico.AND));
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, arrayList, (string) null, "ORDER BY PKCANTON ASC");
}
catch (Exception ex)
{
throw ex;
}
}
public DataSet dsListaCanton(ArrayList arlCondicionesFiltroBusqueda)
{
try
{
ArrayList arrayList = new ArrayList();
this.cargarCondicionBusqueda(arrayList, arlCondicionesFiltroBusqueda);
if (this.objcantonEL.FKPROVINCIA != 0)
arrayList.Add((object) this.buscarPorProvincia(this.objcantonEL.FKPROVINCIA, operadorLogico.AND));
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, arrayList, (string) null, "ORDER BY PKCANTON ASC");
}
catch (Exception ex)
{
throw ex;
}
}
private CondicionDAL buscarPorProvincia(int p_nProvinicia, operadorLogico operador)
{
return new CondicionDAL()
{
valorIzquierdo = t_adm_canton.FKPROVINCIA.ToString(),
operadorGeneral = operadorGeneral.EQUAL,
operadorLogico = operador,
valorDerecho = (object) p_nProvinicia
};
}
}
}