$PBExportHeader$dw_rp_mx_year.srd $PBExportComments$By Kivens.Jiang(kivens@21cn.com) release 9; datawindow ( units=0 timer_interval=60000 color=16777215 processing=1 print.documentname="" print.orientation=2 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) header(height=268 color="536870912" ) summary(height=76 color="536870912" ) footer(height=0 color="536870912" ) detail(height=104 color="553648127" height.autosize=yes) table(column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="name" ) column=(type=char(18) updatewhereclause=yes name=cw_subject_subid dbname="subid" ) column=(type=decimal(2) updatewhereclause=yes name=bgamt dbname="bgamt" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_debit dbname="Debit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_credit dbname="Credit" ) column=(type=decimal(2) updatewhereclause=yes name=blacamt dbname="blacamt" ) retrieve=" SELECT cw_subject.name, cw_subject.subid, case cw_subject.dcflag when 1 then cw_Balance.yBDebit - cw_Balance.yBCredit else cw_Balance.yBCredit - cw_Balance.yBDebit end as bgamt, cw_Balance.yDebit + isnull(view_tmp.debit,0) * :arg_ifpost as Debit, cw_Balance.yCredit + isnull(view_tmp.Credit,0) * :arg_ifpost as Credit, case cw_subject.dcflag when 1 then cw_Balance.yBDebit - cw_Balance.yBCredit + cw_Balance.yDebit - cw_Balance.yCredit + (isnull(view_tmp.debit,0) * :arg_ifpost - isnull(view_tmp.Credit,0) * :arg_ifpost) else cw_Balance.yBCredit - cw_Balance.yBDebit + cw_Balance.yCredit - cw_Balance.yDebit + (isnull(view_tmp.Credit,0) * :arg_ifpost - isnull(view_tmp.debit,0) * :arg_ifpost) end as blacamt FROM cw_subject, cw_Balance left outer join (select sum(cw_credencemx.debit) as debit, sum(cw_credencemx.Credit) as credit, cw_credence.accsetid as accsetid, cw_credence.cmonth as cmonth, cw_credencemx.subid as subid from cw_credence,cw_credencemx where cw_credence.accsetid = cw_credencemx.accsetid and cw_credence.credid = cw_credencemx.credid and cw_credence.cmonth = :arg_month and cw_credence.accsetid = :arg_accsetid and cw_credence.postflag = 0 group by cw_credence.accsetid, cw_credence.cmonth, cw_credencemx.subid ) view_tmp on cw_Balance.accsetid = view_tmp.accsetid and cw_Balance.YearMon = view_tmp.cmonth and cw_Balance.subid = view_tmp.subid WHERE ( cw_subject.accsetid = cw_Balance.accsetid ) and ( cw_subject.subid = cw_Balance.SubID ) and ( cw_subject.accsetid = :arg_accsetid ) AND ( cw_subject.subid like :arg_likesubid ) AND ( cw_subject.detailflag = 1 ) AND ( cw_Balance.YearMon = :arg_month ) and ( cw_Balance.subaccsetid = :arg_subaccsetid )" arguments=(("arg_accsetid", number), ("arg_subaccsetid", number), ("arg_likesubid", string), ("arg_month", number), ("arg_ifpost", number)) sort="cw_subject_subid A" ) text(name=cw_subject_subid_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="9" y="208" height="60" width="393" text="科目代码" ) text(name=cw_subject_name_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="411" y="208" height="60" width="773" text="科目名称" ) text(band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="1193" y="208" height="60" width="576" text="年初余额" ) text(name=cw_balance_debit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="1778" y="208" height="60" width="562" text="本年借方" ) text(name=cw_balance_credit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2350" y="208" height="60" width="530" text="本年贷方" ) text(band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="2" x="2889" y="208" height="60" width="530" text="余额" ) compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1193" y="4" height="68" width="576" format="#,##0.00" expression="sum(bgamt for all)" alignment="1" border="0" crosstab.repeat=no ) compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1778" y="4" height="68" width="562" format="#,##0.00" expression="sum(cw_balance_debit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2350" y="4" height="68" width="530" format="#,##0.00" expression="sum(cw_balance_credit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2889" y="4" height="68" width="530" format="#,##0.00" expression="sum(blacamt 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="700" background.mode="1" background.color="536870912" color="0" x="411" y="4" height="68" width="773" format="[general]" expression="count(cw_subject_name for all)" alignment="2" border="0" crosstab.repeat=no ) text(band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="9" y="4" height="68" width="393" text="合计" ) column(name=cw_subject_subid tag="科目代码" band=detail id=2 x="9" y="8" height="88" width="393" color="0" border="0" alignment="0" 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=18 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_subject_name tag="科目名称" height.autosize=yes band=detail id=1 x="411" y="8" height="88" width="773" color="0" border="0" alignment="0" 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=32 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=bgamt band=detail id=3 x="1193" y="8" height="88" width="576" color="0" border="0" alignment="1" format="#,##0.00" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_balance_debit tag="本期发生借方金额" band=detail id=4 x="1778" y="8" height="88" width="562" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_balance_credit tag="本期发生贷方金额" band=detail id=5 x="2350" y="8" height="88" width="530" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=blacamt band=detail id=6 x="2889" y="8" height="88" width="530" color="0" border="0" alignment="1" format="#,##0.00" 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="-11" font.pitch="2" font.weight="400" tabsequence=0 ) text(name=bar 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="3438" text="" ) text(name=title 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="3017" text="统计表" ) compute(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="128" height="56" width="1527" format="[general]" expression="~"单位名称:~"+f_rst_Cropname()" alignment="0" border="0" crosstab.repeat=no ) compute(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="1573" y="128" height="56" width="1458" format="[general]" expression="'打印时间: '+string(today(),'yyyy-mm-dd hh:mm:ss')+ ' 第 ' + string(page()) + ' 页/ 共 '+string(pageCount())+' 页'" 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 )