Commit 6d4fe44b authored by wansari's avatar wansari

W16IBAS007 updated source to return string if transaction is already confirmed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105290 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 45fd9a62
......@@ -120,9 +120,12 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
}
else
{
errCode = "VTMCONF20";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
//Changed by wasim on 10-04-2017 for returning if record not found
//errCode = "VTMCONF20";
//errList.add( errCode );
//errFields.add(childNodeName.toLowerCase());
errString = itmDBAccess.getErrorString("","VTMCONF20","","",conn);
return errString;
}
if(pstmt != null)
{
......@@ -136,9 +139,12 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
}
if("C".equalsIgnoreCase(ls_status))
{
errCode = "VTINDCONF1";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
//Changed by wasim on 10-04-2017 for returning if transaction is calcelled
//errCode = "VTINDCONF1";
//errList.add( errCode );
//errFields.add(childNodeName.toLowerCase());
errString = itmDBAccess.getErrorString("","VTINDCONF1","","",conn);
return errString;
}
if(conf.length() == 0)
{
......@@ -146,9 +152,12 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
}
if("Y".equalsIgnoreCase(conf))
{
errCode = "VTINDCONF";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
//Changed by wasim on 10-04-2017 for returning if transaction is already confirmed
//errCode = "VTINDCONF";
//errList.add( errCode );
//errFields.add(childNodeName.toLowerCase());
errString = itmDBAccess.getErrorString("","VTINDCONF","","",conn);
return errString;
}
sql = "SELECT COUNT(*) FROM INDENTITEM_DET WHERE IND_NO = ? ";
......@@ -557,13 +566,14 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
{
try
{
isError = true;
System.out.println("Exception "+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
catch (Exception e1)
{
isError = true;
//isError = true;
e1.printStackTrace();
throw new ITMException(e1);
}
......@@ -572,6 +582,7 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
{
try
{
System.out.println("isError in Finally IndentReqConf="+isError);
if( !isError )
{
System.out.println("----------commmit-----------");
......
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