Commit 986142f5 authored by ptajane's avatar ptajane

Changes done for Work Order Stock Status Report Link not display from Work Order homepage.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193888 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7585fee6
......@@ -21,7 +21,7 @@ import javax.xml.rpc.ParameterMode;
public class WoStockStatus {
public String getStockStatus(String tranId) throws ITMException
public String getStockStatus(String tranId, String transDB) throws ITMException
{
String methodName = "";
String compName = "";
......@@ -37,8 +37,11 @@ public class WoStockStatus {
try
{
System.out.println("WoStockStatus.getStockStatus() tranId:["+tranId+"]");
System.out.println("WoStockStatus.getStockStatus() transDB:["+transDB+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = connDriver.getConnectDB(transDB);
conn.setAutoCommit(false);
methodName = "gbf_process";
actionURI = "http://NvoServiceurl.org/" + methodName;
......
......@@ -33,6 +33,7 @@ color:white;
<a style="position:absolute;top:10;left:0;height:50;width:1200;background:url(/ibase/webitm/images/title_bar_bg_blue.jpg);font-family:Verdana"></a>
<%
System.out.println("Inside WoStockStatus.jsp");
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
GenericUtility genericUtility = GenericUtility.getInstance();
DecimalFormat df = new DecimalFormat( "##.000" );
......@@ -58,7 +59,8 @@ color:white;
}
System.out.println("workOrder [" + workOrder + "]");
String htmlString = WoStockStatus.getStockStatus(workOrder);
//String htmlString = WoStockStatus.getStockStatus(workOrder);
String htmlString = WoStockStatus.getStockStatus(workOrder, userInfo.getTransDB());
System.out.println("htmlString [" + htmlString + "]");
%>
......
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