Commit 2ed584e1 authored by manohar's avatar manohar

This commit was generated by cvs2svn to compensate for changes in r189,

which included commits to RCS files with non-trunk default branches.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91254 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 40eb4782
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.*;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import java.rmi.RemoteException;
import ibase.system.config.AppConnectParm;
import java.text.SimpleDateFormat;
import java.util.*;
import java.sql.*;
import java.io.Serializable;
import javax.ejb.*;
import javax.naming.InitialContext;
//import javax.ejb.SessionBean;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
public class StockHelp implements StockHelpLocal,StockHelpRemote
{
/* public void ejbCreate() throws RemoteException,CreateException
{
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
} */
public void setSessionContext(SessionContext mSessionContext)
{
}
public ArrayList getDetails(String siteCode, String itemCode) throws ITMException
{
GenericUtility genericUtility = null;
genericUtility = GenericUtility.getInstance();
PreparedStatement pstmt = null;
ResultSet rs = null;
Connection conn = null;
StockDtlParams thisBean = null;
ArrayList stkHelpList = new ArrayList();
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
int i = 1;
double lotWiseQuant = 0, lotWiseAllocQuant = 0, lotWiseAvailQuant = 0;
double lotWiseHoldQuant = 0, avl = 0;
String quantKey = "", sql = "";
String allcQuantKey = "", prevLocCode = "", prevLotNo = "";
String holdQuanKey = "", prevLotSl = "";
System.out.println("itemCode>>>>>>>>>>>>>>>>"+itemCode);
System.out.println("siteCode>>>>>>>>>>>>>>>>"+siteCode);
sql = "SELECT stock.site_code ,site.descr ,stock.item_code ,item.descr ,stock.loc_code , "
+" stock.lot_no ,stock.lot_sl ,location.inv_stat ,stock.retest_date ,stock.exp_date ,"
+" sum(stock.quantity) qty,sum(stock.alloc_qty) alloc_qty,invstat.available ,stock.unit , "
+" stock.potency_perc ,stock.batch_no ,stock.dimension ,stock.supp_code__mfg , "
+" fn_ppo_qty('"+siteCode+"','"+itemCode+"') as ppo_qty,fn_pind_qty('"+siteCode+"','"+itemCode+"') as pind_qty,stock.pack_code , "
+" stock.qty_per_art ,stock.batch_size , "
+" sum(case when stock.hold_qty is null then 0 else stock.hold_qty end) hold_qty, "
+" stock.mfg_date, stock.no_art, stock.rate "
+" FROM invstat ,item ,location ,site ,stock "
+" WHERE ( location.inv_stat = invstat.inv_stat ) "
+" and ( stock.loc_code = location.loc_code ) "
+" and ( stock.item_code = item.item_code ) "
+" and ( site.site_code = stock.site_code ) "
+" and ( ( stock.item_code = '"+itemCode+"' ) and ( stock.site_code = '"+siteCode+"' ) ) "
+" and ( invstat.stat_type <> 'S' ) "
+" and ( stock.quantity <> 0 ) "
+" GROUP BY stock.site_code ,site.descr ,stock.item_code ,item.descr ,stock.loc_code , "
+" stock.lot_no ,stock.lot_sl ,location.inv_stat ,invstat.available ,stock.retest_date , "
+" stock.exp_date ,stock.unit ,stock.potency_perc ,stock.batch_no ,stock.dimension , "
+" stock.supp_code__mfg ,stock.pack_code ,stock.qty_per_art , "
+" stock.batch_size, stock.mfg_date, stock.no_art, stock.rate "
+" ORDER BY stock.site_code ASC, stock.item_code ASC, "
+" stock.loc_code ASC, stock.lot_no ASC, stock.lot_sl ASC, location.inv_stat ASC ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
while(rs.next())
{
thisBean = new StockDtlParams();
thisBean.itemCode = rs.getString(3);
thisBean.currLocCode = rs.getString(5);
thisBean.currLotNo = rs.getString(6);
thisBean.currLotSl = rs.getString(7);
thisBean.invStat = rs.getString(8);
thisBean.retestDate = rs.getString(9) == null ? "" : genericUtility.getValidDateString(rs.getString(9),genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat());
thisBean.expDate = rs.getString(10) == null ? "" : genericUtility.getValidDateString(rs.getString(10),genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat());
thisBean.quantity = rs.getDouble(11);
thisBean.allocQuant = rs.getDouble(12);
thisBean.available = rs.getString(13);
thisBean.unit = rs.getString(14);
thisBean.potencyPerc = rs.getString(15);
thisBean.batchNo = rs.getString(16);
thisBean.dimention = rs.getString(17);
thisBean.suppCodeMfg = rs.getString(18);
thisBean.ppoQty = rs.getString(19);
thisBean.pindQty = rs.getString(20);
thisBean.packCode = rs.getString(21);
thisBean.qtyPerArt = rs.getString(22);
thisBean.batchSize = rs.getString(23);
thisBean.holdQuant = rs.getDouble(24);
thisBean.mfgDate = rs.getString(25) == null ? "" : genericUtility.getValidDateString(rs.getString(25),genericUtility.getDBDateFormat(),genericUtility.getApplDateFormat());
thisBean.rate = rs.getString(26);
thisBean.noArt = rs.getString(27);
thisBean.currDateTs = getCurrdateTimestmp();
avl = thisBean.quantity - thisBean.allocQuant;
thisBean.netAvailable = Double.toString(avl);//balance
if( thisBean.currLocCode != null && thisBean.currLotNo != null )
{
if( thisBean.currLocCode.equals(prevLocCode) && thisBean.currLotNo.equals(prevLotNo) )
{
lotWiseQuant = lotWiseQuant + thisBean.quantity;
lotWiseAllocQuant = lotWiseAllocQuant + thisBean.allocQuant;
//lotWiseAvailQuant = lotWiseAvailQuant + thisBean.availQuant
lotWiseHoldQuant = lotWiseHoldQuant + thisBean.holdQuant;
quantKey = "LWQ" + i;
allcQuantKey = "LAQ" + i;
holdQuanKey = "LHQ" + i;
(thisBean.lotQuantMap).put(quantKey, new Double(lotWiseQuant) );
thisBean.lotQuantMap.put(allcQuantKey, new Double(lotWiseAllocQuant));
thisBean.lotQuantMap.put(holdQuanKey, new Double(lotWiseHoldQuant));
}
else
{
i++;
lotWiseQuant = 0;
lotWiseAllocQuant = 0;
lotWiseAvailQuant = 0;
lotWiseHoldQuant = 0;
lotWiseQuant = lotWiseQuant + thisBean.quantity;
lotWiseAllocQuant = lotWiseAllocQuant + thisBean.allocQuant;
//lotWiseAvailQuant = lotWiseAvailQuant + thisBean.availQuant;
lotWiseHoldQuant = lotWiseHoldQuant + thisBean.holdQuant;
quantKey = "LWQ" + i;
allcQuantKey = "LAQ" + i;
holdQuanKey = "LHQ" + i;
thisBean.lotQuantMap.put(quantKey, new Double(lotWiseQuant));
thisBean.lotQuantMap.put(allcQuantKey, new Double(lotWiseAllocQuant));
thisBean.lotQuantMap.put(holdQuanKey, new Double(lotWiseHoldQuant));
}
}
stkHelpList.add(thisBean);
prevLocCode = thisBean.currLocCode;
prevLotNo = thisBean.currLotNo;
prevLotSl = thisBean.currLotSl;
}
}
catch (Exception e)
{
e.printStackTrace();
}
finally
{
try
{
genericUtility = null;
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(conn != null)
{
conn.close();
conn=null;
}
}
catch(Exception e)
{
System.out.println("Exception :StockHelpEJB:==>\n"+e.getMessage());
}
}
return stkHelpList;
}
private Timestamp getCurrdateTimestmp()
{
String s = "";
Timestamp timestamp = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
java.util.Date date = null;
timestamp = new Timestamp(System.currentTimeMillis());
SimpleDateFormat simpledateformat = new SimpleDateFormat(genericUtility.getDBDateFormat());
date = simpledateformat.parse(timestamp.toString());
timestamp = Timestamp.valueOf(simpledateformat.format(date).toString() + " 00:00:00.0");
}
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
}
return timestamp;
}
class StockDtlParams implements Serializable
{
HashMap lotQuantMap = new HashMap();
String currLocCode = "", currLotNo = "", currLotSl = "", invStat = "", retestDate = "";
String expDate = "",unit = "", potencyPerc = "", batchNo = "", netAvailable = "";
String dimention = "", suppCodeMfg = "", ppoQty = "", pindQty = "", packCode = "";
String qtyPerArt = "", batchSize = "", mfgDate = "", rate = "", noArt = "";
String itemCode = "", available = "";
double quantity = 0, availQuant = 0, holdQuant = 0, allocQuant = 0;
java.sql.Timestamp currDateTs = null;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.*;
import ibase.system.config.AppConnectParm;
import javax.naming.InitialContext;
import java.sql.*;
import java.util.*;
import javax.ejb.*;
public class StockHelpBean
{
String siteCode = "";
String itemCode = "";
public String locCode = "",lotNo = "",locSl = "",unit = "",dimention = "", mfgDate = "";
public String quantity = "",allocQty = "",netAvailable = "",available = "", noArt = "", itemCodeStk = "";
public String retestDate = "",expDate = "",potency = "",suppCodeMfg = "",batchNo = "", rate = "";
public String packCode = "", invStat = "", holdQuant = "", qtyPerArt = "", batchSize = "";
public String ppoQty = "", pindQty = "";
public HashMap beanLotQuantMap = new HashMap();
public java.sql.Timestamp currDateTs = null;
public void setSiteCode(String siteCodeJsp)
{
this.siteCode = siteCodeJsp;
}
public void setItemCode(String itemCodeJsp)
{
this.itemCode = itemCodeJsp;
}
public ArrayList getDetails() throws Exception
{
ArrayList stkHlpRetArr = new ArrayList();
ArrayList thisBeanArray = new ArrayList();
InitialContext ctx = null;
StockHelp.StockDtlParams stkParms = null;
StockHelpBean stkHlpBean = null;
AppConnectParm appConnect = null;
StockHelpLocal homeObj = null;
StockHelpRemote stkHelpRemote = null;
try
{
appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
//homeObj = (StockHelpLocal)ctx.lookup("StockHelp"); for ejb2
homeObj = (StockHelpLocal)ctx.lookup("ibase/StockHelp/local"); // for BaseInfo ejb3
//stkHelpRemote = (StockHelpRemote)ctx.lookup(HelloEjb.class.getName()); // standard
//stkHelpRemote = (StockHelpRemote)(homeObj.create()); //for ejb2
stkHlpRetArr = homeObj.getDetails(this.siteCode,this.itemCode);
if(stkHlpRetArr.size() > 0)
{
for (int i=0; i<stkHlpRetArr.size(); i++ )
{
stkParms = (StockHelp.StockDtlParams)(stkHlpRetArr.get(i));
stkHlpBean = new StockHelpBean();
stkHlpBean.itemCodeStk = stkParms.itemCode;
stkHlpBean.locCode = stkParms.currLocCode;
stkHlpBean.lotNo = stkParms.currLotNo;
stkHlpBean.locSl = stkParms.currLotSl;
stkHlpBean.mfgDate = stkParms.mfgDate;
stkHlpBean.noArt = stkParms.noArt;
stkHlpBean.rate = stkParms.rate;
stkHlpBean.available = stkParms.available;
stkHlpBean.unit = stkParms.unit;
stkHlpBean.quantity = Double.toString(stkParms.quantity);
stkHlpBean.allocQty = Double.toString(stkParms.allocQuant);
stkHlpBean.holdQuant = Double.toString(stkParms.holdQuant);
stkHlpBean.netAvailable = stkParms.netAvailable;
stkHlpBean.retestDate = stkParms.retestDate;
stkHlpBean.expDate = stkParms.expDate;
stkHlpBean.potency = stkParms.potencyPerc;
stkHlpBean.suppCodeMfg = stkParms.suppCodeMfg;
stkHlpBean.batchNo = stkParms.batchNo;
stkHlpBean.dimention = stkParms.dimention;
stkHlpBean.packCode = stkParms.packCode;
stkHlpBean.invStat = stkParms.invStat;
stkHlpBean.beanLotQuantMap = stkParms.lotQuantMap;
stkHlpBean.currDateTs = stkParms.currDateTs;
stkHlpBean.qtyPerArt = stkParms.qtyPerArt;
stkHlpBean.batchSize = stkParms.batchSize;
stkHlpBean.ppoQty = stkParms.ppoQty;
stkHlpBean.pindQty = stkParms.pindQty;
thisBeanArray.add(stkHlpBean);
}
}
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
appConnect = null;
ctx = null;
homeObj = null;
stkHelpRemote = null;
stkHlpRetArr = null;
stkParms = null;
}
return thisBeanArray;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.CreateException;
//import javax.ejb.EJBHome;
import ibase.webitm.utility.ITMException;
import java.util.*;
//import ibase.webitm.ejb.*;
//import ibase.webitm.ejb.ValidatorLocal;
import javax.ejb.Local; // added for ejb3
@Local // added for ejb3
public interface StockHelpLocal// extends ValidatorLocal
{
//public StockHelp create() throws RemoteException, CreateException;
public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import java.util.*;
import javax.xml.parsers.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import javax.ejb.Remote; // added for ejb3
//import ibase.webitm.ejb.ValidatorRemote;// added for ejb3
@Remote // added for ejb3
public interface StockHelpRemote //extends ValidatorRemote
{
public ArrayList getDetails(String siteCode, String itemCode) throws RemoteException,ITMException;
}
\ No newline at end of file
,manohar,localhost,09.11.2009 14:52,file:///home/manohar/.ooo3;
\ No newline at end of file
,manohar,localhost,09.11.2009 14:35,file:///home/manohar/.ooo3;
\ No newline at end of file
This diff is collapsed.
--written by skale.
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'sorder',
'2',
'item_code__ord',
'sorder',
'sorder12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'sale_order.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'worder',
'2',
'item_code__ref',
'worder',
'worder12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'tran_id.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'worder_rcp',
'2',
'item_code',
'worder_rcp',
'worder_rcp12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'worder_iss',
'2',
'item_code',
'worder_iss',
'worder_iss12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'worder_enhanc',
'2',
'item_code',
'worder_enhanc',
'worder_enhanc12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_rnd',
'2',
'item_code',
'wo_iss_rnd',
'wo_iss_rnd12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_return',
'2',
'item_code',
'wo_iss_return',
'wo_iss_return12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_req_devi',
'2',
'item_code',
'wo_iss_req_devi',
'wo_iss_req_devi12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_req_demand',
'2',
'item_code',
'wo_iss_req_demand',
'wo_iss_req_demand12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_ondemand',
'2',
'item_code',
'wo_iss_ondemand',
'wo_iss_ondemand12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_issue',
'2',
'item_code',
'wo_iss_issue',
'wo_iss_issue12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'wo_iss_deviated',
'2',
'item_code',
'wo_iss_deviated',
'wo_iss_deviated12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'stock_transfer',
'2',
'item_code',
'stock_transfer',
'stock_transfer12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'scrap_gen',
'2',
'item_code',
'scrap_gen',
'scrap_gen12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'receipt_backflush',
'2',
'item_code',
'receipt_backflush',
'receipt_backflush12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'qcorder_new',
'2',
'item_code',
'qcorder_new',
'qcorder_new12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'qc_transfer',
'1',
'loc_code__trf',
'qc_transfer',
'qc_transfer11',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'tran_id.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'preturn',
'2',
'item_code',
'preturn',
'preturn12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'despatch',
'2',
'item_code',
'despatch',
'despatch12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'adj_rcp',
'2',
'item_code',
'adj_rcp',
'adj_rcp12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
INSERT INTO OBJ_LINKS (
obj_name ,
form_no ,
field_name ,
target_obj_name,
link_form_name ,
link_title ,
link_uri ,
link_type ,
link_arg ,
update_flag,
rights_char,
image ,
link_name )
VALUES (
'despatch_scan',
'2',
'item_code',
'despatch_scan',
'despatch_scan12',
'View stock help',
'http://localhost:9090/ibase/webitm/jsp/stockButton.jsp',
'3',
'item_code.String:PK_VALUES',
'0',
'S',
NULL,
NULL);
#!/bin/bash
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
export PATH=$JAVA_HOME/bin:$PATH
export LIBPATH=/home/manohar/software/baseproject/ejb3/lib
export CLASSPATH=$JAVA_HOME/jre/lib/rt.jar
export CLASSPATH=$CLASSPATH:$LIBPATH/uuid-2.1.5.jar:$LIBPATH/ibase-common.jar:$LIBPATH/ibase-webitm.jar:$LIBPATH/ibase-scheduler.jar:$LIBPATH/jboss-javaee.jar:$LIBPATH/jboss-ejb3-common-client.jar:$LIBPATH/jboss-ejb3-core-client.jar:$LIBPATH/log4j.jar:$LIBPATH/ibase-webitm-adm.jar:$LIBPATH/ibase-webitm-dis.jar:$LIBPATH/ibase-webitm-fin.jar:$LIBPATH/ibase-webitm-mfg.jar:$LIBPATH/ibase-webitm-sys.jar:$LIBPATH/webitm4-stubs.jar:$LIBPATH/servlet-api.jar:$LIBPATH/xerces.jar:$LIBPATH/axis.jar:$LIBPATH/easclient.jar:$LIBPATH/classes12.jar:$LIBPATH/poi-3.1-FINAL-20080629.jar:$LIBPATH/poi-contrib-3.1-FINAL-20080629.jar:$LIBPATH/poi-scratchpad-3.1-FINAL-20080629.jar
# echo $JAVA_HOME/bin/java -version
# echo $CLASSPATH
$JAVA_HOME/bin/javac -deprecation -d classes ibase/webitm/ejb/dis/*.java
cd classes
# cp -f -R WEBITM-ADM-META-INF/*.* META-INF/*.*
jar -cvfM ../ibase-webitm-stkhelp1-0-0.jar ibase/webitm/ejb/dis/*.class
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