Commit 8e6c2d09 authored by jshaikh's avatar jshaikh

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180225 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 88d23a5e
...@@ -63,7 +63,7 @@ public class ConsumpIssueConfWfEJB extends ActionHandlerEJB implements ConsumpIs ...@@ -63,7 +63,7 @@ public class ConsumpIssueConfWfEJB extends ActionHandlerEJB implements ConsumpIs
sql = "UPDATE CONSUME_ISS SET SET conf_date = sysdate WHERE CONS_ISSUE = ? "; sql = "UPDATE CONSUME_ISS SET SET conf_date = sysdate WHERE CONS_ISSUE = ? ";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
//pStmt.setString(1, confirmed); //pStmt.setString(1, confirmed);
pStmt.setString(2, tranId); pStmt.setString(1, tranId);
int updCount = pStmt.executeUpdate(); int updCount = pStmt.executeUpdate();
if (updCount > 0) if (updCount > 0)
......
...@@ -63,10 +63,10 @@ public class SContractConfWfEJB extends ActionHandlerEJB implements SContractCon ...@@ -63,10 +63,10 @@ public class SContractConfWfEJB extends ActionHandlerEJB implements SContractCon
if ("success".equalsIgnoreCase(retString)) if ("success".equalsIgnoreCase(retString))
{ {
sql = "UPDATE SCONTRACT SET CONFIRMED = ? WHERE CONTRACT_NO = ? "; sql = "UPDATE SCONTRACT SET SET conf_date = sysdate WHERE CONTRACT_NO = ? ";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, confirmed); //pStmt.setString(1, confirmed);
pStmt.setString(2, tranId); pStmt.setString(1, tranId);
int updCount = pStmt.executeUpdate(); int updCount = pStmt.executeUpdate();
if (updCount > 0) if (updCount > 0)
......
...@@ -55,10 +55,12 @@ public class SalesContractConfWF ...@@ -55,10 +55,12 @@ public class SalesContractConfWF
conn.commit(); conn.commit();
retString = "Y"; retString = "Y";
} }
else
{
conn.rollback(); conn.rollback();
retString = "N"; retString = "N";
} }
}
} }
catch (Exception e) { catch (Exception e) {
......
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