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
pstmt.executeUpdate();
pstmt.close();
rs.close();
//rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
}else{
System.out.println("@V@ Not QC- ORD..........");
......@@ -1201,7 +1201,7 @@ public class StockUpdate
pstmt.executeUpdate();
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
double stkQty=0,noArticle=0;
......@@ -1396,7 +1396,7 @@ public class StockUpdate
pstmt.setDouble(1,mstkQty);
pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate();
rs.close();
//rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close();
}
}//end of tranType (L)
......@@ -1415,7 +1415,7 @@ public class StockUpdate
pstmt.setDouble(1,mallocQty);
pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate();
rs.close();
//rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close();
}
}//end of tranType (A)
......@@ -1435,7 +1435,7 @@ public class StockUpdate
pstmt.setTimestamp(2,this.tranDate);
pstmt.executeUpdate();
pstmt.close();
rs.close();
//rs.close(); Pavan Rane 26jul19 [unnecessary open cursor closed]
}
}//end of tranType (D)
else if(this.tranType.equalsIgnoreCase("ID")){
......@@ -1496,7 +1496,7 @@ public class StockUpdate
pstmt.setDouble(10,this.tareWeight);
pstmt.executeUpdate();
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
double stkQty=0,noArticle=0;
......@@ -2702,6 +2702,7 @@ public class StockUpdate
if(rs.next()){
keyString = rs.getString(1);
}
rs.close(); //Pavan Rane 26jul19 [unnecessary open cursor closed]
if(keyString == null || keyString.trim().length() == 0){
sql = "select key_string from transetup where tran_window = 'GENERAL'";
System.out.println("SQL :"+sql);
......@@ -2709,6 +2710,7 @@ public class StockUpdate
if(rs.next()){
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());
......@@ -3405,6 +3407,8 @@ public class StockUpdate
if(rs.next()){
stkOpt=rs.getString(1);
}
rs.close(); //Pavan Rane 26jul19 [unnecessary open cursor closed]
pstmt.close();
}
}catch (Exception 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