The availability of static tiny optical devices is mandatory to reduce the complexity of optical paths that typically use dynamic optical components and/or many standard elements for the generation of complex states of light, leading to unprecedented levels of miniaturization and compactness of optical systems. In particular, the design of flat and integrated optical elements capable of multiple vector beams generation with high resolution in the visible and infrared range is very attractive in many fields, from life science to information and communication technology. In this regard, we propose dual-functional transmission dielectric metalenses that act simultaneously on the dynamic and geometric phases in order to manipulate independently right-handed and left-handed circularly polarized states of light and generate focused vector beams in a compact and versatile way. In the specific, starting from the mathematical fundamentals for the compact generation of vector beams using dual-functional optical elements, we provide the numerical algorithms for the computation of metaoptics and apply those techniques to the design and fabrication of silicon metalenses which are able to generate and focus different vector beams in the telecom infrared, depending on the linear polarization state in input. This approach provides new integrated optics for applications in the fields of high-resolution microscopy, optical manipulation, and optical communications, both in the classical and single-photon regimes.