Commit a5f99958 authored by ysawant's avatar ysawant

Changes in Tour Approve component

TourApprove.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216856 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a6101725
...@@ -182,17 +182,32 @@ public class TourApprove extends ActionHandlerEJB implements TourApproveLocal,T ...@@ -182,17 +182,32 @@ public class TourApprove extends ActionHandlerEJB implements TourApproveLocal,T
ldTo = tdate; ldTo = tdate;
} }
System.out.println("mdate ---->"+mdate);
System.out.println("fdate -->"+fdate);
System.out.println("ldTo ---->"+ldTo);
System.out.println("tdate ---->"+tdate);
lcNoDays = utilMethod.DaysAfter(mdate, ldTo) + 1; lcNoDays = utilMethod.DaysAfter(mdate, ldTo) + 1;
if((mdate.equals(fdate)) && ("B".equalsIgnoreCase(lsTourStarts))); System.out.println("lcNoDays -->"+lcNoDays);
System.out.println("lsTourStarts -->"+lsTourStarts);
System.out.println("lsTourEnds -->"+lsTourEnds);
if(mdate.equals(fdate) && "B".equalsIgnoreCase(lsTourStarts))
{ {
System.out.println(":::::if(lsTourStarts = B)::::");
lcNoDays = lcNoDays - 0.5; lcNoDays = lcNoDays - 0.5;
System.out.println("lcNoDays ======"+lcNoDays);
} }
if((ldTo.equals(tdate)) && ("B".equalsIgnoreCase(lsTourEnds))); if(ldTo.equals(tdate) && "B".equalsIgnoreCase(lsTourEnds))
{ {
System.out.println(":::::if(lsTourEnds = B)::::");
lcNoDays = lcNoDays - 0.5; lcNoDays = lcNoDays - 0.5;
System.out.println("lcNoDays ======"+lcNoDays);
} }
System.out.println("Final Days --->"+lcNoDays);
sql = "insert into tour_summary (emp_code, fr_date, to_date, no_days, prd_code, chg_date, chg_user, chg_term)" sql = "insert into tour_summary (emp_code, fr_date, to_date, no_days, prd_code, chg_date, chg_user, chg_term)"
+" values ( ? , ? , ? , ? , ? , ? , ? , ?)"; +" values ( ? , ? , ? , ? , ? , ? , ? , ?)";
......
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