Commit 70c737ae authored by sankara.rao's avatar sankara.rao

changed by sankara updated asnlotstatconf for display proper message on 19/09/13


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93631 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 40776cc5
...@@ -92,6 +92,8 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal, ...@@ -92,6 +92,8 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal,
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
HashMap tempMap = null; HashMap tempMap = null;
//changed by sankara on 16/09/13 for displaying error message.
boolean dataFlag = false;
try try
{ {
dom = genericUtility.parseString(domString); dom = genericUtility.parseString(domString);
...@@ -222,6 +224,8 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal, ...@@ -222,6 +224,8 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal,
if( rs.next() ) if( rs.next() )
{ {
//changed by sankara on 16/09/13 for displaying error message.
dataFlag = true;
lineNoCtr++; lineNoCtr++;
tranIdRel = rs.getString("tran_id"); tranIdRel = rs.getString("tran_id");
lineNoRel = rs.getString("line_no"); lineNoRel = rs.getString("line_no");
...@@ -253,6 +257,13 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal, ...@@ -253,6 +257,13 @@ public class AsnLotStatConf extends ValidatorEJB implements AsnLotStatConfLocal,
//Chnaged by Rohan on 25-07-13 for if lot staus 'R' then aquried new lock configured in disparam.end //Chnaged by Rohan on 25-07-13 for if lot staus 'R' then aquried new lock configured in disparam.end
} }
//changed by sankara on 16/09/13 for displaying error message start.
if( dataFlag == false )
{
errMsg = itmDBAccessLocal.getErrorString("","VTNODATAFD","");
return errMsg;
}
//changed by sankara on 16/09/13 for displaying error message end.
rs.close(); rs.close();
rs = null; rs = null;
pStmt.close(); pStmt.close();
......
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