Commit 4e2cc615 authored by smane's avatar smane

Update FreightListIC.java file for changes in validation code for Freight table and load type


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94540 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c02ab0cc
...@@ -175,6 +175,17 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F ...@@ -175,6 +175,17 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
else
{
//Check Freight Charges Table should be exist in freight_charges_table Table master.
cnt= getDBRowCount(conn,"freight_charges_table","frt_chgs_table",frtCharges);
if(cnt==0)
{
errCode = "VMVLDFRTTB";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
} }
if(childNodeName.equalsIgnoreCase("load_type")) if(childNodeName.equalsIgnoreCase("load_type"))
...@@ -210,7 +221,7 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F ...@@ -210,7 +221,7 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
if(cnt==0) if(cnt==0)
{ {
//Error for Freight Charges Table does not exists in master. //Error for Freight Charges Table does not exists in master.
errCode = "VMVLDFRTTB"; errCode = "VMVLDFRTYP";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
......
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