Commit 7b1d4e52 authored by caluka's avatar caluka

status set assending order purpose change xml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99852 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67d27093
......@@ -117,12 +117,6 @@
<name>order_type</name>
<dbname>cust_stock.order_type</dbname>
</table_column>
<table_column>
<type size="6">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>status</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
......@@ -178,7 +172,20 @@
<name>emp_code</name>
<dbname>cust_stock.emp_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;station&quot; ) COLUMN(NAME=&quot;cust_stock.tran_id&quot;) COLUMN(NAME=&quot;cust_stock.tran_date&quot;) COLUMN(NAME=&quot;cust_stock.cust_code&quot;) COLUMN(NAME=&quot;cust_stock.site_code&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.stmt_date&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;customer.stan_code&quot;) COLUMN(NAME=&quot;cust_stock.order_type&quot;) COMPUTE(NAME=&quot;(CASE WHEN cust_stock.status is null THEN &apos;Open&apos; WHEN cust_stock.status=&apos;O&apos; THEN &apos;Open&apos; WHEN cust_stock.status=&apos;S&apos; THEN &apos;Submit&apos; ELSE &apos;Open&apos; end) as status&quot;) COLUMN(NAME=&quot;station.descr&quot;) COLUMN(NAME=&quot;cust_stock.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;cust_stock.prd_code&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.conf_date&quot;) COLUMN(NAME=&quot;cust_stock.pos_code&quot;) COLUMN(NAME=&quot;cust_stock.emp_code&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; ) JOIN (LEFT=&quot;customer.stan_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.stan_code&quot; )WHERE( EXP1 =&quot;CUST_STOCK.TRAN_DATE&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:from_date&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;CUST_STOCK.TRAN_DATE&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date&quot; ) ) ARG(NAME = &quot;from_date&quot; TYPE = date) ARG(NAME = &quot;to_date&quot; TYPE = date) </retrieve>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>cust_stock.status</dbname>
</table_column>
<table_column>
<type size="6">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>status_dis</name>
<dbname>status_dis</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;station&quot; ) COLUMN(NAME=&quot;cust_stock.tran_id&quot;) COLUMN(NAME=&quot;cust_stock.tran_date&quot;) COLUMN(NAME=&quot;cust_stock.cust_code&quot;) COLUMN(NAME=&quot;cust_stock.site_code&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.stmt_date&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;customer.stan_code&quot;) COLUMN(NAME=&quot;cust_stock.order_type&quot;) COLUMN(NAME=&quot;station.descr&quot;) COLUMN(NAME=&quot;cust_stock.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;cust_stock.prd_code&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.conf_date&quot;) COLUMN(NAME=&quot;cust_stock.pos_code&quot;) COLUMN(NAME=&quot;cust_stock.emp_code&quot;) COLUMN(NAME=&quot;cust_stock.status&quot;) COMPUTE(NAME=&quot;(CASE WHEN cust_stock.status is null THEN &apos;Open&apos; WHEN cust_stock.status=&apos;O&apos; THEN &apos;Open&apos; WHEN cust_stock.status=&apos;S&apos; THEN &apos;Submit&apos; ELSE &apos;Open&apos; end) as status_dis&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; ) JOIN (LEFT=&quot;customer.stan_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.stan_code&quot; )WHERE( EXP1 =&quot;CUST_STOCK.TRAN_DATE&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:from_date&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;CUST_STOCK.TRAN_DATE&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date&quot; ) ) ORDER(NAME=&quot;cust_stock.status&quot; ASC=yes ) ARG(NAME = &quot;from_date&quot; TYPE = date) ARG(NAME = &quot;to_date&quot; TYPE = date) </retrieve>
<update>cust_stock</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -194,17 +201,45 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Status</text>
<text>Cust Stock Status</text>
<border>0</border>
<color>33554432</color>
<x>1737</x>
<y>1</y>
<height>17</height>
<width>146</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Status</text>
<border>0</border>
<color>0</color>
<x>2</x>
<y>3</y>
<y>4</y>
<height>16</height>
<width>76</width>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<name>status_dis_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -215,8 +250,8 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<TextObject>
......@@ -225,7 +260,7 @@
<text>Customer/Stockist</text>
<border>0</border>
<color>0</color>
<x>80</x>
<x>98</x>
<y>0</y>
<height>16</height>
<width>139</width>
......@@ -253,7 +288,7 @@
<text>Cust Name</text>
<border>0</border>
<color>0</color>
<x>221</x>
<x>239</x>
<y>1</y>
<height>16</height>
<width>196</width>
......@@ -281,7 +316,7 @@
<text>City</text>
<border>0</border>
<color>0</color>
<x>419</x>
<x>437</x>
<y>1</y>
<height>16</height>
<width>113</width>
......@@ -309,7 +344,7 @@
<text>Division</text>
<border>0</border>
<color>0</color>
<x>534</x>
<x>552</x>
<y>2</y>
<height>16</height>
<width>66</width>
......@@ -337,7 +372,7 @@
<text>From Date</text>
<border>0</border>
<color>33554432</color>
<x>602</x>
<x>620</x>
<y>1</y>
<height>16</height>
<width>105</width>
......@@ -365,7 +400,7 @@
<text>To Date</text>
<border>0</border>
<color>33554432</color>
<x>709</x>
<x>727</x>
<y>1</y>
<height>16</height>
<width>102</width>
......@@ -393,7 +428,7 @@
<text>Period Code</text>
<border>0</border>
<color>33554432</color>
<x>813</x>
<x>831</x>
<y>1</y>
<height>16</height>
<width>91</width>
......@@ -421,7 +456,7 @@
<text>Order Type</text>
<border>0</border>
<color>33554432</color>
<x>906</x>
<x>924</x>
<y>1</y>
<height>16</height>
<width>86</width>
......@@ -449,7 +484,7 @@
<text>Statement Date</text>
<border>0</border>
<color>0</color>
<x>994</x>
<x>1012</x>
<y>2</y>
<height>16</height>
<width>121</width>
......@@ -477,7 +512,7 @@
<text>Transaction Date</text>
<border>0</border>
<color>0</color>
<x>1117</x>
<x>1135</x>
<y>2</y>
<height>16</height>
<width>104</width>
......@@ -505,7 +540,7 @@
<text>Site Code</text>
<border>0</border>
<color>0</color>
<x>1223</x>
<x>1241</x>
<y>2</y>
<height>16</height>
<width>70</width>
......@@ -533,7 +568,7 @@
<text>Emp Code</text>
<border>0</border>
<color>33554432</color>
<x>1374</x>
<x>1392</x>
<y>1</y>
<height>16</height>
<width>88</width>
......@@ -561,7 +596,7 @@
<text> Position Code</text>
<border>0</border>
<color>33554432</color>
<x>1295</x>
<x>1313</x>
<y>1</y>
<height>16</height>
<width>77</width>
......@@ -589,7 +624,7 @@
<text>Transaction Id</text>
<border>0</border>
<color>0</color>
<x>1464</x>
<x>1482</x>
<y>2</y>
<height>16</height>
<width>128</width>
......@@ -617,7 +652,7 @@
<text>Tran Id Last</text>
<border>0</border>
<color>0</color>
<x>1594</x>
<x>1612</x>
<y>2</y>
<height>16</height>
<width>123</width>
......@@ -645,7 +680,7 @@
<text>Confirmed</text>
<border>0</border>
<color>0</color>
<x>1719</x>
<x>1885</x>
<y>1</y>
<height>16</height>
<width>88</width>
......@@ -673,7 +708,7 @@
<text>Conf Date</text>
<border>0</border>
<color>0</color>
<x>1809</x>
<x>1975</x>
<y>1</y>
<height>16</height>
<width>133</width>
......@@ -701,7 +736,7 @@
<text>Station Code</text>
<border>0</border>
<color>33554432</color>
<x>1944</x>
<x>2110</x>
<y>1</y>
<height>16</height>
<width>118</width>
......@@ -730,7 +765,7 @@
<tabsequence>150</tabsequence>
<border>0</border>
<color>0</color>
<x>1464</x>
<x>1482</x>
<y>2</y>
<height>16</height>
<width>128</width>
......@@ -768,7 +803,7 @@
<tabsequence>110</tabsequence>
<border>0</border>
<color>0</color>
<x>1117</x>
<x>1135</x>
<y>2</y>
<height>16</height>
<width>104</width>
......@@ -803,7 +838,7 @@
<tabsequence>20</tabsequence>
<border>0</border>
<color>0</color>
<x>80</x>
<x>98</x>
<y>2</y>
<height>16</height>
<width>139</width>
......@@ -841,7 +876,7 @@
<tabsequence>120</tabsequence>
<border>0</border>
<color>0</color>
<x>1223</x>
<x>1241</x>
<y>2</y>
<height>16</height>
<width>70</width>
......@@ -879,7 +914,7 @@
<tabsequence>160</tabsequence>
<border>0</border>
<color>0</color>
<x>1594</x>
<x>1612</x>
<y>2</y>
<height>16</height>
<width>123</width>
......@@ -917,7 +952,7 @@
<tabsequence>50</tabsequence>
<border>0</border>
<color>0</color>
<x>534</x>
<x>552</x>
<y>2</y>
<height>16</height>
<width>66</width>
......@@ -955,7 +990,7 @@
<tabsequence>100</tabsequence>
<border>0</border>
<color>0</color>
<x>994</x>
<x>1012</x>
<y>2</y>
<height>16</height>
<width>121</width>
......@@ -990,7 +1025,7 @@
<tabsequence>30</tabsequence>
<border>0</border>
<color>0</color>
<x>221</x>
<x>239</x>
<y>0</y>
<height>16</height>
<width>196</width>
......@@ -1024,10 +1059,10 @@
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>190</tabsequence>
<tabsequence>200</tabsequence>
<border>0</border>
<color>0</color>
<x>1944</x>
<x>2110</x>
<y>1</y>
<height>16</height>
<width>118</width>
......@@ -1064,7 +1099,7 @@
<tabsequence>90</tabsequence>
<border>0</border>
<color>0</color>
<x>906</x>
<x>924</x>
<y>1</y>
<height>16</height>
<width>86</width>
......@@ -1098,47 +1133,10 @@
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>0</border>
<color>0</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</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>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>0</border>
<color>0</color>
<x>419</x>
<x>437</x>
<y>1</y>
<height>16</height>
<width>113</width>
......@@ -1170,12 +1168,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>0</border>
<color>0</color>
<x>602</x>
<x>620</x>
<y>1</y>
<height>16</height>
<width>105</width>
......@@ -1205,12 +1203,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>0</border>
<color>0</color>
<x>709</x>
<x>727</x>
<y>1</y>
<height>16</height>
<width>102</width>
......@@ -1240,12 +1238,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>0</border>
<color>0</color>
<x>813</x>
<x>831</x>
<y>1</y>
<height>16</height>
<width>91</width>
......@@ -1277,12 +1275,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<tabsequence>180</tabsequence>
<border>0</border>
<color>0</color>
<x>1719</x>
<x>1885</x>
<y>1</y>
<height>16</height>
<width>88</width>
......@@ -1313,12 +1311,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>180</tabsequence>
<tabsequence>190</tabsequence>
<border>0</border>
<color>0</color>
<x>1809</x>
<x>1975</x>
<y>0</y>
<height>16</height>
<width>133</width>
......@@ -1348,12 +1346,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>0</border>
<color>0</color>
<x>1295</x>
<x>1313</x>
<y>1</y>
<height>16</height>
<width>77</width>
......@@ -1384,12 +1382,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>0</border>
<color>0</color>
<x>1374</x>
<x>1392</x>
<y>1</y>
<height>16</height>
<width>88</width>
......@@ -1418,6 +1416,78 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<border>0</border>
<color>0</color>
<x>1737</x>
<y>1</y>
<height>16</height>
<width>146</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>0</border>
<color>0</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>94</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_dis</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
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