Commit e166a2c7 authored by nkhan's avatar nkhan

remove customer detail bean and item detail bean


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104319 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f14bd2cd
package ibase.webitm.bean.wms;
import java.util.ArrayList;
import ibase.system.config.AppConnectParm;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.wms.CustomerDetails;
import ibase.webitm.ejb.wms.WavegenWizEJB;
import ibase.webitm.utility.ITMException;
import javax.naming.InitialContext;
import javax.servlet.http.HttpSession;
public class CustomerDetailBean
{
E12GenericUtility genericUtility = new E12GenericUtility();
private ibase.utility.UserInfoBean userInfo = null;
private HttpSession sessionCtx = null;
private String objName = "";
private String user_lang = "en";
private String user_country = "US";
public CustomerDetailBean( String objName, HttpSession sessionCtx) throws ITMException
{
try
{
this.objName = objName;
this.sessionCtx = sessionCtx;
this.userInfo = ( ibase.utility.UserInfoBean ) this.sessionCtx.getAttribute("USER_INFO");
}
catch (Exception e)
{
throw new ITMException(e);
}
}
public CustomerDetailBean()
{
}
@SuppressWarnings("rawtypes")
public ArrayList getCustomerDetails(String custCode) throws ITMException
{
ArrayList custList = new ArrayList() ;
try
{
CustomerDetails custDetails = new CustomerDetails();
custList = custDetails.getCustomerDetails(custCode);
System.out.println("ItemListBean.getItemListDetails()["+custList+"]");
}
catch (Exception e)
{
throw new ITMException(e);
}
return custList;
}
public String getCustomerImage(String custCode, String custName) throws ITMException
{
String custImg = "";
try
{
WavegenWizEJB wavegenWizEJB = new WavegenWizEJB();
custImg = wavegenWizEJB.getCustomImagePath(custCode, custName, "customer");
System.out.println("ItemListBean.getItemListDetails()["+custImg+"]");
}
catch (Exception e)
{
throw new ITMException(e);
}
return custImg;
}
}
package ibase.webitm.bean.wms;
import java.util.ArrayList;
import ibase.system.config.AppConnectParm;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.wms.ItemDetails;
import ibase.webitm.utility.ITMException;
import javax.naming.InitialContext;
import javax.servlet.http.HttpSession;
public class ItemDetailBean
{
E12GenericUtility genericUtility = new E12GenericUtility();
private ibase.utility.UserInfoBean userInfo = null;
private HttpSession sessionCtx = null;
private String objName = "";
private String user_lang = "en";
private String user_country = "US";
public ItemDetailBean( String objName, HttpSession sessionCtx) throws ITMException
{
try
{
this.objName = objName;
this.sessionCtx = sessionCtx;
this.userInfo = ( ibase.utility.UserInfoBean ) this.sessionCtx.getAttribute("USER_INFO");
}
catch (Exception e)
{
throw new ITMException(e);
}
}
public ItemDetailBean()
{
}
@SuppressWarnings("rawtypes")
public ArrayList getItemListDetails( String itemCode) throws ITMException
{
ArrayList itemList = new ArrayList();
try
{
ItemDetails listDetails = new ItemDetails();
itemList = listDetails.getItemListDetails(itemCode);
System.out.println("ItemListBean.getItemListDetails()["+itemList+"]");
}
catch (Exception e)
{
throw new ITMException(e);
}
return itemList;
}
public String getDocId( String itemCode) throws ITMException
{
String docId = "" ;
try
{
ItemDetails listDetails = new ItemDetails();
docId = listDetails.getDocId(itemCode);
System.out.println("ItemListBean.getDocId()["+docId+"]");
}
catch (Exception e)
{
throw new ITMException(e);
}
return docId;
}
}
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