Commit b8f9ef2a authored by ajadhav's avatar ajadhav

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177277 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e15bcda
...@@ -514,6 +514,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal, ...@@ -514,6 +514,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
double convIndOrdQty=0; double convIndOrdQty=0;
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
Connection conn = null; Connection conn = null;
String userId = "";
try { try {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
...@@ -1439,9 +1440,11 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal, ...@@ -1439,9 +1440,11 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,
"loginSiteCode"); "loginSiteCode");
userId = genericUtility.getValueFromXTRA_PARAMS(
xtraParams, "loginCode");
System.out.println("== site code ==" + siteCode); System.out.println("== site code ==" + siteCode);
//Calling saveDate master statefull function. //Calling saveDate master statefull function.
retString = saveData(siteCode, xmlString, conn); retString = saveData(siteCode, xmlString, userId, conn);
System.out.println("@@@@@2: retString:" + retString); System.out.println("@@@@@2: retString:" + retString);
System.out.println("--retString finished--"); System.out.println("--retString finished--");
...@@ -1497,8 +1500,8 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal, ...@@ -1497,8 +1500,8 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
genericUtility.getApplDateFormat(), genericUtility.getApplDateFormat(),
genericUtility.getDBDateFormat()) genericUtility.getDBDateFormat())
+ " 00:00:00.0"); + " 00:00:00.0");
String userId = genericUtility.getValueFromXTRA_PARAMS( // String userId = genericUtility.getValueFromXTRA_PARAMS(
xtraParams, "loginCode"); // xtraParams, "loginCode");
System.out.println("dlvQty@@At before"+dlvQty); System.out.println("dlvQty@@At before"+dlvQty);
...@@ -2092,7 +2095,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal, ...@@ -2092,7 +2095,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
return userInfoStr.toString(); return userInfoStr.toString();
}*/ }*/
public String saveData(String siteCode, String xmlString, Connection conn) public String saveData(String siteCode, String xmlString, String userId, Connection conn)
throws ITMException { throws ITMException {
System.out.println("saving data..........."); System.out.println("saving data...........");
InitialContext ctx = null; InitialContext ctx = null;
...@@ -2109,7 +2112,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal, ...@@ -2109,7 +2112,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
System.out.println("-----------masterStateful------- " System.out.println("-----------masterStateful------- "
+ masterStateful); + masterStateful);
String[] authencate = new String[2]; String[] authencate = new String[2];
authencate[0] = ""; authencate[0] = userId;
authencate[1] = ""; authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString System.out.println("xmlString to masterstateful [" + xmlString
+ "]"); + "]");
......
...@@ -21,5 +21,5 @@ public String getdata(Document headerDom, Document detailDom, String windowName, ...@@ -21,5 +21,5 @@ public String getdata(Document headerDom, Document detailDom, String windowName,
public String process() throws RemoteException,ITMException; public String process() throws RemoteException,ITMException;
public String process(String string1, String string2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(String string1, String string2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String saveData(String siteCode, String xmlString, Connection conn) throws RemoteException,ITMException; public String saveData(String siteCode, String xmlString,String userId, Connection conn) throws RemoteException,ITMException;
} }
\ No newline at end of file
...@@ -19,5 +19,5 @@ public String getdata(Document headerDom, Document detailDom, String windowName, ...@@ -19,5 +19,5 @@ public String getdata(Document headerDom, Document detailDom, String windowName,
public String process() throws RemoteException,ITMException; public String process() throws RemoteException,ITMException;
public String process(String string1, String string2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(String string1, String string2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
public String saveData(String siteCode, String xmlString, Connection conn) throws RemoteException,ITMException; public String saveData(String siteCode, String xmlString,String userId, Connection conn) throws RemoteException,ITMException;
} }
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