As cintocrunch stated the mechanical aspect of performing the change would probably be the easiest part if those parts would matchup. You would get no input from the transmission sensors so the PCM would report transmission problems.
You would then have to deal with the electronics which would likely require using the PCM from the donor vehicle, and splicing/making harnesses to do so. Then you would have to basically rewrite the PCM software program to get everything to communicate.
If you have to do emissions testing I have no idea what their computer would make of that.