Commit 30c49665 authored by prane's avatar prane

unnecessary open cursor closed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204113 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 210a509e
...@@ -1165,7 +1165,7 @@ public class StockUpdate ...@@ -1165,7 +1165,7 @@ public class StockUpdate
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
rs.close(); //rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
}else{ }else{
System.out.println("@V@ Not QC- ORD.........."); System.out.println("@V@ Not QC- ORD..........");
...@@ -1201,7 +1201,7 @@ public class StockUpdate ...@@ -1201,7 +1201,7 @@ public class StockUpdate
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
rs.close(); // rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
//Added by chandrashekar dtd 05/02/2015 to update no_art as 1 if no_art<0 //Added by chandrashekar dtd 05/02/2015 to update no_art as 1 if no_art<0
double stkQty=0,noArticle=0; double stkQty=0,noArticle=0;
...@@ -1396,7 +1396,7 @@ public class StockUpdate ...@@ -1396,7 +1396,7 @@ public class StockUpdate
pstmt.setDouble(1,mstkQty); pstmt.setDouble(1,mstkQty);
pstmt.setTimestamp(2,this.tranDate); pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate(); pstmt.executeUpdate();
rs.close(); //rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close(); pstmt.close();
} }
}//end of tranType (L) }//end of tranType (L)
...@@ -1415,7 +1415,7 @@ public class StockUpdate ...@@ -1415,7 +1415,7 @@ public class StockUpdate
pstmt.setDouble(1,mallocQty); pstmt.setDouble(1,mallocQty);
pstmt.setTimestamp(2,this.tranDate); pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate(); pstmt.executeUpdate();
rs.close(); //rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close(); pstmt.close();
} }
}//end of tranType (A) }//end of tranType (A)
...@@ -1435,7 +1435,7 @@ public class StockUpdate ...@@ -1435,7 +1435,7 @@ public class StockUpdate
pstmt.setTimestamp(2,this.tranDate); pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
rs.close(); //rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
} }
}//end of tranType (D) }//end of tranType (D)
else if(this.tranType.equalsIgnoreCase("ID")){ else if(this.tranType.equalsIgnoreCase("ID")){
...@@ -1496,7 +1496,7 @@ public class StockUpdate ...@@ -1496,7 +1496,7 @@ public class StockUpdate
pstmt.setDouble(10,this.tareWeight); pstmt.setDouble(10,this.tareWeight);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
rs.close(); //rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
//Added by Manoj dtd 19/08/2014 to update no_art as 1 if no_art<0 //Added by Manoj dtd 19/08/2014 to update no_art as 1 if no_art<0
double stkQty=0,noArticle=0; double stkQty=0,noArticle=0;
...@@ -2702,6 +2702,7 @@ public class StockUpdate ...@@ -2702,6 +2702,7 @@ public class StockUpdate
if(rs.next()){ if(rs.next()){
keyString = rs.getString(1); keyString = rs.getString(1);
} }
rs.close(); //Pavan Rane 26jul19 [unnecessary open cursor closed]
if(keyString == null || keyString.trim().length() == 0){ if(keyString == null || keyString.trim().length() == 0){
sql = "select key_string from transetup where tran_window = 'GENERAL'"; sql = "select key_string from transetup where tran_window = 'GENERAL'";
System.out.println("SQL :"+sql); System.out.println("SQL :"+sql);
...@@ -2709,8 +2710,9 @@ public class StockUpdate ...@@ -2709,8 +2710,9 @@ public class StockUpdate
if(rs.next()){ if(rs.next()){
keyString = rs.getString(1); keyString = rs.getString(1);
} }
rs.close(); //Pavan Rane 26jul19 [unnecessary open cursor closed]
} }
String tranDate = genericUtility.getValidDateString(new java.sql.Date(this.tranDate.getTime()).toString(),genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat()); String tranDate = genericUtility.getValidDateString(new java.sql.Date(this.tranDate.getTime()).toString(),genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat());
String XMLString = ""; String XMLString = "";
XMLString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+ XMLString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+
...@@ -3405,6 +3407,8 @@ public class StockUpdate ...@@ -3405,6 +3407,8 @@ public class StockUpdate
if(rs.next()){ if(rs.next()){
stkOpt=rs.getString(1); stkOpt=rs.getString(1);
} }
rs.close(); //Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close();
} }
}catch (Exception e){ }catch (Exception e){
System.out.println("Exception in checkStkOpt "+e); System.out.println("Exception in checkStkOpt "+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