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