$PBExportHeader$ds_5x_balance.srd $PBExportComments$By Kivens.Jiang(kivens@21cn.com) release 9; datawindow ( units=0 timer_interval=0 color=16777215 processing=1 print.printername="" 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 print.canusedefaultprinter=yes grid.lines=0 selected.mouse=yes) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=76 color="536870912" ) table(column=(type=char(18) updatewhereclause=yes name=cw_credencemx_subid dbname="cw_credencemx.subid" ) column=(type=decimal(2) updatewhereclause=yes name=balance dbname="balance" ) column=(type=long updatewhereclause=yes name=cw_credence_subaccsetid dbname="cw_credence.subaccsetid" ) column=(type=decimal(10) updatewhereclause=yes name=cw_credencemx_rate dbname="cw_credencemx.rate" ) column=(type=decimal(2) updatewhereclause=yes name=rawbalance dbname="rawbalance" ) column=(type=decimal(4) updatewhereclause=yes name=amount dbname="amount" ) column=(type=decimal(6) updatewhereclause=yes name=cw_credencemx_price dbname="cw_credencemx_price" ) column=(type=long updatewhereclause=yes name=cw_credencemx_deptid dbname="cw_credencemx.deptid" ) column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="cw_subject.name" ) column=(type=long updatewhereclause=yes name=cw_credencemx_itemid dbname="cw_credencemx.itemid" ) column=(type=long updatewhereclause=yes name=cw_subject_dcflag dbname="cw_subject.dcflag" ) retrieve=" SELECT cw_credencemx.subid, sum(cw_credencemx.debit) - sum(cw_credencemx.credit) as balance, cw_credence.subaccsetid, cw_credencemx.rate, sum(cw_credencemx.rawdebit) - sum(cw_credencemx.rawcredit) as rawbalance, sum(cw_credencemx.amount) as amount, case sum(cw_credencemx.amount) when 0 then 0 else abs((sum(cw_credencemx.debit) - sum(cw_credencemx.credit))) / sum(cw_credencemx.amount) end as cw_credencemx_price , cw_credencemx.deptid, cw_subject.name, cw_credencemx.itemid, cw_subject.dcflag FROM cw_credence, cw_credencemx, cw_subject WHERE ( cw_credence.accsetid = cw_credencemx.accsetid ) and ( cw_credence.subaccsetid = cw_credencemx.subaccsetid ) and ( cw_credence.credid = cw_credencemx.credid ) and ( cw_credencemx.accsetid = cw_subject.accsetid ) and ( cw_credencemx.subid = cw_subject.subid ) and ( cw_credence.accsetid = :arg_accsetid ) AND ( cw_credence.cmonth = :arg_cmonth ) AND ( cw_credence.subaccsetid = :arg_subaccsetid ) and ( cw_credence.checkflag = 1 ) AND ( cw_credence.postflag = 1 ) GROUP BY cw_credencemx.subid, cw_credence.subaccsetid, cw_credencemx.rate, cw_credencemx.deptid, cw_credencemx.itemid, cw_subject.name, cw_subject.dcflag HAVING ( left(cw_credencemx.subid,:arg_subid_len) > :arg_subid ) " arguments=(("arg_accsetid", number), ("arg_cmonth", number), ("arg_subaccsetid", number), ("arg_subid", string), ("arg_subid_len", number)) sort="cw_subject_dcflag A, cw_credencemx_subid A" ) text(name=cw_credencemx_subid_t visible="1" band=header 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" alignment="2" border="0" x="9" y="8" height="56" width="375" text="会计科目" ) text(name=t_1 visible="1" 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="0" x="393" y="8" height="56" width="329" text="Cw Credence Subaccsetid" ) text(name=t_2 visible="1" 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="0" x="731" y="8" height="56" width="279" text="Cw Credencemx Rate" ) text(name=t_3 visible="1" 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="0" x="1019" y="8" height="56" width="288" text="Amount" ) text(name=t_4 visible="1" 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="0" x="1317" y="8" height="56" width="347" text="Cw Credencemx Deptid" ) text(name=t_5 visible="1" 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="0" x="1673" y="8" height="56" width="329" text="Cw Credencemx Itemid" ) text(name=t_6 visible="1" band=header 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" alignment="0" border="0" x="2011" y="8" height="56" width="370" text="Balance" ) text(name=t_7 visible="1" band=header 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" alignment="0" border="0" x="2391" y="8" height="56" width="302" text="Rawbalance" ) text(name=t_8 visible="1" band=header 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" alignment="0" border="0" x="2702" y="8" height="56" width="507" text="Cw Subject Name" ) text(name=t_9 visible="1" 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="0" x="3218" y="8" height="56" width="498" text="Cw Subject Dcflag" ) text(name=t_10 visible="1" 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="0" x="3726" y="8" height="56" width="485" text="Cw Credencemx Price" ) column(name=cw_credencemx_subid visible="1" tag="会计科目" band=detail id=1 x="9" y="4" height="68" width="375" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_credence_subaccsetid visible="1" band=detail id=3 x="393" y="4" height="68" width="329" color="0" border="0" alignment="1" format="0" edit.focusrectangle=no edit.autohscroll=no edit.autoselect=no 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="553648127" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_credencemx_rate visible="1" band=detail id=4 x="731" y="4" height="68" width="279" 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=amount visible="1" band=detail id=6 x="1019" y="4" height="68" width="288" 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=cw_credencemx_deptid visible="1" band=detail id=8 x="1317" y="4" height="68" width="347" 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=cw_credencemx_itemid visible="1" band=detail id=10 x="1673" y="4" height="68" width="329" 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=balance visible="1" band=detail id=2 x="2011" y="4" height="68" width="370" 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=rawbalance visible="1" band=detail id=5 x="2391" y="4" height="68" width="302" 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=cw_subject_name visible="1" band=detail id=9 x="2702" y="4" height="68" width="507" 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=cw_subject_dcflag visible="1" band=detail id=11 x="3218" y="4" height="68" width="498" 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=cw_credencemx_price visible="1" band=detail id=7 x="3726" y="4" height="68" width="485" 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 ) htmltable(border="1" ) htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" ) export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )