Commit 84557f9d authored by ajadhav's avatar ajadhav

pass detailDom and remove headerDom from tranId

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182956 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ef6e1acf
......@@ -83,13 +83,14 @@ public class DistRcpVerifyPasswordPrc extends ProcessEJB implements DistRcpVerif
try
{
connDriver = new ConnDriver();
connection = connDriver.getConnectDB("DriverITM");
//connection = connDriver.getConnectDB("DriverITM");
connection = getConnection();
connection.setAutoCommit(false);
appConnect = new AppConnectParm();
initialCtx = new InitialContext(appConnect.getProperty());
itmDBAccess = (ITMDBAccessLocal)initialCtx.lookup("ibase/ITMDBAccessEJB/local");
tranId = checkNull(genericUtility.getColumnValue("tran_id", headerDom));
// tranId = checkNull(genericUtility.getColumnValue("tran_id", headerDom));
tranId = genericUtility.getColumnValue("tran_id", detailDom);
if(tranId==null || tranId.trim().length()<=0)
{
returnString = itmDBAccess.getErrorString("", "VTTRNNULL", "", "", connection);
......@@ -121,7 +122,7 @@ public class DistRcpVerifyPasswordPrc extends ProcessEJB implements DistRcpVerif
{
if(lsPasswd!=null && lsPasswd.trim().length()>0)
{
lsEntPasswd=checkNull(genericUtility.getColumnValue("conf_passwd", headerDom));
lsEntPasswd=checkNull(genericUtility.getColumnValue("conf_passwd", detailDom));
if(lsEntPasswd == null ||lsEntPasswd.trim().length()<=0 || !(lsEntPasswd.equals(lsPasswd)))
{
returnString = itmDBAccess.getErrorString("", "VTPASS1", "", "", connection);
......@@ -138,8 +139,12 @@ public class DistRcpVerifyPasswordPrc extends ProcessEJB implements DistRcpVerif
}
if("Y".equalsIgnoreCase(lsPwdVerified))
{
distOrderRcpConf = (DistOrderRcpConfLocal)initialCtx.lookup("ibase/DistOrderRcpConf/local");
returnString = distOrderRcpConf.confirm(tranId, xtraParams, "", connection);
// distOrderRcpConf = (DistOrderRcpConfLocal)initialCtx.lookup("ibase/DistOrderRcpConf/local");
// returnString = distOrderRcpConf.confirm(tranId, xtraParams, "", connection);
connection.commit();
System.out.println("@V@ Commiting befor DistOrderRcpConf 144");
DistOrderRcpConf distOrderRcpConfObj= new DistOrderRcpConf();
returnString = distOrderRcpConfObj.actionConfirm(tranId, xtraParams, "", "Y", connection);
}
}
}// TRAN_ID NOT NULL
......
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