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
}
rs.close();
pstmt.close();
String sql1 = "SELECT COUNT(1) FROM STOCK WHERE INV_STAT =? AND LOC_CODE=? AND QUANTITY>0";
siteCode = checkNullAndTrim(genericUtility.getColumnValue("site_code",dom1));
String sql1 = "SELECT COUNT(1) FROM STOCK WHERE INV_STAT =? AND LOC_CODE=? AND SITE_CODE=? AND QUANTITY>0";
pstmt = conn.prepareStatement(sql1);
pstmt.setString(1, "AWMS");
pstmt.setString(2, palletNo);
pstmt.setString(3, siteCode);
rs = pstmt.executeQuery();
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)
{
errCode = "VMPALLETQN";//pallet quantity should be more than zero
......
......@@ -351,7 +351,7 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Emp Code Aprv</text>
<text>Employee Code Aproved</text>
<border>0</border>
<color>33554432</color>
<x>878</x>
......
......@@ -135,7 +135,7 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Line No</text>
<text>Line Number</text>
<border>0</border>
<color>33554432</color>
<x>70</x>
......@@ -163,7 +163,7 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pallet No</text>
<text>Pallet Number</text>
<border>0</border>
<color>33554432</color>
<x>144</x>
......@@ -244,6 +244,34 @@
<color>536870912</color>
</background>
</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>
<band>Detail</band>
<id>1</id>
......@@ -446,10 +474,11 @@
<tabsequence>60</tabsequence>
<border>0</border>
<color>33554432</color>
<x>337</x>
<x>336</x>
<y>1</y>
<height>15</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -475,34 +504,6 @@
<color>536870912</color>
</background>
</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>
<border>1</border>
</HtmlTable>
......
......@@ -168,10 +168,10 @@
<text>Other</text>
<border>2</border>
<color>33554432</color>
<x>17</x>
<y>252</y>
<height>100</height>
<width>546</width>
<x>20</x>
<y>257</y>
<height>104</height>
<width>538</width>
<name>gb_2</name>
<visible>1</visible>
<font>
......@@ -192,10 +192,10 @@
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>18</x>
<y>18</y>
<height>213</height>
<width>522</width>
<x>12</x>
<y>17</y>
<height>217</height>
<width>549</width>
<name>gb_1</name>
<visible>1</visible>
<font>
......@@ -211,214 +211,13 @@
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<y>293</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>137</x>
<y>293</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<tag>User who has last modified the transaction. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date:</text>
<border>0</border>
<color>33554432</color>
<x>339</x>
<y>293</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>436</x>
<y>293</y>
<height>16</height>
<width>70</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<tag>Date when the transaction was last modified.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<y>313</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>137</x>
<y>313</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<tag>Terminal from which transaction has been modified. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>120</y>
<height>16</height>
<width>97</width>
......@@ -447,7 +246,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>120</y>
<height>16</height>
<width>25</width>
......@@ -482,13 +281,13 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Emp Code Aprv:</text>
<text>Employee Code Aproved:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>22</x>
<y>140</y>
<height>16</height>
<width>97</width>
<height>15</height>
<width>146</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -513,7 +312,7 @@
<text>Add User:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>160</y>
<height>16</height>
<width>97</width>
......@@ -541,7 +340,7 @@
<text>Add Term:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>180</y>
<height>16</height>
<width>97</width>
......@@ -570,7 +369,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>436</x>
<x>465</x>
<y>120</y>
<height>16</height>
<width>70</width>
......@@ -609,7 +408,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>436</x>
<x>465</x>
<y>160</y>
<height>16</height>
<width>70</width>
......@@ -647,7 +446,7 @@
<text>Confirmed Date:</text>
<border>0</border>
<color>33554432</color>
<x>336</x>
<x>365</x>
<y>120</y>
<height>16</height>
<width>97</width>
......@@ -676,7 +475,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>140</y>
<height>16</height>
<width>70</width>
......@@ -715,7 +514,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>160</y>
<height>16</height>
<width>70</width>
......@@ -753,7 +552,7 @@
<text>Add Date:</text>
<border>0</border>
<color>33554432</color>
<x>337</x>
<x>366</x>
<y>160</y>
<height>16</height>
<width>97</width>
......@@ -782,7 +581,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>180</y>
<height>16</height>
<width>70</width>
......@@ -820,7 +619,7 @@
<text>Transaction ID:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>40</y>
<height>16</height>
<width>97</width>
......@@ -848,7 +647,7 @@
<text>Site Code:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>60</y>
<height>16</height>
<width>97</width>
......@@ -876,7 +675,7 @@
<text>Location Code:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>80</y>
<height>16</height>
<width>97</width>
......@@ -904,7 +703,7 @@
<text>Remarks:</text>
<border>0</border>
<color>33554432</color>
<x>37</x>
<x>66</x>
<y>100</y>
<height>16</height>
<width>97</width>
......@@ -933,7 +732,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>436</x>
<x>465</x>
<y>40</y>
<height>16</height>
<width>70</width>
......@@ -972,7 +771,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>40</y>
<height>16</height>
<width>70</width>
......@@ -1010,7 +809,7 @@
<text>Transaction Date:</text>
<border>0</border>
<color>33554432</color>
<x>331</x>
<x>360</x>
<y>40</y>
<height>16</height>
<width>102</width>
......@@ -1039,7 +838,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>60</y>
<height>16</height>
<width>50</width>
......@@ -1078,7 +877,7 @@
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>138</x>
<x>167</x>
<y>80</y>
<height>16</height>
<width>70</width>
......@@ -1117,7 +916,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>192</x>
<x>221</x>
<y>60</y>
<height>16</height>
<width>314</width>
......@@ -1154,7 +953,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>211</x>
<x>240</x>
<y>80</y>
<height>16</height>
<width>295</width>
......@@ -1191,7 +990,7 @@
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>137</x>
<x>166</x>
<y>100</y>
<height>16</height>
<width>369</width>
......@@ -1223,6 +1022,207 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User:</text>
<border>0</border>
<color>33554432</color>
<x>66</x>
<y>293</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>166</x>
<y>293</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<tag>User who has last modified the transaction. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term:</text>
<border>0</border>
<color>33554432</color>
<x>66</x>
<y>313</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>166</x>
<y>313</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<tag>Terminal from which transaction has been modified. Internally modify by system.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date:</text>
<border>0</border>
<color>33554432</color>
<x>368</x>
<y>293</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pallet_req_hdr_chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>465</x>
<y>293</y>
<height>16</height>
<width>70</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<tag>Date when the transaction was last modified.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -294,13 +294,13 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Pallet No:</text>
<text>Pallet Number:</text>
<border>0</border>
<color>33554432</color>
<x>43</x>
<x>14</x>
<y>66</y>
<height>16</height>
<width>57</width>
<height>15</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -465,13 +465,13 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No:</text>
<text>Line Number:</text>
<border>0</border>
<color>33554432</color>
<x>292</x>
<x>267</x>
<y>47</y>
<height>16</height>
<width>52</width>
<height>15</height>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</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