Commit be024963 authored by caluka's avatar caluka

Updated Java code for Roadpermit Master [DI3HSUN004]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94073 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fd796216
...@@ -201,9 +201,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -201,9 +201,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
} }
}else }else
if(childNodeName.equalsIgnoreCase("site_code_fr")) if(childNodeName.equalsIgnoreCase("site_code__fr"))
{ {
sitecodefrom = checkNull(genericUtility.getColumnValue("site_code_fr", dom)); sitecodefrom = checkNull(genericUtility.getColumnValue("site_code__fr", dom));
stancode = checkNull(genericUtility.getColumnValue("stan_code", dom)); stancode = checkNull(genericUtility.getColumnValue("stan_code", dom));
if (sitecodefrom == null || sitecodefrom.trim().length() == 0 ) if (sitecodefrom == null || sitecodefrom.trim().length() == 0 )
{ {
...@@ -219,9 +219,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -219,9 +219,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
}else }else
if(childNodeName.equalsIgnoreCase("site_code_to")) if(childNodeName.equalsIgnoreCase("site_code__to"))
{ {
sitecodeto = checkNull(genericUtility.getColumnValue("site_code_to", dom)); sitecodeto = checkNull(genericUtility.getColumnValue("site_code__to", dom));
if (sitecodeto == null || sitecodeto.trim().length() == 0 ) if (sitecodeto == null || sitecodeto.trim().length() == 0 )
{ {
errCode = "VMSITECDTO"; errCode = "VMSITECDTO";
...@@ -236,10 +236,10 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -236,10 +236,10 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
}else }else
if(childNodeName.equalsIgnoreCase("state_code_fr")) if(childNodeName.equalsIgnoreCase("state_code__fr"))
{ {
statecodefrom = genericUtility.getColumnValue("state_code_fr", dom); statecodefrom = genericUtility.getColumnValue("state_code__fr", dom);
sitecodefrom = checkNull(genericUtility.getColumnValue("site_code_fr", dom)); sitecodefrom = checkNull(genericUtility.getColumnValue("site_code__fr", dom));
if (statecodefrom == null || statecodefrom.trim().length() == 0 ) if (statecodefrom == null || statecodefrom.trim().length() == 0 )
{ {
errCode = "VMSTATCDFR "; errCode = "VMSTATCDFR ";
...@@ -277,10 +277,10 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -277,10 +277,10 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
} }
} }
} }
}else if(childNodeName.equalsIgnoreCase("state_code_to")) }else if(childNodeName.equalsIgnoreCase("state_code__to"))
{ {
statecodeto = genericUtility.getColumnValue("state_code_to", dom); statecodeto = genericUtility.getColumnValue("state_code__to", dom);
sitecodeto = checkNull(genericUtility.getColumnValue("site_code_to", dom)); sitecodeto = checkNull(genericUtility.getColumnValue("site_code__to", dom));
if (statecodeto == null || statecodeto.trim().length() == 0 ) if (statecodeto == null || statecodeto.trim().length() == 0 )
{ {
errCode = "VMSTATCDTO "; errCode = "VMSTATCDTO ";
...@@ -322,7 +322,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -322,7 +322,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
else if(childNodeName.equalsIgnoreCase("stan_code__from")) else if(childNodeName.equalsIgnoreCase("stan_code__from"))
{ {
stationcodefrom = genericUtility.getColumnValue("stan_code__from", dom); stationcodefrom = genericUtility.getColumnValue("stan_code__from", dom);
statecodefrom = checkNull(genericUtility.getColumnValue("state_code_fr", dom)); statecodefrom = checkNull(genericUtility.getColumnValue("state_code__fr", dom));
if(stationcodefrom != null) if(stationcodefrom != null)
{ System.out.println("stationcodefrom>>>>>>["+stationcodefrom+"]"); { System.out.println("stationcodefrom>>>>>>["+stationcodefrom+"]");
System.out.println("stationcodefrom length["+stationcodefrom.length()+"]"); System.out.println("stationcodefrom length["+stationcodefrom.length()+"]");
...@@ -370,7 +370,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -370,7 +370,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
if(childNodeName.equalsIgnoreCase("stan_code__to")) if(childNodeName.equalsIgnoreCase("stan_code__to"))
{ {
stationcodeto = genericUtility.getColumnValue("stan_code__to", dom); stationcodeto = genericUtility.getColumnValue("stan_code__to", dom);
statecodeto = checkNull(genericUtility.getColumnValue("state_code_to", dom)); statecodeto = checkNull(genericUtility.getColumnValue("state_code__to", dom));
if(stationcodeto != null) if(stationcodeto != null)
{ {
System.out.println("stationcodeTO>>>>>>>>>>["+statecodeto+"]"); System.out.println("stationcodeTO>>>>>>>>>>["+statecodeto+"]");
...@@ -642,9 +642,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -642,9 +642,9 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
} }
else else
if(currentColumn.trim().equalsIgnoreCase("site_code_fr")) if(currentColumn.trim().equalsIgnoreCase("site_code__fr"))
{ {
sitecodefrom = checkNull(genericUtility.getColumnValue("site_code_fr", dom)); sitecodefrom = checkNull(genericUtility.getColumnValue("site_code__fr", dom));
stationfrom = checkNull(genericUtility.getColumnValue("stan_code__from", dom)); stationfrom = checkNull(genericUtility.getColumnValue("stan_code__from", dom));
sql = " select state_code from site where site_code = ?"; sql = " select state_code from site where site_code = ?";
...@@ -661,13 +661,13 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -661,13 +661,13 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("statecodefrdesc>>>>>>>"+statecodefrdesc); System.out.println("statecodefrdesc>>>>>>>"+statecodefrdesc);
valueXmlString.append("<state_code_fr>").append("<![CDATA[" + statecodefrdesc +"]]>").append("</state_code_fr>"); valueXmlString.append("<state_code__fr>").append("<![CDATA[" + statecodefrdesc +"]]>").append("</state_code__fr>");
}else }else
if(currentColumn.trim().equalsIgnoreCase("site_code_to")) if(currentColumn.trim().equalsIgnoreCase("site_code__to"))
{ {
sitecodeto = checkNull(genericUtility.getColumnValue("site_code_to", dom)); sitecodeto = checkNull(genericUtility.getColumnValue("site_code__to", dom));
sql = " select state_code from site where site_code = ?"; sql = " select state_code from site where site_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sitecodeto); pstmt.setString(1,sitecodeto);
...@@ -684,7 +684,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa ...@@ -684,7 +684,7 @@ public class RoadPermitIC extends ValidatorEJB implements RoadPermitICLocal, Roa
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("statecodetodesc>>>>>>>>>"+statecodetodesc); System.out.println("statecodetodesc>>>>>>>>>"+statecodetodesc);
valueXmlString.append("<state_code_to>").append("<![CDATA[" + statecodetodesc +"]]>").append("</state_code_to>"); valueXmlString.append("<state_code__to>").append("<![CDATA[" + statecodetodesc +"]]>").append("</state_code__to>");
} }
......
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