dw_rp_msttake_takecodehz_5.srd 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. $PBExportHeader$dw_rp_msttake_takecodehz_5.srd
  2. release 11.5;
  3. 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="" )
  4. 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" )
  5. 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" )
  6. 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" )
  7. 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 )
  8. table(column=(type=char(60) updatewhereclause=yes name=title dbname="title" )
  9. column=(type=long updatewhereclause=yes name=v_musttakebalc_balcamt_mx_cusid dbname="v_musttakebalc_balcamt_mx.cusid" )
  10. column=(type=char(20) updatewhereclause=yes name=v_cust_cuscode dbname="v_cust.cuscode" )
  11. column=(type=char(20) updatewhereclause=yes name=v_cust_custype dbname="v_cust.custype" )
  12. column=(type=decimal(2) updatewhereclause=yes name=balcamt dbname="balcamt" )
  13. column=(type=decimal(2) updatewhereclause=yes name=msttakeamt dbname="msttakeamt" )
  14. column=(type=decimal(2) updatewhereclause=yes name=takeamt dbname="takeamt" )
  15. column=(type=decimal(2) updatewhereclause=yes name=orgn_amt dbname="orgn_amt" )
  16. column=(type=long updatewhereclause=yes name=v_cust_moneyid dbname="v_cust.moneyid" )
  17. column=(type=char(50) updatewhereclause=yes name=v_cust_cusname dbname="v_cust.cusname" )
  18. column=(type=char(30) updatewhereclause=yes name=v_cust_name dbname="v_cust.name" )
  19. column=(type=char(30) updatewhereclause=yes name=u_cust_rep dbname="u_cust.rep" )
  20. column=(type=char(100) updatewhereclause=yes name=u_cust_tele dbname="u_cust.tele" )
  21. column=(type=char(30) updatewhereclause=yes name=u_cust_faxno dbname="u_cust.faxno" )
  22. column=(type=char(1000) updatewhereclause=yes name=u_cust_address dbname="u_cust.address" )
  23. retrieve="SELECT
  24. rtrim(v_cust.cusname) + '客户对账单' as title,
  25. v_musttakebalc_balcamt_mx.cusid,
  26. v_cust.cuscode,
  27. v_cust.custype,
  28. sum(v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt,0)) AS balcamt,
  29. sum(ISNULL(v_musttakebalc_incdec.Msttakeamt, 0)) AS Msttakeamt,
  30. SUM( ISNULL(v_musttakebalc_incdec.takeamt, 0) ) AS takeamt,
  31. SUM( v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_incdec.Msttakeamt,
  32. 0) + ISNULL(v_musttakebalc_incdec.takeamt, 0)
  33. - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt, 0)) AS orgn_amt,
  34. v_cust.moneyid,
  35. v_cust.cusname,
  36. v_cust.name,
  37. u_cust.rep,
  38. u_cust.tele,
  39. u_cust.faxno,
  40. u_cust.address
  41. FROM v_cust INNER JOIN
  42. v_musttakebalc_balcamt_mx ON
  43. v_cust.cusid = v_musttakebalc_balcamt_mx.cusid AND
  44. v_cust.moneyid = v_musttakebalc_balcamt_mx.moneyid LEFT OUTER JOIN
  45. v_musttakebalc_outdate_incdec RIGHT OUTER JOIN
  46. v_musttakebalc_incdec ON
  47. v_musttakebalc_outdate_incdec.moneyid = v_musttakebalc_incdec.moneyid AND
  48. v_musttakebalc_outdate_incdec.cusid = v_musttakebalc_incdec.cusid and
  49. v_musttakebalc_outdate_incdec.scid = v_musttakebalc_incdec.scid
  50. ON
  51. v_musttakebalc_balcamt_mx.moneyid = v_musttakebalc_incdec.moneyid AND
  52. v_musttakebalc_balcamt_mx.cusid = v_musttakebalc_incdec.cusid and
  53. v_musttakebalc_balcamt_mx.scid = v_musttakebalc_incdec.scid inner join
  54. u_cust on v_cust.cusid = u_cust.cusid
  55. WHERE (v_cust.cuscode LIKE :arg_cuscode) AND
  56. (Msttakeamt <> 0 OR takeamt <> 0 OR
  57. v_musttakebalc_balcamt_mx.balcamt - ISNULL(v_musttakebalc_outdate_incdec.outdate_Msttakeamt,0) <> 0 or
  58. 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
  59. 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
  60. (v_cust.moneyid = :arg_moneyid) AND
  61. (v_cust.cusareaid IN (:arg_cusareaid) )
  62. and (v_musttakebalc_balcamt_mx.scid=:arg_scid or :arg_scid=-1 )
  63. group by v_musttakebalc_balcamt_mx.cusid,
  64. v_cust.cuscode,
  65. v_cust.custype,
  66. v_cust.moneyid,
  67. v_cust.cusname,
  68. v_cust.name,
  69. u_cust.rep,
  70. u_cust.tele,
  71. u_cust.faxno,
  72. u_cust.address
  73. ORDER BY v_cust.cuscode ASC
  74. " arguments=(("arg_moneyid", number),("arg_cuscode", string),("arg_first_date", datetime),("arg_end_date", datetime),("arg_cusareaid", numberlist),("arg_scid", number)) )
  75. 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" )
  76. 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" )
  77. 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" )
  78. 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" )
  79. 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" )
  80. 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" )
  81. 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" )
  82. 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" )
  83. 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" )
  84. 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 )
  85. 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" )
  86. 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" )
  87. 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" )
  88. 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" )
  89. 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" )
  90. 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" )
  91. htmltable(border="1" )
  92. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" )
  93. xhtmlgen() cssgen(sessionspecific="0" )
  94. xmlgen(inline="0" )
  95. xsltgen()
  96. jsgen()
  97. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  98. import.xml()
  99. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
  100. export.xhtml()