Commit 47378bf7 authored by manohar's avatar manohar

UserInfoBean set to get connection


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102359 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 91d9d9df
......@@ -52,10 +52,22 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
public void ejbPassivate() {
}*/
CommonConstants commonConstants = new CommonConstants();
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
// 08-jul-16 manoharan
public void setUserInfo(UserInfoBean userInfo)
{
this.userInfo=userInfo;
}
public UserInfoBean getUserInfo()
{
return this.userInfo;
}
@Override
public String actionHandler() throws RemoteException, ITMException {
return "";
}
// end 08-jul-16 manoharan
@Override
public String actionHandler(String actionType, String xmlString,
......@@ -178,10 +190,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver();
try
{
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn = connDriver.getConnectDB("DriverITM");
tranType = genericUtility.getColumnValue("tran_type", dom1);
tranIdReq = genericUtility.getColumnValue("tran_id__req", dom1);
// System.out.println("tranType before null :::: " + tranType + "tranIdReq :::: " + tranIdReq); //COMMENTED BY ALKA 19/07/07 AS NOT REQUIRED
......@@ -304,10 +313,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver();
MfgCommon mfgCommon = new MfgCommon();
try {
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn = connDriver.getConnectDB("DriverITM");
effDate = genericUtility.getColumnValue("eff_date", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1);
......@@ -773,10 +779,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try {
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn = connDriver.getConnectDB("DriverITM");
woIss = genericUtility.getColumnValue("tran_id", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1);
......@@ -1061,10 +1064,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try
{
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn = connDriver.getConnectDB("DriverITM");
System.out.println("[Allocating .....]");
......@@ -2768,10 +2768,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try
{
ConnDriver connDriver = new ConnDriver();
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
......
......@@ -20,13 +20,13 @@ public class WoStockBean
public String itemCode = "",descr = "",workOrder = "",allockQty = "",allockQtyL="";
public double stkQty = 0.0,nonStkQty = 0.0, qtyPer = 0;
public double stkQtyL=0.0,nonStkQtyL=0.0;
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
// 08-jul-16 manoharan
public void setWorkOrder(String workOrderJsp)
{
this.workOrder = workOrderJsp;
}
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
public void setUserInfo(UserInfoBean userInfo)
{
this.userInfo=userInfo;
......@@ -35,12 +35,7 @@ public class WoStockBean
{
return this.userInfo;
}
//added by Dadaso pawar [End] [MF3GSUN023]
/*public void setWoQty(String woQtyJsp)
{
this.woQty = woQtyJsp;
}
*/
// end 08-jul-16 manoharan
public ArrayList getDetails() throws Exception
{
......@@ -56,6 +51,7 @@ public class WoStockBean
appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
homeObj = (WOrderIssueActLocal)ctx.lookup("ibase/WOrderIssueAct/local"); // for BaseInfo ejb3
homeObj.setUserInfo(userInfo); // 08-jul-16 manoharan
stkWoRetArr = homeObj.getDetails(this.workOrder);
if(stkWoRetArr.size() > 0)
{
......
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