Commit 9a7a9e1e authored by vpatil's avatar vpatil

BUG FOUND IN DASHBOARD RELEASE


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98186 ce508802-f39f-4f6c-b175-0d175dae99d5
parent de547190
......@@ -36,8 +36,13 @@ public class LocationStockOccuBean implements Serializable
String xmlData = "";
try
{
xmlData = locationStockOccupancyRemote.getLocPhyArea();
System.out.println("In xmlData ::::::::::" + xmlData);
LocationStockOccupancyRemote areaRemote = null;
AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty());
System.out.println("In getLocPhyArea ::::::::::");
areaRemote = (LocationStockOccupancyRemote) ctx.lookup("ibase/LocationStockOccupancy/remote");
xmlData = areaRemote.getLocPhyArea();
System.out.println("In getLocPhyArea xmlData ::::::::::[" + xmlData+"]");
}
catch(Exception e)
{
......@@ -54,7 +59,13 @@ public class LocationStockOccuBean implements Serializable
String selectedEntity="";
try
{
selectedEntity = locationStockOccupancyRemote.getSelectedArea();
LocationStockOccupancyRemote areaRemote = null;
AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty());
System.out.println("In getSelectedArea ::::::::::");
areaRemote = (LocationStockOccupancyRemote) ctx.lookup("ibase/LocationStockOccupancy/remote");
selectedEntity = areaRemote.getSelectedArea();
System.out.println("In selectedEntity ::::::::::"+selectedEntity);
}
catch(Exception e)
{
......@@ -70,8 +81,13 @@ public class LocationStockOccuBean implements Serializable
String xmlData ="";
try
{
xmlData = locationStockOccupancyRemote.getLocDtl(locPhyArea,siteCode,locationRange);
LocationStockOccupancyRemote areaRemote = null;
AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty());
areaRemote = (LocationStockOccupancyRemote) ctx.lookup("ibase/LocationStockOccupancy/remote");
xmlData = areaRemote.getLocDtl(locPhyArea,siteCode,locationRange);
System.out.println("In getLocDtl ::::::::::["+xmlData+"]");
}
catch(Exception e)
{
......
......@@ -4,9 +4,11 @@ import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
/**
......@@ -33,6 +35,8 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
StringBuffer xmlData = null;
try
{
System.out.println("Calling EJB getLocPhyArea ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
......@@ -96,6 +100,7 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
String selectedArea = "";
try
{
System.out.println("Calling EJB getSelectedArea ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
......@@ -158,6 +163,7 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
String locCode="";
try
{
System.out.println("Calling EJB getLocDtl ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
if(locationRange!=null && locationRange.trim().length()>0){
......@@ -203,8 +209,9 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
xmlData.append("<loc_phy_stack stack=\"" + cuurentStack + "\">");
}
xmlData.append("<loc_phy_col col=\"" + checkNull(rs.getString("loc_phy_col")) + "\">");
sql = "select s.item_code, s.site_code, s.loc_code, s.lot_no, s.lot_sl, s.exp_date, s.quantity, s.alloc_qty, s.hold_qty , s.mfg_date, s.exp_date, s.retest_date , i.descr, s.unit from stock s ,item i where s.quantity >0 and s.exp_date <= sysdate and s.item_code=i.item_code and s.loc_code =? and s.site_code =?";
//Changed due to exp date<= sys date 30/06/15
//sql = "select s.item_code, s.site_code, s.loc_code, s.lot_no, s.lot_sl, s.exp_date, s.quantity, s.alloc_qty, s.hold_qty , s.mfg_date, s.exp_date, s.retest_date , i.descr, s.unit from stock s ,item i where s.quantity >0 and s.exp_date <= sysdate and s.item_code=i.item_code and s.loc_code =? and s.site_code =?";
sql = "select s.item_code, s.site_code, s.loc_code, s.lot_no, s.lot_sl, s.exp_date, s.quantity, s.alloc_qty, s.hold_qty , s.mfg_date, s.exp_date, s.retest_date , i.descr, s.unit from stock s ,item i where s.quantity >0 and s.item_code=i.item_code and s.loc_code =? and s.site_code =?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, locationCode);
......
......@@ -17,7 +17,7 @@
<grid datasource='1' id='1' type='T'>
<component_type><![CDATA[DataGrid]]></component_type>
<component_caption><![CDATA[Task status]]></component_caption>
<component_caption><![CDATA[Task Status]]></component_caption>
<column_group id='assignTask'>
<col_group_title><![CDATA[Assign Task]]></col_group_title>
......@@ -60,12 +60,12 @@
</column_group>
<column_group id='totalTask'>
<col_group_title><![CDATA[Total Tasks]]></col_group_title>
<column_size><![CDATA[30]]></column_size>
<col_group_title><![CDATA[TotalTasks]]></col_group_title>
<column_size><![CDATA[35]]></column_size>
<column_alignment><![CDATA[right]]></column_alignment>
<link_metadata><![CDATA[]]></link_metadata>
<columns>
<column id='totalTask'><![CDATA[Total Tasks]]></column>
<column id='totalTask'><![CDATA[TotalTasks]]></column>
</columns>
</column_group>
......@@ -214,7 +214,7 @@
<chart_type id='bar'><![CDATA[StackedColumn2D]]></chart_type>
<caption><![CDATA[Task Status ]]></caption>
<height><![CDATA[350]]></height>
<width><![CDATA[100%]]></width>
<width><![CDATA[500]]></width>
<bg_color><![CDATA[F0F0F0]]></bg_color>
<showlegend><![CDATA[1]]></showlegend>
<useroundedges><![CDATA[1]]></useroundedges>
......@@ -251,7 +251,7 @@
<chart_type id='bar'><![CDATA[MSCombiDY2D]]></chart_type>
<caption><![CDATA[Consignment Details]]></caption>
<height><![CDATA[350]]></height>
<width><![CDATA[100%]]></width>
<width><![CDATA[500]]></width>
<bg_color><![CDATA[F0F0F0]]></bg_color>
<showlegend><![CDATA[1]]></showlegend>
<useroundedges><![CDATA[1]]></useroundedges>
......
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