Commit fc649b57 authored by ssalve's avatar ssalve

Sarita : Done changes to 1. remove Lookup for ITMDBAccessEJB and created...

Sarita : Done changes to 1. remove Lookup for ITMDBAccessEJB and created object and  2. use connection method of ITMDBAccessEJB for calling getErrorString 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187986 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0a967442
...@@ -96,18 +96,27 @@ public class EmpDetChgCancPrv extends ActionHandlerEJB implements EmpDetChgCancP ...@@ -96,18 +96,27 @@ public class EmpDetChgCancPrv extends ActionHandlerEJB implements EmpDetChgCancP
if("X".equalsIgnoreCase(status)) if("X".equalsIgnoreCase(status))
{ {
retString = itmDBAccessEJB.getErrorString( "", "VTCANC2" , loginCode); //Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [START]
//retString = itmDBAccessEJB.getErrorString( "", "VTCANC2" , loginCode);
retString = itmDBAccessEJB.getErrorString("","VTCANC2",loginCode,"",conn);
//Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [END]
return retString; return retString;
} }
else if("C".equalsIgnoreCase(status)) else if("C".equalsIgnoreCase(status))
{ {
retString = itmDBAccessEJB.getErrorString( "", "VTCONF8" , loginCode); //Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [START]
//retString = itmDBAccessEJB.getErrorString( "", "VTCONF8" , loginCode);
retString = itmDBAccessEJB.getErrorString("","VTCONF8",loginCode,"",conn);
//Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [END]
return retString; return retString;
} }
else else
{ {
System.out.println("Transaction is Neither Confirmed Nor Cancelled so in else block!!!!"); System.out.println("Transaction is Neither Confirmed Nor Cancelled so in else block!!!!");
retString = itmDBAccessEJB.getErrorString( "", "VTINVCANC1" , loginCode);//Warning Message shows //Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [START]
//retString = itmDBAccessEJB.getErrorString( "", "VTINVCANC1" , loginCode);//Warning Message shows
retString = itmDBAccessEJB.getErrorString("","VTINVCANC1",loginCode,"",conn);
//Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [END]
} }
} }
catch(Exception se) catch(Exception se)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment