Commit 67ab703b authored by kmandhre's avatar kmandhre

source code merge mail by Sumit Sarkar


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92490 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b35f3790
......@@ -77,6 +77,7 @@ public class DistributionRoute extends ValidatorEJB implements DistributionRoute
String userId = "";
String sql = "";
String errorType = "";
String minCase = "", maxCase = "";//Changed by sumit on 02/01/13
int count = 0;
int ctr=0;
int currentFormNo = 0;
......@@ -475,6 +476,28 @@ public class DistributionRoute extends ValidatorEJB implements DistributionRoute
errFields.add(childNodeName.toLowerCase());
}
}
//Changed by sumit on 02/01/13 adding validation for max case and min case start.
else if(childNodeName.equalsIgnoreCase("min_case"))
{
minCase = checkNull(genericUtility.getColumnValue("min_case", dom));
if(minCase == null || minCase.trim().length() == 0)
{
errCode = "VTMINCASE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if(childNodeName.equalsIgnoreCase("max_case"))
{
maxCase = checkNull(genericUtility.getColumnValue("max_case", dom));
if(maxCase == null || maxCase.trim().length() == 0)
{
errCode = "VTMAXCASE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
//Changed by sumit on 02/01/13 adding validation for max case and min case end.
/*else if(childNodeName.equalsIgnoreCase("state_code__fr"))
{
stateCodeFrom = checkNull(genericUtility.getColumnValue("state_code__fr", dom));
......
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