Commit 2d89903f authored by msharma's avatar msharma

Check RunMode from Xtraparams


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95823 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 677d04d0
...@@ -269,7 +269,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -269,7 +269,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
String policyNo = ""; String policyNo = "";
String pervPolicy = ""; String pervPolicy = "";
String ledgPostConf = ""; String ledgPostConf = "";
String runMode = "i"; String runMode = "";
String warning = ""; String warning = "";
String cwipTranType = ""; String cwipTranType = "";
String tranType = ""; String tranType = "";
...@@ -298,7 +298,11 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -298,7 +298,11 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
DistCommon distCommon = new DistCommon(); DistCommon distCommon = new DistCommon();
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
dbName = CommonConstants.DB_NAME; dbName = CommonConstants.DB_NAME;
runMode=checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "runMode"));
if(runMode.length()==0)
{
runMode="I";
}
if( dbName.equalsIgnoreCase("db2")) if( dbName.equalsIgnoreCase("db2"))
{ {
sql = "SELECT TRAN_ID,(CASE WHEN CONFIRMED IS NULL THEN 'N' ELSE CONFIRMED END), (CASE WHEN QC_REQD IS NULL THEN 'N' ELSE QC_REQD END), PURC_ORDER, TRAN_TYPE FROM PORCP WHERE TRAN_ID = ? FOR UPDATE "; sql = "SELECT TRAN_ID,(CASE WHEN CONFIRMED IS NULL THEN 'N' ELSE CONFIRMED END), (CASE WHEN QC_REQD IS NULL THEN 'N' ELSE QC_REQD END), PURC_ORDER, TRAN_TYPE FROM PORCP WHERE TRAN_ID = ? FOR UPDATE ";
...@@ -727,7 +731,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -727,7 +731,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
{ {
ledgPostConf = "N"; ledgPostConf = "N";
} }
if ( ledgPostConf.equalsIgnoreCase("Y") && runMode != "B" ) if ( ledgPostConf.equalsIgnoreCase("Y") && !runMode.equalsIgnoreCase("B") )
{ {
today = new java.sql.Timestamp(System.currentTimeMillis()); today = new java.sql.Timestamp(System.currentTimeMillis());
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(genericUtility.getDBDateFormat()); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(genericUtility.getDBDateFormat());
......
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