Commit c30d2abb authored by caluka's avatar caluka

Reference number blank then return error message


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98686 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 177910b9
...@@ -66,6 +66,8 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf ...@@ -66,6 +66,8 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
custCode = rs.getString("cust_code"); custCode = rs.getString("cust_code");
rfDate = rs.getTimestamp("ref_date"); rfDate = rs.getTimestamp("ref_date");
} }
System.out.println("refNo>>>>>>>>"+refNo);
System.out.println("rfDate>>>>>>>>"+rfDate);
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
...@@ -75,9 +77,11 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf ...@@ -75,9 +77,11 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
if (refNo == null || refNo.trim().length() == 0) if (refNo == null || refNo.trim().length() == 0)
{ {
errString = itmDBAccessLocal.getErrorString("", "VTNULREFNO", ""); errString = itmDBAccessLocal.getErrorString("", "VTNULREFNO", "");
return errString;
}else if (rfDate == null) }else if (rfDate == null)
{ {
errString = itmDBAccessLocal.getErrorString("", "VTNULREFDT", ""); errString = itmDBAccessLocal.getErrorString("", "VTNULREFDT", "");
return errString;
} else } else
{ {
sql = " select count(*) as cnt from receipt_form where site_code = ? and bank_code=? and ref_no=? "; sql = " select count(*) as cnt from receipt_form where site_code = ? and bank_code=? and ref_no=? ";
......
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