Here are the definitions of the codes you have found.
Diagnostic Codes For the Caterpillar Monitoring System (MID No. 030)
CID 0248 - Data Link: FMI 02 Data erratic, intermittent, or incorrect
CID 0819 - Display Data Link:FMI 02 Data erratic, intermittent, or incorrect
CID 0821 - Display Power Supply:FMI 04 Voltage below normal or short to ground
Diagnostic Codes for the Power Train ECM (MID No. 113)
CID 0168 - Electrical System:FMI 04 Voltage below normal or shorted low.
CID 0177 - Transmission Oil Temperature Sensor:FMI 03 Voltage above normal or shorted high.
CID 0254 - Electronic Control Module (ECM):FMI 13 Out of calibration.
CID 0368 - Autoshift Switch:FMI 02 Data erratic, intermittent, or incorrect.
CID 0650 - Harness Code:FMI 02 Data erratic, intermittent, or incorrect.
CID 0697 - Priority Solenoid Valve:FMI 05 Current below normal or open circuit.
You did not state which codes were active. If none had the words SERV CODE displayed when the code was shown, then none were active. You may need to operate the machine to get the codes to show active, Some older ECMs would loose the active code status when the key switch is turned off. Seeing the active code will help narrow this list down.
If you cannot get an active code, try clearing these codes and see which code returns.
The main concern I see with these codes is it looks like the transmission ecm is loosing power and the wire to the priority valve is still broken. Also the transmission temperature sensor has a short in either the sensor or the wiring.
The FMI 02 Data erratic, intermittent, or incorrect, means it is likely a temporary issue. Don't worry about these unless they are active.
The FMI 13 Out of calibration code will require the 4C-8195 tool or the dealer laptop to perform the calibrations.
The only code on the monitor to check is for the power supply, if this is not an active code, it may have been from the damage.
Please tell me which codes are active and I can provide more details about how to fix the problem.