dw_rp_item_sub_mx.srd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. $PBExportHeader$dw_rp_item_sub_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=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 grid.lines=0 selected.mouse=yes row.resize=1)
  5. header(height=340 color="536870912" )
  6. summary(height=0 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=76 color="536870912" )
  9. table(column=(type=long updatewhereclause=yes name=cmonth dbname="cmonth" )
  10. column=(type=char(20) updatewhereclause=yes name=itemname dbname="itemname" )
  11. column=(type=long updatewhereclause=yes name=itemid dbname="itemid" )
  12. column=(type=decimal(2) updatewhereclause=yes name=debit dbname="debit" )
  13. column=(type=decimal(2) updatewhereclause=yes name=credit dbname="credit" )
  14. column=(type=char(255) updatewhereclause=yes name=brief dbname="brief" )
  15. column=(type=long updatewhereclause=yes name=credno dbname="credno" )
  16. column=(type=datetime updatewhereclause=yes name=creddate dbname="creddate" )
  17. column=(type=decimal(2) updatewhereclause=yes name=balc dbname="balc" )
  18. column=(type=long updatewhereclause=yes name=dw_sort dbname="dw_sort" )
  19. column=(type=long updatewhereclause=yes name=credid dbname="credid" )
  20. retrieve=" SELECT null as cmonth,
  21. cw_hsitem.hsitemname as itemname,
  22. cw_hsitem.hsitemid as itemid,
  23. 0.00 as debit,
  24. 0.00 as credit,
  25. '期初余额' as brief,
  26. null as credno,
  27. null as creddate,
  28. sum(uv_dept_bala.debit) - sum(uv_dept_bala.credit) + sum(isnull(uv_item_init.balance,0)) as balc,
  29. 0 as dw_sort,
  30. 0 as credid
  31. FROM uv_dept_bala left outer join uv_item_init on
  32. uv_item_init.accsetid=uv_dept_bala.accsetid and
  33. uv_item_init.itemid=uv_dept_bala.itemid and
  34. uv_item_init.subid=uv_dept_bala.subid
  35. inner join cw_hsitem on
  36. uv_dept_bala.itemid=cw_hsitem.hsitemid and
  37. uv_dept_bala.accsetid=cw_hsitem.accsetid
  38. WHERE ( uv_dept_bala.accsetid = :arg_accsetid ) AND
  39. uv_dept_bala.cmonth >= :arg_firstcmon AND
  40. uv_dept_bala.cmonth <= :arg_endcmon AND
  41. uv_dept_bala.subid = :arg_subid and
  42. ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 )
  43. GROUP BY uv_dept_bala.itemid,cw_hsitem.hsitemname,cw_hsitem.hsitemid
  44. union
  45. SELECT uv_dept_bala.cmonth as cmonth,
  46. cw_hsitem.hsitemname as itemname,
  47. cw_hsitem.hsitemid as itemid,
  48. uv_dept_bala.debit as debit,
  49. uv_dept_bala.credit as credit,
  50. uv_dept_bala.brief as brief,
  51. uv_dept_bala.credno as credno,
  52. uv_dept_bala.creddate as creddate,
  53. 0.00 as balc,
  54. 1 as dw_sort,
  55. uv_dept_bala.credid as credid
  56. FROM uv_dept_bala inner join cw_hsitem on
  57. uv_dept_bala.itemid=cw_hsitem.hsitemid and
  58. uv_dept_bala.accsetid=cw_hsitem.accsetid
  59. WHERE ( uv_dept_bala.accsetid = :arg_accsetid ) AND
  60. uv_dept_bala.cmonth >= :arg_firstcmon AND
  61. uv_dept_bala.cmonth <= :arg_endcmon AND
  62. uv_dept_bala.subid = :arg_subid and
  63. ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 )
  64. union
  65. SELECT null as cmonth,
  66. cw_hsitem.hsitemname as itemname,
  67. cw_hsitem.hsitemid as itemid,
  68. sum(uv_dept_bala.debit) as debit,
  69. sum(uv_dept_bala.credit) as credit,
  70. '本期合计' as brief,
  71. null as credno,
  72. null as creddate,
  73. 0.00 as balc,
  74. 2 as dw_sort,
  75. 0 as credid
  76. FROM uv_dept_bala inner join cw_hsitem on
  77. uv_dept_bala.itemid=cw_hsitem.hsitemid and
  78. uv_dept_bala.accsetid=cw_hsitem.accsetid
  79. WHERE ( uv_dept_bala.accsetid = :arg_accsetid ) AND
  80. uv_dept_bala.cmonth >= :arg_firstcmon AND
  81. uv_dept_bala.cmonth <= :arg_endcmon AND
  82. uv_dept_bala.subid = :arg_subid and
  83. ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 )
  84. GROUP BY uv_dept_bala.itemid,cw_hsitem.hsitemname,cw_hsitem.hsitemid
  85. "
  86. arguments=(("arg_accsetid", number), ("arg_subid", string), ("arg_firstcmon", number), ("arg_endcmon", number), ("arg_postflag", number))
  87. sort="itemid A, dw_sort A, creddate A"
  88. )
  89. text(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="248" height="100" width="338" text="" )
  90. text(name=creddate_t 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="0" x="9" y="268" height="56" width="338" text="凭证日期" )
  91. text(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="357" y="248" height="100" width="242" text="" )
  92. text(name=cmonth_t 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="0" x="357" y="268" height="56" width="242" text="期间" )
  93. text(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="608" y="248" height="100" width="178" text="" )
  94. text(name=credno_t 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="0" x="608" y="268" height="56" width="178" text="编号" )
  95. text(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="795" y="248" height="100" width="992" text="" )
  96. text(name=itemname_t 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="0" x="795" y="268" height="56" width="992" text="项目名称" )
  97. text(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="1797" y="248" height="100" width="878" text="" )
  98. text(name=brief_t 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="0" x="1797" y="268" height="56" width="878" text="摘要" )
  99. text(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="2683" y="248" height="100" width="521" text="" )
  100. text(name=debit_t 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="0" x="2683" y="268" height="56" width="521" text="借方" )
  101. text(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="3214" y="248" height="100" width="530" text="" )
  102. text(name=credit_t 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="0" x="3214" y="268" height="56" width="530" text="贷方" )
  103. text(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="3753" y="248" height="100" width="174" text="" )
  104. text(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="0" x="3753" y="268" height="56" width="174" text="方向" )
  105. text(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="3936" y="248" height="100" width="517" text="" )
  106. text(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="0" x="3936" y="268" height="56" width="517" text="期末金额" )
  107. column(name=cmonth band=detail id=1 x="357" y="4" height="68" width="242" 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 )
  108. compute(name=obj_6243878 band=detail 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="3753" y="4" height="68" width="174" format="[general]" expression=" if( dept_ebala >0 ,'借',if ( dept_ebala =0 ,'平','贷')) " alignment="2" border="0" crosstab.repeat=no )
  109. column(name=brief height.autosize=yes band=detail id=6 x="1797" y="4" height="68" width="878" 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 )
  110. column(name=credno band=detail id=7 x="608" y="4" height="68" width="178" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  111. column(name=creddate band=detail id=8 x="9" y="4" height="68" width="338" color="0" border="0" alignment="0" format="yyyy-mm-dd" 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 )
  112. column(name=itemname band=detail id=2 x="795" y="4" height="68" width="992" 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 )
  113. column(name=debit band=detail id=4 x="2683" y="4" height="68" width="521" color="0 if( debit =0,rgb(255,255,255),rgb(0,0,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 )
  114. column(name=credit band=detail id=5 x="3214" y="4" height="68" width="530" color="0 if( debit =0,rgb(255,255,255),rgb(0,0,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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  115. compute(name=dept_ebala band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0 if( dept_ebala =0,rgb(255,255,255),rgb(0,0,0))" x="3936" y="4" height="68" width="517" format="#,##0.00" expression="abs( balc )" alignment="1" border="0" crosstab.repeat=no )
  116. text(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="244" width="4530" text="" )
  117. text(band=foreground font.charset="134" font.face="宋体" font.family="0" font.height="-22" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="0" border="0" x="9" y="8" height="132" width="1481" text="项目科目明细帐" )
  118. compute(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="9" y="156" height="56" width="1902" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd')+ ' ' + string(page()) + ' / '+string(pageCount())" alignment="0" border="0" crosstab.repeat=no )
  119. htmltable(border="1" cellPadding="0" cellSpacing="0" generateCSS="no" noWrap="yes" )
  120. htmlgen()
  121. export.xml(metadatatype=0 savemetadata=0 )
  122. import.xml()
  123. export.pdf(method=0 )