Commit 8339dae2 authored by ajadhav's avatar ajadhav

change in method signature for processRequest and remove other wherever it is called.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177258 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 364c54b9
......@@ -230,6 +230,7 @@ public class PostOrderActivity {
double ordQty=0,dlvQty=0,PendingQty=0;
String xmlString="",chgUser="",chgTerm="",loginEmpCode="";
Timestamp sysDate=null;
String userId = "";//Added By Pavan R 27/DEC/17
try
{
Calendar currentDate = Calendar.getInstance();
......@@ -240,7 +241,9 @@ public class PostOrderActivity {
chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
//added by Pavan R on 27/DEC/17 userId passwed to savData() and processRequest()
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("userId::["+userId+"]");
MfgCommon mfgCommon=new MfgCommon();
/*lb_new_cp_conn = false
if as_dis_link = 'C' then
......@@ -1083,7 +1086,7 @@ public class PostOrderActivity {
xmlBuff.append("</DocumentRoot>");
xmlString = xmlBuff.toString();
System.out.println("XmlString:::["+xmlBuff.toString()+"]");
retString = saveData(siteCodeCh,xmlString,connCP);
retString = saveData(siteCodeCh,xmlString,userId,connCP);
System.out.println("XmlString:::["+retString+"]");
if (retString.indexOf("Success") > -1)
{
......@@ -1160,7 +1163,7 @@ public class PostOrderActivity {
}
return msgType;
}
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;
......@@ -1173,7 +1176,7 @@ public class PostOrderActivity {
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
//System.out.println("-----------masterStateful------- " + masterStateful);
String [] authencate = new String[2];
authencate[0] = "";
authencate[0] = userId;
authencate[1] = "";
//System.out.println("xmlString to masterstateful [" + xmlString + "]");
//Changed By Nasruddin Start 04-11-16
......
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