Commit 727dffe1 authored by manohar's avatar manohar

Item description display added from old version which was missing in CVS


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93068 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5682504f
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>webitm-stkhelp</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
...@@ -106,4 +106,31 @@ public class StockHelpBean ...@@ -106,4 +106,31 @@ public class StockHelpBean
} }
return thisBeanArray; return thisBeanArray;
} }
public String getItemDescr(String itemCode) throws Exception
{
InitialContext ctx = null;
AppConnectParm appConnect = null;
StockHelpLocal homeObj = null;
String itemDescr = "";
try
{
appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
homeObj = (StockHelpLocal)ctx.lookup("ibase/StockHelp/local");
itemDescr = homeObj.getItemDescr(itemCode);
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
appConnect = null;
ctx = null;
homeObj = null;
}
return itemDescr;
}
} }
\ No newline at end of file
...@@ -14,4 +14,5 @@ public interface StockHelpLocal// extends ValidatorLocal ...@@ -14,4 +14,5 @@ public interface StockHelpLocal// extends ValidatorLocal
{ {
//public StockHelp create() throws RemoteException, CreateException; //public StockHelp create() throws RemoteException, CreateException;
public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException; public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException;
public String getItemDescr(String itemCode) throws ITMException;
} }
\ No newline at end of file
...@@ -13,4 +13,5 @@ import javax.ejb.Remote; // added for ejb3 ...@@ -13,4 +13,5 @@ import javax.ejb.Remote; // added for ejb3
public interface StockHelpRemote //extends ValidatorRemote public interface StockHelpRemote //extends ValidatorRemote
{ {
public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException; public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException;
public String getItemDescr(String itemCode) throws ITMException;
} }
\ No newline at end of file
...@@ -67,6 +67,34 @@ ...@@ -67,6 +67,34 @@
System.out.println("itemCode [" + itemCode + "]"); System.out.println("itemCode [" + itemCode + "]");
itemDescr = stkHlpBn.getItemDescr(itemCode); itemDescr = stkHlpBn.getItemDescr(itemCode);
System.out.println("itemDescr [" + itemDescr + "]"); System.out.println("itemDescr [" + itemDescr + "]");
String param = null;
String paramvalue = null;
Enumeration enum1 = request.getParameterNames();
while( enum1.hasMoreElements() )
{
param = (String)enum1.nextElement();
paramvalue = request.getParameter(param);
System.out.println("param ["+param+"] paramvalue ["+paramvalue+"]");
}
String paramList[];
if ( paramvalue.indexOf("~") != -1 )
{
paramList = paramvalue.split("~");
siteCode = paramList[0];
itemCode = paramList[1];
}
else
{
siteCode = paramvalue;
}
System.out.println("siteCode 2[" + siteCode + "]");
System.out.println("itemCode 2[" + itemCode + "]");
itemDescr = stkHlpBn.getItemDescr(itemCode);
System.out.println("itemDescr 2 [" + itemDescr + "]");
%> %>
<br/><br/><br/><br/> <br/><br/><br/><br/>
<table align = "center"> <table align = "center">
......
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