Commit af7ddea4 authored by jshaikh's avatar jshaikh

Some minor changes

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190292 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 803c4264
...@@ -202,18 +202,19 @@ public class IndentReqConfWfEJB extends ActionHandlerEJB implements IndentReqCon ...@@ -202,18 +202,19 @@ public class IndentReqConfWfEJB extends ActionHandlerEJB implements IndentReqCon
closePstmtRs(pStmt, rs); closePstmtRs(pStmt, rs);
/*if("Y".equalsIgnoreCase(confirmed)) if(!"Y".equalsIgnoreCase(confirmed))
{*/ {
/*if("X".equalsIgnoreCase(status) || "C".equalsIgnoreCase(status)) /*if("X".equalsIgnoreCase(status) || "C".equalsIgnoreCase(status))
{ {
errString = new ITMDBAccessEJB().getErrorString("", "VTWFCLOCAN", "","",conn); errString = new ITMDBAccessEJB().getErrorString("", "VTWFCLOCAN", "","",conn);
}*/ }*/
if ("O".equalsIgnoreCase(wf_status) || "R".equalsIgnoreCase(wf_status) || "S".equalsIgnoreCase(wf_status)) if ("O".equalsIgnoreCase(wf_status) || "R".equalsIgnoreCase(wf_status) || "S".equalsIgnoreCase(wf_status))
{ {
sql = "UPDATE INDENT_HDR SET CONFIRMED = 'N' WF_STATUS = 'O' WHERE IND_NO = ? "; sql = "UPDATE INDENT_HDR SET WF_STATUS = 'O' WHERE IND_NO = ? ";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, ind_no); pStmt.setString(1, ind_no);
int updCount = pStmt.executeUpdate(); int updCount = pStmt.executeUpdate();
closePstmtRs(pStmt, rs);
if (updCount > 0) if (updCount > 0)
{ {
...@@ -230,11 +231,11 @@ public class IndentReqConfWfEJB extends ActionHandlerEJB implements IndentReqCon ...@@ -230,11 +231,11 @@ public class IndentReqConfWfEJB extends ActionHandlerEJB implements IndentReqCon
{ {
errString = new ITMDBAccessEJB().getErrorString("", "VTMWFALINT", "","",conn); errString = new ITMDBAccessEJB().getErrorString("", "VTMWFALINT", "","",conn);
} }
/*}
else else
{ {
errString = new ITMDBAccessEJB().getErrorString("", "VFMWFCONFN", "","",conn); errString = new ITMDBAccessEJB().getErrorString("", "VFMWFCONFN", "","",conn);
}*/ }
} }
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