Commit 3c24ff3c authored by tmahadi's avatar tmahadi

sql ,xml and srd updated for ES3


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104573 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f9d46a47
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>569</height> <height>616</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
...@@ -308,8 +308,14 @@ ...@@ -308,8 +308,14 @@
<name>descr</name> <name>descr</name>
<dbname>station.descr</dbname> <dbname>station.descr</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;itemser&quot; ) TABLE(NAME=&quot;sordertype&quot; ) TABLE(NAME=&quot;site&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.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.order_type&quot;) COLUMN(NAME=&quot;cust_stock.stmt_date&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) COLUMN(NAME=&quot;sordertype.descr&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;cust_stock.chg_user&quot;) COLUMN(NAME=&quot;cust_stock.chg_term&quot;) COLUMN(NAME=&quot;cust_stock.chg_date&quot;) COLUMN(NAME=&quot;cust_stock.status&quot;) COLUMN(NAME=&quot;cust_stock.missing_inserted&quot;) COLUMN(NAME=&quot;customer.cust_type&quot;) COMPUTE(NAME=&quot;&apos;&apos; as cust_type__descr&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.prd_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as pophelp_frmdt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as pophelp_todt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as sale_per&quot;) COMPUTE(NAME=&quot;&apos;&apos; as edit_status&quot;) COMPUTE(NAME=&quot;&apos;&apos; as country_code&quot;) COLUMN(NAME=&quot;cust_stock.emp_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as emp_name&quot;) COMPUTE(NAME=&quot;FN_GET_POSCODE_DESCR(cust_stock.pos_code) as position_descr&quot;) COLUMN(NAME=&quot;cust_stock.pos_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as entry_start_dt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as entry_end_dt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as login_poscode&quot;) COLUMN(NAME=&quot;cust_stock.add_user&quot;) COLUMN(NAME=&quot;cust_stock.add_date&quot;) COLUMN(NAME=&quot;cust_stock.add_term&quot;) COLUMN(NAME=&quot;station.descr&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; ) JOIN (LEFT=&quot;cust_stock.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; ) JOIN (LEFT=&quot;cust_stock.order_type&quot; OP =&quot;=&quot;RIGHT=&quot;sordertype.order_type&quot; ) JOIN (LEFT=&quot;cust_stock.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;site.site_code&quot; ) JOIN (LEFT=&quot;customer.state_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.state_code&quot; )WHERE( EXP1 =&quot;CUST_STOCK.TRAN_ID&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve> <table_column>
<update>CUST_STOCK</update> <type size="0">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>adm_chk</name>
<dbname>adm_chk</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;itemser&quot; ) TABLE(NAME=&quot;sordertype&quot; ) TABLE(NAME=&quot;site&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.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.order_type&quot;) COLUMN(NAME=&quot;cust_stock.stmt_date&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) COLUMN(NAME=&quot;sordertype.descr&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;cust_stock.chg_user&quot;) COLUMN(NAME=&quot;cust_stock.chg_term&quot;) COLUMN(NAME=&quot;cust_stock.chg_date&quot;) COLUMN(NAME=&quot;cust_stock.status&quot;) COLUMN(NAME=&quot;cust_stock.missing_inserted&quot;) COLUMN(NAME=&quot;customer.cust_type&quot;) COMPUTE(NAME=&quot;&apos;&apos; as cust_type__descr&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.prd_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as pophelp_frmdt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as pophelp_todt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as sale_per&quot;) COMPUTE(NAME=&quot;&apos;&apos; as edit_status&quot;) COMPUTE(NAME=&quot;&apos;&apos; as country_code&quot;) COLUMN(NAME=&quot;cust_stock.emp_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as emp_name&quot;) COMPUTE(NAME=&quot;FN_GET_POSCODE_DESCR(cust_stock.pos_code) as position_descr&quot;) COLUMN(NAME=&quot;cust_stock.pos_code&quot;) COMPUTE(NAME=&quot;&apos;&apos; as entry_start_dt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as entry_end_dt&quot;) COMPUTE(NAME=&quot;&apos;&apos; as login_poscode&quot;) COLUMN(NAME=&quot;cust_stock.add_user&quot;) COLUMN(NAME=&quot;cust_stock.add_date&quot;) COLUMN(NAME=&quot;cust_stock.add_term&quot;) COLUMN(NAME=&quot;station.descr&quot;) COMPUTE(NAME=&quot;&apos;&apos; as adm_chk&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; ) JOIN (LEFT=&quot;cust_stock.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; ) JOIN (LEFT=&quot;cust_stock.order_type&quot; OP =&quot;=&quot;RIGHT=&quot;sordertype.order_type&quot; ) JOIN (LEFT=&quot;cust_stock.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;site.site_code&quot; ) JOIN (LEFT=&quot;customer.state_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.state_code&quot; )WHERE( EXP1 =&quot;CUST_STOCK.TRAN_ID&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<update>cust_stock</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
<argument> <argument>
...@@ -1476,42 +1482,6 @@ ...@@ -1476,42 +1482,6 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject>
<band>Detail</band>
<id>35</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>0</border>
<color>255</color>
<x>329</x>
<y>549</y>
<height>15</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>login_poscode</name>
<visible>0</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>553648127</color>
</background>
</ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>19</id> <id>19</id>
...@@ -2381,11 +2351,90 @@ ...@@ -2381,11 +2351,90 @@
<y>353</y> <y>353</y>
<height>16</height> <height>16</height>
<width>240</width> <width>240</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>descr</name> <name>descr</name>
<visible>0</visible> <visible>0</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>553648127</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>35</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>255</color>
<x>329</x>
<y>549</y>
<height>15</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>login_poscode</name>
<visible>0</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>553648127</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>40</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>255</color>
<x>398</x>
<y>550</y>
<height>15</height>
<width>58</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>adm_chk</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
......
--User Rights filter--
update user_rights set acc_filt='CUST_STOCK.POS_CODE IN (select CODE from TABLE(FN_ES3_POS_CODE2(''<entityCode>'',''P''))) or CUST_STOCK.ADD_USER IN(SELECT TRIM(CODE) FROM USERS WHERE EMP_CODE=''<entityCode>'')' where obj_name in ('secondory_sale_gwt','secondory_sale_gwt_wiz') and profile_id='SUN';
insert into disparm(prd_code,var_name,var_type,var_value,descr,var_subs,chg_date,chg_user,chg_term) values ('999999','ADM_DIVISION','S','CH','Excluded divisions',null,sysdate,'BASE','BASE');
commit;
delete from pophelp where mod_name='W_SECONDORY_SALE_GWT_WIZ' and field_name='POS_CODE';
commit;
insert into pophelp(field_name,mod_name,sql_str,dw_object,msg_title,width,height,chg_date,chg_user,chg_term,dist_opt,filter_string,sql_input,default_col,pop_align,query_mode,page_context,pophelp_cols,pophelp_source,multi_opt,help_option,popup_xsl_name,auto_fill_len,thumb_obj,thumb_image_col,thumb_alt_col) values ('POS_CODE','W_SECONDORY_SALE_GWT_WIZ','select pos_code,descr,emp_code,name,division,div_description from (select trim(a.pos_code) as pos_code , a.descr,trim(a.emp_code) as emp_code, c.emp_fname||'' ''||c.emp_mname||'' ''||c.emp_lname as name,a.table_no as division,itmser.sh_descr as div_description
from org_structure a ,employee c,itemser itmser,org_structure_cust d
where d.version_id=a.version_id and d.table_no=a.table_no and d.pos_code=a.pos_code and a.emp_code=c.emp_code(+) and itmser.item_ser=a.table_no and a.version_id in(select fn_get_version_id from dual)
and d.cust_code is not null and (case when d.source is null then ''Y'' else d.source end) <> ''A''
and a.pos_code in(
select c.pos_code from org_structure c start with c.pos_code=''?'' connect by prior c.pos_code=c.pos_code__repto and c.version_id =(select fn_get_version_id from dual) )
AND ''N''=''?''
group by a.pos_code,a.descr,a.emp_code,a.table_no,c.emp_fname,c.emp_mname,c.emp_lname,itmser.sh_descr
union all
SELECT trim(A.POS_CODE) as pos_code ,A.DESCR,trim(A.EMP_CODE) as emp_code,C.EMP_FNAME||'' ''||C.EMP_MNAME||'' ''||C.EMP_LNAME NAME,a.table_no as Division,itmser.sh_descr as div_description
from org_structure a ,employee c,itemser itmser,org_structure_cust d
where d.version_id=a.version_id and d.table_no=a.table_no and d.pos_code=a.pos_code and a.emp_code=c.emp_code(+) and itmser.item_ser=a.table_no
and a.version_id =(select fn_get_version_id from dual) and d.cust_code is not null and a.table_no<>''CH'' and (case when d.source is null then ''Y'' else d.source end) <> ''A''
and ''Y''=''?''
group by a.pos_code,a.descr,a.emp_code,a.table_no,c.emp_fname,c.emp_mname,c.emp_lname,itmser.sh_descr ) order by pos_code,descr asc ',null,'Position Code',0,0,null,null,null,'0',null,':login_poscode,:adm_chk,:adm_chk',0,null,null,null,null,null,0,null,null,null,null,null,null);
commit;
insert into messages (msg_no,msg_str,msg_descr,msg_type,msg_opt,msg_time,alarm,err_source,chg_date,chg_user,chg_term,override_input,mail_option)values ('VTINVPSCDE','Invalid Position Code!','Please enter valid Position Code!','E','Y',null,null,null,sysdate,'BASE','BASE',null,null);
commit;
\ No newline at end of file
delete from pophelp where field_name='CUST_CODE' and mod_name ='W_SECONDORY_SALE_GWT_WIZ';
commit;
Insert into pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL) values ('CUST_CODE','W_SECONDORY_SALE_GWT_WIZ','select distinct trim(cust.cust_code) as cust_code,
cust.cust_name,stn.descr as Station,org.table_no as Division,itmser.sh_descr as Div_description
from org_structure org,org_structure_cust orgcust,customer cust ,
station stn,customer_series custser,state state ,itemser itmser
where org.version_id=orgcust.version_id and
org.pos_code=orgcust.pos_code and
org.table_no=orgcust.table_no and
orgcust.cust_code=cust.cust_code
and itmser.item_ser=org.table_no
and cust.stan_code=stn.stan_code
and custser.cust_code=cust.cust_code
AND orgcust.pos_code =''?''
AND (case when orgcust.source is null then ''Y'' else orgcust.source end) <> ''A''
AND org.table_no =''?''
and org.version_id = (select FN_GET_VERSION_ID from dual)
and orgcust.cust_code not in(SELECT distinct(cust_code) FROM cust_stock WHERE
from_date >= ''?''
and to_date <= ''?'' and item_ser=''?'') AND (cust.SH_NAME LIKE upper(''?%'')
or cust.cust_code LIKE upper(''?%'') OR cust.cust_name LIKE upper(''?%''))
and state.count_code=''?'' and state.state_code=stn.state_code
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
and custser.item_ser in(select item_ser from itemser where grp_code=''?'' and item_ser<>case when grp_code is null then ''.'' else grp_code end
union all
select item_ser from itemser where item_ser=''?'' and item_ser<>case when grp_code is null then ''.'' else grp_code end)
order by stn.descr,cust.cust_name asc ',null,'Customer Code',0,0,null,null,null,'0',null,':pos_code,:item_ser,:pophelp_frmdt,:pophelp_todt,:item_ser,:cust_code,:cust_code,:cust_code,:country_code,:pophelp_frmdt,:pophelp_todt,:item_ser,:item_ser',0,null,null,null,null,null,0,null,null,null,null,null,null);
insert into messages (msg_no,msg_str,msg_descr,msg_type,msg_opt,msg_time,alarm,err_source,chg_date,chg_user,chg_term,override_input,mail_option)values ('VMINVORGCU','Invalid Customer!','Invalid Customer!','E','Y',null,null,null,sysdate,'BASE','BASE',null,null);
commit;
insert into messages (msg_no,msg_str,msg_descr,msg_type,msg_opt,msg_time,alarm,err_source,chg_date,chg_user,chg_term,override_input,mail_option)values ('VTCUST1','Invalid Customer!','Customer not exist in customer master!','E','Y',null,null,null,sysdate,'BASE','BASE',null,null);
commit;
...@@ -3,7 +3,7 @@ release 9; ...@@ -3,7 +3,7 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=75 color="536870912" ) summary(height=75 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=569 color="536870912" ) detail(height=616 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="cust_stock.tran_id" ) table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="cust_stock.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="cust_stock.tran_date" ) column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="cust_stock.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="cust_stock.cust_code" ) column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="cust_stock.cust_code" )
...@@ -43,7 +43,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i ...@@ -43,7 +43,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=datetime update=yes updatewhereclause=yes name=add_date dbname="cust_stock.add_date" ) column=(type=datetime update=yes updatewhereclause=yes name=add_date dbname="cust_stock.add_date" )
column=(type=char(15) update=yes updatewhereclause=yes name=add_term dbname="cust_stock.add_term" ) column=(type=char(15) update=yes updatewhereclause=yes name=add_term dbname="cust_stock.add_term" )
column=(type=char(40) updatewhereclause=yes name=descr dbname="station.descr" ) column=(type=char(40) updatewhereclause=yes name=descr dbname="station.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"cust_stock~" ) TABLE(NAME=~"customer~" ) TABLE(NAME=~"itemser~" ) TABLE(NAME=~"sordertype~" ) TABLE(NAME=~"site~" ) TABLE(NAME=~"station~" ) COLUMN(NAME=~"cust_stock.tran_id~") COLUMN(NAME=~"cust_stock.tran_date~") COLUMN(NAME=~"cust_stock.cust_code~") COLUMN(NAME=~"cust_stock.site_code~") COLUMN(NAME=~"cust_stock.from_date~") COLUMN(NAME=~"cust_stock.to_date~") COLUMN(NAME=~"customer.cust_name~") COLUMN(NAME=~"cust_stock.item_ser~") COLUMN(NAME=~"cust_stock.tran_id__last~") COLUMN(NAME=~"cust_stock.order_type~") COLUMN(NAME=~"cust_stock.stmt_date~") COLUMN(NAME=~"itemser.descr~") COLUMN(NAME=~"sordertype.descr~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"cust_stock.chg_user~") COLUMN(NAME=~"cust_stock.chg_term~") COLUMN(NAME=~"cust_stock.chg_date~") COLUMN(NAME=~"cust_stock.status~") COLUMN(NAME=~"cust_stock.missing_inserted~") COLUMN(NAME=~"customer.cust_type~") COMPUTE(NAME=~"'' as cust_type__descr~") COLUMN(NAME=~"cust_stock.confirmed~") COLUMN(NAME=~"cust_stock.prd_code~") COMPUTE(NAME=~"'' as pophelp_frmdt~") COMPUTE(NAME=~"'' as pophelp_todt~") COMPUTE(NAME=~"'' as sale_per~") COMPUTE(NAME=~"'' as edit_status~") COMPUTE(NAME=~"'' as country_code~") COLUMN(NAME=~"cust_stock.emp_code~") COMPUTE(NAME=~"'' as emp_name~") COMPUTE(NAME=~"FN_GET_POSCODE_DESCR(cust_stock.pos_code) as position_descr~") COLUMN(NAME=~"cust_stock.pos_code~") COMPUTE(NAME=~"'' as entry_start_dt~") COMPUTE(NAME=~"'' as entry_end_dt~") COMPUTE(NAME=~"'' as login_poscode~") COLUMN(NAME=~"cust_stock.add_user~") COLUMN(NAME=~"cust_stock.add_date~") COLUMN(NAME=~"cust_stock.add_term~") COLUMN(NAME=~"station.descr~") JOIN (LEFT=~"cust_stock.cust_code~" OP =~"=~"RIGHT=~"customer.cust_code~" ) JOIN (LEFT=~"cust_stock.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" ) JOIN (LEFT=~"cust_stock.order_type~" OP =~"=~"RIGHT=~"sordertype.order_type~" ) JOIN (LEFT=~"cust_stock.site_code~" OP =~"=~"RIGHT=~"site.site_code~" ) JOIN (LEFT=~"customer.state_code~" OP =~"=~"RIGHT=~"station.state_code~" )WHERE( EXP1 =~"CUST_STOCK.TRAN_ID~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="CUST_STOCK" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) ) column=(type=char(0) updatewhereclause=yes name=adm_chk dbname="adm_chk" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"cust_stock~" ) TABLE(NAME=~"customer~" ) TABLE(NAME=~"itemser~" ) TABLE(NAME=~"sordertype~" ) TABLE(NAME=~"site~" ) TABLE(NAME=~"station~" ) COLUMN(NAME=~"cust_stock.tran_id~") COLUMN(NAME=~"cust_stock.tran_date~") COLUMN(NAME=~"cust_stock.cust_code~") COLUMN(NAME=~"cust_stock.site_code~") COLUMN(NAME=~"cust_stock.from_date~") COLUMN(NAME=~"cust_stock.to_date~") COLUMN(NAME=~"customer.cust_name~") COLUMN(NAME=~"cust_stock.item_ser~") COLUMN(NAME=~"cust_stock.tran_id__last~") COLUMN(NAME=~"cust_stock.order_type~") COLUMN(NAME=~"cust_stock.stmt_date~") COLUMN(NAME=~"itemser.descr~") COLUMN(NAME=~"sordertype.descr~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"cust_stock.chg_user~") COLUMN(NAME=~"cust_stock.chg_term~") COLUMN(NAME=~"cust_stock.chg_date~") COLUMN(NAME=~"cust_stock.status~") COLUMN(NAME=~"cust_stock.missing_inserted~") COLUMN(NAME=~"customer.cust_type~") COMPUTE(NAME=~"'' as cust_type__descr~") COLUMN(NAME=~"cust_stock.confirmed~") COLUMN(NAME=~"cust_stock.prd_code~") COMPUTE(NAME=~"'' as pophelp_frmdt~") COMPUTE(NAME=~"'' as pophelp_todt~") COMPUTE(NAME=~"'' as sale_per~") COMPUTE(NAME=~"'' as edit_status~") COMPUTE(NAME=~"'' as country_code~") COLUMN(NAME=~"cust_stock.emp_code~") COMPUTE(NAME=~"'' as emp_name~") COMPUTE(NAME=~"FN_GET_POSCODE_DESCR(cust_stock.pos_code) as position_descr~") COLUMN(NAME=~"cust_stock.pos_code~") COMPUTE(NAME=~"'' as entry_start_dt~") COMPUTE(NAME=~"'' as entry_end_dt~") COMPUTE(NAME=~"'' as login_poscode~") COLUMN(NAME=~"cust_stock.add_user~") COLUMN(NAME=~"cust_stock.add_date~") COLUMN(NAME=~"cust_stock.add_term~") COLUMN(NAME=~"station.descr~") COMPUTE(NAME=~"'' as adm_chk~") JOIN (LEFT=~"cust_stock.cust_code~" OP =~"=~"RIGHT=~"customer.cust_code~" ) JOIN (LEFT=~"cust_stock.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" ) JOIN (LEFT=~"cust_stock.order_type~" OP =~"=~"RIGHT=~"sordertype.order_type~" ) JOIN (LEFT=~"cust_stock.site_code~" OP =~"=~"RIGHT=~"site.site_code~" ) JOIN (LEFT=~"customer.state_code~" OP =~"=~"RIGHT=~"station.state_code~" )WHERE( EXP1 =~"CUST_STOCK.TRAN_ID~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="cust_stock" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) )
text(band=detail alignment="1" text="Division :" border="0" color="33554432" x="40" y="197" height="15" width="74" html.valueishtml="0" name=item_ser_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Division :" border="0" color="33554432" x="40" y="197" height="15" width="74" html.valueishtml="0" name=item_ser_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="45" y="174" height="15" width="69" html.valueishtml="0" name=site_code_t visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="45" y="174" height="15" width="69" html.valueishtml="0" name=site_code_t visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="190" y="174" height="16" width="270" format="[general]" html.valueishtml="0" name=site_descr visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="190" y="174" height="16" width="270" format="[general]" html.valueishtml="0" name=site_descr visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
...@@ -79,7 +80,6 @@ column(band=detail id=11 alignment="0" tabsequence=30 border="5" color="0" x="11 ...@@ -79,7 +80,6 @@ column(band=detail id=11 alignment="0" tabsequence=30 border="5" color="0" x="11
text(band=detail alignment="0" text="Statement Date :" border="0" color="33554432" x="13" y="333" height="15" width="98" html.valueishtml="0" name=stmt_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) text(band=detail alignment="0" text="Statement Date :" border="0" color="33554432" x="13" y="333" height="15" width="98" html.valueishtml="0" name=stmt_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Employee:" border="0" color="33554432" x="45" y="122" height="15" width="69" html.valueishtml="0" name=emp_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Employee:" border="0" color="33554432" x="45" y="122" height="15" width="69" html.valueishtml="0" name=emp_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer/Stockiest:" border="0" color="33554432" x="4" y="150" height="15" width="115" html.valueishtml="0" name=cust_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Customer/Stockiest:" border="0" color="33554432" x="4" y="150" height="15" width="115" html.valueishtml="0" name=cust_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=35 alignment="0" tabsequence=40 border="0" color="255" x="329" y="549" height="15" width="48" format="[general]" html.valueishtml="0" name=login_poscode visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="255" x="135" y="521" height="15" width="86" format="[general]" html.valueishtml="0" name=missing_inserted visible="0" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="255" x="135" y="521" height="15" width="86" format="[general]" html.valueishtml="0" name=missing_inserted visible="0" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="255" x="253" y="547" height="15" width="48" format="[general]" html.valueishtml="0" name=country_code visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="255" x="253" y="547" height="15" width="48" format="[general]" html.valueishtml="0" name=country_code visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=25 alignment="0" tabsequence=32766 border="0" color="255" x="348" y="522" height="15" width="48" format="[general]" html.valueishtml="0" name=pophelp_todt visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=25 alignment="0" tabsequence=32766 border="0" color="255" x="348" y="522" height="15" width="48" format="[general]" html.valueishtml="0" name=pophelp_todt visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
...@@ -106,7 +106,9 @@ column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="255" ...@@ -106,7 +106,9 @@ column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="255"
text(band=detail alignment="0" text="Add Term :" border="0" color="33554432" x="407" y="396" height="15" width="70" html.valueishtml="0" name=add_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) text(band=detail alignment="0" text="Add Term :" border="0" color="33554432" x="407" y="396" height="15" width="70" html.valueishtml="0" name=add_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="0" text="Change Term :" border="0" color="33554432" x="391" y="420" height="15" width="88" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) text(band=detail alignment="0" text="Change Term :" border="0" color="33554432" x="391" y="420" height="15" width="88" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="0" text="Station :" border="0" color="33554432" x="13" y="354" height="16" width="98" html.valueishtml="0" name=station_descr_t visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) text(band=detail alignment="0" text="Station :" border="0" color="33554432" x="13" y="354" height="16" width="98" html.valueishtml="0" name=station_descr_t visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=39 alignment="0" tabsequence=32766 border="0" color="255" x="117" y="353" height="16" width="240" html.valueishtml="0" name=descr visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=39 alignment="0" tabsequence=32766 border="0" color="255" x="117" y="353" height="16" width="240" format="[general]" html.valueishtml="0" name=descr visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=35 alignment="0" tabsequence=32766 border="0" color="255" x="329" y="549" height="15" width="48" format="[general]" html.valueishtml="0" name=login_poscode visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=40 alignment="0" tabsequence=32766 border="0" color="255" x="398" y="550" height="15" width="58" format="[general]" html.valueishtml="0" name=adm_chk visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
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