Does the switch have a led light in it? I would assume that one wire is the feed power into the switch, one is the output wire to the locker, and one is the ground wire for the switch led. To wire it to an upfitter, you just need to wire the upfitter output wire to the switch output wire going to the locker. I am also guessing that the output wire goes to a relay that feeds the power to the locker, but depending on the amperage of the locker solenoid, it may not, and the upfitter output may be just fine. But you need to know how much amperage it pulls to be sure. If there is a relay, then disconnect the stock switch wires from it, and just wire the upfitter output directly to the relay switching input.