$PBExportHeader$dw_rp_mx_wb_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=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) header(height=268 color="536870912" ) summary(height=76 color="536870912" ) footer(height=0 color="536870912" ) detail(height=96 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=rawbgamt dbname="rawbgamt" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_debit dbname="Debit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawdebit dbname="rawDebit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_credit dbname="Credit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_balance_rawcredit dbname="rawCredit" ) column=(type=decimal(2) updatewhereclause=yes name=blacamt dbname="blacamt" ) column=(type=decimal(2) updatewhereclause=yes name=rawblacamt dbname="rawblacamt" ) retrieve=" SELECT cw_subject.name, cw_subject.subid, case cw_subject.dcflag when 1 then cw_Balance.BDebit - cw_Balance.BCredit else cw_Balance.BCredit - cw_Balance.BDebit end as bgamt, case cw_subject.dcflag when 1 then cw_Balance.BrawDebit - cw_Balance.BrawCredit else cw_Balance.BrawCredit - cw_Balance.BrawDebit end as rawbgamt, cw_Balance.Debit + isnull(view_tmp.debit,0) * :arg_ifpost as Debit, cw_Balance.rawDebit + isnull(view_tmp.rawdebit,0) * :arg_ifpost as rawDebit, cw_Balance.Credit + isnull(view_tmp.Credit,0) * :arg_ifpost as Credit, cw_Balance.rawCredit + isnull(view_tmp.rawCredit,0) * :arg_ifpost as rawCredit, case cw_subject.dcflag when 1 then cw_Balance.EDebit - cw_Balance.ECredit + (isnull(view_tmp.debit,0) * :arg_ifpost - isnull(view_tmp.Credit,0) * :arg_ifpost) else cw_Balance.ECredit - cw_Balance.EDebit + (isnull(view_tmp.Credit,0) * :arg_ifpost - isnull(view_tmp.debit,0) * :arg_ifpost) end as blacamt, case cw_subject.dcflag when 1 then cw_Balance.ErawDebit - cw_Balance.ErawCredit + (isnull(view_tmp.rawdebit,0) * :arg_ifpost - isnull(view_tmp.rawCredit,0) * :arg_ifpost) else cw_Balance.ErawCredit - cw_Balance.ErawDebit + (isnull(view_tmp.rawCredit,0) * :arg_ifpost - isnull(view_tmp.rawdebit,0) * :arg_ifpost) end as rawblacamt FROM cw_subject, cw_Balance left outer join (select sum(cw_credencemx.debit) as debit, sum(cw_credencemx.Credit) as credit, sum(cw_credencemx.rawdebit) as rawdebit, sum(cw_credencemx.rawCredit) as rawcredit, 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 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="443" 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="2075" y="208" height="60" width="462" 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="3040" y="208" height="60" width="457" 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="3963" y="208" height="60" width="466" text="本位币期末余额" ) text(name=cw_balance_rawdebit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="2546" y="208" height="60" width="485" text="外币本期借方" ) text(name=cw_balance_rawcredit_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="3506" y="208" height="60" width="448" text="外币本期贷方" ) text(name=rawbgamt_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="1646" y="208" height="60" width="421" text="本位币期初" ) text(name=rawblacamt_t band=header font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="2" x="4439" y="208" height="60" width="439" text="外币期末余额" ) 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="合计" ) 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 ) 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="1193" y="4" height="68" width="443" 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="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1646" y="4" height="68" width="421" format="#,##0.00" expression="sum(rawbgamt 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="2075" y="4" height="68" width="462" 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="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2546" y="4" height="68" width="485" format="#,##0.00" expression="sum(cw_balance_rawdebit 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="3040" y="4" height="68" width="457" 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="-10" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="3506" y="4" height="68" width="448" format="#,##0.00" expression="sum(cw_balance_rawcredit 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="3963" y="4" height="68" width="466" 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="400" background.mode="1" background.color="536870912" color="0" x="4439" y="4" height="68" width="439" format="#,##0.00" expression="sum(rawblacamt for all)" alignment="1" border="0" crosstab.repeat=no ) column(name=cw_subject_subid tag="科目代码" band=detail id=2 x="9" y="8" height="80" 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="80" 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="80" width="443" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=rawbgamt band=detail id=4 x="1646" y="8" height="80" width="421" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_balance_debit tag="本期发生借方金额" band=detail id=5 x="2075" y="8" height="80" width="462" 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=cw_balance_rawdebit band=detail id=6 x="2546" y="8" height="80" width="485" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_balance_credit tag="本期发生贷方金额" band=detail id=7 x="3040" y="8" height="80" width="457" 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=cw_balance_rawcredit band=detail id=8 x="3506" y="8" height="80" width="448" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=blacamt band=detail id=9 x="3963" y="8" height="80" width="466" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=rawblacamt band=detail id=10 x="4439" y="8" height="80" width="439" 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="-10" 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="4919" 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 )