Commit e0ce18b8 authored by sshinde's avatar sshinde

Change the theme of location occupancy , modify Ejb for loc_phy_col


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97990 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 045ade5b
...@@ -40,7 +40,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe ...@@ -40,7 +40,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
xmlData = new StringBuffer("<?xml version='1.0'?> <Root>"); xmlData = new StringBuffer("<?xml version='1.0'?> <Root>");
while (rs.next()) while (rs.next())
{ {
...@@ -87,7 +86,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe ...@@ -87,7 +86,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe
public String getSelectedArea() throws RemoteException, ITMException public String getSelectedArea() throws RemoteException, ITMException
{ {
String sql = ""; String sql = "";
ResultSet rs = null; ResultSet rs = null;
Connection conn = null; Connection conn = null;
...@@ -192,7 +190,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe ...@@ -192,7 +190,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe
//sqlStr.append(" and s.exp_date > " + sysDate); //sqlStr.append(" and s.exp_date > " + sysDate);
} }
/* if (reTestDate != null && reTestDate.trim().length() != 0 && reTestDate.equalsIgnoreCase(yseString)) /* if (reTestDate != null && reTestDate.trim().length() != 0 && reTestDate.equalsIgnoreCase(yseString))
{ {
sqlStr.append(" and s.retest_date < " + sysDate); sqlStr.append(" and s.retest_date < " + sysDate);
...@@ -202,7 +199,12 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe ...@@ -202,7 +199,12 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe
sqlStr.append(" and s.retest_date > " + sysDate); sqlStr.append(" and s.retest_date > " + sysDate);
}*/ }*/
sql = "select loc_code,loc_phy_row,loc_phy_col,loc_phy_stack from location where loc_phy_area = ? and site_code = ? " + locCode + " order by loc_phy_row, loc_phy_stack ,loc_phy_col"; //sql = "select loc_code,loc_phy_row,loc_phy_col,loc_phy_stack from location where loc_phy_area = ? and site_code = ? " + locCode + " order by loc_phy_row, loc_phy_stack ,loc_phy_col";
//*Change query for alphanumeric sorting **/
sql = "select loc_code,loc_phy_row,loc_phy_col,loc_phy_stack from location where loc_phy_area = ? and site_code = ? " + locCode + " order by loc_phy_row, loc_phy_stack ,substr(loc_phy_col,1,1), cast(substr(loc_phy_col,2) as int)";
//* End Change query for alphanumeric sorting **/
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locPhyArea); pstmt.setString(1, locPhyArea);
pstmt.setString(2, siteCode); pstmt.setString(2, siteCode);
...@@ -344,7 +346,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe ...@@ -344,7 +346,6 @@ public class EORLocationStock extends ValidatorEJB implements EORLocationStockRe
System.out.println("Final XML===" + xmlData.toString()); System.out.println("Final XML===" + xmlData.toString());
return xmlData.toString(); return xmlData.toString();
} }
private String checkNull(String input) private String checkNull(String input)
{ {
if (input == null) if (input == null)
......
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