Commit fca0c2e0 authored by msingh's avatar msingh

Change by Manish for Pack Label Wizard on 28/10/16


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103836 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 04930112
...@@ -150,6 +150,18 @@ ...@@ -150,6 +150,18 @@
<name>site_code__mfg</name> <name>site_code__mfg</name>
<dbname>name_9</dbname> <dbname>name_9</dbname>
</table_column> </table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>line_no__ord</name>
<dbname>name_10</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>no_pallet</name>
<dbname>name_11</dbname>
</table_column>
</TableDefinition> </TableDefinition>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
...@@ -403,90 +415,6 @@ ...@@ -403,90 +415,6 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Lot No</text>
<border>0</border>
<color>33554432</color>
<x>904</x>
<y>1</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>No Art</text>
<border>0</border>
<color>33554432</color>
<x>982</x>
<y>1</y>
<height>16</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Tran Code</text>
<border>0</border>
<color>33554432</color>
<x>1042</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_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>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>0</alignment> <alignment>0</alignment>
...@@ -515,118 +443,6 @@ ...@@ -515,118 +443,6 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Case Label</text>
<border>0</border>
<color>33554432</color>
<x>1322</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>case_label_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Exp Date</text>
<border>0</border>
<color>33554432</color>
<x>1112</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_date_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Mfg Date</text>
<border>0</border>
<color>33554432</color>
<x>1182</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_date_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code Mfg</text>
<border>0</border>
<color>33554432</color>
<x>1252</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__mfg_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>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -970,20 +786,20 @@ ...@@ -970,20 +786,20 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>12</id> <id>9</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>130</tabsequence> <tabsequence>100</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>1042</x> <x>807</x>
<y>5</y> <y>3</y>
<height>17</height> <height>16</height>
<width>68</width> <width>95</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>tran_code</name> <name>shipper_size</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -1006,63 +822,55 @@ ...@@ -1006,63 +822,55 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>11</id> <id>18</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>120</tabsequence> <tabsequence>180</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>982</x> <x>1393</x>
<y>5</y> <y>5</y>
<height>16</height> <height>15</height>
<width>58</width> <width>81</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>no_art</name> <name>line_no__ord</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-11</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>1073741824</color> <color>536870912</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Header</band>
<id>10</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>110</tabsequence> <text>Lot No</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>904</x> <x>904</x>
<y>3</y> <y>1</y>
<height>16</height> <height>16</height>
<width>76</width> <width>76</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>lot_no</name> <name>lot_no_t</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-11</height> <height>-11</height>
...@@ -1075,23 +883,263 @@ ...@@ -1075,23 +883,263 @@
<mode>2</mode> <mode>2</mode>
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </TextObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Header</band>
<id>9</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>100</tabsequence> <text>No Art</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>807</x> <x>982</x>
<y>1</y>
<height>16</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Tran Code</text>
<border>0</border>
<color>33554432</color>
<x>1042</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Case Label</text>
<border>0</border>
<color>33554432</color>
<x>1322</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>case_label_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Exp Date</text>
<border>0</border>
<color>33554432</color>
<x>1112</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exp_date_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Mfg Date</text>
<border>0</border>
<color>33554432</color>
<x>1182</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mfg_date_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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site Code Mfg</text>
<border>0</border>
<color>33554432</color>
<x>1252</x>
<y>1</y>
<height>17</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__mfg_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>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1042</x>
<y>5</y>
<height>17</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<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>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>0</border>
<color>33554432</color>
<x>982</x>
<y>5</y>
<height>16</height>
<width>58</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<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>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>0</border>
<color>33554432</color>
<x>904</x>
<y>3</y> <y>3</y>
<height>16</height> <height>16</height>
<width>95</width> <width>76</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>shipper_size</name> <name>lot_no</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -1120,7 +1168,7 @@ ...@@ -1120,7 +1168,7 @@
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>1322</x> <x>1322</x>
<y>5</y> <y>4</y>
<height>17</height> <height>17</height>
<width>68</width> <width>68</width>
<format>[general]</format> <format>[general]</format>
...@@ -1260,6 +1308,98 @@ ...@@ -1260,6 +1308,98 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Line No Ord</text>
<border>0</border>
<color>33554432</color>
<x>1392</x>
<y>1</y>
<height>15</height>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__ord_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>19</id>
<alignment>0</alignment>
<tabsequence>190</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1477</x>
<y>4</y>
<height>15</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_pallet</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<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>Header</band>
<alignment>0</alignment>
<text>No Pallet</text>
<border>0</border>
<color>33554432</color>
<x>1476</x>
<y>1</y>
<height>15</height>
<width>59</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_pallet_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>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -151,22 +151,44 @@ ...@@ -151,22 +151,44 @@
<name>site_code__mfg</name> <name>site_code__mfg</name>
<dbname>name_10</dbname> <dbname>name_10</dbname>
</table_column> </table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>line_no__ord</name>
<dbname>name_11</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>no_pallet</name>
<dbname>name_12</dbname>
</table_column>
</TableDefinition> </TableDefinition>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>3</id>
<text>Purchase Contract / Order:</text> <alignment>0</alignment>
<border>0</border> <tabsequence>30</tabsequence>
<color>33554432</color> <border>5</border>
<x>0</x> <color>0</color>
<y>8</y> <x>367</x>
<height>15</height> <y>40</y>
<width>156</width> <height>18</height>
<width>102</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>contract_no_t</name> <name>site_code_descr</name>
<visible>1</visible> <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> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -176,26 +198,26 @@ ...@@ -176,26 +198,26 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>16777215</color>
</background> </background>
</TextObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>5</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>10</tabsequence> <tabsequence>50</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>131</x> <x>367</x>
<y>8</y> <y>65</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>contract_no</name> <name>supp_code_descr</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -218,21 +240,31 @@ ...@@ -218,21 +240,31 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>7</id>
<text>Site Code:</text> <alignment>0</alignment>
<border>0</border> <tabsequence>70</tabsequence>
<color>33554432</color> <border>5</border>
<x>14</x> <color>0</color>
<y>35</y> <x>367</x>
<height>15</height> <y>93</y>
<width>110</width> <height>18</height>
<width>102</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code_t</name> <name>item_code_descr</name>
<visible>1</visible> <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> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -242,38 +274,36 @@ ...@@ -242,38 +274,36 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>16777215</color>
</background> </background>
</TextObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>2</id> <id>10</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>20</tabsequence> <tabsequence>90</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>33554432</color>
<x>132</x> <x>367</x>
<y>35</y> <y>121</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code</name> <name>shipper_size</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-11</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
...@@ -281,23 +311,60 @@ ...@@ -281,23 +311,60 @@
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>16777215</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>12</id>
<text>Supp Code:</text> <alignment>0</alignment>
<border>0</border> <tabsequence>110</tabsequence>
<border>5</border>
<color>33554432</color> <color>33554432</color>
<x>12</x> <x>367</x>
<y>61</y> <y>145</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<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>
</ColumnObject>
<ComputedField>
<band>Detail</band>
<alignment>0</alignment>
<expression> case_label </expression>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>171</y>
<height>15</height> <height>15</height>
<width>110</width> <width>104</width>
<format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>supp_code_t</name> <name>compute_2</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -308,24 +375,82 @@ ...@@ -308,24 +375,82 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>1073741824</color>
</background> </background>
</TextObject> </ComputedField>
<ComputedField>
<band>Detail</band>
<alignment>0</alignment>
<expression> exp_date </expression>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>195</y>
<height>17</height>
<width>103</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_3</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>
</ComputedField>
<ComputedField>
<band>Detail</band>
<alignment>0</alignment>
<expression> site_code__mfg </expression>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>219</y>
<height>17</height>
<width>103</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_5</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>
</ComputedField>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Item Code:</text> <text>Purchase Contract / Order:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>16</x> <x>0</x>
<y>91</y> <y>8</y>
<height>15</height> <height>15</height>
<width>110</width> <width>156</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_code_t</name> <name>contract_no_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -342,20 +467,20 @@ ...@@ -342,20 +467,20 @@
</TextObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>4</id> <id>1</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>40</tabsequence> <tabsequence>10</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>132</x> <x>131</x>
<y>61</y> <y>8</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>supp_code</name> <name>contract_no</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -378,22 +503,50 @@ ...@@ -378,22 +503,50 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code:</text>
<border>0</border>
<color>33554432</color>
<x>14</x>
<y>35</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_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> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>6</id> <id>2</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>60</tabsequence> <tabsequence>20</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>132</x> <x>132</x>
<y>91</y> <y>35</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_code</name> <name>site_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -419,17 +572,17 @@ ...@@ -419,17 +572,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Quantity:</text> <text>Supp Code:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>14</x> <x>12</x>
<y>120</y> <y>61</y>
<height>15</height> <height>15</height>
<width>110</width> <width>110</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>quantity_t</name> <name>supp_code_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -444,31 +597,21 @@ ...@@ -444,31 +597,21 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<id>8</id> <alignment>1</alignment>
<alignment>0</alignment> <text>Item Code:</text>
<tabsequence>80</tabsequence> <border>0</border>
<border>5</border> <color>33554432</color>
<color>0</color> <x>16</x>
<x>132</x> <y>91</y>
<y>120</y> <height>15</height>
<height>18</height> <width>110</width>
<width>102</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>quantity</name> <name>item_code_t</name>
<visible>1</visible> <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> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -478,26 +621,26 @@ ...@@ -478,26 +621,26 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>16777215</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>3</id> <id>4</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>30</tabsequence> <tabsequence>40</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>367</x> <x>132</x>
<y>40</y> <y>61</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>site_code_descr</name> <name>supp_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -522,20 +665,20 @@ ...@@ -522,20 +665,20 @@
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>5</id> <id>6</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>50</tabsequence> <tabsequence>60</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>367</x> <x>132</x>
<y>65</y> <y>91</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>supp_code_descr</name> <name>item_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
...@@ -558,31 +701,21 @@ ...@@ -558,31 +701,21 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<id>7</id> <alignment>1</alignment>
<alignment>0</alignment> <text>Quantity:</text>
<tabsequence>70</tabsequence> <border>0</border>
<border>5</border> <color>33554432</color>
<color>0</color> <x>14</x>
<x>367</x> <y>120</y>
<y>93</y> <height>15</height>
<height>18</height> <width>110</width>
<width>102</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>item_code_descr</name> <name>quantity_t</name>
<visible>1</visible> <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> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -592,36 +725,38 @@ ...@@ -592,36 +725,38 @@
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>16777215</color> <color>536870912</color>
</background> </background>
</ColumnObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>10</id> <id>8</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>90</tabsequence> <tabsequence>80</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>0</color>
<x>367</x> <x>132</x>
<y>121</y> <y>120</y>
<height>18</height> <height>18</height>
<width>102</width> <width>102</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>shipper_size</name> <name>quantity</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-11</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
...@@ -629,7 +764,7 @@ ...@@ -629,7 +764,7 @@
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1073741824</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject> <TextObject>
...@@ -772,42 +907,6 @@ ...@@ -772,42 +907,6 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>145</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<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>
</ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
...@@ -993,25 +1092,53 @@ ...@@ -993,25 +1092,53 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Case Label:</text>
<border>0</border>
<color>33554432</color>
<x>252</x>
<y>174</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>case_label_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>
<ComputedField> <ComputedField>
<band>Detail</band> <band>Detail</band>
<alignment>0</alignment> <alignment>0</alignment>
<expression> case_label </expression> <expression> mfg_date </expression>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>367</x> <x>132</x>
<y>171</y> <y>217</y>
<height>15</height> <height>17</height>
<width>104</width> <width>56</width>
<format>[GENERAL]</format> <format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>compute_2</name> <name>compute_4</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-11</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
...@@ -1025,17 +1152,17 @@ ...@@ -1025,17 +1152,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Case Label:</text> <text>MFG Date:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>252</x> <x>62</x>
<y>174</y> <y>217</y>
<height>15</height> <height>15</height>
<width>110</width> <width>64</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>case_label_t</name> <name>t_2</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -1050,79 +1177,77 @@ ...@@ -1050,79 +1177,77 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ComputedField> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>0</alignment> <alignment>1</alignment>
<expression> mfg_date </expression> <text>EXP Date:</text>
<border>5</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>132</x> <x>253</x>
<y>217</y> <y>195</y>
<height>17</height> <height>15</height>
<width>56</width> <width>110</width>
<format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>compute_4</name> <name>t_3</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-11</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>1073741824</color> <color>536870912</color>
</background> </background>
</ComputedField> </TextObject>
<ComputedField> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>0</alignment> <alignment>1</alignment>
<expression> exp_date </expression> <text>MFG Site:</text>
<border>5</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>367</x> <x>252</x>
<y>195</y> <y>218</y>
<height>17</height> <height>15</height>
<width>103</width> <width>110</width>
<format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>compute_3</name> <name>t_4</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-11</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>1</mode>
<color>1073741824</color> <color>536870912</color>
</background> </background>
</ComputedField> </TextObject>
<ComputedField> <ComputedField>
<band>Detail</band> <band>Detail</band>
<alignment>0</alignment> <alignment>0</alignment>
<expression> site_code__mfg </expression> <expression> line_no__ord </expression>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>367</x> <x>366</x>
<y>219</y> <y>241</y>
<height>17</height> <height>17</height>
<width>103</width> <width>108</width>
<format>[GENERAL]</format> <format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>compute_5</name> <name>compute_6</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -1140,17 +1265,17 @@ ...@@ -1140,17 +1265,17 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>MFG Date:</text> <text>Line No:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>62</x> <x>253</x>
<y>217</y> <y>243</y>
<height>15</height> <height>15</height>
<width>64</width> <width>110</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>t_2</name> <name>t_5</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -1165,48 +1290,49 @@ ...@@ -1165,48 +1290,49 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ComputedField>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>0</alignment>
<text>EXP Date:</text> <expression> no_pallet </expression>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>253</x> <x>133</x>
<y>195</y> <y>242</y>
<height>15</height> <height>17</height>
<width>110</width> <width>69</width>
<format>[GENERAL]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>t_3</name> <name>compute_7</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-11</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>2</mode>
<color>536870912</color> <color>1073741824</color>
</background> </background>
</TextObject> </ComputedField>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>MFG Site:</text> <text>No of Pallet:</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>252</x> <x>52</x>
<y>218</y> <y>245</y>
<height>15</height> <height>15</height>
<width>110</width> <width>71</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>t_4</name> <name>t_7</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Arial</face> <face>Arial</face>
......
var maxId = 0; var maxId = 0;
var selectedCode = new Array(); var selectedCode = new Array();
function setChecked(obj) function setChecked(obj)
{
if( obj.value == 'false' )
{ {
if( obj.value == 'false' ) obj.value ='true';
{
obj.value ='true';
}
else
{
obj.value = 'false';
}
} }
else
function setActionVal( value ) {
{ obj.value = 'false';
document.getElementById("action").value = value;
document.getElementById(value).style.pointerEvents = 'none';
} }
}
function gotBlur(obj)
{
if((oldVal != obj.value) || (obj.ISCHANGED == "true"))
{
obj.ISCHANGED = "true";
}
}
function gotFocus( column ) function setActionVal( value )
{
document.getElementById("action").value = value;
document.getElementById(value).style.pointerEvents = 'none';
}
function gotBlur(obj)
{
if((oldVal != obj.value) || (obj.ISCHANGED == "true"))
{ {
objCur=column.name; obj.ISCHANGED = "true";
oldVal=column.value;
} }
}
/** function gotFocus( column )
* Pressing 'F2' open popup {
*/ objCur=column.name;
function openSearchPopup(event, dbid, logincode, field, filedName, value) oldVal=column.value;
}
/**
* Pressing 'F2' open popup
*/
function openSearchPopup(event, dbid, logincode, field, filedName, value)
{
if(event.keyCode == 113)
{ {
if(event.keyCode == 113) event.preventDefault();
{ event.stopPropagation();
event.preventDefault(); callListJSP(dbid, logincode, field, filedName, value);
event.stopPropagation(); return false;
callListJSP(dbid, logincode, field, filedName, value);
return false;
}
} }
}
/**
* pophelp function /**
*/ * pophelp function
function callListJSP( dbID, loginId, field, fieldName, idNum ) */
function callListJSP( dbID, loginId, field, fieldName, idNum )
{
selectedCode = [];
var fieldValue = "";
if (field == "contract_no")
{ {
selectedCode = []; fieldValue = document.getElementById("Detail1.1.contract_no").value;
var fieldValue = "";
if (field == "contract_no")
{
fieldValue = document.getElementById("Detail1.1.contract_no").value;
}
else if (field == "site_code")
{
fieldValue = document.getElementById("Detail1.1.site_code").value;
}
else if (field == "purc_order")
{
fieldValue = document.getElementById("Detail1.1.purc_order").value;
}
var url = "/ibase/webitm/jsp/packLabelWizPopup.jsp?LOGIN_ID="+loginId
+"&FIELDS="+field+"&DBID="+dbID+"&FIELDNAME="+fieldName+"&IDNUM="+idNum+"&FIELDVALUE="+fieldValue+",";
var win = window.open( url, 'ASN Details', 'toolbar=no,status=yes,resizable=no,scrollbars=yes,left=100,top=50,width=500,height=550' );
} }
else if (field == "site_code")
/**
* display selected value from popup
*/
function displayValue( fieldId, fieldValue, seldbID, field, idNum )
{ {
if (field == "contract_no") fieldValue = document.getElementById("Detail1.1.site_code").value;
{ }
var contractNo = fieldId.split(":"); else if (field == "purc_order")
{
fieldValue = document.getElementById("Detail1.1.purc_order").value;
}
document.getElementById("Detail1.1.contract_no").value = contractNo[0]; var url = "/ibase/webitm/jsp/packLabelWizPopup.jsp?LOGIN_ID="+loginId
document.getElementById("Detail1.1.supp_code").value = fieldValue; +"&FIELDS="+field+"&DBID="+dbID+"&FIELDNAME="+fieldName+"&IDNUM="+idNum+"&FIELDVALUE="+fieldValue+",";
document.getElementById("Detail1.1.tran_code").value = contractNo[1];
document.getElementById("Detail1.1.tran_name").value = contractNo[2];
document.getElementById("Detail1.1.tran_type").value = contractNo[3];
document.getElementById("Detail1.1.scac_code").value = contractNo[4];
document.getElementById("Detail1.1.site_code__supp").value = contractNo[5];
document.getElementById("Detail1.1.site_code__supp_descr").value = contractNo[6];
document.getElementById("Detail1.1.supp_code_descr").value = contractNo[7];
document.getElementById("Detail1.1.purc_order").value = "";
}
else if (field == "site_code")
{
document.getElementById("Detail1.1.site_code").value = fieldId;
document.getElementById("Detail1.1.site_code_descr").value = fieldValue;
}
else if (field == "purc_order")
{
var contractNo = fieldId.split(":");
document.getElementById("Detail1.1.purc_order").value = contractNo[0]; var win = window.open( url, 'ASN Details', 'toolbar=no,status=yes,resizable=no,scrollbars=yes,left=100,top=50,width=500,height=550' );
document.getElementById("Detail1.1.supp_code").value = fieldValue; }
document.getElementById("Detail1.1.tran_code").value = contractNo[1];
/**
document.getElementById("Detail1.1.tran_name").value = contractNo[2]; * display selected value from popup
document.getElementById("Detail1.1.tran_type").value = contractNo[3]; */
document.getElementById("Detail1.1.scac_code").value = contractNo[4]; function displayValue( fieldId, fieldValue, seldbID, field, idNum )
{
document.getElementById("Detail1.1.site_code__supp").value = contractNo[5]; if (field == "contract_no")
document.getElementById("Detail1.1.site_code__supp_descr").value = contractNo[6]; {
document.getElementById("Detail1.1.supp_code_descr").value = contractNo[7]; var contractNo = fieldId.split(":");
document.getElementById("Detail1.1.contract_no").value = ""; document.getElementById("Detail1.1.contract_no").value = contractNo[0];
document.getElementById("Detail1.1.supp_code").value = fieldValue;
} document.getElementById("Detail1.1.tran_code").value = contractNo[1];
document.getElementById("Detail1.1.tran_name").value = contractNo[2];
document.getElementById("Detail1.1.tran_type").value = contractNo[3];
document.getElementById("Detail1.1.scac_code").value = contractNo[4];
document.getElementById("Detail1.1.site_code__supp").value = contractNo[5];
document.getElementById("Detail1.1.site_code__supp_descr").value = contractNo[6];
document.getElementById("Detail1.1.supp_code_descr").value = contractNo[7];
document.getElementById("Detail1.1.purc_order").value = "";
}
else if (field == "site_code")
{
document.getElementById("Detail1.1.site_code").value = fieldId;
document.getElementById("Detail1.1.site_code_descr").value = fieldValue;
} }
/** else if (field == "purc_order")
* selected value from popup {
*/ var contractNo = fieldId.split(":");
function selectValue()
document.getElementById("Detail1.1.purc_order").value = contractNo[0];
document.getElementById("Detail1.1.supp_code").value = fieldValue;
document.getElementById("Detail1.1.tran_code").value = contractNo[1];
document.getElementById("Detail1.1.tran_name").value = contractNo[2];
document.getElementById("Detail1.1.tran_type").value = contractNo[3];
document.getElementById("Detail1.1.scac_code").value = contractNo[4];
document.getElementById("Detail1.1.site_code__supp").value = contractNo[5];
document.getElementById("Detail1.1.site_code__supp_descr").value = contractNo[6];
document.getElementById("Detail1.1.supp_code_descr").value = contractNo[7];
document.getElementById("Detail1.1.contract_no").value = "";
}
}
/**
* selected value from popup
*/
function selectValue()
{
var fieldId = "";
var fieldValue = "";
var seldbID ="";
var field = document.getElementById("value").value;
selectedCode = $.unique( selectedCode );
selectedCode.reverse();
for( var i = 0; i < selectedCode.length; i++)
{ {
var fieldId = ""; seldbID = seldbID + selectedCode[i];
var fieldValue = "";
var seldbID =""; if ( field == "contract_no" || "purc_order")
var field = document.getElementById("value").value;
selectedCode = $.unique( selectedCode );
selectedCode.reverse();
for( var i = 0; i < selectedCode.length; i++)
{ {
seldbID = seldbID + selectedCode[i]; fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim()
+ ":" + (document.getElementById("DetailITCode."+ selectedCode[i] +".otherField").value).trim() + ", ";
if ( field == "contract_no" || "purc_order") }
{ else
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() {
+ ":" + (document.getElementById("DetailITCode."+ selectedCode[i] +".otherField").value).trim() + ", "; fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() + ", ";
}
else
{
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() + ", ";
}
if ( field == "item_category" )
{
fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ",";
}
else
{
fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ", ";
}
} }
fieldId = fieldId.substring(0, fieldId.length-2);
if ( field == "item_category" ) if ( field == "item_category" )
{ {
fieldValue = fieldValue.substring(0, fieldValue.length-1); fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ",";
} }
else else
{ {
fieldValue = fieldValue.substring(0, fieldValue.length-2); fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ", ";
} }
}
var check = 0;
fieldId = fieldId.substring(0, fieldId.length-2);
if( fieldId == "") if ( field == "item_category" )
{
fieldValue = fieldValue.substring(0, fieldValue.length-1);
}
else
{
fieldValue = fieldValue.substring(0, fieldValue.length-2);
}
var check = 0;
if( fieldId == "")
{
if (field == "language_desc")
{ {
if (field == "language_desc") alert("No Selection Made! \nPlease Select the Code!");
return false;
}
else
{
var r = confirm("No Selection Made! \nYou want to continue?");
if (r != true)
{ {
alert("No Selection Made! \nPlease Select the Code!");
return false; return false;
} }
else
{
var r = confirm("No Selection Made! \nYou want to continue?");
if (r != true)
{
return false;
}
}
} }
else }
else
{
var idNum = document.getElementById("idNum").value;
if ( field == "pricelist")
{ {
var idNum = document.getElementById("idNum").value; var rows = 0;
if ( field == "pricelist") if (window.opener.document.getElementById('priceListDtl') != null)
{
rows = window.opener.document.getElementById('priceListDtl').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length;
}
else
{ {
var rows = 0; if (window.opener.document.getElementById('SKUPriceListId') != null)
if (window.opener.document.getElementById('priceListDtl') != null)
{ {
rows = window.opener.document.getElementById('priceListDtl').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length; rows = window.opener.document.getElementById('SKUPriceListId').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length;
} }
else }
for (var i = 0; i < rows; i++)
{
if (window.opener.document.getElementById('prodsPriceList'+i) != null && i != idNum)
{ {
if (window.opener.document.getElementById('SKUPriceListId') != null) if (window.opener.document.getElementById('prodsPriceList'+i).value == fieldId)
{ {
rows = window.opener.document.getElementById('SKUPriceListId').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length; check = 1;
alert("Price List is already Selected. \nPlease Select Different Price List.");
} }
} }
else
for (var i = 0; i < rows; i++)
{ {
if (window.opener.document.getElementById('prodsPriceList'+i) != null && i != idNum) if (window.opener.document.getElementById('prodPriceList'+i) != null && i != idNum)
{ {
if (window.opener.document.getElementById('prodsPriceList'+i).value == fieldId) if (window.opener.document.getElementById('prodPriceList'+i).value == fieldId)
{ {
check = 1; check = 1;
alert("Price List is already Selected. \nPlease Select Different Price List."); alert("Price List is already Selected. \nPlease Select Different Price List.");
} }
} }
else
{
if (window.opener.document.getElementById('prodPriceList'+i) != null && i != idNum)
{
if (window.opener.document.getElementById('prodPriceList'+i).value == fieldId)
{
check = 1;
alert("Price List is already Selected. \nPlease Select Different Price List.");
}
}
}
} }
} }
} }
if (check == 0)
{
window.opener.displayValue( fieldId, fieldValue, seldbID, field, idNum );
window.close();
}
} }
/** if (check == 0)
* set all check boxes true false
*/
function checkAll(element)
{ {
var checkboxes = document.getElementsByTagName('input'); window.opener.displayValue( fieldId, fieldValue, seldbID, field, idNum );
window.close();
if (element.checked) }
{ }
for (var i = 0; i < checkboxes.length; i++)
{ /**
if (checkboxes[i].type == 'checkbox') * set all check boxes true false
{ */
checkboxes[i].checked = true; function checkAll(element)
checkboxes[i].value = true; {
} var checkboxes = document.getElementsByTagName('input');
}
} if (element.checked)
else {
for (var i = 0; i < checkboxes.length; i++)
{ {
for (var i = 0; i < checkboxes.length; i++) if (checkboxes[i].type == 'checkbox')
{
if (checkboxes[i].type == 'checkbox')
{
checkboxes[i].checked = false;
checkboxes[i].value = false;
}
}
}
}
/**
* set values to checkboxes
*/
function checkAllPopup(element)
{
var field = document.getElementById("value").value;
selectedCode = [];
if(field == "language_desc" ||field == "site_codes" || field == "dimension_desc" || field == "item_category"
|| field == "supplier_code" || (field == "color_codes" && flag == ""))
{
for( dbID = 1; dbID <= maxId; dbID++)
{ {
objCurr = document.getElementById("DetailITCode."+dbID+".selectbox"); checkboxes[i].checked = true;
checkboxes[i].value = true;
if (element.checked)
{
objCurr.checked = true;
objCurr.value = 'true';
}
else
{
objCurr.checked = false;
objCurr.value = 'false';
}
var selId = (objCurr.id).substring(13, (objCurr.id).length-10);
if( objCurr.value == 'true' )
{
if ($.inArray(selId, selectedCode))
{
selectedCode.push( selId );
}
}
} }
} }
else
{
return false;
}
return true;
} }
else
function setCheckedPopup( obj )
{ {
var field = document.getElementById("value").value; for (var i = 0; i < checkboxes.length; i++)
var chkCnt = 0;
var flag = document.getElementById("flag").value;
if(field == "language_desc" || field == "site_codes" || field == "item_category" || (field == "color_codes" && flag == "null" || flag == "")
|| (field == "dimension_desc" && flag == "null" || flag == "") || (field == "size_code_descr" && flag == "null" || flag == "")
|| flag == "")
{ {
for( dbID = 1; dbID <= maxId; dbID++) if (checkboxes[i].type == 'checkbox')
{ {
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox"); checkboxes[i].checked = false;
checkboxes[i].value = false;
if( objCurr.checked == true )
{
objCurr.value = 'true';
chkCnt++;
}
else
{
objCurr.value = 'false';
}
if( objCurr.value == 'false' )
{
removeByValue( dbID, selectedCode );
}
}
if ( chkCnt == maxId )
{
document.getElementById("chkAll").checked = true;
}
else
{
document.getElementById("chkAll").checked = false;
} }
} }
else }
}
/**
* set values to checkboxes
*/
function checkAllPopup(element)
{
var field = document.getElementById("value").value;
selectedCode = [];
if(field == "language_desc" ||field == "site_codes" || field == "dimension_desc" || field == "item_category"
|| field == "supplier_code" || (field == "color_codes" && flag == ""))
{
for( dbID = 1; dbID <= maxId; dbID++)
{ {
if( obj.checked == false ) objCurr = document.getElementById("DetailITCode."+dbID+".selectbox");
if (element.checked)
{ {
obj.value = 'false'; objCurr.checked = true;
objCurr.value = 'true';
} }
else else
{ {
obj.value = 'true'; objCurr.checked = false;
objCurr.value = 'false';
} }
for( dbID = 1; dbID <= maxId; dbID++) var selId = (objCurr.id).substring(13, (objCurr.id).length-10);
if( objCurr.value == 'true' )
{ {
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox"); if ($.inArray(selId, selectedCode))
if( objCurr.value == 'true' && objCurr != obj )
{ {
objCurr.value ='false'; selectedCode.push( selId );
objCurr.checked = false;
}
if( objCurr.value == 'false' )
{
removeByValue( dbID, selectedCode );
} }
} }
} }
}
var selId = (obj.id).substring(13, (obj.id).length-10); else
{
if( obj.value == 'true' ) return false;
}
return true;
}
function setCheckedPopup( obj )
{
var field = document.getElementById("value").value;
var chkCnt = 0;
var flag = document.getElementById("flag").value;
if(field == "language_desc" || field == "site_codes" || field == "item_category" || (field == "color_codes" && flag == "null" || flag == "")
|| (field == "dimension_desc" && flag == "null" || flag == "") || (field == "size_code_descr" && flag == "null" || flag == "")
|| flag == "")
{
for( dbID = 1; dbID <= maxId; dbID++)
{ {
if ($.inArray( selId, selectedCode )) objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.checked == true )
{ {
selectedCode.push( selId ); objCurr.value = 'true';
chkCnt++;
}
else
{
objCurr.value = 'false';
} }
}
}
/**
* removing element value from array
*/
function removeByValue( val, arr )
{
for(var i = 0; i < arr.length; i++)
{
if(arr[i] == val)
{
arr.splice(i, 1);
break;
}
}
}
/**
* set checkbox visibilty
*/
function checkBoxVisibility()
{
var field = document.getElementById("value").value;
var flag = document.getElementById("flag").value;
if(field == "language_desc" || field == "site_codes" || field == "item_category" || (field == "color_codes" && flag == "null" || flag == "")
|| (field == "dimension_desc" && flag == "null" || flag == ""))
{
document.getElementById("chkAll").style.visibility = "visible";
var chklen = $( "input:checked" ).length;
if (document.getElementById("chkAll") != undefined && chklen == maxId) if( objCurr.value == 'false' )
{ {
document.getElementById("chkAll").checked = true; removeByValue( dbID, selectedCode );
} }
} }
if ( chkCnt == maxId )
{
document.getElementById("chkAll").checked = true;
}
else else
{ {
document.getElementById("chkAll").style.visibility = "hidden"; document.getElementById("chkAll").checked = false;
} }
} }
else
/**
* when clicking on 'tr' select the current row
*/
function setCheckedRow( event, element )
{ {
if( obj.checked == false )
objCurr = document.getElementById("DetailITCode."+element.id+".selectbox");
if (event.target.type !== 'checkbox')
{ {
if( objCurr.checked == true ) obj.value = 'false';
{
objCurr.checked = false;
}
else
{
objCurr.checked = true;
}
} }
setCheckedPopup(objCurr); else
} {
obj.value = 'true';
function createXMLString()
{
var element = $( "input[name^='Detail2.0.']" );
var DOMeles = element.get();
var xmlString = "<?xml version = \"1.0\"?><Root><header><editFlag></editFlag></header>" +
"<Detail1 domID='1' selected = 'N'>";
for (var i = 0; i < DOMeles.length; i++)
{
if ( DOMeles[i] != null )
{
xmlString = xmlString + "<" + DOMeles[i].getAttribute('id') + ">" +
"<![CDATA[" + encodeURI(DOMeles[i].getAttribute('value')) + "]]>" +
"</" + DOMeles[i].getAttribute('id') + ">";
}
} }
xmlString = xmlString + "</Detail1></Root>"; for( dbID = 1; dbID <= maxId; dbID++)
{
document.getElementById("PRE_FORM_VAL").value = xmlString; objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
console.log("xmlString==========["+xmlString+"]");
if( objCurr.value == 'true' && objCurr != obj )
setActionVal( "previous" );
document.getElementById("prev").style.pointerEvents = 'none';
document.getElementById("packLabelWizFormII").action = "/ibase/PackLabelWizHandlerServlet";
document.getElementById("packLabelWizFormII").submit();
}
function isNumeric(element)
{
if (isNaN(parseFloat(element.value)))
{
document.getElementById(""+element.id).value = "0.000";
setTimeout(function(){element.focus();}, 1);
return false;
}
if (element.value == "")
element.value = 0;
else if(element.value <= "0.000")
{
document.getElementById(""+element.id).value = "0.000";
}
document.getElementById(""+element.id).value = (parseFloat(element.value)).toFixed(3);
return true;
}
function checkValidation()
{
var maxId = $('#packLabelDetail tbody tr').length;
var check = 0;
var barCodes = [];
for( dbID = 1; dbID <= maxId; dbID++)
{ {
if (document.getElementById("Detail2."+dbID+".selectbox").checked) objCurr.value ='false';
{ objCurr.checked = false;
check++;
if (document.getElementById("Detail2."+dbID+".lot_no").value == "" || document.getElementById("Detail2."+dbID+".lot_no").value == null)
{
alert("Please Enter the Lot number" );
document.getElementById("Detail2."+dbID+".lot_no").focus();
return false;
}
else if (document.getElementById("Detail2."+dbID+".shipper_size").value == 0 || document.getElementById("Detail2."+dbID+".shipper_size").value == "" || document.getElementById("Detail2."+dbID+".shipper_size").value == null)
{
alert("Please enter shipper size, Shipper size should not be zero." );
document.getElementById("Detail2."+dbID+".shipper_size").focus();
return false;
}
}
} }
if (check == 0)
if( objCurr.value == 'false' )
{ {
alert("Please select at least one record."); removeByValue( dbID, selectedCode );
return false;
} }
setActionVal('finish');
return true;
}
/**
* form-I validation on submit
*/
function checkNullvalidation()
{
if ((document.getElementById("Detail1.1.contract_no").value == "" || document.getElementById("Detail1.1.contract_no").value == null) && (document.getElementById("Detail1.1.purc_order").value == "" || document.getElementById("Detail1.1.purc_order").value == null))
{
alert("Please enter Purchase Contract number or Purchase Order number.");
document.getElementById("Detail1.1.contract_no").focus();
return false;
} }
}
function isNumeric(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57) )
{
alert('Enter only numeric value');
return false;
}
else
{
return true;
}
} }
function specialCharValidate(id) var selId = (obj.id).substring(13, (obj.id).length-10);
if( obj.value == 'true' )
{ {
if (isValidCharacter(id) == false) if ($.inArray( selId, selectedCode ))
{ {
alert("Please enter valid character. No special characters allowed."); selectedCode.push( selId );
return false;
} }
} }
function isValidCharacter(txtTitle) }
{
var title = document.getElementById(txtTitle); /**
var regExp = /^[a-zA-Z0-9\-\s]+$/ * removing element value from array
if (!regExp.test(title.value) && title.value != "") */
{ function removeByValue( val, arr )
title.value = ''; {
return false; for(var i = 0; i < arr.length; i++)
} {
else if(arr[i] == val)
{
return true;
}
}
function calculateNoArt(idnum)
{
var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0,totQty = 0;
var shipperSize = 0;
totQty = parseFloat(document.getElementById("Detail2."+idnum+".tot_quantity").value);
quantity = parseFloat(document.getElementById("Detail2."+idnum+".quantity").value);
if(quantity>totQty)
{ {
alert("Enter Quantity should not be greater than Total Quantity"); arr.splice(i, 1);
break;
} }
shipperSize = parseFloat(document.getElementById("Detail2."+idnum+".shipper_size").value); }
}
//shipperSize = parseFloat(shipper);
//quantity = parseFloat(qty); /**
* set checkbox visibilty
noArtQuot= quantity / shipperSize ; */
noArtRem = quantity % shipperSize ; function checkBoxVisibility()
if(noArtRem > 0) {
var field = document.getElementById("value").value;
var flag = document.getElementById("flag").value;
if(field == "language_desc" || field == "site_codes" || field == "item_category" || (field == "color_codes" && flag == "null" || flag == "")
|| (field == "dimension_desc" && flag == "null" || flag == ""))
{
document.getElementById("chkAll").style.visibility = "visible";
var chklen = $( "input:checked" ).length;
if (document.getElementById("chkAll") != undefined && chklen == maxId)
{ {
noArtRem = 1; document.getElementById("chkAll").checked = true;
} }
noArtQuot = Math.floor(noArtQuot); }
noArt = noArtQuot + noArtRem; else
//noArt = Math.floor(noArtQuot);
if (isNaN(noArt))
{
document.getElementById("Detail2."+idnum+".no_art").value = 0;
}
else
{
document.getElementById("Detail2."+idnum+".no_art").value = noArt;
}
}
function closePopup()
{
$('#someID').remove();
popupIsShown = false;
}
var popupWindow = null;
var popupIsShown = false;
function MakePopup ()
{
if (window.createPopup)
{
if (!popupWindow)
{
popupWindow = window.createPopup ();
var popupBody = popupWindow.document.body;
popupBody.style.backgroundColor = "lightblue";
popupBody.style.border = "solid black 1px";
popupBody.innerHTML = "";
}
popupWindow.show (100, 100, 150, 25, document.body);
}
else
{
if (!popupIsShown)
{
if (!popupWindow)
{
popupWindow = document.createElement ("div");
popupWindow.id = "someID";
popupWindow.style.backgroundColor = "lightblue";
popupWindow.style.border = "solid black 1px";
popupWindow.style.position = "absolute";
popupWindow.style.zIndex = "9999";
/*popupWindow.style.width = "400px";*/
popupWindow.style.height = "300px";
popupWindow.style.top = "60px";
popupWindow.style.right = "100px";
popupWindow.className = "fadeInDown";
popupWindow.innerHTML = "";
}
document.body.appendChild (popupWindow);
}
}
}
/* ***************************** Server Response ************************************* [START]*/
function getItemLotPackSize(idnum)
{ {
var itemCode = document.getElementById("Detail2."+idnum+".item_code").value; document.getElementById("chkAll").style.visibility = "hidden";
var lotNo = document.getElementById("Detail2."+idnum+".lot_no").value;
var url = "/ibase/PackLabelWizHandlerServlet?&ITEM_CODE="+itemCode+"&LOT_NO="+lotNo;
makeRequest( url, setColumnValues,idnum);
} }
}
var httpRequest;
var xmlHTTPResponse; /**
var isServerBusy = false; * when clicking on 'tr' select the current row
*/
if (window.ActiveXObject) /*code for IE6, IE5*/ function setCheckedBox(idnum)
{
if(document.getElementById("Detail2."+idnum+".quantity").value.length > 0)
{ {
httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); document.getElementById("Detail2."+idnum+".selectbox").checked='true';
document.getElementById("Detail2."+idnum+".selectbox").value="true";
} }
else if (window.XMLHttpRequest) /*code for IE7+, Firefox, Chrome, Opera, Safari*/ else if (document.getElementById("Detail2."+idnum+".quantity").value == "" || document.getElementById("Detail2."+idnum+".quantity").value == null)
{ {
httpRequest = new XMLHttpRequest(); document.getElementById("Detail2."+idnum+".selectbox").checked=false;
document.getElementById("Detail2."+idnum+".selectbox").value="false";
} }
}
function makeRequest( url, setColumnValues,idnum )
function setCheckedRow( event, element )
{
objCurr = document.getElementById("DetailITCode."+element.id+".selectbox");
if (event.target.type !== 'checkbox')
{ {
var sURL = unescape(window.location); if( objCurr.checked == true )
if( ! isServerBusy )
{ {
isServerBusy = true; objCurr.checked = false;
httpRequest.open("POST", url, false); }
httpRequest.onreadystatechange = function() else
{ {
receiveResponse( setColumnValues,idnum ); objCurr.checked = true;
};
httpRequest.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
httpRequest.send( null );
} }
} }
setCheckedPopup(objCurr);
}
function receiveResponse( setColumnValues,idnum )
function createXMLString()
{
var element = $( "input[name^='Detail2.0.']" );
var DOMeles = element.get();
var xmlString = "<?xml version = \"1.0\"?><Root><header><editFlag></editFlag></header>" +
"<Detail1 domID='1' selected = 'N'>";
for (var i = 0; i < DOMeles.length; i++)
{ {
if (httpRequest.readyState == 4) if ( DOMeles[i] != null )
{ {
if(httpRequest.status == 200) xmlString = xmlString + "<" + DOMeles[i].getAttribute('id') + ">" +
{ "<![CDATA[" + encodeURI(DOMeles[i].getAttribute('value')) + "]]>" +
processResponse( setColumnValues,idnum ); "</" + DOMeles[i].getAttribute('id') + ">";
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
} }
} }
function processResponse( setColumnValues,idnum ) xmlString = xmlString + "</Detail1></Root>";
document.getElementById("PRE_FORM_VAL").value = xmlString;
console.log("xmlString==========["+xmlString+"]");
setActionVal( "previous" );
document.getElementById("prev").style.pointerEvents = 'none';
document.getElementById("packLabelWizFormII").action = "/ibase/PackLabelWizHandlerServlet";
document.getElementById("packLabelWizFormII").submit();
}
function isNumeric(element)
{
if (isNaN(parseFloat(element.value)))
{ {
var returnStr = null; document.getElementById(""+element.id).value = "0.000";
isProcessOn = false; setTimeout(function(){element.focus();}, 1);
return false;
if ( window.ActiveXObject ) }
{
xmldoc = httpRequest.responseText; if (element.value == "")
xmlHTTPResponse = xmldoc; element.value = 0;
} else if(element.value <= "0.000")
else {
{ document.getElementById(""+element.id).value = "0.000";
try }
document.getElementById(""+element.id).value = (parseFloat(element.value)).toFixed(3);
return true;
}
function checkValidation()
{
var r = confirm("Are you sure you want to finish?");
if (r != true)
{
return false;
}
else
{
var maxId = $('#packLabelDetail tbody tr').length;
var check = 0;
var barCodes = [];
for( dbID = 1; dbID <= maxId; dbID++)
{
if (document.getElementById("Detail2."+dbID+".selectbox").checked)
{ {
var parser = new DOMParser(); check++;
xmldoc = httpRequest.responseText; /*if(document.getElementById("Detail2."+dbID+".quantity").value == 0)
{
alert("Please Enter the Quantity" );
document.getElementById("Detail2."+dbID+".quantity").focus();
return false;
} }
catch(e) else if(document.getElementById("Detail2."+dbID+".quantity").value > 0)
{ {
alert("inside catch:"+e.message); document.getElementById("Detail2."+dbID+".selectbox").checked == true;
} }
else*/ if (document.getElementById("Detail2."+dbID+".lot_no").value == "" || document.getElementById("Detail2."+dbID+".lot_no").value == null)
{
alert("Please Enter the Lot number" );
document.getElementById("Detail2."+dbID+".lot_no").focus();
return false;
}
else if (document.getElementById("Detail2."+dbID+".shipper_size").value == 0 || document.getElementById("Detail2."+dbID+".shipper_size").value == "" || document.getElementById("Detail2."+dbID+".shipper_size").value == null)
{
alert("Please enter shipper size, Shipper size should not be zero." );
document.getElementById("Detail2."+dbID+".shipper_size").focus();
return false;
}
document.getElementById("buttonreplacement").style.display = "";
}
/*else if (document.getElementById("Detail2."+dbID+".selectbox").checked = false)
{
alert("No row is selected");
//return false;
}*/
} }
if (check == 0)
if(setColumnValues == "PRINT")
{ {
if(xmldoc == 0) alert("Please select at least one record.");
return false;
}
setActionVal('finish');
return true;
}
}
//calendar
function setDate(id)
{
showcalender(id);
}
function showcalender(id)
{
var date_format = "d/m/y";
$( "#"+id).datetimepicker({
timepicker:false,
format:date_format,
defaultTime:'10:00',
step:1
});
if(!$("#filter_date").datetimepicker( "widget" ).is(":visible"))
{
$( "#"+id ).datetimepicker("show");
}
}
//calendar
/**
* form-I validation on submit
*/
function checkNullvalidation()
{
if ((document.getElementById("Detail1.1.contract_no").value == "" || document.getElementById("Detail1.1.contract_no").value == null) && (document.getElementById("Detail1.1.purc_order").value == "" || document.getElementById("Detail1.1.purc_order").value == null))
{
alert("Please enter Purchase Contract number or Purchase Order number.");
document.getElementById("Detail1.1.contract_no").focus();
return false;
}
document.getElementById("buttonreplacement").style.display = "";
}
function isNumeric(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57) )
{ {
alert("Record already exist"); alert('Enter only numeric value');
} return false;
}
else else
{ {
alert("Data Saved Successfully"); return true;
} }
}
function specialCharValidate(id)
{
if (isValidCharacter(id) == false)
{
alert("Please enter valid character. No special characters allowed.");
return false;
}
}
function isValidCharacter(txtTitle)
{
var title = document.getElementById(txtTitle);
var regExp = /^[a-zA-Z0-9\-\s]+$/
if (!regExp.test(title.value) && title.value != "")
{
title.value = '';
return false;
} }
else else
{ {
setColumnValues( xmldoc,idnum ); return true;
} }
isServerBusy = false; }
} function calculateNoArt(idnum)
{
function loadXMLString(txt) var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0,totQty = 0;
{ var shipperSize = 0;
if (window.DOMParser)
{ totQty = parseFloat(document.getElementById("Detail2."+idnum+".tot_quantity").value);
parser=new DOMParser(); quantity = parseFloat(document.getElementById("Detail2."+idnum+".quantity").value);
xmlDoc=parser.parseFromString(txt,"text/xml"); if(quantity>totQty)
} {
else /* code for IE*/ alert("Enter Quantity should not be greater than Total Quantity");
{ }
xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); shipperSize = parseFloat(document.getElementById("Detail2."+idnum+".shipper_size").value);
xmlDoc.async=false;
xmlDoc.loadXML(txt); //shipperSize = parseFloat(shipper);
} //quantity = parseFloat(qty);
return xmlDoc; noArtQuot= quantity / shipperSize ;
} noArtRem = quantity % shipperSize ;
if(noArtRem > 0)
function setColumnValues( retVal,idnum ) {
{ noArtRem = 1;
var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0; }
var shipperSize = 0; noArtQuot = Math.floor(noArtQuot);
shipperSize = parseFloat(retVal); noArt = noArtQuot + noArtRem;
//noArt = Math.floor(noArtQuot);
if(shipperSize > 0)
{ if (isNaN(noArt))
quantity = parseFloat(document.getElementById("Detail2."+idnum+".quantity").value); {
noArtQuot= quantity / shipperSize ; document.getElementById("Detail2."+idnum+".no_art").value = 0;
noArtRem = quantity % shipperSize ; }
if(noArtRem > 0) else
{
document.getElementById("Detail2."+idnum+".no_art").value = noArt;
}
}
function closePopup()
{
$('#someID').remove();
popupIsShown = false;
}
var popupWindow = null;
var popupIsShown = false;
function MakePopup ()
{
if (window.createPopup)
{
if (!popupWindow)
{
popupWindow = window.createPopup ();
var popupBody = popupWindow.document.body;
popupBody.style.backgroundColor = "lightblue";
popupBody.style.border = "solid black 1px";
popupBody.innerHTML = "";
}
popupWindow.show (100, 100, 150, 25, document.body);
}
else
{
if (!popupIsShown)
{
if (!popupWindow)
{ {
noArtRem = 1; popupWindow = document.createElement ("div");
popupWindow.id = "someID";
popupWindow.style.backgroundColor = "white";
popupWindow.style.border = "solid #ddd 1px";
popupWindow.style.position = "absolute";
popupWindow.style.zIndex = "9999";
/*popupWindow.style.width = "400px";*/
popupWindow.style.height = "300px";
popupWindow.style.top = "60px";
popupWindow.style.right = "100px";
popupWindow.className = "fadeInDown";
popupWindow.innerHTML = "";
} }
noArtQuot = Math.floor(noArtQuot);
noArt = noArtQuot + noArtRem; document.body.appendChild (popupWindow);
//noArt = Math.floor(noArtQuot);
} }
}
if (isNaN(shipperSize)) }
/* ***************************** Server Response ************************************* [START]*/
function getItemLotPackSize(idnum)
{
var itemCode = document.getElementById("Detail2."+idnum+".item_code").value;
var lotNo = document.getElementById("Detail2."+idnum+".lot_no").value;
var url = "/ibase/PackLabelWizHandlerServlet?&ITEM_CODE="+itemCode+"&LOT_NO="+lotNo;
makeRequest( url, setColumnValues,idnum);
}
var httpRequest;
var xmlHTTPResponse;
var isServerBusy = false;
if (window.ActiveXObject) /*code for IE6, IE5*/
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) /*code for IE7+, Firefox, Chrome, Opera, Safari*/
{
httpRequest = new XMLHttpRequest();
}
function makeRequest( url, setColumnValues,idnum )
{
var sURL = unescape(window.location);
if( ! isServerBusy )
{
isServerBusy = true;
httpRequest.open("POST", url, false);
httpRequest.onreadystatechange = function()
{ {
document.getElementById("Detail2."+idnum+".shipper_size").value = 0; receiveResponse( setColumnValues,idnum );
};
httpRequest.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
httpRequest.send( null );
}
}
function receiveResponse( setColumnValues,idnum )
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{
processResponse( setColumnValues,idnum );
} }
else else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
}
}
function processResponse( setColumnValues,idnum )
{
var returnStr = null;
isProcessOn = false;
if ( window.ActiveXObject )
{
xmldoc = httpRequest.responseText;
xmlHTTPResponse = xmldoc;
}
else
{
try
{ {
document.getElementById("Detail2."+idnum+".shipper_size").value = shipperSize; var parser = new DOMParser();
} xmldoc = httpRequest.responseText;
if (isNaN(noArt)) }
catch(e)
{ {
document.getElementById("Detail2."+idnum+".no_art").value = 0; alert("inside catch:"+e.message);
} }
}
if(setColumnValues == "PRINT")
{
if(xmldoc == 0)
{
alert("Record already exist");
}
else else
{ {
document.getElementById("Detail2."+idnum+".no_art").value = noArt; alert("Data Saved Successfully");
} }
}
} else
function getCaseLabelData(purcContract,itemCode,lotNo,quantity,noArt,idnum) {
{ setColumnValues( xmldoc,idnum );
MakePopup (); }
$('#caseListDiv').show(); isServerBusy = false;
$("#someID").append(document.getElementById("caseListDiv"));
document.getElementById("idNumPack").value = idnum; }
document.getElementById("p_contract_no").value = purcContract;
document.getElementById("p_item_code").value = itemCode; function loadXMLString(txt)
document.getElementById("p_lot_no").value = document.getElementById("Detail2."+idnum+".lot_no").value; {
document.getElementById("p_quantity").value = document.getElementById("Detail2."+idnum+".quantity").value; if (window.DOMParser)
document.getElementById("p_no_art").value = document.getElementById("Detail2."+idnum+".no_art").value; {
} parser=new DOMParser();
function printCaseLabel(idnum) xmlDoc=parser.parseFromString(txt,"text/xml");
{ }
var purCont = document.getElementById("p_contract_no").value; else /* code for IE*/
var itemCode = document.getElementById("p_item_code").value; {
var lotNo = document.getElementById("p_lot_no").value; xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
var qty = document.getElementById("p_quantity").value; xmlDoc.loadXML(txt);
var noArt = document.getElementById("p_no_art").value; }
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".quantity").value = qty; return xmlDoc;
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".lot_no").value = lotNo; }
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".no_art").value = noArt;
/*var shipperSize= qty / noArt ; function setColumnValues( retVal,idnum )
shipperSize = Math.floor(shipperSize); {
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".shipper_size").value = shipperSize;*/ var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0;
var shipperSize = 0;
var url = "/ibase/PackLabelWizHandlerServlet?&ITEM_CODE="+itemCode+"&LOT_NO="+lotNo+"&QUANTITY="+qty+"&ORDER_NO="+purCont+"&ACTION=PRINT"; shipperSize = parseFloat(retVal);
makeRequest( url,"PRINT",idnum);
closePopup(); if(shipperSize > 0)
{
quantity = parseFloat(document.getElementById("Detail2."+idnum+".quantity").value);
noArtQuot= quantity / shipperSize ;
noArtRem = quantity % shipperSize ;
if(noArtRem > 0)
{
noArtRem = 1;
}
noArtQuot = Math.floor(noArtQuot);
noArt = noArtQuot + noArtRem;
//noArt = Math.floor(noArtQuot);
} }
function setDate(expdate) if (isNaN(shipperSize))
{ {
expdate =document.getElementById("exp_date").value; document.getElementById("Detail2."+idnum+".shipper_size").value = 0;
} }
function callForm1(objName) else
{ {
var url = "E12WizardPage.jsp?OBJ_NAME="+objName; document.getElementById("Detail2."+idnum+".shipper_size").value = shipperSize;
window.location.href = url; }
if (isNaN(noArt))
{
document.getElementById("Detail2."+idnum+".no_art").value = 0;
}
else
{
document.getElementById("Detail2."+idnum+".no_art").value = noArt;
} }
}
function getCaseLabelData(purcContract,itemCode,lotNo,quantity,noArt,idnum)
{
MakePopup ();
$('#caseListDiv').show();
$("#someID").append(document.getElementById("caseListDiv"));
document.getElementById("idNumPack").value = idnum;
document.getElementById("p_contract_no").value = purcContract;
document.getElementById("p_item_code").value = itemCode;
document.getElementById("p_lot_no").value = document.getElementById("Detail2."+idnum+".lot_no").value;
document.getElementById("p_quantity").value = document.getElementById("Detail2."+idnum+".quantity").value;
document.getElementById("p_no_art").value = document.getElementById("Detail2."+idnum+".no_art").value;
}
function printCaseLabel(idnum)
{
var purCont = document.getElementById("p_contract_no").value;
var itemCode = document.getElementById("p_item_code").value;
var lotNo = document.getElementById("p_lot_no").value;
var qty = document.getElementById("p_quantity").value;
var noArt = document.getElementById("p_no_art").value;
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".quantity").value = qty;
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".lot_no").value = lotNo;
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".no_art").value = noArt;
/*var shipperSize= qty / noArt ;
shipperSize = Math.floor(shipperSize);
document.getElementById("Detail2."+document.getElementById("idNumPack").value+".shipper_size").value = shipperSize;*/
var url = "/ibase/PackLabelWizHandlerServlet?&ITEM_CODE="+itemCode+"&LOT_NO="+lotNo+"&QUANTITY="+qty+"&ORDER_NO="+purCont+"&ACTION=PRINT";
makeRequest( url,"PRINT",idnum);
closePopup();
}
/*function setDate(expdate)
{
expdate =document.getElementById("exp_date").value;
}*/
function callForm1(objName)
{
var url = "E12WizardPage.jsp?OBJ_NAME="+objName;
window.location.href = url;
}
/* ***************************** Server Response ************************************* [END]*/ /* ***************************** Server Response ************************************* [END]*/
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<html> <html>
<head> <head>
<link href="/ibase/webitm/css/Novartis/ProductWizard.css" rel="stylesheet"/> <link href="/ibase/webitm/css/theme/galaxy-theme.css" rel="stylesheet" />
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet" />
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet" />
</head> </head>
<body> <body>
<div id ="div1" class = "mainPage-Container"> <div id ="div1" class = "mainPage-Container">
......
...@@ -37,7 +37,7 @@ function load() ...@@ -37,7 +37,7 @@ function load()
</script> </script>
<script type="text/javascript" src="/ibase/webitm/js/packLabelWizard.js"></script> <script type="text/javascript" src="/ibase/webitm/js/packLabelWizard.js"></script>
<link href="/ibase/webitm/css/Novartis/ProductWizard.css" rel="stylesheet"/> <link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<body style="margin: 0;" onload="load();"> <body style="margin: 0;" onload="load();">
<div id="div1" class="mainPage-Container"> <div id="div1" class="mainPage-Container">
......
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