Commit 43217563 authored by pshinde's avatar pshinde

changes done in Freight rate n updated in Cvs(DI3GSUN047)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94437 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9567040a
...@@ -176,6 +176,11 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -176,6 +176,11 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
{ {
cnt = rs.getInt(1); cnt = rs.getInt(1);
System.out.println("Count of loadtype: ===="+cnt); System.out.println("Count of loadtype: ===="+cnt);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
if(cnt==0) if(cnt==0)
{ {
...@@ -184,11 +189,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -184,11 +189,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
System.out.println("Freight List does not exists"); System.out.println("Freight List does not exists");
} }
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
} }
} }
...@@ -219,10 +219,13 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -219,10 +219,13 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
{ {
cnt = rs.getInt(1); cnt = rs.getInt(1);
System.out.println("Count: ===="+cnt); System.out.println("Count: ===="+cnt);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
if(cnt==0) if(cnt==0)
{ {
errCode = "VMSTAN2";//Station code doesn't exist in master errCode = "VMSTAN2";//Station code doesn't exist in master
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
...@@ -230,11 +233,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -230,11 +233,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
} }
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
} }
if(standCodeFrom!=null && standCodeTo!=null) if(standCodeFrom!=null && standCodeTo!=null)
...@@ -290,10 +288,13 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -290,10 +288,13 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
{ {
cnt = rs.getInt(1); cnt = rs.getInt(1);
System.out.println("Count: ===="+cnt); System.out.println("Count: ===="+cnt);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
if(cnt==0) if(cnt==0)
{ {
errCode = "VMSTAN2";//Station code doesn't exist in master errCode = "VMSTAN2";//Station code doesn't exist in master
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
...@@ -302,11 +303,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -302,11 +303,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
} }
} }
pstmt.close();
rs.close();
pstmt = null;
rs = null;
}
if(standCodeFrom!=null && standCodeTo!=null) if(standCodeFrom!=null && standCodeTo!=null)
{ {
...@@ -330,7 +326,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -330,7 +326,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
} }
System.out.println("standcodeToVALDATION!!!");
} }
...@@ -557,17 +552,16 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -557,17 +552,16 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
{ {
seq= rs.getInt(1); seq= rs.getInt(1);
System.out.println("Sequence getting"+seq); System.out.println("Sequence getting"+seq);
if(seq==0)
{
seq=sequence;
System.out.println("Sequence getting"+seq);
}
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(seq==0)
{
seq=sequence;
System.out.println("Sequence getting"+seq);
}
if(seq!=sequence) if(seq!=sequence)
{ {
...@@ -586,6 +580,11 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -586,6 +580,11 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
{ {
cnt=rs.getInt(1); cnt=rs.getInt(1);
System.out.println("Count of sequence: "+cnt); System.out.println("Count of sequence: "+cnt);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(cnt>0) if(cnt>0)
{ {
errCode = "VMSEQ1";//Sequence number already present..... errCode = "VMSEQ1";//Sequence number already present.....
...@@ -596,11 +595,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr ...@@ -596,11 +595,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
} }
} }
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
} }
} }
...@@ -842,7 +836,6 @@ public String itemChanged(Document dom, Document dom1, Document dom2, String obj ...@@ -842,7 +836,6 @@ public String itemChanged(Document dom, Document dom1, Document dom2, String obj
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
System.out.println("Inside IF");
frtChangeTable = rs.getString("FRT_CHGS_TABLE"); frtChangeTable = rs.getString("FRT_CHGS_TABLE");
loadType = rs.getString("LOAD_TYPE"); loadType = rs.getString("LOAD_TYPE");
genDesc = rs.getString("DESCR"); genDesc = rs.getString("DESCR");
...@@ -850,7 +843,6 @@ public String itemChanged(Document dom, Document dom1, Document dom2, String obj ...@@ -850,7 +843,6 @@ public String itemChanged(Document dom, Document dom1, Document dom2, String obj
System.out.println("loadType---"+loadType); System.out.println("loadType---"+loadType);
System.out.println("genDesc====="+genDesc); System.out.println("genDesc====="+genDesc);
} }
System.out.println("Inside OUT");
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
......
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