I dont see how they could charge that much just to paint a freestanding door. A couple years ago, I went to a junkyard and got a new door for my dented one, took it to a shop, and they repainted it AND swapped the hardware AND remounted it for under $200. It didnt have power locks or power windows, but still- you should not have to pay $400.
The only thing Im not sure about: when you say you need to paint the door jams- what do you mean? is that part of the door opening, or part of the door itself?
Are you JUST getting the door painted, or some other part of the car, too?
You mention the quarter panels in your post, so dont know if you are talking about somethign else.