Gallbladder dysfunction can result in pancreatitis. Your doc will probably suggest trying to clear up the pancreatitis as much as possible if possible, and then undertake GB surgery. Make sure that when the surgery is done, that the common bile duct is swept for sludge or stones.
Update: I got my test results today and found that not only do I still have pancreatitis, although not as severe, but my ejection rate was zero. Actually the report said less than zero although I don't know how that is possible. I have read that gallbladder surgery is dangerous in the presence of pancreatitis and that the pancreatitis can also cause gallbladder disease or vice versa. Anyone had similar question?