$PBExportHeader$dw_rp_msttake_takecodehz_6.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(50) updatewhereclause=yes name=v_cust_cusname dbname="v_cust.cusname" ) 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 v_cust.cusname, 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)) ) text(band=detail alignment="2" text="客户对账单" border="0" color="33554432" x="23" y="32" height="108" width="4837" html.valueishtml="0" name=t_1 visible="1" font.face="宋体" font.height="-18" 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" ) text(band=detail alignment="1" text="收货方:" border="0" color="0" x="55" y="188" height="108" width="425" html.valueishtml="0" name=t_3 visible="1" font.face="宋体" font.height="-16" 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" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0" x="489" y="188" height="108" width="841" format="[general]" html.valueishtml="0" name=v_cust_cusname visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-16" 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="1" text="对帐日期:" border="0" color="0" x="2706" y="188" height="108" width="544" html.valueishtml="0" name=t_2 visible="1" font.face="宋体" font.height="-16" 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="0" text="" border="0" color="0" x="3259" y="188" height="108" width="1609" html.valueishtml="0" name=txt_dzrq visible="1" font.face="宋体" font.height="-16" 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_6" x="23" y="316" height="208" width="4850" 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="592" height="68" 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" ) text(band=detail alignment="0" text="需求方(盖公章): 经办人(签字): 负责人(签字): " border="0" color="33554432" x="23" y="888" height="80" width="4818" html.valueishtml="0" name=t_4 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" ) text(band=detail alignment="0" text="备 注:此模版实用于所有产品对帐,为了快捷对帐结款,各供应商需严格按此表每月对帐,以免影响付款" border="0" color="33554432" x="23" y="1180" height="68" width="4818" html.valueishtml="0" name=t_5 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" ) 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()