Commit d15b0c43 authored by smanohar's avatar smanohar

loginEmpcode in extraparm is blank in such case emp_code taken from users table

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213894 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 72f01044
......@@ -349,12 +349,26 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
currDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
boolean isError = false ;
//added by nandkumar gadkari on 08/03/19
String indnoHdr = "",indNo = "",unitStd = "", enqNo = "";
String indnoHdr = "",indNo = "",unitStd = "", enqNo = "", userid = "";
PreparedStatement pstmt2=null;
double totAmtProj=0.0,oqty = 0.0 ,quantity = 0.0 , ordqty = 0.0 ,totOrdQty = 0.0;
try
{
loginEmpCode = validatorEJB.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
if(loginEmpCode == null || loginEmpCode.trim().length() == 0)
{
userid = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
pstmt = conn.prepareStatement("select emp_code from users where code = ?");
pstmt.setString(1, userid);
rs = pstmt.executeQuery();
if (rs.next())
{
loginEmpCode = checkNull(rs.getString("emp_code"));
}
rs.close();rs = null;
pstmt.close();pstmt = null;
}
System.out.println("pordType>>"+pordType +"confirmed"+confirmed);
sql = "Select count(distinct acct_code__cr) ,count(distinct cctr_code__cr) from porddet where purc_order = ?";
pstmt = conn.prepareStatement(sql);
......
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