We study simple and projective modules of a certain class of Ehresmann semigroups, a well-studied generalization of inverse semigroups. Let S be a finite right (left) restriction Ehresmann semigroup whose HE(e)class is a group for every projection e ∈ E. This means that its corresponding Ehresmann category is an EI-category, that is, every endomorphism is an isomorphism. We show that the collection of finite Ehresmann semigroups whose categories are EI is a pseudovariety and we show in the infinite case, that the collection of Ehresmann semigroups whose categories have endomorphism monoids each having one idempotent is a quasivariety. We prove that the simple modules of the semigroup algebra kS (over any field k) are induced Schützenberger modules of the maximal subgroups of S. Moreover, we show that over fields with good characteristic the indecomposable projective modules can be described in a similar way but using generalized Green's relations instead of the standard ones.As a natural example we consider the monoid PT n of all partial functions on an n-set. Over the field of complex numbers, we give a natural description of its indecomposable projective modules and obtain a formula for their dimension. Moreover, we find certain zero entries in its Cartan matrix.