Commit 2ee6d354 authored by dhirajchavan's avatar dhirajchavan

updated GenericUtility to E12GenericUtility


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101187 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3db71520
...@@ -2,10 +2,9 @@ package ibase.webitm.ejb.dis; ...@@ -2,10 +2,9 @@ package ibase.webitm.ejb.dis;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
//import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -25,7 +24,7 @@ import javax.ejb.Stateless; ...@@ -25,7 +24,7 @@ import javax.ejb.Stateless;
public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpPoLimitICRemote{ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpPoLimitICRemote{
GenericUtility genericUtility = GenericUtility.getInstance(); E12GenericUtility genericUtility=new E12GenericUtility();
public String wfValData() throws RemoteException, ITMException { public String wfValData() throws RemoteException, ITMException {
return ""; return "";
...@@ -270,46 +269,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP ...@@ -270,46 +269,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP
} }
} }
} }
/*else if (childNodeName.equalsIgnoreCase("reas_code"))
{
reasCode = genericUtility.getColumnValue("reas_code", dom);
if (reasCode == null)
{
errString = getErrorString(" ", "VMRESC", userId);
break;
}
else if (reasCode != null && reasCode.trim().length() > 0) {
System.out.println("reason code"+reasCode);
sql = "select count(*) from gencodes where fld_value = ? AND mod_name = 'W_CR_BYPASS_CHK' AND fld_Name = 'REAS_CODE'" ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, reasCode);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
System.out.println("count for reas code"+cnt);
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt == 0) {
errString = itmDBAccessEJB.getErrorString("","VTRESKCD ",userId);
break ;
}
}
}*/
System.out.println("Value of itemcode is:*************************"+empCode); System.out.println("Value of itemcode is:*************************"+empCode);
System.out.println("Value ofcust code is:*********************"+itemSeries); System.out.println("Value ofcust code is:*********************"+itemSeries);
...@@ -361,7 +321,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP ...@@ -361,7 +321,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP
Document dom = null; Document dom = null;
Document dom2 = null; Document dom2 = null;
String valueXmlString = ""; String valueXmlString = "";
GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
try { try {
if (xmlString != null && xmlString.trim().length() != 0) { if (xmlString != null && xmlString.trim().length() != 0) {
dom = genericUtility.parseString(xmlString); dom = genericUtility.parseString(xmlString);
...@@ -397,13 +357,13 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP ...@@ -397,13 +357,13 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP
String sql = ""; String sql = "";
int currentFormNo = 0; int currentFormNo = 0;
GenericUtility genericUtility; //GenericUtility genericUtility;
String siteCode = "", sitedescr = ""; String siteCode = "", sitedescr = "";
String custname = ""; String custname = "";
String itemSerDescr="",empCode="",descr="",empCode1=""; String itemSerDescr="",empCode="",descr="",empCode1="";
try { try {
genericUtility = GenericUtility.getInstance(); //genericUtility = genericUtility.getInstance();
// siteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"); // siteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
ConnDriver conndriver = new ConnDriver(); ConnDriver conndriver = new ConnDriver();
...@@ -435,26 +395,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP ...@@ -435,26 +395,7 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP
+ xtraParams); + xtraParams);
// tranDate = (sdf.format(timestamp).toString()).trim(); // tranDate = (sdf.format(timestamp).toString()).trim();
} }
/*if (currentColumn.trim().equalsIgnoreCase("item_ser")) {
siteCode = genericUtility.getColumnValue("item_ser", dom);
sql = " select descr from item where item_ser = ? ";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, siteCode);
rs = pStmt.executeQuery();
if (rs.next()) {
itemSerDescr = (rs.getString("descr"));
}
System.out.println("Site Description" + sitedescr);
rs.close();
rs = null;
pStmt.close();
pStmt = null;
itemSerDescr = (itemSerDescr == null) ? "" : itemSerDescr.trim();
valueXmlString.append("<item_descr >").append(
"<![CDATA[" + sitedescr + "]]>").append(
"</item_descr>");
}
*/
if (currentColumn.trim().equalsIgnoreCase("emp_code")) { if (currentColumn.trim().equalsIgnoreCase("emp_code")) {
empCode = genericUtility.getColumnValue("emp_code", dom); empCode = genericUtility.getColumnValue("emp_code", dom);
...@@ -489,31 +430,6 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP ...@@ -489,31 +430,6 @@ public class EmpPoLimitIC extends ValidatorEJB implements EmpPoLimitICLocal,EmpP
.append("</descr>\r\n"); .append("</descr>\r\n");
} }
//FN_SUNDRY_NAME(MISC_VOUCHER.SUNDRY_TYPE,MISC_VOUCHER.SUNDRY_CODE,'')
/*else if (currentColumn.trim().equalsIgnoreCase("reas_code")) {
reasCode = genericUtility.getColumnValue("reas_code", dom);
reasCode = reasCode == null ? "" : reasCode.trim();
sql = "select descr from gencodes where fld_value =? AND mod_name = 'W_CR_BYPASS_CHK' AND fld_Name = 'REAS_CODE'";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, reasCode);
rs = pStmt.executeQuery();
if (rs.next())
{
descr = rs.getString(1);
}
rs.close();
rs = null;
pStmt.close();
pStmt = null;
descr = descr == null ? "" : descr.trim();
System.out.println("description--"+descr);
valueXmlString.append("<descr>").append(descr).append("</descr>\r\n");
}
*/
valueXmlString.append("</Detail1 >"); valueXmlString.append("</Detail1 >");
break; break;
......
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