Commit a1d3c9ef authored by dpawar's avatar dpawar

change join


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94393 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1b7fc551
......@@ -149,12 +149,6 @@
<name>seq_no</name>
<dbname>worder_route.seq_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>route_code</name>
<dbname>worder_route.route_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
......@@ -242,9 +236,15 @@
<name>machines_mc_code</name>
<dbname>machines.mc_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;worder_route_alt&quot; ) TABLE(NAME=&quot;worder_route&quot; ) TABLE(NAME=&quot;item&quot; ) TABLE(NAME=&quot;machines&quot; ) TABLE(NAME=&quot;process&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;worder_route_alt.amd_no&quot;) COLUMN(NAME=&quot;worder_route_alt.amd_date&quot;) COLUMN(NAME=&quot;worder_route_alt.work_order&quot;) COLUMN(NAME=&quot;worder_route_alt.operation&quot;) COLUMN(NAME=&quot;worder_route_alt.work_ctr__o&quot;) COLUMN(NAME=&quot;worder_route_alt.mc_code__o&quot;) COLUMN(NAME=&quot;worder_route_alt.work_ctr&quot;) COLUMN(NAME=&quot;worder_route_alt.mc_code&quot;) COLUMN(NAME=&quot;worder_route_alt.confirmed&quot;) COLUMN(NAME=&quot;worder_route_alt.conf_date&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_date&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_user&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_term&quot;) COLUMN(NAME=&quot;worder_route.seq_no&quot;) COLUMN(NAME=&quot;worder_route.route_code&quot;) COLUMN(NAME=&quot;worder_route.item_code&quot;) COLUMN(NAME=&quot;worder_route.wait_time&quot;) COLUMN(NAME=&quot;worder_route.run_time&quot;) COLUMN(NAME=&quot;worder_route.reset_time&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;worder_route.proc_code&quot;) COLUMN(NAME=&quot;process.descr&quot;) COLUMN(NAME=&quot;worder_route_alt.remarks&quot;) COLUMN(NAME=&quot;worder_route_alt.operation_parent&quot;) COLUMN(NAME=&quot;worder_route_alt.emp_code__aprv&quot;) COLUMN(NAME=&quot;worder_route.work_order&quot;) COLUMN(NAME=&quot;worder_route.quantity&quot;) COLUMN(NAME=&quot;worder_route.set_time&quot;) COLUMN(NAME=&quot;machines.mc_code&quot;) JOIN (LEFT=&quot;worder_route_alt.emp_code__aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; OUTER1 =&quot;worder_route_alt.emp_code__aprv&quot; ) JOIN (LEFT=&quot;worder_route.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;worder_route.item_code&quot; ) JOIN (LEFT=&quot;worder_route_alt.work_order&quot; OP =&quot;=&quot;RIGHT=&quot;worder_route.work_order&quot; OUTER1 =&quot;worder_route_alt.work_order&quot; ) JOIN (LEFT=&quot;worder_route_alt.operation&quot; OP =&quot;=&quot;RIGHT=&quot;worder_route.operation&quot; OUTER1 =&quot;worder_route_alt.operation&quot; ) JOIN (LEFT=&quot;worder_route.proc_code&quot; OP =&quot;=&quot;RIGHT=&quot;process.proc_code&quot; OUTER1 =&quot;worder_route.proc_code&quot; ) JOIN (LEFT=&quot;worder_route_alt.mc_code&quot; OP =&quot;=&quot;RIGHT=&quot;machines.mc_code&quot; OUTER1 =&quot;worder_route_alt.mc_code&quot; )WHERE( EXP1 =&quot;worder_route_alt.amd_no&quot; OP =&quot;=&quot; EXP2 =&quot;:amd_no&quot; ) ) ARG(NAME = &quot;amd_no&quot; TYPE = string) </retrieve>
<update>worder_route_alt</update>
<updatewhere>1</updatewhere>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>route_code</name>
<dbname>workorder.route_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;worder_route_alt&quot; ) TABLE(NAME=&quot;worder_route&quot; ) TABLE(NAME=&quot;item&quot; ) TABLE(NAME=&quot;machines&quot; ) TABLE(NAME=&quot;process&quot; ) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;workorder&quot; ) COLUMN(NAME=&quot;worder_route_alt.amd_no&quot;) COLUMN(NAME=&quot;worder_route_alt.amd_date&quot;) COLUMN(NAME=&quot;worder_route_alt.work_order&quot;) COLUMN(NAME=&quot;worder_route_alt.operation&quot;) COLUMN(NAME=&quot;worder_route_alt.work_ctr__o&quot;) COLUMN(NAME=&quot;worder_route_alt.mc_code__o&quot;) COLUMN(NAME=&quot;worder_route_alt.work_ctr&quot;) COLUMN(NAME=&quot;worder_route_alt.mc_code&quot;) COLUMN(NAME=&quot;worder_route_alt.confirmed&quot;) COLUMN(NAME=&quot;worder_route_alt.conf_date&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_date&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_user&quot;) COLUMN(NAME=&quot;worder_route_alt.chg_term&quot;) COLUMN(NAME=&quot;worder_route.seq_no&quot;) COLUMN(NAME=&quot;worder_route.item_code&quot;) COLUMN(NAME=&quot;worder_route.wait_time&quot;) COLUMN(NAME=&quot;worder_route.run_time&quot;) COLUMN(NAME=&quot;worder_route.reset_time&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;worder_route.proc_code&quot;) COLUMN(NAME=&quot;process.descr&quot;) COLUMN(NAME=&quot;worder_route_alt.remarks&quot;) COLUMN(NAME=&quot;worder_route_alt.operation_parent&quot;) COLUMN(NAME=&quot;worder_route_alt.emp_code__aprv&quot;) COLUMN(NAME=&quot;worder_route.work_order&quot;) COLUMN(NAME=&quot;worder_route.quantity&quot;) COLUMN(NAME=&quot;worder_route.set_time&quot;) COLUMN(NAME=&quot;machines.mc_code&quot;) COLUMN(NAME=&quot;workorder.route_code&quot;) JOIN (LEFT=&quot;worder_route_alt.emp_code__aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; OUTER1 =&quot;worder_route_alt.emp_code__aprv&quot; ) JOIN (LEFT=&quot;worder_route.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;worder_route.item_code&quot; ) JOIN (LEFT=&quot;worder_route_alt.work_order&quot; OP =&quot;=&quot;RIGHT=&quot;worder_route.work_order&quot; OUTER1 =&quot;worder_route_alt.work_order&quot; ) JOIN (LEFT=&quot;worder_route_alt.operation&quot; OP =&quot;=&quot;RIGHT=&quot;worder_route.operation&quot; OUTER1 =&quot;worder_route_alt.operation&quot; ) JOIN (LEFT=&quot;worder_route.proc_code&quot; OP =&quot;=&quot;RIGHT=&quot;process.proc_code&quot; OUTER1 =&quot;worder_route.proc_code&quot; ) JOIN (LEFT=&quot;worder_route_alt.mc_code&quot; OP =&quot;=&quot;RIGHT=&quot;machines.mc_code&quot; OUTER1 =&quot;worder_route_alt.mc_code&quot; ) JOIN (LEFT=&quot;worder_route_alt.work_order&quot; OP =&quot;=&quot;RIGHT=&quot;workorder.work_order&quot; OUTER1 =&quot;worder_route_alt.work_order&quot; )WHERE( EXP1 =&quot;worder_route_alt.amd_no&quot; OP =&quot;=&quot; EXP2 =&quot;:amd_no&quot; ) ) ARG(NAME = &quot;amd_no&quot; TYPE = string) </retrieve>
<update>WORDER_ROUTE_ALT</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>amd_no</name>
......@@ -534,34 +534,6 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Seq. No.:</text>
<border>0</border>
<color>33554432</color>
<x>378</x>
<y>121</y>
<height>15</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_9</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
......@@ -600,7 +572,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -636,7 +608,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -894,42 +866,6 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>99</x>
<y>121</y>
<height>15</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>route_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>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
......@@ -1120,7 +1056,7 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<id>23</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
......@@ -1222,7 +1158,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
......@@ -1258,43 +1194,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>99</x>
<y>98</y>
<height>15</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_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>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
......@@ -1330,7 +1230,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>28</id>
<id>27</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
......@@ -1366,7 +1266,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
......@@ -1402,7 +1302,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
......@@ -1654,7 +1554,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>5</border>
......@@ -1766,7 +1666,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>25</id>
<id>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -1876,19 +1776,83 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<id>20</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>99</x>
<y>98</y>
<height>15</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_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>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Seq. No.:</text>
<border>0</border>
<color>33554432</color>
<x>856</x>
<y>1</y>
<x>378</x>
<y>121</y>
<height>15</height>
<width>60</width>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>machines_mc_code</name>
<name>t_9</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>29</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>99</x>
<y>121</y>
<height>15</height>
<width>90</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>route_code</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -1925,7 +1889,7 @@
<comment></comment>
<encoding>UTF-8</encoding>
<name>worder_route_alt21</name>
<xml>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;worder_route_alt21&gt;&lt;worder_route_alt21_row __pbband=&quot;detail&quot;&gt;&lt;amd_no&gt;amd_no&lt;/amd_no&gt;&lt;amd_date&gt;amd_date&lt;/amd_date&gt;&lt;work_order&gt;work_order&lt;/work_order&gt;&lt;operation&gt;operation&lt;/operation&gt;&lt;work_ctr__o&gt;work_ctr__o&lt;/work_ctr__o&gt;&lt;mc_code__o&gt;mc_code__o&lt;/mc_code__o&gt;&lt;work_ctr&gt;work_ctr&lt;/work_ctr&gt;&lt;mc_code&gt;mc_code&lt;/mc_code&gt;&lt;confirmed&gt;confirmed&lt;/confirmed&gt;&lt;conf_date&gt;conf_date&lt;/conf_date&gt;&lt;chg_date&gt;chg_date&lt;/chg_date&gt;&lt;chg_user&gt;chg_user&lt;/chg_user&gt;&lt;chg_term&gt;chg_term&lt;/chg_term&gt;&lt;seq_no&gt;seq_no&lt;/seq_no&gt;&lt;route_code&gt;route_code&lt;/route_code&gt;&lt;item_code&gt;item_code&lt;/item_code&gt;&lt;wait_time&gt;wait_time&lt;/wait_time&gt;&lt;set_time&gt;set_time&lt;/set_time&gt;&lt;run_time&gt;run_time&lt;/run_time&gt;&lt;reset_time&gt;reset_time&lt;/reset_time&gt;&lt;item_descr&gt;item_descr&lt;/item_descr&gt;&lt;proc_code&gt;proc_code&lt;/proc_code&gt;&lt;machines_descr/&gt;&lt;process_descr&gt;process_descr&lt;/process_descr&gt;&lt;remarks&gt;remarks&lt;/remarks&gt;&lt;operation_parent&gt;operation_parent&lt;/operation_parent&gt;&lt;emp_code/&gt;&lt;/worder_route_alt21_row&gt;&lt;/worder_route_alt21&gt;</xml>
<xml>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;worder_route_alt21&gt;&lt;worder_route_alt21_row __pbband=&quot;detail&quot;&gt;&lt;amd_no&gt;amd_no&lt;/amd_no&gt;&lt;amd_date&gt;amd_date&lt;/amd_date&gt;&lt;work_order&gt;work_order&lt;/work_order&gt;&lt;operation&gt;operation&lt;/operation&gt;&lt;work_ctr__o&gt;work_ctr__o&lt;/work_ctr__o&gt;&lt;mc_code__o&gt;mc_code__o&lt;/mc_code__o&gt;&lt;work_ctr&gt;work_ctr&lt;/work_ctr&gt;&lt;mc_code&gt;mc_code&lt;/mc_code&gt;&lt;confirmed&gt;confirmed&lt;/confirmed&gt;&lt;conf_date&gt;conf_date&lt;/conf_date&gt;&lt;chg_date&gt;chg_date&lt;/chg_date&gt;&lt;chg_user&gt;chg_user&lt;/chg_user&gt;&lt;chg_term&gt;chg_term&lt;/chg_term&gt;&lt;seq_no&gt;seq_no&lt;/seq_no&gt;&lt;route_code/&gt;&lt;item_code&gt;item_code&lt;/item_code&gt;&lt;wait_time&gt;wait_time&lt;/wait_time&gt;&lt;set_time&gt;set_time&lt;/set_time&gt;&lt;run_time&gt;run_time&lt;/run_time&gt;&lt;reset_time&gt;reset_time&lt;/reset_time&gt;&lt;item_descr&gt;item_descr&lt;/item_descr&gt;&lt;proc_code&gt;proc_code&lt;/proc_code&gt;&lt;machines_descr/&gt;&lt;process_descr&gt;process_descr&lt;/process_descr&gt;&lt;remarks&gt;remarks&lt;/remarks&gt;&lt;operation_parent&gt;operation_parent&lt;/operation_parent&gt;&lt;emp_code/&gt;&lt;/worder_route_alt21_row&gt;&lt;/worder_route_alt21&gt;</xml>
</Template>
</Export.XML>
<Import.XML>
......
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