Commit e2f487c8 authored by kmandhre's avatar kmandhre

bug fixing regarding emp_code set


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94379 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ff13fc69
...@@ -531,6 +531,30 @@ public class PhyItemVerifyIC extends ValidatorEJB implements PhyItemVerifyICLoca ...@@ -531,6 +531,30 @@ public class PhyItemVerifyIC extends ValidatorEJB implements PhyItemVerifyICLoca
System.out.println("totHdays---"+totHdays); System.out.println("totHdays---"+totHdays);
System.out.println("days-----"+days); System.out.println("days-----"+days);
date2.setTime(date1.getTime() - (totHdays*(1000 * 60 * 60 * 24))); date2.setTime(date1.getTime() - (totHdays*(1000 * 60 * 60 * 24)));
//added by kunal on 15/march/14
loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ));
System.out.println("********* login code ["+loginCode+"]");
sql = "SELECT EMP_CODE FROM USERS WHERE CODE = ?";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1, loginCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
empCode = rs.getString("EMP_CODE");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
//added by kunal on 15/march/14 end
switch(currentFormNo) switch(currentFormNo)
{ {
...@@ -543,26 +567,7 @@ public class PhyItemVerifyIC extends ValidatorEJB implements PhyItemVerifyICLoca ...@@ -543,26 +567,7 @@ public class PhyItemVerifyIC extends ValidatorEJB implements PhyItemVerifyICLoca
currDate = new java.util.Date(); currDate = new java.util.Date();
sdf = new SimpleDateFormat(applDateFormat); sdf = new SimpleDateFormat(applDateFormat);
currDateStr = sdf.format(currDate); currDateStr = sdf.format(currDate);
loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ));
System.out.println("********* login code ["+loginCode+"]");
sql = "SELECT EMP_CODE FROM USERS WHERE CODE = ?";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1, loginCode);
rs = pstmt.executeQuery();
if( rs.next() )
{
empCode = rs.getString("EMP_CODE");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("Checking for location Stock availability isStock---"+isStock); System.out.println("Checking for location Stock availability isStock---"+isStock);
......
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