Commit c1ab71ab authored by ngadkari's avatar ngadkari

added validation of opting site

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214906 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 903190f0
...@@ -394,6 +394,38 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc ...@@ -394,6 +394,38 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
RCM_DATA_VOUCH = distCommon.getDisparams("999999", "RCM_DATA_VOUCH", connGST); RCM_DATA_VOUCH = distCommon.getDisparams("999999", "RCM_DATA_VOUCH", connGST);
//added by nandkumar gadkari on 10/01/19-----------------start-----------------
sql="SELECT COUNT(1) AS CNT FROM SITEREGNO WHERE REG_NO= ? AND ref_code='OPTNG_SITE' ";
pstmt = connGST.prepareStatement(sql);
pstmt.setString(1, sitecode);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCnt = rs.getInt("CNT");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
System.out.println("sitecnt=::"+siteCnt);
if (siteCnt == 0)
{
System.out.println("OPTNG_SITE is not define in dite reg no ");
retString = itmDBAccessEJB.getErrorString("","VTOPTSITE","","",connGST);
return retString;
}
//added by nandkumar gadkari on 10/01/19---------------end-----------
if ("S".equalsIgnoreCase(type)) if ("S".equalsIgnoreCase(type))
{ {
//modified by kaustubh on 18-07-2017 to resolve missing expression issue start //modified by kaustubh on 18-07-2017 to resolve missing expression issue start
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