// Decompiled with JetBrains decompiler // Type: AyABL.Tran.notificacionClienteBL // 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.Collections.Specialized; using System.Configuration; using System.Data; namespace AyABL.Tran { public class notificacionClienteBL : AyABL { private static NameValueCollection appSettings = ConfigurationManager.AppSettings; public notificacionClienteBL() { this.objnotificacionClienteEL = new notificacionClienteEL(); this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.notificacioncliente.ToString(); this.NombreConeccionBD = BASESDEDATOS.SIGDD.ToString(); } public notificacionClienteEL objnotificacionClienteEL { get; set; } public int insertarNotificacionCliente() { try { this.CamposTabla = t_dis_notificacioncliente.DESTINATARIO.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.OBSERVACIONES.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.FECHAENVIO.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.FKTIPONOTIFICACION.ToString() + ", " + t_dis_notificacioncliente.FKUSUARIOXDEPENDENCIA.ToString() + ", " + t_dis_notificacioncliente.FKSOLICITUD.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.notificacioncliente.ToString(); this.ValoresCampos = new object[7] { (object) this.objnotificacionClienteEL.DESTINATARIO, (object) this.objnotificacionClienteEL.OBSERVACIONES, (object) this.objnotificacionClienteEL.FECHAENVIO, (object) this.objnotificacionClienteEL.FKTIPONOTIFICACION, (object) this.objnotificacionClienteEL.FKUSUARIOXDEPENDENCIA, (object) this.objnotificacionClienteEL.FKSOLICITUD, (object) 1 }; return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD); } catch (Exception ex) { throw ex; } } public int modificarNotificacionCliente() { try { ArrayList p_arlCondiciones = new ArrayList(); p_arlCondiciones.Add((object) this.buscarPorPK(new int?(this.objnotificacionClienteEL.PK), Tablas.notificacioncliente, operadorLogico.NONE)); this.CamposTabla = t_dis_notificacioncliente.DESTINATARIO.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.OBSERVACIONES.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.FECHAENVIO.ToString() + Tablas.notificacioncliente.ToString() + ", " + t_dis_notificacioncliente.FKTIPONOTIFICACION.ToString() + ", " + t_dis_notificacioncliente.FKUSUARIOXDEPENDENCIA.ToString() + ", " + t_dis_notificacioncliente.FKSOLICITUD.ToString() + ", " + (object) Auditoria.ASTATE + Tablas.notificacioncliente.ToString(); this.ValoresCampos = new object[7] { (object) this.objnotificacionClienteEL.DESTINATARIO, (object) this.objnotificacionClienteEL.OBSERVACIONES, (object) this.objnotificacionClienteEL.FECHAENVIO, (object) this.objnotificacionClienteEL.FKTIPONOTIFICACION, (object) this.objnotificacionClienteEL.FKUSUARIOXDEPENDENCIA, (object) this.objnotificacionClienteEL.FKSOLICITUD, (object) 1 }; return this.baseDAL.Actualizar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_arlCondiciones); } catch (Exception ex) { throw ex; } } public DataSet listarNotificacionCliente() { try { ArrayList p_arlCondiciones = new ArrayList(); this.NombreTabla = Vistas.v_obtener_notificacioncliente.ToString(); if (this.objnotificacionClienteEL.PK != 0) p_arlCondiciones.Add((object) this.buscarPorPK(new int?(this.objnotificacionClienteEL.PK), Tablas.notificacioncliente, operadorLogico.AND)); if (this.objnotificacionClienteEL.FKSOLICITUD != 0) p_arlCondiciones.Add((object) this.buscarPorFK(this.objnotificacionClienteEL.FKSOLICITUD, Tablas.solicitud, operadorLogico.AND)); p_arlCondiciones.Add((object) this.buscarPorAplicacion(int.Parse(ConfigurationManager.AppSettings["pkApp"].ToString()), operadorLogico.NONE)); return this.baseDAL.EjecutarConsulta(this.NombreTabla, this.CamposTabla, this.NombreConeccionBD, p_arlCondiciones, (string) null, "ORDER BY PKNOTIFICACIONCLIENTE DESC"); } catch (Exception ex) { throw ex; } } private CondicionDAL buscarPorAplicacion( int p_intAplicacion, operadorLogico operador) { return new CondicionDAL() { valorIzquierdo = Constraints.PK.ToString() + Tablas.APLICACION.ToString(), operadorGeneral = operadorGeneral.EQUAL, operadorLogico = operador, valorDerecho = (object) p_intAplicacion }; } } }