System.out.println("Exception in validatePatientReg .. "+e);
}
interrorCnt=jsonObject.length();
if(errorCnt>0)
{
returnjsonObject.toString();
}
return"";
}
publicStringgetStateList()
{
System.out.println("Inside getStateList .... ");
Stringsql="";
ConnDriverconnDriver=newConnDriver();
Connectionconn=null;
PreparedStatementpStmt=null;
ResultSetrs=null;
JSONObjectjsonObject=null;
JSONArrayjsonArray=newJSONArray();
try
{
System.out.println("1.........................");
conn=connDriver.getConnectDB("APPVIS");
sql="select DISTINCT(state_code),descr as state from state where count_code = 'IND' and state_code like 'IND%' and state_code is not null order by state";