Commit 55717460 authored by ssalve's avatar ssalve

Sarita : Done changes to set current date with time[00.00.00.0] instead SYSDATE on 12 JUN 18

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@186391 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 53b09c79
...@@ -238,7 +238,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -238,7 +238,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
String confirmed="",confPasswd="",lsPwdVerified="",sql1="",lsLedgPostConf="",loginEmpCode="",saleOrder="",lineNoSord="",itemCodeOrd="",expLev=""; String confirmed="",confPasswd="",lsPwdVerified="",sql1="",lsLedgPostConf="",loginEmpCode="",saleOrder="",lineNoSord="",itemCodeOrd="",expLev="";
double ldQty=0.00,ldBalQty=0.00,qtytoballocated=0.00,qtyAlloc=0.00,lcAllocatedqty=0.00; double ldQty=0.00,ldBalQty=0.00,qtytoballocated=0.00,qtyAlloc=0.00,lcAllocatedqty=0.00;
boolean lbAllocated=false,isError=false; boolean lbAllocated=false,isError=false;
try{ try{
System.out.println("in dr confirm::::"); System.out.println("in dr confirm::::");
finCommon = new FinCommon(); finCommon = new FinCommon();
// finCommonInvAcct = new FinCommonInvAcct(); // finCommonInvAcct = new FinCommonInvAcct();
...@@ -253,6 +253,13 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -253,6 +253,13 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"); loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("@V@ loginEmpCode :- ["+loginEmpCode+"]"); System.out.println("@V@ loginEmpCode :- ["+loginEmpCode+"]");
//Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [START]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
java.util.Date currentDate = new java.util.Date();
Timestamp newsysDate = java.sql.Timestamp.valueOf(sdf1.format(currentDate) + " 00:00:00.0");
System.out.println("newsysDate is : ["+newsysDate+"]");
//Added by sarita to get Current Date with time[00:00:00.0] on 12 JUN 18 [END]
stkUpdMap = new HashMap(); stkUpdMap = new HashMap();
System.out.println("Getting Connection["+conn+"]"); System.out.println("Getting Connection["+conn+"]");
...@@ -347,7 +354,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -347,7 +354,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
pstmt.setString(1, tranID); pstmt.setString(1, tranID);
rs=pstmt.executeQuery(); rs=pstmt.executeQuery();
while(rs.next()) while(rs.next())
{ {
distOrder = checkNullAndTrim(rs.getString("dist_order")); distOrder = checkNullAndTrim(rs.getString("dist_order"));
itemCode= checkNullAndTrim(rs.getString("item_code")); itemCode= checkNullAndTrim(rs.getString("item_code"));
ldQty=rs.getDouble("ldQty"); ldQty=rs.getDouble("ldQty");
...@@ -406,8 +413,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -406,8 +413,7 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
return errString; return errString;
} }
//Ended by Varsha V and added below code for checking msgType //Ended by Varsha V and added below code for checking msgType
} }
sql="select (case when ledg_post_conf is null then 'N' else ledg_post_conf end) as lsLedgPostConf from transetup where tran_window = 'w_dist_receipt'"; sql="select (case when ledg_post_conf is null then 'N' else ledg_post_conf end) as lsLedgPostConf from transetup where tran_window = 'w_dist_receipt'";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
rs=pstmt.executeQuery(); rs=pstmt.executeQuery();
...@@ -420,9 +426,14 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo ...@@ -420,9 +426,14 @@ public class DistOrderRcpConf extends ActionHandlerEJB implements DistOrderRcpCo
System.out.println("@V@ lsLedgPostConf 390:- ["+lsLedgPostConf+"]"); System.out.println("@V@ lsLedgPostConf 390:- ["+lsLedgPostConf+"]");
if("Y".equalsIgnoreCase(lsLedgPostConf)) if("Y".equalsIgnoreCase(lsLedgPostConf))
{ {
sql="update distord_rcp set tran_date = SYSDATE where tran_id =?"; //commented and added by sarita to set tran_date as current date with time[00:00:00.0] on 12 JUN 18 [START]
//sql="update distord_rcp set tran_date = SYSDATE where tran_id =?";
sql="update distord_rcp set tran_date = ? where tran_id =?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1, tranID); pstmt.setTimestamp(1, newsysDate);
pstmt.setString(2, tranID);
//pstmt.setString(1, tranID);
//commented and added by sarita to set tran_date as current date with time[00:00:00.0] on 12 JUN 18 [END]
llCnt=pstmt.executeUpdate(); llCnt=pstmt.executeUpdate();
pstmt.close();pstmt=null; pstmt.close();pstmt=null;
System.out.println("@V@ Update cnt :- ["+llCnt+"]"); System.out.println("@V@ Update cnt :- ["+llCnt+"]");
......
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