What the operation was performed not mentioned. Probably portion of gut and other surrounding structures are also removed. Now function of heart is declining. Pancreatic cancer has itself a grave prognosis. You should better consult a cardiologist
regarding his cardiac function and related complications. If the stage of the disease is limited then proper post operative adjuvant treatment can prolong his life, but that will depends on other medical comorbidities.