Commit 8d346d18 authored by caluka's avatar caluka

emp_code validation tran date condition added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101702 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e60955d9
......@@ -192,14 +192,15 @@ public class EmpTravelInfoIC extends ValidatorEJB implements EmpTravelInfoICLoca
{
tranId="X";
}
count=0;
sql = " SELECT count(*) FROM EMP_TRAVEL_INFO einfo , acctprd acprd WHERE einfo.EMP_CODE= ? "+
" and einfo.tran_id<> ? "+
" and acprd.code= ? and ? between acprd.fr_date and acprd.to_date ";
" and acprd.code= ? and einfo.tran_date between acprd.fr_date and acprd.to_date ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
pstmt.setString(2, tranId);
pstmt.setString(3, currentCode);
pstmt.setTimestamp(4, tranDateTimeStmp);
//pstmt.setTimestamp(4, tranDateTimeStmp);
rs = pstmt.executeQuery();
if (rs.next())
{
......
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