dw_rp_mx.srd 12 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. $PBExportHeader$dw_rp_mx.srd
  2. $PBExportComments$By Kivens.Jiang(kivens@21cn.com)
  3. release 9;
  4. datawindow ( units=0 timer_interval=60000 color=16777215 processing=1 print.documentname="" print.orientation=2 print.margin.left=110 print.margin.right=110 print.margin.top=96 print.margin.bottom=96 print.paper.size=9 print.paper.source=0 grid.lines=0 selected.mouse=yes)
  5. header(height=268 color="536870912" )
  6. summary(height=76 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=104 color="553648127" height.autosize=yes)
  9. table(column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="name" )
  10. column=(type=char(18) updatewhereclause=yes name=cw_subject_subid dbname="subid" )
  11. column=(type=decimal(2) updatewhereclause=yes name=bgamt dbname="bgamt" )
  12. column=(type=decimal(2) updatewhereclause=yes name=cw_balance_debit dbname="debit" )
  13. column=(type=decimal(2) updatewhereclause=yes name=cw_balance_credit dbname="Credit" )
  14. column=(type=decimal(2) updatewhereclause=yes name=blacamt dbname="blacamt" )
  15. retrieve=" SELECT cw_subject.name,
  16. cw_subject.subid,
  17. case cw_subject.dcflag when 1 then cw_Balance.BDebit - cw_Balance.BCredit else cw_Balance.BCredit - cw_Balance.BDebit end as bgamt,
  18. cw_Balance.Debit + isnull(view_tmp.debit,0) * :arg_ifpost as debit,
  19. cw_Balance.Credit + isnull(view_tmp.Credit,0) * :arg_ifpost as Credit,
  20. case cw_subject.dcflag when 1 then cw_Balance.EDebit - cw_Balance.ECredit + (isnull(view_tmp.debit,0) * :arg_ifpost - isnull(view_tmp.Credit,0) * :arg_ifpost) else cw_Balance.ECredit - cw_Balance.EDebit + (isnull(view_tmp.Credit,0) * :arg_ifpost - isnull(view_tmp.debit,0) * :arg_ifpost) end as blacamt
  21. FROM cw_subject,
  22. cw_Balance left outer join
  23. (select sum(cw_credencemx.debit) as debit,
  24. sum(cw_credencemx.Credit) as credit,
  25. cw_credence.accsetid as accsetid,
  26. cw_credence.cmonth as cmonth,
  27. cw_credencemx.subid as subid
  28. from cw_credence,cw_credencemx
  29. where cw_credence.accsetid = cw_credencemx.accsetid
  30. and cw_credence.credid = cw_credencemx.credid
  31. and cw_credence.cmonth = :arg_month
  32. and cw_credence.accsetid = :arg_accsetid
  33. and cw_credence.postflag = 0
  34. group by cw_credence.accsetid,
  35. cw_credence.cmonth,
  36. cw_credencemx.subid ) view_tmp on cw_Balance.accsetid = view_tmp.accsetid
  37. and cw_Balance.YearMon = view_tmp.cmonth
  38. and cw_Balance.subid = view_tmp.subid
  39. WHERE ( cw_subject.accsetid = cw_Balance.accsetid ) and
  40. ( cw_subject.subid = cw_Balance.SubID ) and
  41. ( cw_subject.accsetid = :arg_accsetid ) AND
  42. ( cw_subject.subid like :arg_likesubid ) AND
  43. ( cw_subject.detailflag = 1 ) AND
  44. ( cw_Balance.YearMon = :arg_month ) and
  45. ( cw_Balance.subaccsetid = :arg_subaccsetid ) and
  46. ( cw_Balance.Debit <> 0 or cw_Balance.Credit <> 0 or
  47. cw_Balance.BDebit - cw_Balance.BCredit <> 0 or
  48. cw_Balance.EDebit - cw_Balance.ECredit <> 0 or
  49. isnull(view_tmp.debit,0) * :arg_ifpost <> 0 or
  50. isnull(view_tmp.Credit,0) * :arg_ifpost <> 0 )"
  51. arguments=(("arg_accsetid", number), ("arg_subaccsetid", number), ("arg_likesubid", string), ("arg_month", number), ("arg_ifpost", number))
  52. sort="cw_subject_subid A"
  53. )
  54. text(name=cw_subject_subid_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="9" y="208" height="60" width="393" text="科目代码" )
  55. text(name=cw_subject_name_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="411" y="208" height="60" width="773" text="科目名称" )
  56. text(name=bgamt_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="1193" y="208" height="60" width="576" text="期初余额" )
  57. text(name=cw_balance_debit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="1778" y="208" height="60" width="562" text="本期借方" )
  58. text(name=cw_balance_credit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2350" y="208" height="60" width="530" text="本期贷方" )
  59. text(name=blacamt_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2889" y="208" height="60" width="530" text="期末余额" )
  60. compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1193" y="4" height="68" width="576" format="#,##0.00" expression="sum(bgamt for all)" alignment="1" border="0" crosstab.repeat=no )
  61. compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1778" y="4" height="68" width="562" format="#,##0.00" expression="sum(cw_balance_debit for all)" alignment="1" border="0" crosstab.repeat=no )
  62. compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2350" y="4" height="68" width="530" format="#,##0.00" expression="sum(cw_balance_credit for all)" alignment="1" border="0" crosstab.repeat=no )
  63. compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2889" y="4" height="68" width="530" format="#,##0.00" expression="sum(blacamt for all)" alignment="1" border="0" crosstab.repeat=no )
  64. compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" x="411" y="4" height="68" width="773" format="[general]" expression="count(cw_subject_name for all)" alignment="2" border="0" crosstab.repeat=no )
  65. text(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="9" y="4" height="68" width="393" text="合计" )
  66. column(name=cw_subject_subid tag="科目代码" band=detail id=2 x="9" y="8" height="88" width="393" color="0" border="0" alignment="0" 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=18 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 )
  67. column(name=cw_subject_name tag="科目名称" height.autosize=yes band=detail id=1 x="411" y="8" height="88" width="773" color="0" border="0" alignment="0" 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=32 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 )
  68. column(name=bgamt band=detail id=3 x="1193" y="8" height="88" width="576" color="0" border="0" alignment="1" format="#,##0.00" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  69. column(name=cw_balance_debit tag="本期发生借方金额" band=detail id=4 x="1778" y="8" height="88" width="562" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  70. column(name=cw_balance_credit tag="本期发生贷方金额" band=detail id=5 x="2350" y="8" height="88" width="530" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  71. column(name=blacamt band=detail id=6 x="2889" y="8" height="88" width="530" color="0" border="0" alignment="1" format="#,##0.00" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  72. text(name=bar 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="3438" text="" )
  73. text(name=title 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="3017" text="明细表" )
  74. compute(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="128" height="56" width="1527" format="[general]" expression="~"单位名称:~"+f_rst_Cropname()" alignment="0" border="0" crosstab.repeat=no )
  75. compute(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="1573" y="128" height="56" width="1458" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd hh:mm:ss')+ ' 第 ' + string(page()) + ' 页/ 共 '+string(pageCount())+' 页'" alignment="1" border="0" crosstab.repeat=no )
  76. htmltable(border="1" cellPadding="0" cellSpacing="0" generateCSS="no" noWrap="yes" )
  77. htmlgen()
  78. export.xml(metadatatype=0 savemetadata=0 )
  79. import.xml()
  80. export.pdf(method=0 )