Commit 10968d80 authored by pshinde's avatar pshinde

Changes done in FreightRateIC( DI3GSUN047)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94424 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9d3034de
......@@ -227,13 +227,15 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Station code doesn't exist in master!!");
break;
}
}
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
}
if(standCodeFrom!=null && standCodeTo!=null)
{
......@@ -249,10 +251,14 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
cnt = rs.getInt(1);
System.out.println("Count: ===="+cnt);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
}
}
System.out.println("standcodeFrom VALDATION!!!");
}
}
//stand_code_to
......@@ -265,8 +271,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
System.out.println(" testing :standCodeFrom =" + standCodeFrom);
System.out.println(" testing :standCodeTo =" + standCodeTo);
if (standCodeTo == null || standCodeTo.trim().length() == 0)
{
errCode = "VTSTAN3 ";//STATION CODE To CAN NOT BE NULL
......@@ -294,12 +298,14 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Station code doesn't exist in master!!");
break;
}
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
}
if(standCodeFrom!=null && standCodeTo!=null)
......@@ -316,7 +322,12 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
cnt = rs.getInt(1);
System.out.println("Count: ===="+cnt);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
}
}
System.out.println("standcodeToVALDATION!!!");
......@@ -334,7 +345,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Basic Freight should be greater than Zero.!!!");
break;
}
System.out.println("basic freight VALDATION!!!");
}
......@@ -344,14 +354,12 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
transitType = checkNull(genericUtility.getColumnValue("transit_type",dom));
System.out.println("tetsting :transitType =" + transitType);
if (transitType== null||transitType.trim().length()==0)
{
errCode = "VMBSFRT";//Basic Freight should be greater than Zero.;.
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Basic Freight should be greater than Zero..!!");
break;
}
System.out.println("transit_type VALDATION!!!");
}
......@@ -361,14 +369,12 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
stdPickUp = checkDoubleNull(genericUtility.getColumnValue("std_pick_up",dom));
System.out.println(" testing :sequence =" + stdPickUp);
if (stdPickUp<=0)
{
errCode = "VMSTDPKT";//Standard Pick up time should be greater than Zero..
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Standard Pick up time should be greater than Zero..!!");
break;
}
}
//std_transit_time
......@@ -385,7 +391,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Standard Transit Time should be greater than Zero...!!");
break;
}
}
......@@ -402,7 +407,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Transporter Mode cannot be empty...!!");
break;
}
}
......@@ -425,7 +429,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Minimum Weight cannot be empty");
break;
}
}
}
......@@ -449,7 +452,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("MaximumW Weight cannot be empty.");
break;
}
else if (maxWeight<minWeight)
{
......@@ -457,8 +459,7 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("MaximumW Weight should be greater than min weight");
break;
}
}
}
......@@ -490,7 +491,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Charge Code should not be Empty....!!");
break;
}
}
//chargeMode
......@@ -505,7 +505,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Charge Mode should not be Empty.....!!");
break;
}
}
//amount
......@@ -519,7 +518,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Amount should be greater than Zero...!!");
break;
}
}
//sequence
......@@ -534,7 +532,6 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Sequence should not be Zero.....!!");
break;
}
else
{
......@@ -566,12 +563,11 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
System.out.println("Sequence getting"+seq);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(seq!=sequence)
{
......@@ -596,14 +592,14 @@ public class FreightRateIC extends ValidatorEJB implements FreightRateICLocal,Fr
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Sequence number already present......!!");
break;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
}
......
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