Commit c5f65cbf authored by jshinde's avatar jshinde

Request W15GSUN001,Create transaction screen Pallet Request .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98888 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a41fae5f
...@@ -299,16 +299,19 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle ...@@ -299,16 +299,19 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
} }
rs.close(); rs.close();
pstmt.close(); pstmt.close();
siteCode = checkNullAndTrim(genericUtility.getColumnValue("site_code",dom1));
String sql1 = "SELECT COUNT(1) FROM STOCK WHERE INV_STAT =? AND LOC_CODE=? AND QUANTITY>0"; String sql1 = "SELECT COUNT(1) FROM STOCK WHERE INV_STAT =? AND LOC_CODE=? AND SITE_CODE=? AND QUANTITY>0";
pstmt = conn.prepareStatement(sql1); pstmt = conn.prepareStatement(sql1);
pstmt.setString(1, "AWMS"); pstmt.setString(1, "AWMS");
pstmt.setString(2, palletNo); pstmt.setString(2, palletNo);
pstmt.setString(3, siteCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
System.out.println("count from stock" +rs.getInt(1)); System.out.println("count stock>>>>>>>" +rs.getInt(1));
System.out.println("PALLET_NO FOR STOCK" +palletNo);
System.out.println("site code for stock" +siteCode);
if(rs.getInt(1)==0) if(rs.getInt(1)==0)
{ {
errCode = "VMPALLETQN";//pallet quantity should be more than zero errCode = "VMPALLETQN";//pallet quantity should be more than zero
......
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Emp Code Aprv</text> <text>Employee Code Aproved</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>878</x> <x>878</x>
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Line No</text> <text>Line Number</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>70</x> <x>70</x>
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Pallet No</text> <text>Pallet Number</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>144</x> <x>144</x>
...@@ -244,6 +244,34 @@ ...@@ -244,6 +244,34 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Location Description</text>
<border>0</border>
<color>33554432</color>
<x>336</x>
<y>1</y>
<height>17</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>location_descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -446,10 +474,11 @@ ...@@ -446,10 +474,11 @@
<tabsequence>60</tabsequence> <tabsequence>60</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>337</x> <x>336</x>
<y>1</y> <y>1</y>
<height>15</height> <height>15</height>
<width>238</width> <width>238</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -475,34 +504,6 @@ ...@@ -475,34 +504,6 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Location Descr</text>
<border>0</border>
<color>33554432</color>
<x>336</x>
<y>1</y>
<height>16</height>
<width>239</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>location_descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -294,13 +294,13 @@ ...@@ -294,13 +294,13 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Pallet No:</text> <text>Pallet Number:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>43</x> <x>14</x>
<y>66</y> <y>66</y>
<height>16</height> <height>15</height>
<width>57</width> <width>86</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -465,13 +465,13 @@ ...@@ -465,13 +465,13 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Line No:</text> <text>Line Number:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>292</x> <x>267</x>
<y>47</y> <y>47</y>
<height>16</height> <height>15</height>
<width>52</width> <width>77</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
......
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