123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- $PBExportHeader$dw_rp_msttake_takecodehz_5.srd
- release 11.5;
- datawindow(units=0 timer_interval=0 color=16777215 brushmode=0 transparency=0 gradient.angle=0 gradient.color=8421504 gradient.focus=0 gradient.repetition.count=0 gradient.repetition.length=100 gradient.repetition.mode=0 gradient.scale=100 gradient.spread=100 gradient.transparency=0 picture.blur=0 picture.clip.bottom=0 picture.clip.left=0 picture.clip.right=0 picture.clip.top=0 picture.mode=0 picture.scale.x=100 picture.scale.y=100 picture.transparency=0 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 1 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 9 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="" )
- header(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" )
- summary(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" )
- footer(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" )
- detail(height=1872 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" height.autosize=yes )
- table(column=(type=char(60) updatewhereclause=yes name=title dbname="title" )
- column=(type=long updatewhereclause=yes name=v_musttakebalc_balcamt_mx_cusid dbname="v_musttakebalc_balcamt_mx.cusid" )
- column=(type=char(20) updatewhereclause=yes name=v_cust_cuscode dbname="v_cust.cuscode" )
- column=(type=char(20) updatewhereclause=yes name=v_cust_custype dbname="v_cust.custype" )
- column=(type=decimal(2) updatewhereclause=yes name=balcamt dbname="balcamt" )
- column=(type=decimal(2) updatewhereclause=yes name=msttakeamt dbname="msttakeamt" )
- column=(type=decimal(2) updatewhereclause=yes name=takeamt dbname="takeamt" )
- column=(type=decimal(2) updatewhereclause=yes name=orgn_amt dbname="orgn_amt" )
- column=(type=long updatewhereclause=yes name=v_cust_moneyid dbname="v_cust.moneyid" )
- column=(type=char(50) updatewhereclause=yes name=v_cust_cusname dbname="v_cust.cusname" )
- column=(type=char(30) updatewhereclause=yes name=v_cust_name dbname="v_cust.name" )
- column=(type=char(30) updatewhereclause=yes name=u_cust_rep dbname="u_cust.rep" )
- column=(type=char(100) updatewhereclause=yes name=u_cust_tele dbname="u_cust.tele" )
- column=(type=char(30) updatewhereclause=yes name=u_cust_faxno dbname="u_cust.faxno" )
- column=(type=char(1000) updatewhereclause=yes name=u_cust_address dbname="u_cust.address" )
- retrieve="SELECT
- rtrim(v_cust.cusname) + '客户对账单' as title,
- v_musttakebalc_balcamt_mx.cusid,
- v_cust.cuscode,
- v_cust.custype,
- sum(v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt,0)) AS balcamt,
- sum(ISNULL(v_musttakebalc_incdec.Msttakeamt, 0)) AS Msttakeamt,
- SUM( ISNULL(v_musttakebalc_incdec.takeamt, 0) ) AS takeamt,
-
- SUM( v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_incdec.Msttakeamt,
- 0) + ISNULL(v_musttakebalc_incdec.takeamt, 0)
- - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt, 0)) AS orgn_amt,
-
-
- v_cust.moneyid,
- v_cust.cusname,
- v_cust.name,
- u_cust.rep,
- u_cust.tele,
- u_cust.faxno,
- u_cust.address
- FROM v_cust INNER JOIN
- v_musttakebalc_balcamt_mx ON
- v_cust.cusid = v_musttakebalc_balcamt_mx.cusid AND
- v_cust.moneyid = v_musttakebalc_balcamt_mx.moneyid LEFT OUTER JOIN
- v_musttakebalc_outdate_incdec RIGHT OUTER JOIN
- v_musttakebalc_incdec ON
- v_musttakebalc_outdate_incdec.moneyid = v_musttakebalc_incdec.moneyid AND
- v_musttakebalc_outdate_incdec.cusid = v_musttakebalc_incdec.cusid and
- v_musttakebalc_outdate_incdec.scid = v_musttakebalc_incdec.scid
- ON
- v_musttakebalc_balcamt_mx.moneyid = v_musttakebalc_incdec.moneyid AND
- v_musttakebalc_balcamt_mx.cusid = v_musttakebalc_incdec.cusid and
- v_musttakebalc_balcamt_mx.scid = v_musttakebalc_incdec.scid inner join
- u_cust on v_cust.cusid = u_cust.cusid
- WHERE (v_cust.cuscode LIKE :arg_cuscode) AND
- (Msttakeamt <> 0 OR takeamt <> 0 OR
- v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt,0) <> 0 or
- v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_incdec.Msttakeamt,0) + ISNULL(v_musttakebalc_incdec.takeamt, 0) - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt, 0) <> 0 or
- v_cust.cusid IN (SELECT cusid FROM u_bmsttakemx WHERE takedate >= :arg_first_date AND takedate <= :arg_end_date AND buildtype <> 2 and u_bmsttakemx.moneyid=:arg_moneyid )) AND
- (v_cust.moneyid = :arg_moneyid) AND
- (v_cust.cusareaid IN (:arg_cusareaid) )
- and (v_musttakebalc_balcamt_mx.scid=:arg_scid or :arg_scid=-1 )
- group by v_musttakebalc_balcamt_mx.cusid,
- v_cust.cuscode,
- v_cust.custype,
- v_cust.moneyid,
- v_cust.cusname,
- v_cust.name,
- u_cust.rep,
- u_cust.tele,
- u_cust.faxno,
- u_cust.address
- ORDER BY v_cust.cuscode ASC
- " arguments=(("arg_moneyid", number),("arg_cuscode", string),("arg_first_date", datetime),("arg_end_date", datetime),("arg_cusareaid", numberlist),("arg_scid", number)) )
- compute(band=detail alignment="0" expression="'第 ' +page() + ' 页 共 ' + pageCount()+' 页'"border="0" color="0" x="3067" y="148" height="60" width="773" format="[general]" html.valueishtml="0" name=compute_3 visible="1~tif( pageCount() > 1 ,1 ,0)" slideup=allabove font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- column(band=detail id=12 alignment="0" tabsequence=32766 border="0" color="0" x="494" y="136" height="68" width="2427" format="[general]" html.valueishtml="0" name=u_cust_rep visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="0" x="494" y="228" height="68" width="2427" format="[general]" html.valueishtml="0" name=u_cust_tele visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="0" text="" border="0" color="0" x="2624" y="512" height="68" width="1230" html.valueishtml="0" name=txt_dzrq visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="2" text="电 话:" border="0" color="0" x="23" y="228" height="68" width="448" html.valueishtml="0" name=t_13 visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="2" text="联系人:" border="0" color="0" x="23" y="136" height="68" width="448" html.valueishtml="0" name=t_12 visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="2" text="传 真:" border="0" color="0" x="23" y="316" height="68" width="448" html.valueishtml="0" name=t_14 visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="2" text="地 址:" border="0" color="0" x="23" y="400" height="68" width="448" html.valueishtml="0" name=t_15 visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="2" text="对 帐 单" border="0" color="0" x="23" y="640" height="108" width="4837" html.valueishtml="0" name=t_16 visible="1" moveable=1 font.face="宋体" font.height="-18" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- report(band=detail dataobject="dw_rp_msttake_takecodehz_chl_5" x="23" y="768" height="208" width="4827" border="0" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" height.autosize=yes criteria="" nest_arguments=((" v_musttakebalc_balcamt_mx_cusid "),(" arg_moneyid "),(" arg_first_date "),(" arg_end_date "),(" arg_scid ")) trail_footer = yes name=dw_1 visible="1" slideleft=yes slideup=directlyabove )
- text(band=detail alignment="0" text="如准确无误,请签名确认:" border="0" color="33554432" x="23" y="1004" height="116" width="4818" html.valueishtml="0" name=t_11 visible="1" slideup=allabove font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="0" x="494" y="316" height="68" width="2437" format="[general]" html.valueishtml="0" name=u_cust_faxno visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- column(band=detail id=15 alignment="0" tabsequence=32766 border="0" color="0" x="494" y="400" height="68" width="2441" format="[general]" html.valueishtml="0" name=u_cust_address visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="1" text="对帐日期:" border="0" color="0" x="2272" y="512" height="68" width="343" html.valueishtml="0" name=t_2 visible="1" font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- text(band=detail alignment="0" text=" 请确认 请回传 请汇款 请存根 " border="0" color="33554432" x="23" y="512" height="68" width="2194" html.valueishtml="0" name=t_3 visible="1" font.face="宋体" font.height="-11" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- column(band=detail id=1 alignment="2" tabsequence=32766 border="0" color="0" x="23" y="8" height="108" width="4837" format="[general]" html.valueishtml="0" name=title visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-18" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" )
- htmltable(border="1" )
- htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" )
- xhtmlgen() cssgen(sessionspecific="0" )
- xmlgen(inline="0" )
- xsltgen()
- jsgen()
- export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
- import.xml()
- export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
- export.xhtml()
-
|