$PBExportHeader$dw_rp_item_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=1 print.margin.left=110 print.margin.right=110 print.margin.top=96 print.margin.bottom=96 print.paper.size=9 print.paper.source=0 grid.lines=0 selected.mouse=yes row.resize=1) header(height=356 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(18) updatewhereclause=yes name=subid dbname="subid" values="" ) 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, uv_dept_bala.subid as subid, 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_dept_init.balance,0)) as balc, 0 as dw_sort, 0 as credid FROM uv_dept_bala left outer join uv_dept_init on uv_dept_init.accsetid=uv_dept_bala.accsetid and uv_dept_init.deptid=uv_dept_bala.deptid and uv_dept_init.subid=uv_dept_bala.subid 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.itemid = :arg_itemid and ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 ) GROUP BY uv_dept_bala.subid, uv_dept_bala.itemid union SELECT uv_dept_bala.cmonth as cmonth, uv_dept_bala.subid as subid, 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 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.itemid = :arg_itemid and ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 ) union SELECT null as cmonth, uv_dept_bala.subid as subid, 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 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.itemid = :arg_itemid and ( uv_dept_bala.postflag = :arg_postflag or :arg_postflag = -1 ) GROUP BY uv_dept_bala.subid,uv_dept_bala.itemid " arguments=(("arg_accsetid", number), ("arg_itemid", number), ("arg_firstcmon", number), ("arg_endcmon", number), ("arg_postflag", number)) sort="subid 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="108" width="325" 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="276" height="56" width="325" 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="343" y="248" height="108" 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="343" y="276" 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="594" y="248" height="108" width="169" 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="594" y="276" height="56" width="169" 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="773" y="248" height="108" width="1001" text="" ) text(name=subid_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="773" y="276" height="56" width="1001" 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="1783" y="248" height="108" width="887" 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="1783" y="276" height="56" width="887" 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="2679" y="248" height="108" 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="2679" y="276" 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="3209" y="248" height="108" width="526" 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="3209" y="276" height="56" width="526" 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="3744" y="248" height="108" 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="0" x="3744" y="276" 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="3931" y="248" height="108" 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="3931" y="276" height="56" width="517" text="期末金额" ) 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="3931" y="4" height="68" width="517" format="#,##0.00" expression="abs( balc )" alignment="1" border="0" crosstab.repeat=no ) column(name=creddate band=detail id=7 x="9" y="4" height="68" width="325" color="0" border="0" alignment="2" 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=cmonth band=detail id=1 x="343" 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 ) column(name=credno band=detail id=6 x="594" y="4" height="68" width="169" 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=subid band=detail id=2 x="773" y="4" height="68" width="1001" color="0" border="0" alignment="0" format="[general]" dddw.allowedit=no dddw.autohscroll=no dddw.autoretrieve=yes dddw.useasborder=no dddw.datacolumn=subid dddw.displaycolumn=displaycode dddw.hscrollbar=no dddw.hsplitscroll=no dddw.imemode=0 dddw.limit=0 dddw.name=ddd_subject dddw.nilisnull=no dddw.percentwidth=100 dddw.required=no dddw.showlist=no dddw.vscrollbar=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=brief height.autosize=yes band=detail id=5 x="1783" y="4" height="68" width="887" 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=3 x="2679" 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=4 x="3209" y="4" height="68" width="526" 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=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="3744" y="4" height="68" width="178" format="[general]" expression=" if( dept_ebala >0 ,'借',if ( dept_ebala =0 ,'平','贷')) " alignment="2" 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(name=title 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="3634" 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="1728" 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 )