Commit d5c7a25c authored by mjadhav's avatar mjadhav

add xtraparam for chg_user


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97855 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 18042065
...@@ -74,7 +74,7 @@ public class MilestonePayGen ...@@ -74,7 +74,7 @@ public class MilestonePayGen
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
String purcOrder ="",tranIdForVoucher="",relAgnstTerm="",lineNoTerm="", lineNo ="",type ="",relAgnst ="",amtType ="",relAmt ="",relAfter ="",retString1=""; String purcOrder ="",tranIdForVoucher="",relAgnstTerm="",lineNoTerm="", lineNo ="",type ="",relAgnst ="",amtType ="",relAmt ="",relAfter ="",retString1="";
String vouchCreated ="",taskCode ="",dueDate ="",adjMethod ="",acctCode ="",cctrCode ="",taxClass =""; String vouchCreated ="",taskCode ="",dueDate ="",adjMethod ="",acctCode ="",cctrCode ="",taxClass ="";
String taxChap ="",taxEnv ="",retentionPerc ="",siteCodeAdv ="",adjPerc ="",processDate="",resultString=""; String taxChap ="",taxEnv ="",retentionPerc ="",siteCodeAdv ="",adjPerc ="",processDate="",resultString="",chgUser="",chgTerm="";
boolean issError = false; boolean issError = false;
String task[] = null; String task[] = null;
...@@ -240,6 +240,25 @@ public class MilestonePayGen ...@@ -240,6 +240,25 @@ public class MilestonePayGen
System.out.println("taskCode :"+taskCode); System.out.println("taskCode :"+taskCode);
System.out.println("relAgnstTerm :"+relAgnstTerm); System.out.println("relAgnstTerm :"+relAgnstTerm);
System.out.println("lineNoTerm :"+lineNoTerm); System.out.println("lineNoTerm :"+lineNoTerm);
chgUser=(String) drcrMap.get("chg_user");
chgTerm=(String) drcrMap.get("chg_term");
System.out.println("chgUser :"+chgUser);
ibase.utility.UserInfoBean userInfo = new ibase.utility.UserInfoBean();
System.out.println("userInfo.getEmpCode() :"+userInfo.getEmpCode());
//xtraParams = "loginEmpCode="+userInfo.getEmpCode()+"~~termId="+userInfo.getRemoteHost()+"~~loginSiteCode="+loginSiteCode;
xtraParams="loginEmpCode="+userInfo.getEmpCode()+"~~loginCode="+chgUser+"~~termId="+chgTerm+"~~loginSiteCode="+siteCodeAdv;
//ibase.utility.UserInfoBean userInfo = new ibase.utility.UserInfoBean();
//userInfo.setLoginCode(chgUser);
//userInfo.setRemoteHost(chgTerm);
System.out.println("xtraParams @@@@"+xtraParams);
errString = createVouc11.createPoVoucher(purcOrder,xtraParams,conn,"PR", 0,today ,taskCode,relAgnst,lineNo); errString = createVouc11.createPoVoucher(purcOrder,xtraParams,conn,"PR", 0,today ,taskCode,relAgnst,lineNo);
...@@ -348,10 +367,12 @@ public class MilestonePayGen ...@@ -348,10 +367,12 @@ public class MilestonePayGen
{ {
System.out.println("The SQLException occurs in MilestonePayGen :"+sqx); System.out.println("The SQLException occurs in MilestonePayGen :"+sqx);
sqx.printStackTrace(); sqx.printStackTrace();
throw new ITMException(sqx); throw new ITMException(sqx);
} }
catch(Exception e) catch(Exception e)
{ {
System.out.println("The Exception occurs in MilestonePayGen : "+e); System.out.println("The Exception occurs in MilestonePayGen : "+e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
...@@ -951,6 +972,60 @@ public class MilestonePayGen ...@@ -951,6 +972,60 @@ public class MilestonePayGen
/*
private String saveData(String siteCode,String xmlString,String xtraParams, Connection conn) throws ITMException
{
System.out.println("saving data...........");
InitialContext ctx = null;
String retString = null;
MasterStatefulLocal masterStateful = null; // for ejb3
ibase.utility.UserInfoBean userInfo;
String chgUser="",chgTerm="";
try
{
System.out.println("saveData@@@@@@");
userInfo = new ibase.utility.UserInfoBean();
chgUser = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgUser");
chgTerm = e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
userInfo.setLoginCode(chgUser);
userInfo.setRemoteHost(chgTerm);
System.out.println("chgUser :"+chgUser);
System.out.println("chgTerm :"+chgTerm);
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
System.out.println("-----------masterStateful------- " + masterStateful);
String [] authencate = new String[2];
authencate[0] = "";
authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString + "]");
//retString = masterStateful.processRequest(authencate, siteCode, true, xmlString,true,conn);
retString = masterStateful.processRequest(userInfo,xmlString,true,conn);
}
catch(ITMException itme)
{
System.out.println("ITMException :CreateDistOrder :saveData :==>");
throw itme;
}
catch(Exception e)
{
e.printStackTrace();
System.out.println("Exception :CreateDistOrder :saveData :==>");
throw new ITMException(e);
}
return retString;
}
*/
public String confirmTranscation(String businessObj, String tranIdFr,String xtraParams, Connection conn) throws ITMException public String confirmTranscation(String businessObj, String tranIdFr,String xtraParams, Connection conn) throws ITMException
{ {
String methodName = ""; String methodName = "";
......
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