public DsServicios GetServiciosConIdentificacionDataSet() { DsServicios ds = new DsServicios(); Config.Conexion.LlenarTypeDataSet(ds.Datos, System.Data.CommandType.StoredProcedure, "ServiciosConIdentificacionAll"); return(ds); }
public bool Consultar() { DsServicios ds = this.GetServiciosDataSet(); if (ds == null) { return(false); } DsServicios.DatosRow dr = ds.Datos.FindByServicioID(this.servicioID); if (dr == null) { return(false); } this.ServicioDescrip = dr.ServicioDescrip; this.UnidadNegocioID = dr.UnidadNegocioID; this.FechaAlta = dr.FechaAlta; this.baja = dr.Baja; this.tieneAdministracionDeuda = dr.TieneAdministracionDeuda; this.TieneFrecuenciaRendicion = dr.TieneFrecuenciaRendicion; this.SoloParaAgencia = dr.SoloParaAgencia; this.AsociadoAGuiaRendicionAgOrigen = dr.AsociadoAGuiaRendicionAgOrigen; this.AsociadoAGuiaRendicionAgDestino = dr.AsociadoAGuiaRendicionAgDestino; this.TipoIdentificacionID = dr.IsTipoIdentificacionIDNull() ? 0 : dr.TipoIdentificacionID; return(true); }
public DsServicios GetServicioByProductoTEntregaDataSet(int productoID, int tiempoEntregaID) { DsServicios ds = new DsServicios(); SqlParameter pProductoID = new SqlParameter("@ProductoID", productoID); SqlParameter pTEntregaID = new SqlParameter("@TiempoEntregaID", tiempoEntregaID); Config.Conexion.LlenarTypeDataSet(ds.Datos, System.Data.CommandType.StoredProcedure, "ServicioByTEntregaProductoSEL", pTEntregaID, pProductoID); return(ds); }
public DsServicios GetServiciosConsultaDataSet() { DsServicios ds = new DsServicios(); SqlParameter pUnidadNegocioID = new SqlParameter("@UnidadNegocioID", this.UnidadNegocioID); SqlParameter pServicioDescrip = new SqlParameter("@ServicioDescrip", this.ServicioDescrip); Config.Conexion.LlenarTypeDataSet(ds.Datos, System.Data.CommandType.StoredProcedure, "ServicioSEL", pUnidadNegocioID, pServicioDescrip); return(ds); }