Commit d88b2c00 authored by ssalve's avatar ssalve

Sarita : Done changes to saveData to set userId parameter to set user[0] as...

Sarita : Done changes to saveData to set userId parameter to set user[0] as userID for processRequest on 26DEC2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177246 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7e193cd6
......@@ -79,10 +79,13 @@ public class UploadOrderEJB extends ActionHandlerEJB implements UploadOrderEJBLo
String finCurrCode = "";
//Added by Santosh on 04/04/2017
String rcpMode = "";
//Added by sarita on 26DEC2017
String userId = "";
try
{
//Added by sarita on 26DEC2017 to get userId
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
genericUtility = new E12GenericUtility();
currDate = new java.sql.Timestamp(System.currentTimeMillis());
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
......@@ -268,7 +271,9 @@ public class UploadOrderEJB extends ActionHandlerEJB implements UploadOrderEJBLo
System.out.println("xmlString Before save data------>>["+xmlString+"]");
retString=saveData(this.siteCodeG, xmlString, conn);
//added by sarita on 26DEC2017 to add userId
//retString=saveData(this.siteCodeG, xmlString, conn);
retString=saveData(this.siteCodeG, xmlString, conn,userId);
System.out.println("Before retString------>>["+retString+"]");
if(retString != null && retString.indexOf("Success") > -1)
{
......@@ -2232,7 +2237,9 @@ public class UploadOrderEJB extends ActionHandlerEJB implements UploadOrderEJBLo
}
return headerValesMap;
}
private String saveData(String siteCode, String xmlString, Connection conn) throws ITMException, Exception
//replace and added by sarita on 26DEC2017 to add userId parameter
//private String saveData(String siteCode, String xmlString, Connection conn) throws ITMException, Exception
private String saveData(String siteCode, String xmlString, Connection conn,String userId) throws ITMException, Exception
{
System.out.println("saving data...........");
......@@ -2246,7 +2253,9 @@ public class UploadOrderEJB extends ActionHandlerEJB implements UploadOrderEJBLo
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
String [] authencate = new String[2];
authencate[0] = "";
//replace and added by sarita on 26DEC2017 to keep first object of user array as userID
//authencate[0] = "";
authencate[0] = userId;
authencate[1] = "";
System.out.println("xmlString in masterStateful :::: " + xmlString);
retString = masterStateful.processRequest(authencate, siteCode, true, xmlString, true, conn);
......
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