Yes, you will earn the 500-mile e-upgrades as well as your 100% mileage bonus for being 1P/1K/UGS. All Ted flights have UA flight numbers. At the moment I believe the flight range is UA 1400-1599 and officially these flights are "operated by Ted for United" even though Ted doesn't have its own operating certificate and is not a separate airline. That is why Ted flights are treated as UA flights and not codeshare.