Commit 2b178062 authored by manohar's avatar manohar

item mis spelled as iten corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91216 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 32b7f269
...@@ -596,7 +596,7 @@ public class CustStock extends ValidatorEJB //implements SessionBean ...@@ -596,7 +596,7 @@ public class CustStock extends ValidatorEJB //implements SessionBean
checkNextCol = false;*/ checkNextCol = false;*/
errString = itmDBAccess.getErrorString("item_code",errCode,userId,null,conn); errString = itmDBAccess.getErrorString("item_code",errCode,userId,null,conn);
// 11/09/09 manoharan to include the item/site code in the log file generated // 11/09/09 manoharan to include the item/site code in the log file generated
sqlCnt = "SELECT DESCR FROM ITEN WHERE ITEM_CODE = '" + columnValue + "'"; sqlCnt = "SELECT DESCR FROM ITEM WHERE ITEM_CODE = '" + columnValue + "'";
stmt = conn.createStatement(); stmt = conn.createStatement();
rs = stmt.executeQuery(sqlCnt); rs = stmt.executeQuery(sqlCnt);
if (rs.next()) if (rs.next())
......
...@@ -127,6 +127,11 @@ public class CustStockItem extends ValidatorEJB //implements SessionBean ...@@ -127,6 +127,11 @@ public class CustStockItem extends ValidatorEJB //implements SessionBean
java.sql.Date restUpto1 = null; java.sql.Date restUpto1 = null;
java.util.Date restUpto2 = null; java.util.Date restUpto2 = null;
SimpleDateFormat sdfFormat=null; SimpleDateFormat sdfFormat=null;
// 11/09/09 manoharan
String begPart = null;
String endPart = null;
String itemDescr = null;
// end 11/09/09 manoharan
//ITMDBAccessHome itmDBAccessHome = null; //ITMDBAccessHome itmDBAccessHome = null;
//ITMDBAccessLocal itmDBAccess = null; //ITMDBAccessLocal itmDBAccess = null;
...@@ -720,6 +725,32 @@ public class CustStockItem extends ValidatorEJB //implements SessionBean ...@@ -720,6 +725,32 @@ public class CustStockItem extends ValidatorEJB //implements SessionBean
/*errString = getErrorString("item_code",errCode,userId); /*errString = getErrorString("item_code",errCode,userId);
checkNextCol = false;*/ checkNextCol = false;*/
errString = getErrorString("item_code",errCode,userId);//,null,conn); errString = getErrorString("item_code",errCode,userId);//,null,conn);
// 11/09/09 manoharan to include the item/site code in the log file generated
sqlCnt = "SELECT DESCR FROM ITEM WHERE ITEM_CODE = '" + columnValue + "'";
stmt = conn.prepareStatement( sqlCnt );
rs = stmt.executeQuery();
if (rs.next())
{
itemDescr = rs.getString(1);
}
rs.close();
rs = null;
stmt.close();
stmt = null;
if (itemDescr == null)
{
itemDescr = " ";
}
else
{
itemDescr = " - " + itemDescr;
}
begPart = errString.substring( 0, errString.indexOf("<trace>") + 7 );
endPart = errString.substring( errString.indexOf("</trace>"));
errString = begPart + " Invalid Item : " + columnValue.toString() + itemDescr + " for Site_code : "+siteCode + " " + endPart;
begPart =null;
endPart =null;
// end 11/09/09 manoharan
break; break;
} }
} }
......
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