dw_rp_spt_sub_hz.srd 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. $PBExportHeader$dw_rp_spt_sub_hz.srd
  2. $PBExportComments$By Kivens.Jiang(kivens@21cn.com)
  3. release 9;
  4. datawindow ( units=0 timer_interval=60000 color=16777215 processing=1 print.printername="" print.documentname="" print.orientation=0 print.margin.left=110 print.margin.right=110 print.margin.top=96 print.margin.bottom=96 print.paper.size=0 print.paper.source=0 print.canusedefaultprinter=yes grid.lines=0 selected.mouse=yes)
  5. header(height=364 color="536870912" )
  6. summary(height=68 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=92 color="536870912" height.autosize=yes)
  9. table(column=(type=long updatewhereclause=yes name=cmonth dbname="uv_dept_bala.cmonth" )
  10. column=(type=long updatewhereclause=yes name=uv_dept_bala_sptid dbname="uv_dept_bala.sptid" )
  11. column=(type=decimal(2) updatewhereclause=yes name=credit dbname="credit" )
  12. column=(type=decimal(2) updatewhereclause=yes name=debit dbname="debit" )
  13. column=(type=char(50) updatewhereclause=yes name=u_spt_name dbname="u_spt.name" )
  14. column=(type=char(20) updatewhereclause=yes name=u_spt_sptcode dbname="u_spt.sptcode" )
  15. column=(type=long updatewhereclause=yes name=cw_subject_dcflag dbname="cw_subject.dcflag" )
  16. retrieve=" SELECT uv_dept_bala.cmonth,
  17. uv_dept_bala.sptid,
  18. sum(uv_dept_bala.credit) as credit,
  19. sum(uv_dept_bala.debit) as debit,
  20. u_spt.name,
  21. u_spt.sptcode,
  22. cw_subject.dcflag
  23. FROM uv_dept_bala,
  24. u_spt,
  25. cw_subject
  26. WHERE ( uv_dept_bala.sptid = u_spt.sptid ) and
  27. ( uv_dept_bala.accsetid = :arg_accsetid ) AND
  28. uv_dept_bala.cmonth >= :arg_firstcmon AND
  29. uv_dept_bala.cmonth <= :arg_endcmon AND
  30. uv_dept_bala.subid like :arg_subid AND
  31. ( uv_dept_bala.postflag = :arg_ifpost or :arg_ifpost = -1 ) AND
  32. uv_dept_bala.accsetid = cw_subject.accsetid and
  33. uv_dept_bala.subid = cw_subject.subid
  34. GROUP BY uv_dept_bala.cmonth,
  35. uv_dept_bala.sptid,
  36. u_spt.name ,
  37. u_spt.sptcode,
  38. cw_subject.dcflag
  39. "
  40. arguments=(("arg_accsetid", number), ("arg_subid", string), ("arg_firstcmon", number), ("arg_endcmon", number), ("arg_ifpost", number))
  41. sort="cmonth A, u_spt_sptcode A"
  42. )
  43. group(level=1 header.height=0 trailer.height=68 by=("cmonth" ) header.color="536870912" trailer.color="536870912" )
  44. text(name=t_4 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="1230" y="248" height="116" width="480" text="" )
  45. text(name=dept_bbala_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="1230" y="280" height="56" width="480" text="期初金额" )
  46. text(name=t_9 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="2843" y="248" height="116" width="466" text="" )
  47. text(name=t_11 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="1073741824" color="33554432" alignment="0" border="2" x="9" y="248" height="116" width="251" text="" )
  48. text(name=t_6 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="1" border="2" x="1719" y="248" height="56" width="512" text="本期累" )
  49. text(name=t_1 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="270" y="248" height="116" width="658" text="" )
  50. text(name=t_2 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="937" y="248" height="116" width="174" text="" )
  51. text(name=cmonth_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="937" y="280" height="56" width="174" text="期间" )
  52. text(name=t_3 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="0" border="2" x="1120" y="248" height="116" width="101" text="" )
  53. text(name=t_7 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="0" border="2" x="2240" y="248" height="56" width="494" text="计发生" )
  54. text(name=debit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="1719" y="308" height="56" width="512" text="本期借方" )
  55. text(name=credit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="2240" y="308" height="56" width="494" text="贷方" )
  56. text(name=dc_balc_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="0" border="2" x="2743" y="248" height="116" width="91" text="" )
  57. text(name=u_spt_name_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="270" y="280" height="56" width="658" text="供应商" )
  58. text(name=dept_ebala_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="2843" y="280" height="56" width="466" text="期末金额" )
  59. text(name=u_spt_sptcode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="9" y="280" height="60" width="251" text="编号" )
  60. compute(name=compute_5 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2240" y="4" height="60" width="494" format="#,##0.00" expression="sum(credit for all)" alignment="1" border="0" crosstab.repeat=no )
  61. compute(name=compute_6 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1719" y="4" height="60" width="512" format="#,##0.00" expression="sum(debit for all)" alignment="1" border="0" crosstab.repeat=no )
  62. text(name=t_16 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="937" y="8" height="60" width="174" text="" )
  63. text(name=t_17 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="1120" y="4" height="60" width="101" text="" )
  64. text(name=t_18 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="1230" y="4" height="60" width="480" text="" )
  65. text(name=t_19 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="2743" y="4" height="60" width="91" text="" )
  66. text(name=t_20 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="2843" y="4" height="60" width="466" text="" )
  67. text(name=t_23 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="9" y="4" height="60" width="251" text="合计" )
  68. compute(name=obj_6234134 visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="1120" y="12" height="68" width="101" format="[general]" expression="if( f_rst_spt_bbala( arg_accsetid ,cmonth , arg_subid , uv_dept_bala_sptid , cw_subject_dcflag, arg_ifpost ) =0,'平',if (f_rst_spt_bbala( arg_accsetid , cmonth , arg_subid , uv_dept_bala_sptid , cw_subject_dcflag, arg_ifpost ) >0 ,if(cw_subject_dcflag =1,'借','贷'),if(cw_subject_dcflag =1,'贷','借')) )" alignment="2" border="0" crosstab.repeat=no )
  69. compute(name=dc_balc visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="2743" y="12" height="68" width="91" format="[general]" expression="if( dept_ebala =0 ,' 平',if ( dept_ebala >0 ,if( cw_subject_dcflag =1,'借','贷'),if( cw_subject_dcflag =1,'贷','借')) )" alignment="2" border="0" crosstab.repeat=no )
  70. column(name=debit visible="1" band=detail id=4 x="1719" y="12" height="68" width="512" color="0 if( debit =0,rgb(255,255,255),rgb(0,0,0))" border="0" alignment="1" format="#,##0.00" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  71. column(name=credit visible="1" band=detail id=3 x="2240" y="12" height="68" width="494" color="0 if( credit =0,rgb(255,255,255),rgb(0,0,0))" border="0" alignment="1" format="#,##0.00" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  72. compute(name=dept_bbala visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0 if( dept_bbala =0,rgb(255,255,255),rgb(0,0,0))" x="1230" y="12" height="68" width="480" format="#,##0.00" expression="abs(f_rst_spt_bbala( arg_accsetid , cmonth , arg_subid , uv_dept_bala_sptid, cw_subject_dcflag, arg_ifpost )) " alignment="1" border="0" crosstab.repeat=no )
  73. column(name=cmonth visible="1" band=detail id=1 x="937" y="12" height="68" width="174" color="0" border="0" alignment="2" format="[general]" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  74. column(name=u_spt_name visible="1" height.autosize=yes band=detail id=5 x="270" y="12" height="68" width="658" color="0" border="0" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=no edit.autoselect=no edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  75. compute(name=dept_ebala visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0 if( dept_ebala =0,rgb(255,255,255),rgb(0,0,0))" x="2843" y="12" height="68" width="466" format="#,##0.00" expression=" if( cw_subject_dcflag = 1,debit - credit ,credit - debit ) + f_rst_spt_bbala( arg_accsetid , cmonth , arg_subid , uv_dept_bala_sptid, cw_subject_dcflag, arg_ifpost ) " alignment="1" border="0" crosstab.repeat=no )
  76. column(name=u_spt_sptcode visible="1" band=detail id=6 x="9" y="12" height="68" width="251" color="0" border="0" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=no edit.autoselect=no edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  77. text(name=t_21 visible="1" resizeable=1 band=foreground font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="33554431" color="33554431" alignment="1" border="0" x="0" y="0" height="244" width="3346" text="" )
  78. compute(name=compute_7 visible="1" moveable=1 band=foreground font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="14" y="160" height="56" width="2368" format="[general]" expression="'期间从:'+ string(arg_firstcmon) + '到:'+ string(arg_endcmon) +',打印时间: '+string(today(),'yyyy-mm-dd')+ ' ' + string(page()) + ' / '+string(pageCount())" alignment="0" border="0" crosstab.repeat=no )
  79. text(name=t_22 visible="1" band=foreground font.charset="134" font.face="宋体" font.family="0" font.height="-22" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="0" border="0" x="14" y="12" height="132" width="1486" text="供应商科目总帐" )
  80. text(name=t_13 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="1120" y="4" height="60" width="101" text="" )
  81. compute(name=compute_1 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="1230" y="4" height="60" width="480" format="#,##0.00" expression="sum(abs(f_rst_spt_bbala( arg_accsetid , cmonth , arg_subid , uv_dept_bala_sptid , cw_subject_dcflag, arg_ifpost )) for group 1) " alignment="1" border="0" crosstab.repeat=no )
  82. compute(name=compute_2 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="1719" y="4" height="60" width="512" format="#,##0.00" expression="sum(debit for group 1)" alignment="1" border="0" crosstab.repeat=no )
  83. compute(name=compute_3 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="2240" y="4" height="60" width="494" format="#,##0.00" expression="sum(credit for group 1)" alignment="1" border="0" crosstab.repeat=no )
  84. text(name=t_14 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="2743" y="4" height="60" width="91" text="" )
  85. compute(name=compute_4 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="2843" y="4" height="60" width="466" format="#,##0.00" expression="sum(if( cw_subject_dcflag = 1,( debit - credit ) ,( credit - debit ) ) + f_rst_spt_bbala( arg_accsetid , cmonth , arg_subid , uv_dept_bala_sptid, cw_subject_dcflag, arg_ifpost ) for group 1) " alignment="1" border="0" crosstab.repeat=no )
  86. compute(name=compute_8 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="15780518" color="0" x="270" y="4" height="56" width="658" format="[general]" expression="count(u_spt_name for group 1)" alignment="2" border="0" crosstab.repeat=no )
  87. text(name=t_12 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="937" y="4" height="60" width="174" text="" )
  88. text(name=t_15 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="9" y="4" height="60" width="251" text="小计" )
  89. htmltable(border="1" )
  90. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  91. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  92. import.xml()
  93. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )