ds_5x_balance.srd 14 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. $PBExportHeader$ds_5x_balance.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=68 color="536870912" )
  6. summary(height=0 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=76 color="536870912" )
  9. table(column=(type=char(18) updatewhereclause=yes name=cw_credencemx_subid dbname="cw_credencemx.subid" )
  10. column=(type=decimal(2) updatewhereclause=yes name=balance dbname="balance" )
  11. column=(type=long updatewhereclause=yes name=cw_credence_subaccsetid dbname="cw_credence.subaccsetid" )
  12. column=(type=decimal(10) updatewhereclause=yes name=cw_credencemx_rate dbname="cw_credencemx.rate" )
  13. column=(type=decimal(2) updatewhereclause=yes name=rawbalance dbname="rawbalance" )
  14. column=(type=decimal(4) updatewhereclause=yes name=amount dbname="amount" )
  15. column=(type=decimal(6) updatewhereclause=yes name=cw_credencemx_price dbname="cw_credencemx_price" )
  16. column=(type=long updatewhereclause=yes name=cw_credencemx_deptid dbname="cw_credencemx.deptid" )
  17. column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="cw_subject.name" )
  18. column=(type=long updatewhereclause=yes name=cw_credencemx_itemid dbname="cw_credencemx.itemid" )
  19. column=(type=long updatewhereclause=yes name=cw_subject_dcflag dbname="cw_subject.dcflag" )
  20. retrieve=" SELECT cw_credencemx.subid,
  21. sum(cw_credencemx.debit) - sum(cw_credencemx.credit) as balance,
  22. cw_credence.subaccsetid,
  23. cw_credencemx.rate,
  24. sum(cw_credencemx.rawdebit) - sum(cw_credencemx.rawcredit) as rawbalance,
  25. sum(cw_credencemx.amount) as amount,
  26. case sum(cw_credencemx.amount) when 0 then 0 else abs((sum(cw_credencemx.debit) - sum(cw_credencemx.credit))) / sum(cw_credencemx.amount) end as cw_credencemx_price ,
  27. cw_credencemx.deptid,
  28. cw_subject.name,
  29. cw_credencemx.itemid,
  30. cw_subject.dcflag
  31. FROM cw_credence,
  32. cw_credencemx,
  33. cw_subject
  34. WHERE ( cw_credence.accsetid = cw_credencemx.accsetid ) and
  35. ( cw_credence.subaccsetid = cw_credencemx.subaccsetid ) and
  36. ( cw_credence.credid = cw_credencemx.credid ) and
  37. ( cw_credencemx.accsetid = cw_subject.accsetid ) and
  38. ( cw_credencemx.subid = cw_subject.subid ) and
  39. ( cw_credence.accsetid = :arg_accsetid ) AND
  40. ( cw_credence.cmonth = :arg_cmonth ) AND
  41. ( cw_credence.subaccsetid = :arg_subaccsetid ) and
  42. ( cw_credence.checkflag = 1 ) AND
  43. ( cw_credence.postflag = 1 )
  44. GROUP BY cw_credencemx.subid,
  45. cw_credence.subaccsetid,
  46. cw_credencemx.rate,
  47. cw_credencemx.deptid,
  48. cw_credencemx.itemid,
  49. cw_subject.name,
  50. cw_subject.dcflag
  51. HAVING ( left(cw_credencemx.subid,:arg_subid_len) > :arg_subid )
  52. "
  53. arguments=(("arg_accsetid", number), ("arg_cmonth", number), ("arg_subaccsetid", number), ("arg_subid", string), ("arg_subid_len", number))
  54. sort="cw_subject_dcflag A, cw_credencemx_subid A"
  55. )
  56. text(name=cw_credencemx_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="375" text="会计科目" )
  57. 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="0" border="0" x="393" y="8" height="56" width="329" text="Cw Credence Subaccsetid" )
  58. 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="0" border="0" x="731" y="8" height="56" width="279" text="Cw Credencemx Rate" )
  59. 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="0" x="1019" y="8" height="56" width="288" text="Amount" )
  60. 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="0" border="0" x="1317" y="8" height="56" width="347" text="Cw Credencemx Deptid" )
  61. 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="0" border="0" x="1673" y="8" height="56" width="329" text="Cw Credencemx Itemid" )
  62. 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="1" background.color="536870912" color="0" alignment="0" border="0" x="2011" y="8" height="56" width="370" text="Balance" )
  63. text(name=t_7 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="0" border="0" x="2391" y="8" height="56" width="302" text="Rawbalance" )
  64. text(name=t_8 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="0" border="0" x="2702" y="8" height="56" width="507" text="Cw Subject Name" )
  65. 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="0" border="0" x="3218" y="8" height="56" width="498" text="Cw Subject Dcflag" )
  66. text(name=t_10 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="0" x="3726" y="8" height="56" width="485" text="Cw Credencemx Price" )
  67. column(name=cw_credencemx_subid visible="1" tag="会计科目" band=detail id=1 x="9" y="4" height="68" width="375" 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 )
  68. column(name=cw_credence_subaccsetid visible="1" band=detail id=3 x="393" y="4" height="68" width="329" color="0" border="0" alignment="1" format="0" 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="553648127" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  69. column(name=cw_credencemx_rate visible="1" band=detail id=4 x="731" y="4" height="68" width="279" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  70. column(name=amount visible="1" band=detail id=6 x="1019" y="4" height="68" width="288" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  71. column(name=cw_credencemx_deptid visible="1" band=detail id=8 x="1317" y="4" height="68" width="347" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  72. column(name=cw_credencemx_itemid visible="1" band=detail id=10 x="1673" y="4" height="68" width="329" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  73. column(name=balance visible="1" band=detail id=2 x="2011" y="4" height="68" width="370" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  74. column(name=rawbalance visible="1" band=detail id=5 x="2391" y="4" height="68" width="302" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  75. column(name=cw_subject_name visible="1" band=detail id=9 x="2702" y="4" height="68" width="507" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  76. column(name=cw_subject_dcflag visible="1" band=detail id=11 x="3218" y="4" height="68" width="498" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  77. column(name=cw_credencemx_price visible="1" band=detail id=7 x="3726" y="4" height="68" width="485" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  78. htmltable(border="1" )
  79. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  80. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  81. import.xml()
  82. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )