Commit 215e4555 authored by nkhan's avatar nkhan

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103524 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1a3c172f
...@@ -133,6 +133,11 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust ...@@ -133,6 +133,11 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust
{ {
count = rs.getInt(1); count = rs.getInt(1);
} }
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(count == 0) if(count == 0)
{ {
errCode = "VTITEM1"; errCode = "VTITEM1";
...@@ -167,10 +172,7 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust ...@@ -167,10 +172,7 @@ public class CustomerItem extends ValidatorEJB implements CustomerItemLocal,Cust
} }
} }
// Changed By Nasruddin [9/SEP/16] End // Changed By Nasruddin [9/SEP/16] End
rs.close();
rs = null;
pstmt.close();
pstmt = null;
} }
else if(childNodeName.equalsIgnoreCase("unit")) else if(childNodeName.equalsIgnoreCase("unit"))
{ {
......
...@@ -101,8 +101,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It ...@@ -101,8 +101,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It
{ {
itemSer = genericUtility.getColumnValue("item_ser", dom); itemSer = genericUtility.getColumnValue("item_ser", dom);
//if(itemSer != null && itemSer.trim().length() > 0) if(itemSer != null && itemSer.trim().length() > 0)
//{ {
itemSerOld = genericUtility.getColumnValue("item_ser__old", dom); itemSerOld = genericUtility.getColumnValue("item_ser__old", dom);
sql = "select count(*) from itemser where item_ser = ?"; sql = "select count(*) from itemser where item_ser = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -129,7 +129,7 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It ...@@ -129,7 +129,7 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
//} }
} }
else if(childNodeName.equalsIgnoreCase("eff_date")) else if(childNodeName.equalsIgnoreCase("eff_date"))
{ {
...@@ -145,6 +145,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It ...@@ -145,6 +145,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It
maxDate = getDateValue(rs.getDate("maxdate")); maxDate = getDateValue(rs.getDate("maxdate"));
System.out.println("Effective Date :"+effPdate); System.out.println("Effective Date :"+effPdate);
System.out.println("Max Date :"+maxDate); System.out.println("Max Date :"+maxDate);
if( effDate != null && maxDate != null )//Changed By Nasruddin 29-SEp-16
{
if( effPdate.before(maxDate)) if( effPdate.before(maxDate))
{ {
errCode = "VTLVECD1"; errCode = "VTLVECD1";
...@@ -152,6 +154,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It ...@@ -152,6 +154,8 @@ public class ItemSerChange extends ValidatorEJB implements ItemSerChangeLocal,It
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
}
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
......
...@@ -174,7 +174,7 @@ public class UnitConvIC extends ValidatorEJB implements UnitConvICLocal,UnitConv ...@@ -174,7 +174,7 @@ public class UnitConvIC extends ValidatorEJB implements UnitConvICLocal,UnitConv
if("A".equals(editFlag)) if("A".equals(editFlag))
{ {
itemCode = genericUtility.getColumnValue("item_code", dom); itemCode = genericUtility.getColumnValue("item_code", dom);
sql ="SELECT COUNT(1) FROM UOMCONV WHERE UNIT__FR = ? AND UNIT__TO = ? AND ITEM_CODE = ?;"; sql ="SELECT COUNT(1) FROM UOMCONV WHERE UNIT__FR = ? AND UNIT__TO = ? AND ITEM_CODE = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, unitFr); pstmt.setString(1, unitFr);
pstmt.setString(2, unitTo); pstmt.setString(2, unitTo);
......
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