dw_initbalance_rpt.srd 14 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. $PBExportHeader$dw_initbalance_rpt.srd
  2. $PBExportComments$By Kivens.Jiang(kivens@21cn.com)
  3. release 9;
  4. datawindow ( units=0 timer_interval=0 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=72 color="536870912" )
  6. summary(height=68 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=84 color="536870912" )
  9. table(column=(type=char(18) updatewhereclause=yes name=cw_subject_subid dbname="cw_subject.subid" )
  10. column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="cw_subject.name" )
  11. column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_debit dbname="debit" )
  12. column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_credit dbname="credit" )
  13. column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_ydebit dbname="cw_InitBalance.ydebit" )
  14. column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_ycredit dbname="cw_InitBalance.ycredit" )
  15. column=(type=decimal(2) updatewhereclause=yes name=bdebit dbname="bdebit" )
  16. column=(type=decimal(2) updatewhereclause=yes name=bcredit dbname="bcredit" )
  17. column=(type=char(2) updatewhereclause=yes name=cw_subject_dcflag dbname="dcflag" )
  18. retrieve=" SELECT cw_subject.subid,
  19. cw_subject.name,
  20. case cw_subject.dcflag when 1 then cw_InitBalance.mdebit - cw_InitBalance.mcredit else null end as debit,
  21. case cw_subject.dcflag when 0 then cw_InitBalance.mcredit - cw_InitBalance.mdebit else null end as credit,
  22. cw_InitBalance.debit as ydebit,
  23. cw_InitBalance.credit as ycredit,
  24. case cw_subject.dcflag when 1 then cw_InitBalance.mdebit - cw_InitBalance.mcredit + cw_InitBalance.credit - cw_InitBalance.debit else null end as bdebit,
  25. case cw_subject.dcflag when 0 then cw_InitBalance.mcredit - cw_InitBalance.mdebit - cw_InitBalance.credit + cw_InitBalance.debit else null end as bcredit,
  26. case cw_subject.dcflag when 1 then '借' else '贷' end as dcflag
  27. FROM cw_InitBalance,
  28. cw_subject
  29. WHERE ( cw_InitBalance.accsetid = cw_subject.accsetid ) and
  30. ( cw_InitBalance.SubID = cw_subject.subid ) and
  31. ( ( cw_InitBalance.accsetid = :arg_accsetid ) AND
  32. ( len(ltrim(rtrim(cw_InitBalance.subid))) = :arg_grade1 ) ) and
  33. ( cw_InitBalance.Balance <> 0 )
  34. "
  35. arguments=(("arg_accsetid", number), ("arg_grade1", number))
  36. sort="cw_subject_subid A"
  37. )
  38. text(name=cw_subject_subid_t visible="1" band=header 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" alignment="2" border="0" x="9" y="8" height="56" width="261" text="科目代码" )
  39. text(name=cw_subject_name_t visible="1" band=header 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" alignment="2" border="0" x="279" y="8" height="56" width="443" text="科目名称" )
  40. text(name=cw_subject_dcflag_t visible="1" band=header 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" alignment="2" border="0" x="731" y="8" height="56" width="137" text="方向" )
  41. 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="0" x="878" y="8" height="56" width="494" text="期初借方" )
  42. 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="0" x="1381" y="8" height="56" width="466" text="期初贷方" )
  43. 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="2" border="0" x="1856" y="8" height="56" width="466" text="本年累计借方" )
  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="0" x="2331" y="8" height="56" width="466" text="本年累计贷方" )
  45. text(name=t_5 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="0" x="2807" y="8" height="56" width="471" text="年初借方" )
  46. text(name=t_6 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="0" x="3287" y="8" height="56" width="503" text="年初贷方" )
  47. text(name=t_7 visible="1" band=summary 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" alignment="2" border="0" x="9" y="4" height="56" width="261" text="合计" )
  48. compute(name=compute_1 visible="1" band=summary 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="279" y="4" height="60" width="443" format="[general]" expression="count(cw_subject_name for all)" alignment="2" border="0" crosstab.repeat=no )
  49. compute(name=compute_2 visible="1" band=summary 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="878" y="4" height="60" width="494" format="#,##0.00" expression="sum(cw_initbalance_debit for all)" alignment="1" border="0" crosstab.repeat=no )
  50. compute(name=compute_3 visible="1" band=summary 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="1381" y="4" height="60" width="466" format="#,##0.00" expression="sum(cw_initbalance_credit for all)" alignment="1" border="0" crosstab.repeat=no )
  51. compute(name=compute_4 visible="1" band=summary 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="1856" y="4" height="56" width="466" format="#,##0.00" expression="sum(cw_initbalance_ydebit for all)" alignment="1" border="0" crosstab.repeat=no )
  52. compute(name=compute_5 visible="1" band=summary 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="2331" y="4" height="56" width="466" format="#,##0.00" expression="sum(cw_initbalance_ycredit for all)" alignment="1" border="0" crosstab.repeat=no )
  53. compute(name=compute_6 visible="1" band=summary 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="2807" y="4" height="56" width="471" format="#,##0.00" expression="sum(bdebit for all)" alignment="1" border="0" crosstab.repeat=no )
  54. compute(name=compute_7 visible="1" band=summary 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="3287" y="4" height="56" width="503" format="#,##0.00" expression="sum(bcredit for all)" alignment="1" border="0" crosstab.repeat=no )
  55. column(name=cw_subject_subid visible="1" tag="科目代码" band=detail id=1 x="9" y="8" height="68" width="261" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  56. column(name=cw_subject_name visible="1" tag="科目名称" band=detail id=2 x="279" y="8" height="68" width="443" 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=60 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 )
  57. column(name=cw_subject_dcflag visible="1" tag="余额方向" band=detail id=9 x="731" y="8" height="68" width="137" 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 )
  58. column(name=cw_initbalance_debit visible="1" band=detail id=3 x="878" y="8" height="68" width="494" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  59. column(name=cw_initbalance_credit visible="1" band=detail id=4 x="1381" y="8" height="68" width="466" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  60. column(name=cw_initbalance_ydebit visible="1" band=detail id=5 x="1856" y="8" height="68" width="466" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  61. column(name=cw_initbalance_ycredit visible="1" band=detail id=6 x="2331" y="8" height="68" width="466" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  62. column(name=bdebit visible="1" band=detail id=7 x="2807" y="8" height="68" width="471" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  63. column(name=bcredit visible="1" band=detail id=8 x="3287" y="8" height="68" width="503" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  64. htmltable(border="1" )
  65. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  66. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  67. import.xml()
  68. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )