Commit 41df9e4a authored by manohar's avatar manohar

DI89SUN211 to display the item_code in the trace of ssd loading


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91163 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 84db620e
......@@ -89,6 +89,11 @@ public class CustStock extends ValidatorEJB //implements SessionBean
java.sql.Date restUpto1 = null;
java.util.Date restUpto2 = 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;
......@@ -590,6 +595,32 @@ public class CustStock extends ValidatorEJB //implements SessionBean
/*errString = getErrorString("item_code",errCode,userId);
checkNextCol = false;*/
errString = itmDBAccess.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 ITEN WHERE ITEM_CODE = '" + columnValue + "'";
stmt = conn.createStatement();
rs = stmt.executeQuery(sqlCnt);
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;
}
}
......
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