Commit f97bb134 authored by ajadhav's avatar ajadhav

userId pssed to savedata method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177232 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7c5b9ceb
......@@ -1288,12 +1288,15 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
Timestamp pordDate = null;
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
StringBuffer xmlBuff = null;
ArrayList convQuantityFactArryList = new ArrayList();
ArrayList convQuantityFactArryList = new ArrayList();
String userId = "";
try
{
java.sql.Timestamp tranDate = null;
tranDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("--login code---1299--"+userId);
sql = " select supp_code, site_code__dlv, item_ser, ord_date , pord_type,loc_group__jwiss " +
" from porder where purc_order = ?";
......@@ -1636,7 +1639,8 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
System.out.println("...............just before savdata distorder()");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("== site code =="+siteCode);
errString = saveData(siteCode,xmlString,conn);
System.out.println("userId@1642["+userId+"]");
errString = saveData(siteCode,xmlString,userId, conn);
System.out.println("@@@@@2: retString:"+errString);
System.out.println("--retString finished--");
if (errString.indexOf("Success") > -1)
......@@ -1692,7 +1696,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
return errString;
}
private String saveData(String siteCode,String xmlString, Connection conn) throws ITMException
private String saveData(String siteCode,String xmlString,String userId, Connection conn) throws ITMException
{
System.out.println("saving data...........");
InitialContext ctx = null;
......@@ -1706,7 +1710,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
System.out.println("-----------masterStateful------- " + masterStateful);
String [] authencate = new String[2];
//Changes By Ajay on 25-12-2017:START
authencate[0] = "userId";
authencate[0] = userId;
//Changes By Ajay on 25-12-2017:END
authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString + "]");
......@@ -3148,7 +3152,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
xmlString = xmlBuff.toString();
System.out.println("@@@@@2: xmlString:"+xmlBuff.toString());
System.out.println("...............just before savdata()");
errString = saveData(sordSite,xmlString,conn);
errString = saveData(sordSite,xmlString,userId,conn);
System.out.println("@@@@@2: retString:"+errString);
System.out.println("--retString finished--");
if (errString.indexOf("Success") > -1)
......
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