Commit 75057f1b authored by rtiwari's avatar rtiwari

MODIFY FOR UPDATE STATUS OF DIST.ORDER


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94038 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 24ad1968
...@@ -194,11 +194,13 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo ...@@ -194,11 +194,13 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
String totAmtDet = null ; String totAmtDet = null ;
String netAmtDet = null ; String netAmtDet = null ;
String taxAmtDet = null ; String taxAmtDet = null ;
String status = null; // added by ritesh on 20/dec/13 for DI3HSUP004
sql = " select hdr.dist_order, dtl.line_no_distord, dtl.qty_order, dtl.rate, " sql = " select hdr.dist_order, dtl.line_no_distord, dtl.qty_order, dtl.rate, "
+" dtl.rate__clg,dtl.remarks, dtl.pack_instr,dtl.cust_spec__no, " +" dtl.rate__clg,dtl.remarks, dtl.pack_instr,dtl.cust_spec__no, "
+" dtl.tot_amt, dtl.net_amt,dtl.tax_amt, " +" dtl.tot_amt, dtl.net_amt,dtl.tax_amt, "
+" dtl.tax_class, dtl.tax_chap, dtl.tax_env " +" dtl.tax_class, dtl.tax_chap, dtl.tax_env "
+" ,dtl.status " // added by ritesh on 20/dec/13 FOR DI3HSUP004
+" from distordamd hdr, distordamd_det dtl " +" from distordamd hdr, distordamd_det dtl "
+" where hdr.amd_no = dtl.amd_no " +" where hdr.amd_no = dtl.amd_no "
+" and hdr.amd_no = ?" +" and hdr.amd_no = ?"
...@@ -226,6 +228,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo ...@@ -226,6 +228,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
taxAmtDet = rs.getString( "tax_amt" ) == null ? "" : rs.getString( "tax_amt" ); taxAmtDet = rs.getString( "tax_amt" ) == null ? "" : rs.getString( "tax_amt" );
totAmtDet = rs.getString( "tot_amt" ) == null ? "" : rs.getString( "tot_amt" ); totAmtDet = rs.getString( "tot_amt" ) == null ? "" : rs.getString( "tot_amt" );
custSpecNo = rs.getString( "cust_spec__no" ) == null ? "" : rs.getString( "cust_spec__no" ); custSpecNo = rs.getString( "cust_spec__no" ) == null ? "" : rs.getString( "cust_spec__no" );
status = rs.getString( "status" ) == null ? "" : rs.getString( "status" ); // added by ritesh on 20/dec/13 FOR DI3HSUP004
sql = "update distorder_det set dist_order = ?, " sql = "update distorder_det set dist_order = ?, "
+" line_no = ?, " +" line_no = ?, "
...@@ -242,6 +245,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo ...@@ -242,6 +245,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
+" tax_amt = ?, " +" tax_amt = ?, "
+" cust_spec__no = ?, " +" cust_spec__no = ?, "
+" qty_confirm = ? " +" qty_confirm = ? "
+" ,status = ? " // added by ritesh on 20/dec/13 FOR DI3HSUP004
+" where dist_order = ? " +" where dist_order = ? "
+" and line_no = ? " ; +" and line_no = ? " ;
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
...@@ -260,8 +264,9 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo ...@@ -260,8 +264,9 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
pstmt.setString(13,taxAmtDet.trim()); pstmt.setString(13,taxAmtDet.trim());
pstmt.setString(14,custSpecNo.trim()); pstmt.setString(14,custSpecNo.trim());
pstmt.setString(15,qtyOrder.trim()); pstmt.setString(15,qtyOrder.trim());
pstmt.setString(16,distOrderamd.trim()); pstmt.setString(16,status.trim()); // added by ritesh on 20/dec/13 FOR DI3HSUP004
pstmt.setString(17,lineNoDistord.trim()); pstmt.setString(17,distOrderamd.trim());
pstmt.setString(18,lineNoDistord.trim());
pstmt.executeUpdate(); pstmt.executeUpdate();
...@@ -393,7 +398,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo ...@@ -393,7 +398,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
catch(Exception t) catch(Exception t)
{ {
t.printStackTrace(); t.printStackTrace();
throw new ITMException ( t ); throw new ITMException (t);
} }
ie.printStackTrace(); ie.printStackTrace();
errString = itmDBAccessEJB.getErrorString("","VTDESNCONF","","",conn); errString = itmDBAccessEJB.getErrorString("","VTDESNCONF","","",conn);
......
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