123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- $PBExportHeader$dw_rp_subid_hz.srd
- $PBExportComments$By Kivens.Jiang(kivens@21cn.com)
- release 9;
- datawindow ( units=0 timer_interval=60000 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)
- header(height=264 color="536870912" )
- summary(height=0 color="536870912" )
- footer(height=0 color="536870912" )
- detail(height=84 color="536870912" )
- table(column=(type=long updatewhereclause=yes name=yearmon dbname="cw_Balance.YearMon" )
- column=(type=char(79) updatewhereclause=yes name=subname dbname="subname" )
- column=(type=decimal(2) updatewhereclause=yes name=debit dbname="cw_Balance.Debit" )
- column=(type=decimal(2) updatewhereclause=yes name=credit dbname="cw_Balance.Credit" )
- column=(type=decimal(2) updatewhereclause=yes name=balc dbname="balc" )
- column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawdebit dbname="cw_Balance.rawDebit" )
- column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawcredit dbname="cw_Balance.rawCredit" )
- column=(type=decimal(2) updatewhereclause=yes name=rawbalc dbname="rawbalc" )
- column=(type=char(8) updatewhereclause=yes name=brief dbname="brief" )
- column=(type=long updatewhereclause=yes name=dw_sort dbname="dw_sort" )
- retrieve=" SELECT cw_Balance.YearMon,
- rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
- null as Debit,
- null as Credit,
- case sum(cw_Balance.bDebit) - sum(cw_Balance.bCredit) when 0 then null else sum(cw_Balance.bDebit) - sum(cw_Balance.bCredit) end as balc,
- null as rawDebit,
- null as rawCredit,
- case sum(cw_Balance.brawDebit) - sum(cw_Balance.brawCredit) when 0 then null else sum(cw_Balance.brawDebit) - sum(cw_Balance.brawCredit) end as rawbalc,
- '期初余额' as brief,
- 0 as dw_sort
- FROM cw_Balance, cw_subject
- WHERE cw_Balance.accsetid = cw_subject.accsetid and
- cw_Balance.subid = cw_subject.subid and
- ( cw_Balance.accsetid = :arg_accsetid ) AND
- (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
- cw_Balance.SubID >= :arg_firstsubid AND
- cw_Balance.SubID <= :arg_endsubid AND
- len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
- cw_Balance.YearMon = :arg_firstcmonth
- GROUP BY cw_Balance.YearMon,
- cw_subject.subid,
- cw_subject.name
- union all
- SELECT cw_Balance.YearMon,
- rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
- case sum(cw_Balance.Debit) when 0 then null else sum(cw_Balance.Debit) end as Debit,
- case sum(cw_Balance.Credit) when 0 then null else sum(cw_Balance.Credit) end as Credit,
- case sum(cw_Balance.eDebit) - sum(cw_Balance.eCredit) when 0 then null else sum(cw_Balance.eDebit) - sum(cw_Balance.eCredit) end as balc,
- case sum(cw_Balance.rawDebit) when 0 then null else sum(cw_Balance.rawDebit) end as rawDebit,
- case sum(cw_Balance.rawCredit) when 0 then null else sum(cw_Balance.rawCredit) end as rawCredit,
- case sum(cw_Balance.erawDebit) - sum(cw_Balance.erawCredit) when 0 then null else sum(cw_Balance.erawDebit) - sum(cw_Balance.erawCredit) end as rawbalc,
- '本期合计' as brief,
- 1 as dw_sort
- FROM cw_Balance , cw_subject
- WHERE cw_Balance.accsetid = cw_subject.accsetid and
- cw_Balance.subid = cw_subject.subid and
- ( cw_Balance.accsetid = :arg_accsetid ) AND
- (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
- cw_Balance.SubID >= :arg_firstsubid AND
- cw_Balance.SubID <= :arg_endsubid AND
- len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
- cw_Balance.YearMon >= :arg_firstcmonth AND
- cw_Balance.YearMon <= :arg_endcmonth
- GROUP BY cw_subject.SubID,
- cw_subject.name,
- cw_Balance.YearMon
- union all
- SELECT cw_Balance.YearMon,
- rtrim(cw_subject.subid) +' ' +rtrim(cw_subject.name) as subname,
- case sum(cw_Balance.yDebit) when 0 then null else sum(cw_Balance.yDebit) end as Debit,
- case sum(cw_Balance.yCredit) when 0 then null else sum(cw_Balance.yCredit) end as Credit,
- case sum(cw_Balance.ybDebit) - sum(cw_Balance.ybCredit) + sum(cw_Balance.yDebit) - sum(cw_Balance.yCredit) when 0 then null else sum(cw_Balance.ybDebit) - sum(cw_Balance.ybCredit) + sum(cw_Balance.yDebit) - sum(cw_Balance.yCredit) end as balc,
- case sum(cw_Balance.yrawDebit) when 0 then null else sum(cw_Balance.yrawDebit) end as rawDebit,
- case sum(cw_Balance.yrawCredit) when 0 then null else sum(cw_Balance.yrawCredit) end as rawCredit,
- case sum(cw_Balance.ybrawDebit) - sum(cw_Balance.ybrawCredit) + sum(cw_Balance.yrawDebit) - sum(cw_Balance.yrawCredit) when 0 then null else sum(cw_Balance.ybrawDebit) - sum(cw_Balance.ybrawCredit) + sum(cw_Balance.yrawDebit) - sum(cw_Balance.yrawCredit) end as rawbalc,
- '本年累计' as brief,
- 2 as dw_sort
- FROM cw_Balance, cw_subject
- WHERE cw_Balance.accsetid = cw_subject.accsetid and
- cw_Balance.subid = cw_subject.subid and
- ( cw_Balance.accsetid = :arg_accsetid ) AND
- (cw_Balance.subaccsetid = :arg_subaccsetid ) AND
- cw_Balance.SubID >= :arg_firstsubid AND
- cw_Balance.SubID <= :arg_endsubid AND
- len(rtrim(cw_Balance.SubID)) <= :arg_grade AND
- cw_Balance.YearMon >= :arg_firstcmonth AND
- cw_Balance.YearMon <= :arg_endcmonth
- GROUP BY cw_subject.SubID,
- cw_subject.name,
- cw_Balance.YearMon
- "
- arguments=(("arg_accsetid", number), ("arg_subaccsetid", number), ("arg_firstsubid", string), ("arg_endsubid", string), ("arg_firstcmonth", number), ("arg_endcmonth", number), ("arg_grade", number))
- sort="subname A, yearmon A, dw_sort A"
- )
- text(name=subname_t visible="1" 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="208" height="56" width="937" text="会计科目" )
- text(name=yearmon_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="955" y="208" height="56" width="343" text="期间" )
- text(name=brief_t visible="1" 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="1307" y="208" height="56" width="311" text="摘要" )
- text(name=debit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="1627" y="208" height="56" width="571" text="本位币借方" )
- text(name=credit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2208" y="208" height="56" width="594" text="本位币贷方" )
- text(name=t_1 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="0" border="2" x="2811" y="208" height="56" width="96" text="" )
- text(name=t_2 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2917" y="208" height="56" width="571" text="本位币余额" )
- text(name=cw_balance_rawdebit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16776960" color="33554432" alignment="2" border="2" x="3497" y="208" height="56" width="507" text="外币借方" )
- text(name=cw_balance_rawcredit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16776960" color="33554432" alignment="2" border="2" x="4014" y="208" height="56" width="498" text="外币贷方" )
- text(name=rawbalc_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16776960" color="33554432" alignment="2" border="2" x="4521" y="208" height="56" width="475" text="外币余额" )
- column(name=subname visible="1" band=detail id=2 x="9" y="8" height="72" width="937" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=yearmon visible="1" tag="月份" band=detail id=1 x="955" y="8" height="72" width="343" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=brief visible="1" band=detail id=9 x="1307" y="8" height="72" width="311" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=debit visible="1" band=detail id=3 x="1627" y="8" height="72" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=credit visible="1" band=detail id=4 x="2208" y="8" height="72" width="594" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- compute(name=obj_8808606 visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2811" y="4" height="72" width="96" format="[general]" expression="if( balc =0 or isnull(balc),'平',if( balc >0,'借','贷'))" alignment="2" border="0" crosstab.repeat=no )
- compute(name=compute_1 visible="1" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2917" y="8" height="72" width="571" format="#,##0.00" expression="abs( balc )" alignment="1" border="0" crosstab.repeat=no )
- column(name=cw_balance_rawdebit visible="1" band=detail id=6 x="3497" y="8" height="72" width="507" color="0" border="0" alignment="1" format="#,##0.00" 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="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=cw_balance_rawcredit visible="1" band=detail id=7 x="4014" y="8" height="72" width="498" color="0" border="0" alignment="1" format="#,##0.00" 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="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- column(name=rawbalc visible="1" band=detail id=8 x="4521" y="8" height="72" width="475" color="0" border="0" alignment="1" format="#,##0.00" 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="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
- text(name=bar visible="1" 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="3515" text="" )
- text(name=title visible="1" 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="1819" text="总分类帐" )
- text(name=month visible="1" 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" alignment="1" border="0" x="2135" y="56" height="56" width="1330" text="" )
- compute(name=compute_2 visible="1" 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="132" height="56" width="2085" format="[general]" expression="~"单位名称:~"+f_rst_Cropname()" alignment="0" border="0" crosstab.repeat=no )
- 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="2" background.color="16777215" color="0" x="2139" y="132" height="56" width="1326" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd hh:mm:ss')+ ' 第 ' + string(page()) + ' 页/ 共 '+string(pageCount())+' 页'" alignment="1" border="0" crosstab.repeat=no )
- sparse(names="subname yearmon")
- htmltable(border="1" )
- htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
- export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
- import.xml()
- export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )
|