Пример #1
0
        public DsServicios GetServiciosConIdentificacionDataSet()
        {
            DsServicios ds = new DsServicios();

            Config.Conexion.LlenarTypeDataSet(ds.Datos, System.Data.CommandType.StoredProcedure, "ServiciosConIdentificacionAll");
            return(ds);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }