Ejemplo n.º 1
0
        public void CargaPuesto(ref DropDownList oddlPuesto)
        {
            DLPuesto DataLayerPuesto = new DLPuesto();

            oddlPuesto.DataSource     = DataLayerPuesto.getPuestoAll();
            oddlPuesto.DataValueField = "idPuesto";
            oddlPuesto.DataTextField  = "descripcion";
        }
Ejemplo n.º 2
0
        public List <Puesto> ObtienePuestos()
        {
            DLPuesto      odlPuesto = new DLPuesto();
            List <Puesto> lstPto    = new List <Puesto>();

            try
            {
                lstPto = odlPuesto.getPuestoAll();
                lstPto.RemoveAll(x => x.idPuesto == 0);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(lstPto);
        }