dw_rp_subid_hz.srd 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. $PBExportHeader$dw_rp_subid_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=264 color="536870912" )
  6. summary(height=0 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=84 color="536870912" )
  9. table(column=(type=long updatewhereclause=yes name=yearmon dbname="cw_Balance.YearMon" )
  10. column=(type=char(79) updatewhereclause=yes name=subname dbname="subname" )
  11. column=(type=decimal(2) updatewhereclause=yes name=debit dbname="cw_Balance.Debit" )
  12. column=(type=decimal(2) updatewhereclause=yes name=credit dbname="cw_Balance.Credit" )
  13. column=(type=decimal(2) updatewhereclause=yes name=balc dbname="balc" )
  14. column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawdebit dbname="cw_Balance.rawDebit" )
  15. column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawcredit dbname="cw_Balance.rawCredit" )
  16. column=(type=decimal(2) updatewhereclause=yes name=rawbalc dbname="rawbalc" )
  17. column=(type=char(8) updatewhereclause=yes name=brief dbname="brief" )
  18. column=(type=long updatewhereclause=yes name=dw_sort dbname="dw_sort" )
  19. retrieve=" SELECT cw_Balance.YearMon,
  20. rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
  21. null as Debit,
  22. null as Credit,
  23. case sum(cw_Balance.bDebit) - sum(cw_Balance.bCredit) when 0 then null else sum(cw_Balance.bDebit) - sum(cw_Balance.bCredit) end as balc,
  24. null as rawDebit,
  25. null as rawCredit,
  26. case sum(cw_Balance.brawDebit) - sum(cw_Balance.brawCredit) when 0 then null else sum(cw_Balance.brawDebit) - sum(cw_Balance.brawCredit) end as rawbalc,
  27. '期初余额' as brief,
  28. 0 as dw_sort
  29. FROM cw_Balance, cw_subject
  30. WHERE cw_Balance.accsetid = cw_subject.accsetid and
  31. cw_Balance.subid = cw_subject.subid and
  32. ( cw_Balance.accsetid = :arg_accsetid ) AND
  33. (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
  34. cw_Balance.SubID >= :arg_firstsubid AND
  35. cw_Balance.SubID <= :arg_endsubid AND
  36. len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
  37. cw_Balance.YearMon = :arg_firstcmonth
  38. GROUP BY cw_Balance.YearMon,
  39. cw_subject.subid,
  40. cw_subject.name
  41. union all
  42. SELECT cw_Balance.YearMon,
  43. rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
  44. case sum(cw_Balance.Debit) when 0 then null else sum(cw_Balance.Debit) end as Debit,
  45. case sum(cw_Balance.Credit) when 0 then null else sum(cw_Balance.Credit) end as Credit,
  46. case sum(cw_Balance.eDebit) - sum(cw_Balance.eCredit) when 0 then null else sum(cw_Balance.eDebit) - sum(cw_Balance.eCredit) end as balc,
  47. case sum(cw_Balance.rawDebit) when 0 then null else sum(cw_Balance.rawDebit) end as rawDebit,
  48. case sum(cw_Balance.rawCredit) when 0 then null else sum(cw_Balance.rawCredit) end as rawCredit,
  49. case sum(cw_Balance.erawDebit) - sum(cw_Balance.erawCredit) when 0 then null else sum(cw_Balance.erawDebit) - sum(cw_Balance.erawCredit) end as rawbalc,
  50. '本期合计' as brief,
  51. 1 as dw_sort
  52. FROM cw_Balance , cw_subject
  53. WHERE cw_Balance.accsetid = cw_subject.accsetid and
  54. cw_Balance.subid = cw_subject.subid and
  55. ( cw_Balance.accsetid = :arg_accsetid ) AND
  56. (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
  57. cw_Balance.SubID >= :arg_firstsubid AND
  58. cw_Balance.SubID <= :arg_endsubid AND
  59. len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
  60. cw_Balance.YearMon >= :arg_firstcmonth AND
  61. cw_Balance.YearMon <= :arg_endcmonth
  62. GROUP BY cw_subject.SubID,
  63. cw_subject.name,
  64. cw_Balance.YearMon
  65. union all
  66. SELECT cw_Balance.YearMon,
  67. rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
  68. case sum(cw_Balance.yDebit) when 0 then null else sum(cw_Balance.yDebit) end as Debit,
  69. case sum(cw_Balance.yCredit) when 0 then null else sum(cw_Balance.yCredit) end as Credit,
  70. case sum(cw_Balance.ybDebit) - sum(cw_Balance.ybCredit) + sum(cw_Balance.yDebit) - sum(cw_Balance.yCredit) when 0 then null else sum(cw_Balance.ybDebit) - sum(cw_Balance.ybCredit) + sum(cw_Balance.yDebit) - sum(cw_Balance.yCredit) end as balc,
  71. case sum(cw_Balance.yrawDebit) when 0 then null else sum(cw_Balance.yrawDebit) end as rawDebit,
  72. case sum(cw_Balance.yrawCredit) when 0 then null else sum(cw_Balance.yrawCredit) end as rawCredit,
  73. case sum(cw_Balance.ybrawDebit) - sum(cw_Balance.ybrawCredit) + sum(cw_Balance.yrawDebit) - sum(cw_Balance.yrawCredit) when 0 then null else sum(cw_Balance.ybrawDebit) - sum(cw_Balance.ybrawCredit) + sum(cw_Balance.yrawDebit) - sum(cw_Balance.yrawCredit) end as rawbalc,
  74. '本年累计' as brief,
  75. 2 as dw_sort
  76. FROM cw_Balance, cw_subject
  77. WHERE cw_Balance.accsetid = cw_subject.accsetid and
  78. cw_Balance.subid = cw_subject.subid and
  79. ( cw_Balance.accsetid = :arg_accsetid ) AND
  80. (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
  81. cw_Balance.SubID >= :arg_firstsubid AND
  82. cw_Balance.SubID <= :arg_endsubid AND
  83. len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
  84. cw_Balance.YearMon >= :arg_firstcmonth AND
  85. cw_Balance.YearMon <= :arg_endcmonth
  86. GROUP BY cw_subject.SubID,
  87. cw_subject.name,
  88. cw_Balance.YearMon
  89. "
  90. arguments=(("arg_accsetid", number), ("arg_subaccsetid", number), ("arg_firstsubid", string), ("arg_endsubid", string), ("arg_firstcmonth", number), ("arg_endcmonth", number), ("arg_grade", number))
  91. sort="subname A, yearmon A, dw_sort A"
  92. )
  93. text(name=subname_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="9" y="208" height="56" width="937" text="会计科目" )
  94. text(name=yearmon_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="955" y="208" height="56" width="343" text="期间" )
  95. text(name=brief_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="1307" y="208" height="56" width="311" text="摘要" )
  96. 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="1" background.color="536870912" color="0" alignment="2" border="2" x="1627" y="208" height="56" width="571" text="本位币借方" )
  97. 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="1" background.color="536870912" color="0" alignment="2" border="2" x="2208" y="208" height="56" width="594" text="本位币贷方" )
  98. text(name=t_1 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="0" border="2" x="2811" y="208" height="56" width="96" text="" )
  99. text(name=t_2 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2917" y="208" height="56" width="571" text="本位币余额" )
  100. text(name=cw_balance_rawdebit_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="16776960" color="33554432" alignment="2" border="2" x="3497" y="208" height="56" width="507" text="外币借方" )
  101. text(name=cw_balance_rawcredit_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="16776960" color="33554432" alignment="2" border="2" x="4014" y="208" height="56" width="498" text="外币贷方" )
  102. text(name=rawbalc_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="16776960" color="33554432" alignment="2" border="2" x="4521" y="208" height="56" width="475" text="外币余额" )
  103. column(name=subname visible="1" band=detail id=2 x="9" y="8" height="72" width="937" color="0" border="0" alignment="0" format="[general]" edit.autohscroll=no 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 )
  104. column(name=yearmon visible="1" tag="月份" band=detail id=1 x="955" y="8" height="72" width="343" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  105. column(name=brief visible="1" band=detail id=9 x="1307" y="8" height="72" width="311" color="0" border="0" alignment="2" format="[general]" edit.autohscroll=no 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 )
  106. column(name=debit visible="1" band=detail id=3 x="1627" y="8" height="72" width="571" color="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 )
  107. column(name=credit visible="1" band=detail id=4 x="2208" y="8" height="72" width="594" color="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 )
  108. compute(name=obj_8808606 visible="1" band=detail 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="2811" y="4" height="72" width="96" format="[general]" expression="if( balc =0 or isnull(balc),'平',if( balc >0,'借','贷'))" alignment="2" border="0" crosstab.repeat=no )
  109. compute(name=compute_1 visible="1" band=detail 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="2917" y="8" height="72" width="571" format="#,##0.00" expression="abs( balc )" alignment="1" border="0" crosstab.repeat=no )
  110. column(name=cw_balance_rawdebit visible="1" band=detail id=6 x="3497" y="8" height="72" width="507" color="0" border="0" alignment="1" format="#,##0.00" 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 )
  111. column(name=cw_balance_rawcredit visible="1" band=detail id=7 x="4014" y="8" height="72" width="498" color="0" border="0" alignment="1" format="#,##0.00" 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 )
  112. column(name=rawbalc visible="1" band=detail id=8 x="4521" y="8" height="72" width="475" color="0" border="0" alignment="1" format="#,##0.00" 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 )
  113. text(name=bar visible="1" band=foreground font.charset="0" font.face="Arial" font.family="2" font.height="-12" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="0" border="0" x="0" y="0" height="204" width="3515" text="" )
  114. text(name=title visible="1" band=foreground font.charset="134" font.face="黑体" font.family="0" font.height="-18" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="0" border="0" x="14" y="8" height="108" width="1819" text="总分类帐" )
  115. text(name=month visible="1" band=foreground 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="1" border="0" x="2135" y="56" height="56" width="1330" text="" )
  116. compute(name=compute_2 visible="1" band=foreground 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="14" y="132" height="56" width="2085" format="[general]" expression="~"单位名称:~"+f_rst_Cropname()" alignment="0" border="0" crosstab.repeat=no )
  117. compute(name=compute_3 visible="1" band=foreground 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="2139" y="132" height="56" width="1326" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd hh:mm:ss')+ ' 第 ' + string(page()) + ' 页/ 共 '+string(pageCount())+' 页'" alignment="1" border="0" crosstab.repeat=no )
  118. sparse(names="subname yearmon")
  119. htmltable(border="1" )
  120. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  121. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  122. import.xml()
  123. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )