$PBExportHeader$dw_rp_item_sub_hz.srd $PBExportComments$By Kivens.Jiang(kivens@21cn.com) release 9; 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) header(height=364 color="536870912" ) summary(height=68 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(column=(type=long updatewhereclause=yes name=cmonth dbname="uv_dept_bala.cmonth" ) column=(type=long updatewhereclause=yes name=itemid dbname="uv_dept_bala.itemid" ) column=(type=decimal(2) updatewhereclause=yes name=credit dbname="credit" ) column=(type=decimal(2) updatewhereclause=yes name=debit dbname="debit" ) column=(type=char(20) updatewhereclause=yes name=cw_hsitem_hsitemname dbname="cw_hsitem.hsitemname" ) retrieve=" SELECT uv_dept_bala.cmonth, uv_dept_bala.itemid, sum(uv_dept_bala.credit) as credit, sum(uv_dept_bala.debit) as debit, cw_hsitem.hsitemname FROM uv_dept_bala, cw_hsitem WHERE ( uv_dept_bala.accsetid = cw_hsitem.accsetid ) and ( uv_dept_bala.itemid = cw_hsitem.hsitemid ) and ( uv_dept_bala.accsetid = :arg_accsetid ) AND uv_dept_bala.cmonth >= :arg_firstcmon AND uv_dept_bala.cmonth <= :arg_endcmon AND uv_dept_bala.subid = :arg_subid AND uv_dept_bala.postflag=1 GROUP BY uv_dept_bala.cmonth, uv_dept_bala.itemid, cw_hsitem.hsitemname " arguments=(("arg_accsetid", number), ("arg_subid", string), ("arg_firstcmon", number), ("arg_endcmon", number)) sort="cmonth A, itemid A" ) group(level=1 header.height=0 trailer.height=68 by=("cmonth" ) header.color="536870912" trailer.color="536870912" ) text(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="2" x="9" y="248" height="116" width="622" text="" ) text(name=cw_hsitem_hsitemname_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="280" height="56" width="622" text="项目名称" ) text(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="2" x="640" y="248" height="116" width="329" text="" ) 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="640" y="280" height="56" width="329" text="期间" ) text(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="2" x="978" y="248" height="116" width="142" text="" ) text(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="2" x="1129" y="248" height="116" width="507" text="" ) 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="1129" y="280" height="56" width="507" text="期初金额" ) 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="1" border="2" x="1646" y="248" height="56" width="507" text="本期累" ) 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="0" border="2" x="2162" y="248" height="56" width="494" text="计发生" ) 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="2" x="1646" y="308" height="56" width="507" text="借方" ) 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="2" x="2162" y="308" height="56" width="494" text="贷方" ) text(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="2" x="2665" y="248" height="116" width="151" text="" ) text(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="2" x="2825" y="248" height="116" width="507" text="" ) 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="2825" y="280" height="56" width="507" text="期末金额" ) compute(band=summary 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="2162" y="4" height="60" width="494" format="#,##0.00" expression="sum(credit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(band=summary 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="1646" y="4" height="60" width="507" format="#,##0.00" expression="sum(debit for all)" alignment="1" border="0" crosstab.repeat=no ) text(band=summary 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" alignment="2" border="0" x="9" y="4" height="60" width="622" text="合计" ) text(band=summary 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" alignment="2" border="0" x="640" y="4" height="60" width="329" text="" ) text(band=summary 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" alignment="2" border="0" x="978" y="4" height="60" width="142" text="" ) text(band=summary 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" alignment="2" border="0" x="1129" y="4" height="60" width="507" text="" ) text(band=summary 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" alignment="2" border="0" x="2665" y="4" height="60" width="151" text="" ) text(band=summary 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" alignment="2" border="0" x="2825" y="4" height="60" width="507" text="" ) column(name=cw_hsitem_hsitemname band=detail id=5 x="9" y="12" height="68" width="622" 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 ) column(name=cmonth band=detail id=1 x="640" y="12" height="68" width="329" 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 ) compute(name=obj_6234134 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="978" y="12" height="68" width="142" format="[general]" expression="if( f_rst_item_bbala( arg_accsetid ,cmonth , arg_subid , itemid ) >0 ,'借',if (f_rst_item_bbala( arg_accsetid , cmonth , arg_subid , itemid ) =0 ,'平','贷')) " alignment="2" border="0" crosstab.repeat=no ) 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="2665" y="12" height="68" width="151" format="[general]" expression="if( dept_ebala >0 ,'借',if ( dept_ebala =0 ,'平','贷')) " alignment="2" border="0" crosstab.repeat=no ) column(name=debit band=detail id=4 x="1646" y="12" height="68" width="507" 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 ) column(name=credit band=detail id=3 x="2162" y="12" height="68" width="494" color="0 if( credit =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 ) 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="2825" y="12" height="68" width="507" format="#,##0.00" expression="abs( debit - credit + dept_bbala )" alignment="1" border="0" crosstab.repeat=no ) compute(name=dept_bbala 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_bbala =0,rgb(255,255,255),rgb(0,0,0))" x="1129" y="12" height="68" width="507" format="#,##0.00" expression="abs(f_rst_item_bbala( arg_accsetid , cmonth , arg_subid , itemid )) " alignment="1" border="0" crosstab.repeat=no ) 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="3415" text="" ) 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="1486" text="项目科目总帐" ) 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="1906" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd')+ ' ' + string(page()) + ' / '+string(pageCount())" alignment="0" border="0" crosstab.repeat=no ) text(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="9" y="4" height="60" width="622" text="小计" ) text(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="640" y="4" height="60" width="329" text="" ) text(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="978" y="4" height="60" width="142" text="" ) compute(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="1129" y="4" height="60" width="507" format="#,##0.00" expression="sum(abs(f_rst_item_bbala( arg_accsetid , cmonth , arg_subid , itemid )) for group 1)" alignment="1" border="0" crosstab.repeat=no ) compute(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="1646" y="4" height="60" width="507" format="#,##0.00" expression="sum(debit for group 1)" alignment="1" border="0" crosstab.repeat=no ) compute(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="2162" y="4" height="60" width="494" format="#,##0.00" expression="sum(credit for group 1)" alignment="1" border="0" crosstab.repeat=no ) text(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" alignment="2" border="0" x="2665" y="4" height="60" width="151" text="" ) compute(band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="15780518" color="0" x="2825" y="4" height="60" width="507" format="#,##0.00" expression="sum(abs( debit - credit + dept_bbala ) for group 1)" alignment="1" border="0" crosstab.repeat=no ) htmltable(border="1" cellPadding="0" cellSpacing="0" generateCSS="no" noWrap="yes" ) htmlgen() export.xml(metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 )