Commit 5b7238ef authored by jshaikh's avatar jshaikh

minor changes for indentreq

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190260 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4978b39b
...@@ -195,16 +195,25 @@ public class IndentReqConfWF ...@@ -195,16 +195,25 @@ public class IndentReqConfWF
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if("Y".equalsIgnoreCase(confirmed)) if("N".equalsIgnoreCase(confirmed))
{ {
sql = "UPDATE INDENT_HDR SET CONFIRMED = 'Y' WHERE IND_NO = ? ";
pstmt = conn.prepareStatement(sql);
int cnt = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
if (cnt > 0) {
conn.commit();
retString = "Y"; retString = "Y";
} }
else else{
{
retString = "N"; retString = "N";
} }
} }
}
catch (Exception e) { catch (Exception e) {
try { try {
conn.rollback(); conn.rollback();
......
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