$PBExportHeader$dw_initbalance_rpt.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=72 color="536870912" ) summary(height=68 color="536870912" ) footer(height=0 color="536870912" ) detail(height=84 color="536870912" ) table(column=(type=char(18) updatewhereclause=yes name=cw_subject_subid dbname="cw_subject.subid" ) column=(type=char(60) updatewhereclause=yes name=cw_subject_name dbname="cw_subject.name" ) column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_debit dbname="debit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_credit dbname="credit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_ydebit dbname="cw_InitBalance.ydebit" ) column=(type=decimal(2) updatewhereclause=yes name=cw_initbalance_ycredit dbname="cw_InitBalance.ycredit" ) column=(type=decimal(2) updatewhereclause=yes name=bdebit dbname="bdebit" ) column=(type=decimal(2) updatewhereclause=yes name=bcredit dbname="bcredit" ) column=(type=char(2) updatewhereclause=yes name=cw_subject_dcflag dbname="dcflag" ) retrieve=" SELECT cw_subject.subid, cw_subject.name, case cw_subject.dcflag when 1 then cw_InitBalance.mdebit - cw_InitBalance.mcredit else null end as debit, case cw_subject.dcflag when 0 then cw_InitBalance.mcredit - cw_InitBalance.mdebit else null end as credit, cw_InitBalance.debit as ydebit, cw_InitBalance.credit as ycredit, case cw_subject.dcflag when 1 then cw_InitBalance.mdebit - cw_InitBalance.mcredit + cw_InitBalance.credit - cw_InitBalance.debit else null end as bdebit, case cw_subject.dcflag when 0 then cw_InitBalance.mcredit - cw_InitBalance.mdebit - cw_InitBalance.credit + cw_InitBalance.debit else null end as bcredit, case cw_subject.dcflag when 1 then '借' else '贷' end as dcflag FROM cw_InitBalance, cw_subject WHERE ( cw_InitBalance.accsetid = cw_subject.accsetid ) and ( cw_InitBalance.SubID = cw_subject.subid ) and ( ( cw_InitBalance.accsetid = :arg_accsetid ) AND ( len(ltrim(rtrim(cw_InitBalance.subid))) = :arg_grade1 ) ) and ( cw_InitBalance.Balance <> 0 ) " arguments=(("arg_accsetid", number), ("arg_grade1", number)) sort="cw_subject_subid A" ) text(name=cw_subject_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="261" text="科目代码" ) text(name=cw_subject_name_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="279" y="8" height="56" width="443" text="科目名称" ) text(name=cw_subject_dcflag_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="731" y="8" height="56" width="137" 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="2" border="0" x="878" y="8" height="56" width="494" text="期初借方" ) 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="2" border="0" x="1381" y="8" height="56" width="466" text="期初贷方" ) 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="2" border="0" x="1856" y="8" height="56" width="466" text="本年累计借方" ) 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="2" border="0" x="2331" y="8" height="56" width="466" text="本年累计贷方" ) 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="2" border="0" x="2807" y="8" height="56" width="471" text="年初借方" ) 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="2" background.color="16777215" color="0" alignment="2" border="0" x="3287" y="8" height="56" width="503" text="年初贷方" ) text(name=t_7 visible="1" band=summary 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="4" height="56" width="261" text="合计" ) compute(name=compute_1 visible="1" band=summary 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="279" y="4" height="60" width="443" format="[general]" expression="count(cw_subject_name for all)" alignment="2" border="0" crosstab.repeat=no ) compute(name=compute_2 visible="1" band=summary 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="878" y="4" height="60" width="494" format="#,##0.00" expression="sum(cw_initbalance_debit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_3 visible="1" band=summary 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="1381" y="4" height="60" width="466" format="#,##0.00" expression="sum(cw_initbalance_credit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_4 visible="1" band=summary 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="1856" y="4" height="56" width="466" format="#,##0.00" expression="sum(cw_initbalance_ydebit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_5 visible="1" band=summary 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="2331" y="4" height="56" width="466" format="#,##0.00" expression="sum(cw_initbalance_ycredit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_6 visible="1" band=summary 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="2807" y="4" height="56" width="471" format="#,##0.00" expression="sum(bdebit for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_7 visible="1" band=summary 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="3287" y="4" height="56" width="503" format="#,##0.00" expression="sum(bcredit for all)" alignment="1" border="0" crosstab.repeat=no ) column(name=cw_subject_subid visible="1" tag="科目代码" band=detail id=1 x="9" y="8" height="68" width="261" 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_subject_name visible="1" tag="科目名称" band=detail id=2 x="279" y="8" height="68" width="443" 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=60 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" tag="余额方向" band=detail id=9 x="731" y="8" height="68" width="137" 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=cw_initbalance_debit visible="1" band=detail id=3 x="878" y="8" height="68" width="494" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_initbalance_credit visible="1" band=detail id=4 x="1381" y="8" height="68" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_initbalance_ydebit visible="1" band=detail id=5 x="1856" y="8" height="68" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=cw_initbalance_ycredit visible="1" band=detail id=6 x="2331" y="8" height="68" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=bdebit visible="1" band=detail id=7 x="2807" y="8" height="68" width="471" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=bcredit visible="1" band=detail id=8 x="3287" y="8" height="68" width="503" 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="-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" )