$PBExportHeader$dw_rp_item_sub_mx.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 row.resize=1) header(height=340 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=76 color="536870912" ) table(column=(type=long updatewhereclause=yes name=cmonth dbname="cmonth" ) column=(type=char(20) updatewhereclause=yes name=itemname dbname="itemname" ) column=(type=long updatewhereclause=yes name=itemid dbname="itemid" ) column=(type=decimal(2) updatewhereclause=yes name=debit dbname="debit" ) column=(type=decimal(2) updatewhereclause=yes name=credit dbname="credit" ) column=(type=char(255) updatewhereclause=yes name=brief dbname="brief" ) column=(type=long updatewhereclause=yes name=credno dbname="credno" ) column=(type=datetime updatewhereclause=yes name=creddate dbname="creddate" ) column=(type=decimal(2) updatewhereclause=yes name=balc dbname="balc" ) column=(type=long updatewhereclause=yes name=dw_sort dbname="dw_sort" ) column=(type=long updatewhereclause=yes name=credid dbname="credid" ) retrieve=" SELECT null as cmonth, cw_hsitem.hsitemname as itemname, cw_hsitem.hsitemid as itemid, 0.00 as debit, 0.00 as credit, '期初余额' as brief, null as credno, null as creddate, sum(uv_dept_bala.debit) - sum(uv_dept_bala.credit) + sum(isnull(uv_item_init.balance,0)) as balc, 0 as dw_sort, 0 as credid FROM uv_dept_bala left outer join uv_item_init on uv_item_init.accsetid=uv_dept_bala.accsetid and uv_item_init.itemid=uv_dept_bala.itemid and uv_item_init.subid=uv_dept_bala.subid inner join cw_hsitem on uv_dept_bala.itemid=cw_hsitem.hsitemid and uv_dept_bala.accsetid=cw_hsitem.accsetid WHERE ( 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 = :arg_postflag or :arg_postflag = -1 ) GROUP BY uv_dept_bala.itemid,cw_hsitem.hsitemname,cw_hsitem.hsitemid union SELECT uv_dept_bala.cmonth as cmonth, cw_hsitem.hsitemname as itemname, cw_hsitem.hsitemid as itemid, uv_dept_bala.debit as debit, uv_dept_bala.credit as credit, uv_dept_bala.brief as brief, uv_dept_bala.credno as credno, uv_dept_bala.creddate as creddate, 0.00 as balc, 1 as dw_sort, uv_dept_bala.credid as credid FROM uv_dept_bala inner join cw_hsitem on uv_dept_bala.itemid=cw_hsitem.hsitemid and uv_dept_bala.accsetid=cw_hsitem.accsetid WHERE ( 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 = :arg_postflag or :arg_postflag = -1 ) union SELECT null as cmonth, cw_hsitem.hsitemname as itemname, cw_hsitem.hsitemid as itemid, sum(uv_dept_bala.debit) as debit, sum(uv_dept_bala.credit) as credit, '本期合计' as brief, null as credno, null as creddate, 0.00 as balc, 2 as dw_sort, 0 as credid FROM uv_dept_bala inner join cw_hsitem on uv_dept_bala.itemid=cw_hsitem.hsitemid and uv_dept_bala.accsetid=cw_hsitem.accsetid WHERE ( 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 = :arg_postflag or :arg_postflag = -1 ) GROUP BY uv_dept_bala.itemid,cw_hsitem.hsitemname,cw_hsitem.hsitemid " arguments=(("arg_accsetid", number), ("arg_subid", string), ("arg_firstcmon", number), ("arg_endcmon", number), ("arg_postflag", number)) sort="itemid A, dw_sort A, creddate A" ) 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="" ) 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="凭证日期" ) 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="" ) 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="期间" ) 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="" ) 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="编号" ) 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="" ) 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="项目名称" ) 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="" ) 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="摘要" ) 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="" ) 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="借方" ) 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="" ) 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="贷方" ) 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="" ) 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="方向" ) 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="" ) 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="期末金额" ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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="" ) 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="项目科目明细帐" ) 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 ) htmltable(border="1" cellPadding="0" cellSpacing="0" generateCSS="no" noWrap="yes" ) htmlgen() export.xml(metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 )