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 @@
<name>site_code__mfg</name>
<dbname>name_9</dbname>
</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>
<TextObject>
<band>Header</band>
......@@ -403,90 +415,6 @@
<color>1073741824</color>
</background>
</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>
<band>Header</band>
<alignment>0</alignment>
......@@ -515,118 +443,6 @@
<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>1</id>
......@@ -970,20 +786,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<tabsequence>100</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1042</x>
<y>5</y>
<height>17</height>
<width>68</width>
<x>807</x>
<y>3</y>
<height>16</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_code</name>
<name>shipper_size</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1006,63 +822,55 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<tabsequence>180</tabsequence>
<border>0</border>
<color>33554432</color>
<x>982</x>
<x>1393</x>
<y>5</y>
<height>16</height>
<width>58</width>
<format>[general]</format>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_art</name>
<name>line_no__ord</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-11</height>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<text>Lot No</text>
<border>0</border>
<color>33554432</color>
<x>904</x>
<y>3</y>
<y>1</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lot_no</name>
<name>lot_no_t</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>
......@@ -1075,23 +883,263 @@
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<text>No Art</text>
<border>0</border>
<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>
<height>16</height>
<width>95</width>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipper_size</name>
<name>lot_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1120,7 +1168,7 @@
<border>0</border>
<color>33554432</color>
<x>1322</x>
<y>5</y>
<y>4</y>
<height>17</height>
<width>68</width>
<format>[general]</format>
......@@ -1260,6 +1308,98 @@
<color>1073741824</color>
</background>
</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>
<border>1</border>
</HtmlTable>
......
......@@ -151,22 +151,44 @@
<name>site_code__mfg</name>
<dbname>name_10</dbname>
</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>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Purchase Contract / Order:</text>
<border>0</border>
<color>33554432</color>
<x>0</x>
<y>8</y>
<height>15</height>
<width>156</width>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>367</x>
<y>40</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>contract_no_t</name>
<name>site_code_descr</name>
<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>
......@@ -176,26 +198,26 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>5</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>131</x>
<y>8</y>
<x>367</x>
<y>65</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>contract_no</name>
<name>supp_code_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -218,21 +240,31 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<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>
<id>7</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>367</x>
<y>93</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<name>item_code_descr</name>
<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>
......@@ -242,38 +274,36 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>132</x>
<y>35</y>
<color>33554432</color>
<x>367</x>
<y>121</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<name>shipper_size</name>
<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>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
......@@ -281,23 +311,60 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Supp Code:</text>
<border>0</border>
<id>12</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>5</border>
<color>33554432</color>
<x>12</x>
<y>61</y>
<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>
<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>
<width>110</width>
<width>104</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_code_t</name>
<name>compute_2</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -308,24 +375,82 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</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>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<text>Purchase Contract / Order:</text>
<border>0</border>
<color>33554432</color>
<x>16</x>
<y>91</y>
<x>0</x>
<y>8</y>
<height>15</height>
<width>110</width>
<width>156</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<name>contract_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -342,20 +467,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>132</x>
<y>61</y>
<x>131</x>
<y>8</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_code</name>
<name>contract_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -378,22 +503,50 @@
<color>16777215</color>
</background>
</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>
<band>Detail</band>
<id>6</id>
<id>2</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>132</x>
<y>91</y>
<y>35</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -419,17 +572,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Quantity:</text>
<text>Supp Code:</text>
<border>0</border>
<color>33554432</color>
<x>14</x>
<y>120</y>
<x>12</x>
<y>61</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity_t</name>
<name>supp_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -444,31 +597,21 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>132</x>
<y>120</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Item Code:</text>
<border>0</border>
<color>33554432</color>
<x>16</x>
<y>91</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quantity</name>
<name>item_code_t</name>
<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>
......@@ -478,26 +621,26 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>367</x>
<y>40</y>
<x>132</x>
<y>61</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_descr</name>
<name>supp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -522,20 +665,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>367</x>
<y>65</y>
<x>132</x>
<y>91</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>supp_code_descr</name>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -558,31 +701,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>367</x>
<y>93</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Quantity:</text>
<border>0</border>
<color>33554432</color>
<x>14</x>
<y>120</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_descr</name>
<name>quantity_t</name>
<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>
......@@ -592,36 +725,38 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<tabsequence>80</tabsequence>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>121</y>
<color>0</color>
<x>132</x>
<y>120</y>
<height>18</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shipper_size</name>
<name>quantity</name>
<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>-11</height>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
......@@ -629,7 +764,7 @@
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
......@@ -772,42 +907,6 @@
<color>536870912</color>
</background>
</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>
<band>Detail</band>
<alignment>1</alignment>
......@@ -993,25 +1092,53 @@
<color>536870912</color>
</background>
</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>
<band>Detail</band>
<alignment>0</alignment>
<expression> case_label </expression>
<expression> mfg_date </expression>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>171</y>
<height>15</height>
<width>104</width>
<x>132</x>
<y>217</y>
<height>17</height>
<width>56</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_2</name>
<name>compute_4</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
......@@ -1025,17 +1152,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Case Label:</text>
<text>MFG Date:</text>
<border>0</border>
<color>33554432</color>
<x>252</x>
<y>174</y>
<x>62</x>
<y>217</y>
<height>15</height>
<width>110</width>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>case_label_t</name>
<name>t_2</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -1050,79 +1177,77 @@
<color>536870912</color>
</background>
</TextObject>
<ComputedField>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<expression> mfg_date </expression>
<border>5</border>
<alignment>1</alignment>
<text>EXP Date:</text>
<border>0</border>
<color>33554432</color>
<x>132</x>
<y>217</y>
<height>17</height>
<width>56</width>
<format>[GENERAL]</format>
<x>253</x>
<y>195</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_4</name>
<name>t_3</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ComputedField>
<ComputedField>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<expression> exp_date </expression>
<border>5</border>
<alignment>1</alignment>
<text>MFG Site:</text>
<border>0</border>
<color>33554432</color>
<x>367</x>
<y>195</y>
<height>17</height>
<width>103</width>
<format>[GENERAL]</format>
<x>252</x>
<y>218</y>
<height>15</height>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_3</name>
<name>t_4</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ComputedField>
</TextObject>
<ComputedField>
<band>Detail</band>
<alignment>0</alignment>
<expression> site_code__mfg </expression>
<expression> line_no__ord </expression>
<border>5</border>
<color>33554432</color>
<x>367</x>
<y>219</y>
<x>366</x>
<y>241</y>
<height>17</height>
<width>103</width>
<width>108</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>compute_5</name>
<name>compute_6</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -1140,17 +1265,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>MFG Date:</text>
<text>Line No:</text>
<border>0</border>
<color>33554432</color>
<x>62</x>
<y>217</y>
<x>253</x>
<y>243</y>
<height>15</height>
<width>64</width>
<width>110</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_2</name>
<name>t_5</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -1165,48 +1290,49 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ComputedField>
<band>Detail</band>
<alignment>1</alignment>
<text>EXP Date:</text>
<alignment>0</alignment>
<expression> no_pallet </expression>
<border>0</border>
<color>33554432</color>
<x>253</x>
<y>195</y>
<height>15</height>
<width>110</width>
<x>133</x>
<y>242</y>
<height>17</height>
<width>69</width>
<format>[GENERAL]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_3</name>
<name>compute_7</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
</ComputedField>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>MFG Site:</text>
<text>No of Pallet:</text>
<border>0</border>
<color>33554432</color>
<x>252</x>
<y>218</y>
<x>52</x>
<y>245</y>
<height>15</height>
<width>110</width>
<width>71</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_4</name>
<name>t_7</name>
<visible>1</visible>
<font>
<face>Arial</face>
......
var maxId = 0;
var selectedCode = new Array();
function setChecked(obj)
var maxId = 0;
var selectedCode = new Array();
function setChecked(obj)
{
if( obj.value == 'false' )
{
if( obj.value == 'false' )
{
obj.value ='true';
}
else
{
obj.value = 'false';
}
obj.value ='true';
}
function setActionVal( value )
{
document.getElementById("action").value = value;
document.getElementById(value).style.pointerEvents = 'none';
else
{
obj.value = 'false';
}
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;
oldVal=column.value;
obj.ISCHANGED = "true";
}
/**
* Pressing 'F2' open popup
*/
function openSearchPopup(event, dbid, logincode, field, filedName, value)
}
function gotFocus( column )
{
objCur=column.name;
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();
callListJSP(dbid, logincode, field, filedName, value);
return false;
}
event.preventDefault();
event.stopPropagation();
callListJSP(dbid, logincode, field, filedName, value);
return false;
}
/**
* pophelp function
*/
function callListJSP( dbID, loginId, field, fieldName, idNum )
}
/**
* pophelp function
*/
function callListJSP( dbID, loginId, field, fieldName, idNum )
{
selectedCode = [];
var fieldValue = "";
if (field == "contract_no")
{
selectedCode = [];
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' );
fieldValue = document.getElementById("Detail1.1.contract_no").value;
}
/**
* display selected value from popup
*/
function displayValue( fieldId, fieldValue, seldbID, field, idNum )
else if (field == "site_code")
{
if (field == "contract_no")
{
var contractNo = fieldId.split(":");
fieldValue = document.getElementById("Detail1.1.site_code").value;
}
else if (field == "purc_order")
{
fieldValue = document.getElementById("Detail1.1.purc_order").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")
{
var contractNo = fieldId.split(":");
var url = "/ibase/webitm/jsp/packLabelWizPopup.jsp?LOGIN_ID="+loginId
+"&FIELDS="+field+"&DBID="+dbID+"&FIELDNAME="+fieldName+"&IDNUM="+idNum+"&FIELDVALUE="+fieldValue+",";
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 = "";
}
var win = window.open( url, 'ASN Details', 'toolbar=no,status=yes,resizable=no,scrollbars=yes,left=100,top=50,width=500,height=550' );
}
/**
* display selected value from popup
*/
function displayValue( fieldId, fieldValue, seldbID, field, idNum )
{
if (field == "contract_no")
{
var contractNo = fieldId.split(":");
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;
}
/**
* selected value from popup
*/
function selectValue()
else if (field == "purc_order")
{
var contractNo = fieldId.split(":");
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 = "";
var fieldValue = "";
var seldbID ="";
var field = document.getElementById("value").value;
selectedCode = $.unique( selectedCode );
selectedCode.reverse();
for( var i = 0; i < selectedCode.length; i++)
seldbID = seldbID + selectedCode[i];
if ( field == "contract_no" || "purc_order")
{
seldbID = seldbID + selectedCode[i];
if ( field == "contract_no" || "purc_order")
{
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim()
+ ":" + (document.getElementById("DetailITCode."+ selectedCode[i] +".otherField").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 + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim()
+ ":" + (document.getElementById("DetailITCode."+ selectedCode[i] +".otherField").value).trim() + ", ";
}
else
{
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() + ", ";
}
fieldId = fieldId.substring(0, fieldId.length-2);
if ( field == "item_category" )
{
fieldValue = fieldValue.substring(0, fieldValue.length-1);
fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ",";
}
else
{
fieldValue = fieldValue.substring(0, fieldValue.length-2);
fieldValue = fieldValue + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldValue").value).trim() + ", ";
}
var check = 0;
if( fieldId == "")
}
fieldId = fieldId.substring(0, fieldId.length-2);
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;
}
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;
if ( field == "pricelist")
var rows = 0;
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('priceListDtl') != null)
if (window.opener.document.getElementById('SKUPriceListId') != 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.");
}
}
for (var i = 0; i < rows; i++)
else
{
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;
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();
}
}
/**
* set all check boxes true false
*/
function checkAll(element)
if (check == 0)
{
var checkboxes = document.getElementsByTagName('input');
if (element.checked)
{
for (var i = 0; i < checkboxes.length; i++)
{
if (checkboxes[i].type == 'checkbox')
{
checkboxes[i].checked = true;
checkboxes[i].value = true;
}
}
}
else
window.opener.displayValue( fieldId, fieldValue, seldbID, field, idNum );
window.close();
}
}
/**
* set all check boxes true false
*/
function checkAll(element)
{
var checkboxes = document.getElementsByTagName('input');
if (element.checked)
{
for (var i = 0; i < checkboxes.length; i++)
{
for (var i = 0; i < checkboxes.length; i++)
{
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++)
if (checkboxes[i].type == 'checkbox')
{
objCurr = document.getElementById("DetailITCode."+dbID+".selectbox");
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 );
}
}
checkboxes[i].checked = true;
checkboxes[i].value = true;
}
}
else
{
return false;
}
return true;
}
function setCheckedPopup( obj )
else
{
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 (var i = 0; i < checkboxes.length; i++)
{
for( dbID = 1; dbID <= maxId; dbID++)
if (checkboxes[i].type == 'checkbox')
{
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
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;
checkboxes[i].checked = false;
checkboxes[i].value = 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
{
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( objCurr.value == 'true' && objCurr != obj )
if ($.inArray(selId, selectedCode))
{
objCurr.value ='false';
objCurr.checked = false;
}
if( objCurr.value == 'false' )
{
removeByValue( dbID, selectedCode );
selectedCode.push( selId );
}
}
}
var selId = (obj.id).substring(13, (obj.id).length-10);
if( obj.value == 'true' )
}
else
{
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
{
document.getElementById("chkAll").style.visibility = "hidden";
document.getElementById("chkAll").checked = false;
}
}
/**
* when clicking on 'tr' select the current row
*/
function setCheckedRow( event, element )
else
{
objCurr = document.getElementById("DetailITCode."+element.id+".selectbox");
if (event.target.type !== 'checkbox')
if( obj.checked == false )
{
if( objCurr.checked == true )
{
objCurr.checked = false;
}
else
{
objCurr.checked = true;
}
obj.value = 'false';
}
setCheckedPopup(objCurr);
}
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') + ">";
}
else
{
obj.value = 'true';
}
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)))
{
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++)
for( dbID = 1; dbID <= maxId; dbID++)
{
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' && objCurr != obj )
{
if (document.getElementById("Detail2."+dbID+".selectbox").checked)
{
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;
}
}
objCurr.value ='false';
objCurr.checked = false;
}
if (check == 0)
if( objCurr.value == 'false' )
{
alert("Please select at least one record.");
return false;
removeByValue( dbID, selectedCode );
}
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.");
return false;
selectedCode.push( selId );
}
}
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
{
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)
}
/**
* removing element value from array
*/
function removeByValue( val, arr )
{
for(var i = 0; i < arr.length; i++)
{
if(arr[i] == val)
{
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);
noArtQuot= quantity / shipperSize ;
noArtRem = quantity % shipperSize ;
if(noArtRem > 0)
}
}
/**
* 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)
{
noArtRem = 1;
document.getElementById("chkAll").checked = true;
}
noArtQuot = Math.floor(noArtQuot);
noArt = noArtQuot + noArtRem;
//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)
}
else
{
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);
document.getElementById("chkAll").style.visibility = "hidden";
}
var httpRequest;
var xmlHTTPResponse;
var isServerBusy = false;
if (window.ActiveXObject) /*code for IE6, IE5*/
}
/**
* when clicking on 'tr' select the current row
*/
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*/
{
httpRequest = new XMLHttpRequest();
else if (document.getElementById("Detail2."+idnum+".quantity").value == "" || document.getElementById("Detail2."+idnum+".quantity").value == null)
{
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( ! isServerBusy )
if( objCurr.checked == true )
{
isServerBusy = true;
httpRequest.open("POST", url, false);
httpRequest.onreadystatechange = function()
{
receiveResponse( setColumnValues,idnum );
};
httpRequest.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
httpRequest.send( null );
objCurr.checked = false;
}
else
{
objCurr.checked = true;
}
}
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)
{
processResponse( setColumnValues,idnum );
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
xmlString = xmlString + "<" + DOMeles[i].getAttribute('id') + ">" +
"<![CDATA[" + encodeURI(DOMeles[i].getAttribute('value')) + "]]>" +
"</" + DOMeles[i].getAttribute('id') + ">";
}
}
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;
isProcessOn = false;
if ( window.ActiveXObject )
{
xmldoc = httpRequest.responseText;
xmlHTTPResponse = xmldoc;
}
else
{
try
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 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();
xmldoc = httpRequest.responseText;
check++;
/*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(setColumnValues == "PRINT")
if (check == 0)
{
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
{
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
{
setColumnValues( xmldoc,idnum );
}
isServerBusy = false;
}
function loadXMLString(txt)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
}
else /* code for IE*/
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
function setColumnValues( retVal,idnum )
{
var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0;
var shipperSize = 0;
shipperSize = parseFloat(retVal);
if(shipperSize > 0)
{
quantity = parseFloat(document.getElementById("Detail2."+idnum+".quantity").value);
noArtQuot= quantity / shipperSize ;
noArtRem = quantity % shipperSize ;
if(noArtRem > 0)
{
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");
}
shipperSize = parseFloat(document.getElementById("Detail2."+idnum+".shipper_size").value);
//shipperSize = parseFloat(shipper);
//quantity = parseFloat(qty);
noArtQuot= quantity / shipperSize ;
noArtRem = quantity % shipperSize ;
if(noArtRem > 0)
{
noArtRem = 1;
}
noArtQuot = Math.floor(noArtQuot);
noArt = noArtQuot + noArtRem;
//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)
{
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;
//noArt = Math.floor(noArtQuot);
document.body.appendChild (popupWindow);
}
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;
}
if (isNaN(noArt))
var parser = new DOMParser();
xmldoc = httpRequest.responseText;
}
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
{
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();
alert("Data Saved Successfully");
}
}
else
{
setColumnValues( xmldoc,idnum );
}
isServerBusy = false;
}
function loadXMLString(txt)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
}
else /* code for IE*/
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
function setColumnValues( retVal,idnum )
{
var noArtQuot = 0, noArtRem = 0,quantity = 0,noArt = 0;
var shipperSize = 0;
shipperSize = parseFloat(retVal);
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;
window.location.href = url;
document.getElementById("Detail2."+idnum+".shipper_size").value = shipperSize;
}
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]*/
......@@ -12,7 +12,9 @@
<html>
<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>
<body>
<div id ="div1" class = "mainPage-Container">
......
......@@ -37,7 +37,7 @@ function load()
</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();">
<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