Wow.. ouch.
You need to be icing your injury and taking meication to help the swelling.
It is possible you stretched or even tore something, however any sort of surgery will be optional. I opted to have surgery on my knee because I was too active not to. But in most cases you'll be fine as long as you get more muscle on your legs.
At least for awhile, try and talk to your manager so you're able to rest your knee during work. maybe by getting a stool or something to sit on. When you get done with work you need to do the whole RICE deal (Rest, Ice, Compress, Elevate).
You can also find a mini wrap for your knee, but only wear this when it's swelling. If you wear this for a long period of time then it will cause problems for gaining muscle.