Commit 1d5a0737 authored by cpatil's avatar cpatil

modify code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100085 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a63189c7
...@@ -473,7 +473,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S ...@@ -473,7 +473,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
cnt=0; cnt=0;
sql = " select count(1) from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and rtrim(fld_value) = ? "; sql = " select count(1) from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and rtrim(fld_value) = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, chargeCode ); pstmt.setString( 1, chargeCode.trim() );
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
...@@ -752,7 +752,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S ...@@ -752,7 +752,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("COUNT["+cnt+"]"); System.out.println("COUNT["+cnt+"]");
if( cnt == 0 ) if( cnt > 0 )
{ {
errCode = "VMREFIDCNF"; errCode = "VMREFIDCNF";
errList.add(errCode); errList.add(errCode);
...@@ -775,7 +775,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S ...@@ -775,7 +775,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("COUNT["+cnt+"]"); System.out.println("COUNT["+cnt+"]");
if( cnt == 0 ) if( cnt > 0 )
{ {
errCode = "VMREFIDCNF"; errCode = "VMREFIDCNF";
errList.add(errCode); errList.add(errCode);
...@@ -798,7 +798,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S ...@@ -798,7 +798,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("COUNT["+cnt+"]"); System.out.println("COUNT["+cnt+"]");
if( cnt == 0 ) if( cnt > 0 )
{ {
errCode = "VMREFIDCNF"; errCode = "VMREFIDCNF";
errList.add(errCode); errList.add(errCode);
...@@ -821,7 +821,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S ...@@ -821,7 +821,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("COUNT["+cnt+"]"); System.out.println("COUNT["+cnt+"]");
if( cnt == 0 ) if( cnt > 0 )
{ {
errCode = "VMREFIDCNF"; errCode = "VMREFIDCNF";
errList.add(errCode); errList.add(errCode);
......
...@@ -401,6 +401,8 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R ...@@ -401,6 +401,8 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
rs1 = null; rs1 = null;
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
System.out.println("@@@@@@@@tempNettWeight["+tempNettWeight+"]");
sql1 = " select nvl(sum(net_weight),0) " + sql1 = " select nvl(sum(net_weight),0) " +
" from distord_iss where shipment_id = ? and confirmed = 'Y' "; " from distord_iss where shipment_id = ? and confirmed = 'Y' ";
...@@ -416,6 +418,7 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R ...@@ -416,6 +418,7 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
rs1 = null; rs1 = null;
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
System.out.println("@@@@@@@@tempNetWeight["+tempNetWeight+"]");
// added cpatil for c-iss on 19/04/14 // added cpatil for c-iss on 19/04/14
...@@ -438,6 +441,7 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R ...@@ -438,6 +441,7 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
val = ( tempNettWeight + tempNetWeight + grossWeightCIss ) * chargeRate ; val = ( tempNettWeight + tempNetWeight + grossWeightCIss ) * chargeRate ;
System.out.println("@@@@@@ val["+val+"]chargeRate["+chargeRate+"]"); System.out.println("@@@@@@ val["+val+"]chargeRate["+chargeRate+"]");
} // end if } // end if
......
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