169 lines
7.8 KiB
C#
169 lines
7.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: AyABL.TRA.auxplanoBL
|
|
// 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.TRA
|
|
{
|
|
public class auxplanoBL : AyABL
|
|
{
|
|
private static NameValueCollection appSettings = ConfigurationManager.AppSettings;
|
|
|
|
public auxplanoBL()
|
|
{
|
|
this.objauxplanoEL = new auxplanoEL();
|
|
this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.tablaauxplanoscatastrados.ToString();
|
|
this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString();
|
|
}
|
|
|
|
public auxplanoEL objauxplanoEL { get; set; }
|
|
|
|
public int insertarPlano()
|
|
{
|
|
try
|
|
{
|
|
this.CamposTabla = t_adm_tablaauxplanoscatastrados.CONSECUTIVOTMP.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.DATOAUXILIARTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.FECHATABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.MIGRADOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.NUMFOLIOREALTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.PLANOCATASTRADOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.USUARIOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + ",";
|
|
this.ValoresCampos = new object[7]
|
|
{
|
|
(object) this.objauxplanoEL.CONSECUTIVOTMP,
|
|
(object) this.objauxplanoEL.DATOSAUXILIARTABLAAUX,
|
|
(object) this.objauxplanoEL.FECHATABLAAUX,
|
|
(object) this.objauxplanoEL.MIGRADOTABLAAUX,
|
|
(object) this.objauxplanoEL.NUMFOLIOREALTABLAAUX,
|
|
(object) this.objauxplanoEL.PLANOCATASTRADOTABLAAUX,
|
|
(object) this.objauxplanoEL.USUARIOTABLAAUX
|
|
};
|
|
return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public int modificarPlano()
|
|
{
|
|
try
|
|
{
|
|
ArrayList p_arlCondiciones = new ArrayList();
|
|
p_arlCondiciones.Add((object) this.buscarPorPKPlano(this.objauxplanoEL.PK, operadorLogico.NONE));
|
|
this.CamposTabla = t_adm_tablaauxplanoscatastrados.CONSECUTIVOTMP.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.DATOAUXILIARTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.FECHATABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.MIGRADOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.NUMFOLIOREALTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.PLANOCATASTRADOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + "," + t_adm_tablaauxplanoscatastrados.USUARIOTABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString() + ",";
|
|
this.ValoresCampos = new object[7]
|
|
{
|
|
(object) this.objauxplanoEL.CONSECUTIVOTMP,
|
|
(object) this.objauxplanoEL.DATOSAUXILIARTABLAAUX,
|
|
(object) this.objauxplanoEL.FECHATABLAAUX,
|
|
(object) this.objauxplanoEL.MIGRADOTABLAAUX,
|
|
(object) this.objauxplanoEL.NUMFOLIOREALTABLAAUX,
|
|
(object) this.objauxplanoEL.PLANOCATASTRADOTABLAAUX,
|
|
(object) this.objauxplanoEL.USUARIOTABLAAUX
|
|
};
|
|
return this.baseDAL.Actualizar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_arlCondiciones);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public DataSet listarPlanos(
|
|
ArrayList arlCondicionesFiltroBusqueda,
|
|
bool buscarPorAstate,
|
|
string p_strNuFolioreal)
|
|
{
|
|
try
|
|
{
|
|
ArrayList arrayList = new ArrayList();
|
|
this.cargarCondicionBusqueda(arrayList, arlCondicionesFiltroBusqueda);
|
|
int? pk = this.objauxplanoEL.PK;
|
|
if ((pk.GetValueOrDefault() != 0 ? 1 : (!pk.HasValue ? 1 : 0)) != 0)
|
|
arrayList.Add((object) this.buscarPorPK(this.objauxplanoEL.PK, Tablas.tablaauxplanoscatastrados, operadorLogico.AND));
|
|
if (buscarPorAstate)
|
|
arrayList.Add((object) this.buscarPorEstado(this.objauxplanoEL.ASTATE, Tablas.tablaauxplanoscatastrados, operadorLogico.NONE));
|
|
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, arrayList, (string) null, "ORDER BY PKTABLAAUX DESC");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
private CondicionDAL buscarPorPKPlano(int? p_nPKTABLAAUX, operadorLogico operador)
|
|
{
|
|
return new CondicionDAL()
|
|
{
|
|
valorIzquierdo = Constraints.PK.ToString() + Tablas.solicitud.ToString(),
|
|
operadorGeneral = operadorGeneral.EQUAL,
|
|
operadorLogico = operador,
|
|
valorDerecho = (object) p_nPKTABLAAUX
|
|
};
|
|
}
|
|
|
|
private CondicionDAL buscarPorNumFolioRealTablaAux(
|
|
string p_strNumFolioRealTablaAux,
|
|
operadorLogico operador)
|
|
{
|
|
return new CondicionDAL()
|
|
{
|
|
valorIzquierdo = t_adm_tablaauxplanoscatastrados.NUMFOLIOREALTABLAAUX.ToString() + (object) Tablas.planocatastro,
|
|
operadorGeneral = operadorGeneral.LIKE,
|
|
operadorLogico = operador,
|
|
valorDerecho = (object) ("%" + p_strNumFolioRealTablaAux + "%")
|
|
};
|
|
}
|
|
|
|
private CondicionDAL buscarPorPlanoCatastroTablaAux(
|
|
string p_strPlanoCatastroTablaAux,
|
|
operadorLogico operador)
|
|
{
|
|
return new CondicionDAL()
|
|
{
|
|
valorIzquierdo = t_adm_tablaauxplanoscatastrados.PLANOCATASTRADOTABLAAUX.ToString() + (object) Tablas.planocatastro,
|
|
operadorGeneral = operadorGeneral.LIKE,
|
|
operadorLogico = operador,
|
|
valorDerecho = (object) ("%" + p_strPlanoCatastroTablaAux + "%")
|
|
};
|
|
}
|
|
|
|
private CondicionDAL buscarPorFechaTablaAux(
|
|
DateTime? p_dtFechaTablaAux,
|
|
operadorLogico operador)
|
|
{
|
|
return new CondicionDAL()
|
|
{
|
|
valorIzquierdo = t_adm_tablaauxplanoscatastrados.FECHATABLAAUX.ToString() + Tablas.tablaauxplanoscatastrados.ToString(),
|
|
operadorGeneral = operadorGeneral.EQUAL,
|
|
operadorLogico = operador,
|
|
valorDerecho = (object) p_dtFechaTablaAux
|
|
};
|
|
}
|
|
|
|
public DataSet dslistarPlanos(ArrayList arlCondicionesFiltroBusqueda)
|
|
{
|
|
try
|
|
{
|
|
ArrayList arrayList = new ArrayList();
|
|
this.cargarCondicionBusqueda(arrayList, arlCondicionesFiltroBusqueda);
|
|
this.NombreTabla = Vistas.v_ObtenerPlano_FolioReal.ToString();
|
|
if (this.objauxplanoEL.PLANOCATASTRADOTABLAAUX != "" && this.objauxplanoEL.PLANOCATASTRADOTABLAAUX != null)
|
|
arrayList.Add((object) this.buscarPorPlanoCatastroTablaAux(this.objauxplanoEL.PLANOCATASTRADOTABLAAUX, operadorLogico.NONE));
|
|
if (this.objauxplanoEL.NUMFOLIOREALTABLAAUX != "" && this.objauxplanoEL.NUMFOLIOREALTABLAAUX != null)
|
|
arrayList.Add((object) this.buscarPorNumFolioRealTablaAux(this.objauxplanoEL.NUMFOLIOREALTABLAAUX, operadorLogico.NONE));
|
|
return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, arrayList, (string) null, (string) null);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
}
|
|
}
|