Commit 13b0172a authored by smane's avatar smane

FreightListIC.java file updated by sagar changes made in getGenCodeDescr method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94395 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 35ec4e76
......@@ -124,17 +124,19 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
}
else
{
cnt= getDBRowCount(conn,"freight_list","frt_list",frtList.trim());
System.out.println(">>>>>frtList Count"+cnt);
if(cnt > 0)
{
//Error for.. Duplicate Freight List
errCode = "VMDUPFRTLT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
System.out.println(">>>>>frtList editFlag:"+editFlag);
if("A".equalsIgnoreCase(editFlag))
{
cnt= getDBRowCount(conn,"freight_list","frt_list",frtList.trim());
System.out.println(">>>>>frtList Count"+cnt);
if(cnt > 0)
{
//Error for.. Duplicate Freight List
errCode = "VMDUPFRTLT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
}
......@@ -644,9 +646,9 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
PreparedStatement pstmt=null;
ResultSet rs=null;
try
{
{
System.out.println(">>>>Check for gencode W_FRT_LIST:"+fieldVal);
sql="select descr from gencodes where MOD_NAME = ? and fld_name = ? and fld_value = ?";
sql="select descr from gencodes where MOD_NAME = ? and fld_name = ? and trim(fld_value) = trim(?)";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, "W_FRT_LIST");
pstmt.setString(2, fieldName);
......@@ -664,7 +666,7 @@ public class FreightListIC extends ValidatorEJB implements FreightListICLocal, F
if(descr==null || descr.trim().length() == 0 )
{
System.out.println(">>>>Check for gencode X:"+fieldVal);
sql="select descr from gencodes where MOD_NAME = ? and fld_name = ? and fld_value = ?";
sql="select descr from gencodes where MOD_NAME = ? and fld_name = ? and trim(fld_value) = trim(?)";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, "X");
pstmt.setString(2, fieldName);
......
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