Commit 4b06b1d8 authored by caluka's avatar caluka

change update visa,ticket status validation For Add Travel,Visa Cancel Button...

change update visa,ticket status validation  For Add Travel,Visa Cancel Button in StarClub Employee details.[W14BSUN003]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95067 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b8fb13f2
......@@ -81,10 +81,9 @@ public class EmpTravelInfoTicket extends ActionHandlerEJB implements EmpInfoSubm
return retString;
}
sql = " select count(*) from emp_travel_info where chg_user=? and tran_id = ? and (case when confirmed is null then 'N' else confirmed end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, chgUser);
pstmt.setString(2, tranId);
sql = " select count(*) from emp_travel_info where tran_id = ? and (case when confirmed is null then 'N' else confirmed end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
......@@ -99,10 +98,9 @@ public class EmpTravelInfoTicket extends ActionHandlerEJB implements EmpInfoSubm
return retString;
}
else
{ sql = " select count(*) from emp_travel_info where chg_user=? and tran_id = ? and (case when ticket_status is null then 'N' else ticket_status end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, chgUser);
pstmt.setString(2, tranId);
{ sql = " select count(*) from emp_travel_info where tran_id = ? and (case when ticket_status is null then 'N' else ticket_status end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
......
......@@ -81,10 +81,9 @@ public class EmpTravelInfoVisa extends ActionHandlerEJB implements EmpInfoSubmit
return retString;
}
sql = " select count(*) from emp_travel_info where chg_user=? and tran_id = ? and (case when confirmed is null then 'N' else confirmed end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, chgUser);
pstmt.setString(2, tranId);
sql = " select count(*) from emp_travel_info where tran_id = ? and (case when confirmed is null then 'N' else confirmed end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
......@@ -99,10 +98,9 @@ public class EmpTravelInfoVisa extends ActionHandlerEJB implements EmpInfoSubmit
return retString;
}
else
{ sql = " select count(*) from emp_travel_info where chg_user=? and tran_id = ? and (case when visa_status is null then 'N' else visa_status end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, chgUser);
pstmt.setString(2, tranId);
{ sql = " select count(*) from emp_travel_info where tran_id = ? and (case when visa_status is null then 'N' else visa_status end = 'Y') ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
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