Commit 2a24ba2b authored by cpatil's avatar cpatil

Change genericUtility to E12GenericUtility


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101108 ce508802-f39f-4f6c-b175-0d175dae99d5
parent aea7a36d
......@@ -25,13 +25,14 @@ import javax.naming.InitialContext;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
//import ibase.webitm.ejb.mfg.adv.BOMStock.BOMStockDtlParams;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.ejb.*;
import javax.annotation.*;
import ibase.system.config.*;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import java.text.SimpleDateFormat;
......@@ -44,7 +45,8 @@ import javax.ejb.Stateless; // added for ejb3
public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
BOMActRemote // SessionBean
{
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
CommonConstants commonConstants = new CommonConstants();
/*
......@@ -76,11 +78,13 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
String retString = null;
try {
if (xmlString != null && xmlString.trim().length() != 0) {
dom = GenericUtility.getInstance().parseString(xmlString);
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
if (selDataStr != null && selDataStr.length() > 0) {
selDataDom = GenericUtility.getInstance().parseString(
selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
}
System.out.println("actionType:" + actionType + ":");
......@@ -146,7 +150,8 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
Document dom1 = null;
String resString = null;
try {
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0) {
System.out.println("XML String :" + xmlString);
dom = genericUtility.parseString(xmlString);
......@@ -183,7 +188,7 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
private String actionDefault(Document dom, Document dom1,
String objContext, String xtraParams) throws RemoteException,
ITMException {
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
Connection conn = null;
StringBuffer valueXmlString = null;
// valueXmlString = new
......@@ -208,8 +213,8 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
if (objContext != null && objContext.trim().length() > 0) {
currentFormNo = Integer.parseInt(objContext);
}
bomCodeHeader = GenericUtility.getInstance().getColumnValue(
"bom_code", dom1);
//bomCodeHeader = GenericUtility.getInstance().getColumnValue("bom_code", dom1);
bomCodeHeader = genericUtility.getColumnValue("bom_code", dom1);
sqlPreBom = "select count(*) from bomdet where bom_code = ? ";
pstmtDescr = conn.prepareStatement(sqlPreBom);
pstmtDescr.setString(1, bomCodeHeader);
......@@ -299,7 +304,7 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
"<?xml version='1.0' encoding='" + commonConstants.ENCODING
+ "'?> \r\n<Root>\r\n");
String bomCode = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
try {
ConnDriver connDriver = new ConnDriver();
......@@ -401,7 +406,7 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
+ "'?> \r\n<Root>\r\n"); // new
// StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\"?> \r\n<Root>\r\n");
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
try {
if (conn == null) {
......@@ -598,13 +603,13 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
stmt = conn.createStatement();
detailList = selDataDom.getElementsByTagName("Detail");
detailListLength = detailList.getLength();
bomCode = GenericUtility.getInstance().getColumnValueFromNode(
"bom_code", detailList.item(0));
bomCodeHeader = GenericUtility.getInstance().getColumnValue(
"bom_code", dom1);
//bomCode = GenericUtility.getInstance().getColumnValueFromNode("bom_code", detailList.item(0));
bomCode = genericUtility.getColumnValueFromNode("bom_code", detailList.item(0));
//bomCodeHeader = GenericUtility.getInstance().getColumnValue("bom_code", dom1);
bomCodeHeader = genericUtility.getColumnValue("bom_code", dom1);
// 14/03/12 manoharan
batchQtyStr = GenericUtility.getInstance().getColumnValue(
"batch_qty", dom1);
//batchQtyStr = GenericUtility.getInstance().getColumnValue("batch_qty", dom1);
batchQtyStr = genericUtility.getColumnValue("batch_qty", dom1);
sqlPreBom = "select batch_qty from bom where bom_code = ? ";
pstmtDescr = conn.prepareStatement(sqlPreBom);
pstmtDescr.setString(1, bomCode);
......@@ -633,7 +638,7 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
pstmtDescr.close();
// end 14/03/12/ manoharan
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(
genericUtility.getApplDateFormat());
......
......@@ -20,9 +20,10 @@ import javax.xml.parsers.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.ejb.*;
import javax.annotation.*;
import ibase.system.config.*;
......@@ -33,7 +34,8 @@ import javax.ejb.Stateless; // added for ejb3
public class BOMAltConf extends ActionHandlerEJB implements BOMAltConfLocal , BOMAltConfRemote //SessionBean
{
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
Connection conn = null;
......@@ -78,7 +80,7 @@ public class BOMAltConf extends ActionHandlerEJB implements BOMAltConfLocal , B
Document dom = null;
String retString = null;
System.out.println("Xtra Params : " + xtraParams);
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
try
{
retString = ConfirmAltBOM(xmlString, xtraParams);
......
......@@ -11,9 +11,11 @@ import javax.xml.parsers.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import javax.annotation.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.ejb.*;
import ibase.system.config.*;
import java.text.SimpleDateFormat;
......@@ -23,7 +25,8 @@ import javax.ejb.Stateless; // added for ejb3
public class BOMDeactivate extends ActionHandlerEJB implements BOMDeactivateLocal , BOMDeactivateRemote //SessionBean
{
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
/* @PostConstruct
public void ejbCreate() //throws RemoteException //, CreateException
{
......@@ -59,7 +62,7 @@ public class BOMDeactivate extends ActionHandlerEJB implements BOMDeactivateLoc
Document dom = null;
String retString = null;
System.out.println("Xtra Params : " + xtraParams);
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
try
{
retString = DeactivateBOM(xmlString, xtraParams);
......
......@@ -2,7 +2,7 @@ package ibase.webitm.ejb.mfg.adv;
import ibase.utility.UserInfoBean;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.*;
......
......@@ -9,6 +9,7 @@ import javax.ejb.SessionContext;
import javax.ejb.CreateException;
//import javax.ejb.SessionBean;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ActionHandlerEJB;
import org.w3c.dom.Document;
......@@ -42,7 +43,8 @@ public class BatchsizeAprvConf extends ActionHandlerEJB implements BatchsizeApr
String sql = "";
ConnDriver connDriver = null;
String loginEmpCode = null;
ibase.webitm.utility.GenericUtility genericUtility = null;
//ibase.webitm.utility.GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
Document dom = null;
int count=0;
ITMDBAccessEJB itmDBAccessEJB = null;
......@@ -51,7 +53,7 @@ public class BatchsizeAprvConf extends ActionHandlerEJB implements BatchsizeApr
try
{
itmDBAccessEJB = new ITMDBAccessEJB();
genericUtility = ibase.webitm.utility.GenericUtility.getInstance();
//genericUtility = ibase.webitm.utility.GenericUtility.getInstance();
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
......
......@@ -10,11 +10,12 @@ import java.rmi.RemoteException;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import java.sql.*;
import java.text.SimpleDateFormat;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
import java.util.Calendar;
......@@ -38,8 +39,8 @@ public class BomAltAmdConf extends ActionHandlerEJB implements BomAltAmdConfLoca
int cnt = 0,updCnt1=0;
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
Timestamp sysDate = null,amddate=null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
......
......@@ -10,11 +10,12 @@ import java.rmi.RemoteException;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import java.sql.*;
import java.text.SimpleDateFormat;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
import java.util.Calendar;
......@@ -44,8 +45,8 @@ BomAmdConfLocal, BomAmdConfRemote
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
Timestamp sysDate = null,amddate=null,validupto=null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
......
......@@ -20,9 +20,11 @@ import javax.xml.parsers.*;
import javax.ejb.*;
import javax.naming.InitialContext;
import javax.annotation.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.ejb.*;
import ibase.system.config.*;
import java.text.SimpleDateFormat;
......@@ -32,7 +34,8 @@ import javax.ejb.Stateless; // added for ejb3
public class CWWorkCalConf extends ActionHandlerEJB implements CWWorkCalConfLocal , CWWorkCalConfRemote //SessionBean
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
Connection conn = null;
......@@ -76,7 +79,7 @@ public class CWWorkCalConf extends ActionHandlerEJB implements CWWorkCalConfLoc
Document dom = null;
String retString = null;
System.out.println("Xtra Params : " + xtraParams);
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
try
{
retString = ConfirmWorkCal(xmlString, xtraParams);
......
package ibase.webitm.ejb.mfg.adv;
import ibase.webitm.utility.*;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import java.rmi.RemoteException;
......@@ -20,7 +21,8 @@ import javax.ejb.Stateless; // added for ejb3
public class ConfirmWOAmendment extends ActionHandlerEJB implements ConfirmWOAmendmentLocal , ConfirmWOAmendmentRemote //SessionBean
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
String errorString = null;
/*public void ejbCreate() throws RemoteException, CreateException
{
......@@ -208,7 +210,7 @@ public class ConfirmWOAmendment extends ActionHandlerEJB implements ConfirmWOAm
{
String s = "";
Timestamp timestamp = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
try
{
java.util.Date date = null;
......
......@@ -9,9 +9,10 @@ import javax.ejb.*;
import javax.naming.InitialContext;
import ibase.system.config.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
......@@ -30,7 +31,8 @@ public class DefaultQcTab extends ActionHandlerEJB implements DefaultQcTabLocal
Document dom = null;
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0)
{
System.out.println("XML String :"+xmlString);
......@@ -48,7 +50,8 @@ public class DefaultQcTab extends ActionHandlerEJB implements DefaultQcTabLocal
public String actionHandler(String actionType, String xmlString, String xmlString1, String objContext, String xtraParams) throws RemoteException,ITMException
{
Connection conn=null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
Document dom = null;
Document dom1 = null;
String retString = null;
......@@ -60,13 +63,15 @@ public class DefaultQcTab extends ActionHandlerEJB implements DefaultQcTabLocal
if(xmlString != null && xmlString.trim().length()!=0)
{
System.out.println("XML String:::"+xmlString);
dom = GenericUtility.getInstance().parseString(xmlString);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
System.out.println("dom :"+dom);
}
if(xmlString1 != null && xmlString1.trim().length()!=0)
{
System.out.println("XML String1:::"+xmlString1);
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
System.out.println("dom1 :"+dom1);
}
System.out.println("actionType:::["+actionType+"]");
......@@ -110,7 +115,8 @@ public class DefaultQcTab extends ActionHandlerEJB implements DefaultQcTabLocal
private String actionDefault(Document dom, Document dom1, String objContext, String xtraParams) throws RemoteException, ITMException
{
System.out.println("Calling the Default function.........");
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
Connection conn = null;
PreparedStatement pstmt = null,pstmt1 = null , pstmtSpec = null ;
ResultSet rs = null,rs1 = null,rsSpec = null;
......
......@@ -6,10 +6,11 @@
package ibase.webitm.ejb.mfg.adv;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
......@@ -71,7 +72,8 @@ public class QcOrderAct extends ActionHandlerEJB implements QcOrderActLocal , Q
Document dom1 = null;
String retString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
if (xmlString != null && xmlString.trim().length() != 0)
......@@ -125,17 +127,21 @@ public class QcOrderAct extends ActionHandlerEJB implements QcOrderActLocal , Q
String retString = null;
try
{
E12GenericUtility genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0)
{
dom = GenericUtility.getInstance().parseString(xmlString);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0)
{
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
}
if (selDataStr != null && selDataStr.length() > 0)
{
selDataDom = GenericUtility.getInstance().parseString(selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
System.out.println("selDataStr:" + selDataStr + ":");
System.out.println("actionType:" + actionType + ":");
......@@ -178,7 +184,8 @@ public class QcOrderAct extends ActionHandlerEJB implements QcOrderActLocal , Q
valueXmlString.append("</Root>\r\n");
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
try
{
......@@ -297,7 +304,8 @@ public class QcOrderAct extends ActionHandlerEJB implements QcOrderActLocal , Q
DistCommon dist = new DistCommon();
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
......
package ibase.webitm.ejb.mfg.adv;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
......@@ -8,7 +9,7 @@ import ibase.webitm.ejb.dis.StockUpdate;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.fin.FinCommonInvAcct;
import ibase.webitm.ejb.fin.InvAcct;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
......@@ -59,7 +60,8 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
ConnDriver connDriver = null;
ITMDBAccessEJB itmDBAccessEJB = null;
FinCommon finCommon = null;
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
FinCommonInvAcct finCommonInvAcct = null;
HashMap stkUpdMap = null;
Timestamp tranDate = null;
......@@ -78,7 +80,7 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
finCommon = new FinCommon();
finCommonInvAcct = new FinCommonInvAcct();
itmDBAccessEJB = new ITMDBAccessEJB();
genericUtility = new GenericUtility().getInstance();
//genericUtility = new GenericUtility().getInstance();
stkUpdMap = new HashMap();
System.out.println("tranID------------>>["+tranID+"]");
......@@ -187,14 +189,14 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
double lcQuantityHdr=0,lcTotqtyDet=0,lcQuantityDet=0,lcqtyPerArt=0,lcModqty=0,lcNoart=0,lcCapacity=0;
double lcIntegralQty=0,lcDetamt=0,lcHdramt=0;
int upcnt=0;
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
try
{
DistCommon distCommon = new DistCommon();
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
dbName = CommonConstants.DB_NAME;
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
if( dbName.equalsIgnoreCase("db2") || dbName.equalsIgnoreCase("mssql"))
sql="select lot_no, loc_code, qc_reqd, exp_date, proj_code, quantity, backflush_type, unit" +
" from receipt_backflush where tran_id = ? for update";
......@@ -783,8 +785,10 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
if (retString.trim().length()==0 && lsProjCode.trim().length() > 0)
{
String chgUser= "",chgTerm="";
chgUser=GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"userId");
chgTerm= GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId");
//chgUser=GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"userId");
chgUser=genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId");
//chgTerm= GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId");
chgTerm= genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId");
System.out.println("Change User---------->>["+chgUser+"]");
System.out.println("Change Term---------->>["+chgTerm+"]");
sql="select ind_no from project where proj_code = ?";
......@@ -939,7 +943,7 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
DistCommon distCommon= new DistCommon();
java.sql.Timestamp ldtMfgdate=null,ldtMfgdt=null;
java.sql.Timestamp ldtRetestdt=null; java.util.Date ldtQcduedate=null;
GenericUtility genericUtility = null;
// GenericUtility genericUtility = null;
SimpleDateFormat sdf=null;
StringBuffer xmlValues=new StringBuffer("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>");
try
......@@ -1117,7 +1121,8 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
else
lsQorderType = "S";
genericUtility = new GenericUtility().getInstance();
// genericUtility = new GenericUtility().getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
currDate = sdf.format(new java.sql.Date(System.currentTimeMillis()));
xmlValues.append("<Header></Header>");
......@@ -2146,8 +2151,8 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
String effectiveDate = "";
java.sql.Timestamp currDate = null;
java.sql.Date effDate = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
......
......@@ -3,12 +3,13 @@ package ibase.webitm.ejb.mfg.adv;
* Developed by Alka Shah -> 28/03/07
*/
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.mfg.ExplodeBom;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
......@@ -58,7 +59,8 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
Document dom1 = null;
String retString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try {
if (xmlString != null && xmlString.trim().length() != 0) {
System.out.println("XML String :" + xmlString);
......@@ -94,18 +96,20 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
Document dom = null;
Document dom1 = null;
Document selDataDom = null;
E12GenericUtility genericUtility = new E12GenericUtility();
String retString = null;
try {
if (xmlString != null && xmlString.trim().length() != 0) {
dom = GenericUtility.getInstance().parseString(xmlString);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0) {
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
}
if (selDataStr != null && selDataStr.length() > 0) {
selDataDom = GenericUtility.getInstance().parseString(
selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
System.out.println("actionType:" + actionType + ":");
......@@ -151,7 +155,8 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
try {
......@@ -335,7 +340,8 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try {
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
......@@ -491,7 +497,8 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
ConnDriver connDriver = new ConnDriver();
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
MfgCommon mfgCommon = new MfgCommon();
DistCommon distCommon = new DistCommon();
......@@ -626,7 +633,8 @@ public class RcpBackflushMultiAct extends ActionHandlerEJB implements RcpBackfl
{
String currAppdate = null;
java.sql.Timestamp currDate = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
Object date = null;
......
......@@ -21,6 +21,7 @@ import javax.ejb.CreateException;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import ibase.webitm.ejb.ITMDBAccessEJB;
......@@ -85,13 +86,14 @@ public class RcpBackflushMultiConf extends ActionHandlerEJB implements RcpBackf
ITMDBAccessEJB itmDBAccessEJB = null;
FinCommon finCommon = null;
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
FinCommonInvAcct finCommonInvAcct = null;
try{
finCommon = new FinCommon();
finCommonInvAcct = new FinCommonInvAcct();
itmDBAccessEJB = new ITMDBAccessEJB();
genericUtility = new GenericUtility();
//genericUtility = new GenericUtility();
E12GenericUtility genericUtility = new E12GenericUtility();
stkUpdMap = new HashMap();
connDriver = new ConnDriver();
......@@ -601,12 +603,13 @@ public class RcpBackflushMultiConf extends ActionHandlerEJB implements RcpBackf
int porcpline = 1;
String sqlInsert = "";
String currDate = "",errString = "",loginEmpCode = "";
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
SimpleDateFormat sdf = null;
java.util.Date qcDueDate = null;
java.sql.Date expDate = null;
try{
genericUtility = new GenericUtility();
//genericUtility = new GenericUtility();
E12GenericUtility genericUtility = new E12GenericUtility();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
stmt = conn.createStatement();
stmt1 = conn.createStatement();
......
......@@ -7,12 +7,13 @@
package ibase.webitm.ejb.mfg.adv;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.mfg.ExplodeBom;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.util.*;
......@@ -55,6 +56,7 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
public void ejbPassivate() {
}*/
DecimalFormat df = new DecimalFormat( "##.000" );
E12GenericUtility genericUtility = new E12GenericUtility();
public String actionHandler() throws RemoteException, ITMException {
return "";
}
......@@ -66,7 +68,8 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
Document dom1 = null;
String retString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
try {
if (xmlString != null && xmlString.trim().length() != 0) {
System.out.println("XML String :" + xmlString);
......@@ -109,14 +112,17 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
String retString = null;
try {
if (xmlString != null && xmlString.trim().length() != 0) {
dom = GenericUtility.getInstance().parseString(xmlString);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0)
{
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
}
if (selDataStr != null && selDataStr.length() > 0) {
selDataDom = GenericUtility.getInstance().parseString(selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
System.out.println("selDataStr:" + selDataStr + ":");
System.out.println("actionType:" + actionType + ":");
......@@ -146,7 +152,8 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
ResultSet rs = null;
Connection conn = null;
MfgCommon mfgCommon = new MfgCommon();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ExplodeBom explodeBomObj = new ExplodeBom();
ConnDriver connDriver = new ConnDriver();
String returnString = "";
......@@ -239,7 +246,7 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
PreparedStatement pstmt = null;
ResultSet rs = null;
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
String errString = "";
Connection conn = null;
......@@ -350,7 +357,7 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
try {
......@@ -499,7 +506,7 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ArrayList unitList = null;
Object factOb = null,qtyOb = null;
double noArt = 0;//ADDED BY RITESH ON 30/AUG/13. FOR REQUEST C03ASUN002
......@@ -677,7 +684,7 @@ public class RcptBackflushAct extends ActionHandlerEJB implements RcptBackflush
ConnDriver connDriver = new ConnDriver();
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
MfgCommon mfgCommon = new MfgCommon();
DistCommon distCommon = new DistCommon();
......
package ibase.webitm.ejb.mfg.adv;
import ibase.utility.GenericUtility;
//import ibase.utility.GenericUtility;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ActionHandlerEJB;
......@@ -33,7 +34,7 @@ public class WIPScanConfPvSolar extends ActionHandlerEJB implements WIPScanConfP
{
ValidatorEJB validatorEJB = new ValidatorEJB();
System.out.println("!!! $$ Confirm method $$ !!! ");
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
ITMDBAccessEJB itmDBAccessEJB =null;
Connection conn = null;
ConnDriver connDriver = null;
......@@ -41,7 +42,7 @@ public class WIPScanConfPvSolar extends ActionHandlerEJB implements WIPScanConfP
ResultSet rs = null;
String itemCode="";
StringBuffer xmlBuffer = new StringBuffer();
GenericUtility genutility=null;
//GenericUtility genutility=null;
SimpleDateFormat sdf=null;
SimpleDateFormat sdf2=null;
String workOrder = "",siteCode = "",loCoInsp = "",xmlString = "",currOperation = "",maxOperation="",confrm = "",userId = "",qcReqd = "",loCoAprv ="",workOrd = "";
......@@ -63,16 +64,17 @@ public class WIPScanConfPvSolar extends ActionHandlerEJB implements WIPScanConfP
String tranIdForReciept="";
boolean status = false;
String retString = "";
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
genutility=GenericUtility.getInstance();
genericUtility=GenericUtility.getInstance();
sdf=new SimpleDateFormat(genutility.getApplDateTimeFormat());
sdf2=new SimpleDateFormat(genutility.getApplDateFormat());
//genutility=GenericUtility.getInstance();
//genericUtility=GenericUtility.getInstance();
sdf=new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
sdf2=new SimpleDateFormat(genericUtility.getApplDateFormat());
itmDBAccessEJB = new ITMDBAccessEJB();
connDriver = new ConnDriver();
siteCode = genutility.getValueFromXTRA_PARAMS(xtraParams,"site_code");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code");
System.out.println("SITE CODE --->>> "+siteCode);
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
......
......@@ -8,6 +8,7 @@ import javax.ejb.CreateException;
//import javax.ejb.SessionBean;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import ibase.webitm.ejb.ITMDBAccessEJB;
......@@ -57,14 +58,15 @@ public class WOMultipRcpConf extends ActionHandlerEJB implements WOMultipRcpCon
ITMDBAccessEJB itmDBAccessEJB = null;
ArrayList arrayList =new ArrayList();
FinCommon finCommon = null;
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
E12GenericUtility genericUtility = new E12GenericUtility();
FinCommonInvAcct finCommonInvAcct = null;
int count=0;
try{
finCommon = new FinCommon();
finCommonInvAcct = new FinCommonInvAcct();
itmDBAccessEJB = new ITMDBAccessEJB();
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
stkUpdMap = new HashMap();
connDriver = new ConnDriver();
......
......@@ -5,9 +5,10 @@ import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
// import ibase.webitm.ejb.mfg.adv.WOStock.woStockDtlParams;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.io.ByteArrayOutputStream;
......@@ -64,7 +65,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
Document dom1 = null;
String retString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try {
if (xmlString != null && xmlString.trim().length() != 0) {
System.out.println("XML String :" + xmlString);
......@@ -110,15 +112,18 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
String retString = null;
try {
E12GenericUtility genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0) {
dom = GenericUtility.getInstance().parseString(xmlString);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0) {
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
}
if (selDataStr != null && selDataStr.length() > 0) {
selDataDom = GenericUtility.getInstance().parseString(
selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
System.out.println("actionType:" + actionType + ":");
......@@ -157,7 +162,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
String errCode = "", errString = ""; //ADDED BY ALKA 19/07/07 TO DISPLAY MESSAGE THAT THE ALL ITEMS BUTTON WORKS ON INCASE OF "D" OR "O"
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();//ADDED BY ALKA 19/07/07 TO DISPLAY MESSAGE THAT THE ALL ITEMS BUTTON WORKS ON INCASE OF "D" OR "O"
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
detailCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "detCnt");
if (detailCnt != null) {
detCnt = Integer.parseInt(detailCnt);
......@@ -289,7 +295,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
ConnDriver connDriver = new ConnDriver();
MfgCommon mfgCommon = new MfgCommon();
......@@ -757,7 +764,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try {
conn = connDriver.getConnectDB("DriverITM");
......@@ -787,7 +795,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
int noOfDetails = detailList.getLength();
for (int ctr = 0; ctr < noOfDetails; ctr++) {
currDetail = detailList.item(ctr);
stkQty = stkQty + Double.parseDouble((GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail)));
//stkQty = stkQty + Double.parseDouble((GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail)));
stkQty = stkQty + Double.parseDouble((genericUtility.getColumnValueFromNode("quantity",currDetail)));
}
System.out.println("stkQty :" + stkQty);
......@@ -1035,7 +1044,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
MfgCommon mfgCommon = new MfgCommon();
......@@ -1874,7 +1884,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
MfgCommon mfgCommon = new MfgCommon();
workOrder = genericUtility.getColumnValue("work_order", dom1);
sql = "SELECT BOM_CODE, ORDER_TYPE FROM WORKORDER WHERE WORK_ORDER = ?";
......
......@@ -12,9 +12,11 @@ import java.lang.String;
import java.sql.*;
import org.w3c.dom.*;
import javax.ejb.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
import ibase.webitm.ejb.ITMDBAccessEJB;
import java.text.SimpleDateFormat;
......@@ -40,7 +42,8 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
String resString = null;
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0)
{
System.out.println("XML String :"+xmlString);
......@@ -82,13 +85,17 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
String retString = null;
try
{
E12GenericUtility genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0)
{
dom = GenericUtility.getInstance().parseString(xmlString);
dom1 = GenericUtility.getInstance().parseString(xmlString1);
//dom = GenericUtility.getInstance().parseString(xmlString);
dom = genericUtility.parseString(xmlString);
//dom1 = GenericUtility.getInstance().parseString(xmlString1);
dom1 = genericUtility.parseString(xmlString1);
if(selDataStr != null && selDataStr.length() > 0)
{
selDataDom = GenericUtility.getInstance().parseString(selDataStr);
//selDataDom = GenericUtility.getInstance().parseString(selDataStr);
selDataDom = genericUtility.parseString(selDataStr);
}
}
System.out.println("actionType:"+actionType+":");
......@@ -139,7 +146,8 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
valueXmlString.append("</Root>\r\n");
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
try
{
......@@ -359,14 +367,16 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
valueXmlString.append("</Root>\r\n");
return valueXmlString.toString();
}
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
try
{
conn = connDriver.getConnectDB("DriverITM");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
GenericUtility genUtlty=GenericUtility.getInstance();
//GenericUtility genUtlty=GenericUtility.getInstance();
E12GenericUtility genUtlty = new E12GenericUtility();
userId = genUtlty.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
siteCode = genUtlty.getColumnValue("site_code",dom1);
lineNo = genUtlty.getColumnValue("line_no",dom1);
......@@ -654,7 +664,8 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
try
{
conn = connDriver.getConnectDB("DriverITM");
GenericUtility genUtlty=GenericUtility.getInstance();
//GenericUtility genUtlty=GenericUtility.getInstance();
E12GenericUtility genUtlty = new E12GenericUtility();
userId = genUtlty.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
tranId = genUtlty.getColumnValue("tran_id",dom1);
......@@ -686,7 +697,8 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
detailListLength = detailList.getLength();
for (int i = 0;i < detailListLength;i++ )
{
stkQtyStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",detailList.item(i));
//stkQtyStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",detailList.item(i));
stkQtyStr = genUtlty.getColumnValueFromNode("quantity",detailList.item(i));
if (stkQtyStr != null)
{
stkQty = stkQty + Double.parseDouble(stkQtyStr);
......@@ -705,12 +717,18 @@ public class WoEnchAct extends ActionHandlerEJB implements WoEnchActLocal, WoEnc
for (int ctr = 0;ctr < detailListLength;ctr++)
{
selLocCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",detailList.item(ctr));
selLotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",detailList.item(ctr));
selLotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",detailList.item(ctr));
selUnit = GenericUtility.getInstance().getColumnValueFromNode("unit",detailList.item(ctr));
selQuantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",detailList.item(ctr));
//selLocCode = GenericUtility.getInstance().getColumnValueFromNode("loc_code",detailList.item(ctr));
//selLotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",detailList.item(ctr));
//selLotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",detailList.item(ctr));
//selUnit = GenericUtility.getInstance().getColumnValueFromNode("unit",detailList.item(ctr));
//selQuantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",detailList.item(ctr));
selLocCode = genUtlty.getColumnValueFromNode("loc_code",detailList.item(ctr));
selLotNo = genUtlty.getColumnValueFromNode("lot_no",detailList.item(ctr));
selLotSl = genUtlty.getColumnValueFromNode("lot_sl",detailList.item(ctr));
selUnit = genUtlty.getColumnValueFromNode("unit",detailList.item(ctr));
selQuantity = genUtlty.getColumnValueFromNode("quantity",detailList.item(ctr));
valueXmlString.append("<Detail>");
valueXmlString.append("<item_code isSrvCallOnChg='1'>").append(itemCode).append("</item_code>");
......
......@@ -2,7 +2,7 @@ package ibase.webitm.ejb.mfg.adv;
import ibase.utility.UserInfoBean;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.*;
......
......@@ -11,10 +11,12 @@ import java.sql.*;
import org.w3c.dom.*;
import javax.ejb.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
import javax.annotation.*;
......@@ -42,7 +44,8 @@ public class WoVolatileLossAct extends ActionHandlerEJB implements WoVolatileLos
Connection conn = null;
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
......@@ -98,7 +101,8 @@ public class WoVolatileLossAct extends ActionHandlerEJB implements WoVolatileLos
ConnDriver connDriver = new ConnDriver();
// ITMDBAccessEJB itmDBAccess =null;
MfgCommon mfgComm = new MfgCommon();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
DecimalFormat df = new DecimalFormat("0.000");
try
{
......
......@@ -13,16 +13,18 @@ import ibase.webitm.ejb.*;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
@Stateless
public class WorderReopen extends ActionHandlerEJB implements WorderReopenLocal, WorderReopenRemote {
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
static
{
......
......@@ -13,10 +13,11 @@ import java.util.TreeMap;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.mfg.WorkOrderRouteAlt;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
......@@ -31,6 +32,8 @@ public class WorkOrderRouteAltConf extends ActionHandlerEJB implements WorkOrde
Map <Integer,String> as_tool=new TreeMap<Integer,String>();
Map <Integer,Integer> al_toolsr=new TreeMap<Integer,Integer>();
boolean isError=false;
E12GenericUtility genericUtility = new E12GenericUtility();
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
......@@ -45,7 +48,7 @@ public class WorkOrderRouteAltConf extends ActionHandlerEJB implements WorkOrde
catch(Exception e)
{
System.out.println("Exception :WorkOrderRouteAltConf :confirm():" + e.getMessage() + ":");
retString = GenericUtility.getInstance().createErrorString(e);
retString = genericUtility.createErrorString(e);
e.printStackTrace();
}
......@@ -181,7 +184,7 @@ public class WorkOrderRouteAltConf extends ActionHandlerEJB implements WorkOrde
Map <String,String> updateParamMap=new HashMap<String,String>();
ResultSet rs=null;
PreparedStatement pstmt=null;
GenericUtility genericUtility=GenericUtility.getInstance();
//GenericUtility genericUtility=GenericUtility.getInstance();
try{
loginEmpCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
......
package ibase.webitm.ejb.mfg.adv;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.dis.DistCommon;
......@@ -8,12 +9,12 @@ import ibase.webitm.ejb.dis.StockUpdate;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.fin.FinCommonInvAcct;
import ibase.webitm.ejb.fin.InvAcct;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
import ibase.webitm.ejb.fin.FinCommon;
//import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.webitm.ejb.dis.DistCommon;
//import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.dis.InvAllocTraceBean;
import ibase.webitm.ejb.mfg.LotWiseScanBean;
import ibase.webitm.ejb.mfg.WOBean;
......@@ -83,7 +84,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
String itemCodeRef="",detTable = "workorder_issdet", hdrTable ="workorder_iss";;
double qtyPerArt = 0;
ArrayList qtyStd = new ArrayList();
GenericUtility genericUtility = null;
//GenericUtility genericUtility = null;
boolean flag =false;
boolean localConnection = false;
try
......@@ -104,7 +105,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
return errString;
}
System.out.println("After preConfirmChk processing");
genericUtility = GenericUtility.getInstance();
//genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
stkUpdMap = new HashMap();
DistCommon distCommon = new DistCommon();
MfgCommon mfgCommon = new MfgCommon();
......@@ -803,7 +805,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
{
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
MfgCommon mfgCommon = new MfgCommon();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
if("R".equalsIgnoreCase(issType))
{
detTable ="WORDER_ISSDET_RND";
......@@ -1421,7 +1424,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
DistCommon distCommon= new DistCommon();
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
today = new java.sql.Timestamp(System.currentTimeMillis()) ;
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
......@@ -1771,8 +1775,8 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
String effectiveDate = "";
java.sql.Timestamp currDate = null;
java.sql.Date effDate = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
......
......@@ -26,6 +26,7 @@ import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.webitm.utility.*;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.ejb.*;
import ibase.system.config.*;
import java.text.SimpleDateFormat;
......@@ -35,7 +36,8 @@ import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
public class WorkorderPrc extends ProcessEJB implements WorkorderPrcLocal,WorkorderPrcRemote //SessionBean
{
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
CommonConstants commonConstants = new CommonConstants();
......@@ -277,7 +279,8 @@ public class WorkorderPrc extends ProcessEJB implements WorkorderPrcLocal,Worko
{
Document detailDom = null;
Document headerDom = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
String retStr = "";
......@@ -547,8 +550,8 @@ public class WorkorderPrc extends ProcessEJB implements WorkorderPrcLocal,Worko
ArrayList ar=new ArrayList();
Timestamp chgDate=null;
String deptCodeMfg = "";
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility();
String tranId1 = null; //blanknull(tranId1).trim();
String feedbackReqd=""; // added for feedback req 'Y' for supreme on 28/09/15 by cpatil
......
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