Commit 4035ff1b authored by dpawar's avatar dpawar

updated login employee code in sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93382 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fbb4034e
...@@ -40,17 +40,17 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe ...@@ -40,17 +40,17 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe
ResultSet rs=null; ResultSet rs=null;
Connection conn=null; Connection conn=null;
PreparedStatement pstmt=null; PreparedStatement pstmt=null;
String errorString="",sql=""; String errorString="",sql="",loginCode="";
String errString=""; String errString="";
int updCnt=0; int updCnt=0;
GenericUtility genericUtility=new GenericUtility();
try try
{ {
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); conn = connDriver.getConnectDB("DriverValidator");
conn.setAutoCommit(false); conn.setAutoCommit(false);
String wfStatus="",confirmed=""; String wfStatus="",confirmed="";
sql = "select confirmed,wf_status from spl_sales_por_hdr WHERE tran_id = ?"; sql = "select confirmed,wf_status from spl_sales_por_hdr WHERE tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -83,10 +83,12 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe ...@@ -83,10 +83,12 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe
return errString; return errString;
} }
sql=""; sql="";
sql="update spl_sales_por_hdr set wf_status = ? where tran_id = ? "; loginCode=genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
sql="update spl_sales_por_hdr set wf_status = ?, emp_code__aprv = ? where tran_id = ? ";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1, "R"); pstmt.setString(1, "R");
pstmt.setString(2, tranId); pstmt.setString(2, loginCode);
pstmt.setString(3, tranId);
updCnt=pstmt.executeUpdate(); updCnt=pstmt.executeUpdate();
if (updCnt > 0) if (updCnt > 0)
{ {
......
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