dw_rp_subject_hz.srd 10 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $PBExportHeader$dw_rp_subject_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=1 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=372 color="536870912" )
  6. summary(height=76 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=76 color="536870912" )
  9. table(column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="cw_subject.name" )
  10. column=(type=char(18) updatewhereclause=yes name=cw_subject_subid dbname="cw_subject.subid" )
  11. column=(type=decimal(2) updatewhereclause=yes name=debit dbname="debit" )
  12. column=(type=decimal(2) updatewhereclause=yes name=credit dbname="credit" )
  13. retrieve=" SELECT cw_subject.name,
  14. cw_subject.subid,
  15. sum(cw_credencemx.debit) as debit,
  16. sum(cw_credencemx.credit) as credit
  17. FROM cw_credence,
  18. cw_credencemx,
  19. cw_subject
  20. WHERE ( cw_credence.accsetid = cw_credencemx.accsetid ) and
  21. ( cw_credence.subaccsetid = cw_credencemx.subaccsetid ) and
  22. ( cw_credencemx.accsetid = cw_subject.accsetid ) and
  23. ( left(cw_credencemx.subid,:arg_grade1) = cw_subject.subid ) and
  24. ( cw_credence.credid = cw_credencemx.credid ) and
  25. (cw_credence.postflag = :arg_postflag OR
  26. :arg_postflag = -1) AND
  27. (cw_credence.checkflag = :arg_checkflag OR
  28. :arg_checkflag = -1) AND
  29. cw_credence.creddate >= :arg_firstdate AND
  30. cw_credence.creddate <= :arg_enddate AND
  31. cw_credence.accsetid = :arg_accsetid AND
  32. cw_credence.credno >= :arg_firstcredno AND
  33. cw_credence.credno <= :arg_endcredno
  34. GROUP BY cw_subject.subid,
  35. cw_subject.name,
  36. left(cw_credencemx.subid,:arg_grade1)
  37. "
  38. arguments=(("arg_checkflag", number), ("arg_postflag", number), ("arg_firstdate", datetime), ("arg_enddate", datetime), ("arg_accsetid", number), ("arg_firstcredno", number), ("arg_endcredno", number), ("arg_grade1", number))
  39. sort="cw_subject_subid A"
  40. )
  41. text(name=cw_subject_subid_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="16777215" color="0" alignment="2" border="2" x="9" y="312" height="60" width="448" text="科目代号" )
  42. text(name=cw_subject_name_t visible="1" 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="466" y="312" height="60" width="914" text="科目名称" )
  43. text(name=debit_t visible="1" 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="1390" y="312" height="60" width="571" text="借方" )
  44. text(name=credit_t visible="1" 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="1970" y="312" height="60" width="571" text="贷方" )
  45. text(name=t_1 visible="1" 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="466" y="4" height="68" width="914" text="" )
  46. compute(name=compute_1 visible="1" 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="1390" y="4" height="68" width="571" format="#,##0.00" expression="sum(debit for all)" alignment="1" border="0" crosstab.repeat=no )
  47. compute(name=compute_2 visible="1" 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="1970" y="4" height="68" width="571" format="#,##0.00" expression="sum(credit for all)" alignment="1" border="0" crosstab.repeat=no )
  48. text(name=t_2 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" 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="448" text="合计" )
  49. column(name=cw_subject_subid visible="1" band=detail id=2 x="9" y="4" height="68" width="448" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  50. column(name=cw_subject_name visible="1" tag="科目名称" band=detail id=1 x="466" y="4" height="68" width="914" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  51. column(name=debit visible="1" band=detail id=3 x="1390" y="4" height="68" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  52. column(name=credit visible="1" band=detail id=4 x="1970" y="4" height="68" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  53. text(name=t_3 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="308" width="2597" text="" )
  54. text(name=title visible="1" moveable=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="33554431" color="0" alignment="0" border="0" x="9" y="8" height="132" width="1070" text="科目汇总表" )
  55. 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="1" background.color="536870912" color="0" x="9" y="232" height="56" width="1079" format="[general]" expression="~"凭证范围: ~"+string( arg_firstcredno ) +~" 至 ~"+string( arg_endcredno ) " alignment="0" border="0" crosstab.repeat=no )
  56. compute(name=compute_4 visible="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="9" y="156" height="56" width="1079" format="[general]" expression="~"单位名称: ~"+f_rst_Cropname()" alignment="0" border="0" crosstab.repeat=no )
  57. compute(name=compute_5 visible="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="1106" y="232" height="56" width="1102" format="[general]" expression="~"附件总数: ~" + f_cnt_billnumber( arg_accsetid , arg_firstdate , arg_enddate , arg_firstcredno , arg_endcredno , arg_postflag )" alignment="0" border="0" crosstab.repeat=no )
  58. compute(name=compute_6 visible="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="1106" y="156" height="56" width="1102" format="[general]" expression="~"日期范围: ~"+string( arg_firstdate ,'yyyy年mm月dd日') +~" 至 ~"+string( arg_enddate ,'yyyy年mm月dd日') " alignment="0" border="0" crosstab.repeat=no )
  59. 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="1106" y="88" height="56" width="1102" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd')+ ' ' + string(page()) + ' / '+string(pageCount())" alignment="0" border="0" crosstab.repeat=no )
  60. htmltable(border="1" )
  61. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  62. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  63. import.xml()
  64. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )