$PBExportHeader$dw_rp_dismantle_installmx_edit.srd release 9; datawindow ( units=1 timer_interval=0 color=16777215 processing=1 print.orientation=0 print.margin.left=24 print.margin.right=24 print.margin.top=24 print.margin.bottom=24 print.paper.size=0 print.paper.source=0 grid.lines=0 selected.mouse=yes) header(height=17 color="536870912" ) summary(height=17 color="536870912" ) footer(height=0 color="536870912" ) detail(height=20 color="536870912" height.autosize=yes) table(column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_billid dbname="u_dismantle_installmx.billid" values="拆装单明细表-单据ID /" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_storageid dbname="u_dismantle_installmx.storageid" values="拆装单明细表-仓库ID /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_dismantle_installmx_qty dbname="u_dismantle_installmx.qty" ) column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_dismantle_installmx_price dbname="u_dismantle_installmx.price" values="拆装单明细表-单价 /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_dismantle_installmx_status dbname="u_dismantle_installmx.status" values="拆装单明细表-配置 /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_dismantle_installmx_woodcode dbname="u_dismantle_installmx.woodcode" values="拆装单明细表-配置1 /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_dismantle_installmx_pcode dbname="u_dismantle_installmx.pcode" values="拆装单明细表-配置2 /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_dismantle_installmx_plancode dbname="u_dismantle_installmx.plancode" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_dismantle_installmx_mxdscrp dbname="u_dismantle_installmx.mxdscrp" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_mtrlid dbname="u_dismantle_installmx.mtrlid" values="拆装单明细表-物料ID /" ) column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_mtrlwareid dbname="u_dismantle_installmx.mtrlwareid" values="拆装单明细表-库存ID /" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_dismantle_installmx_standardqty dbname="u_dismantle_installmx.standardqty" values="拆装单明细表-标准数量 /" ) column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_dxflag dbname="u_dismantle_installmx.dxflag" values="拆装单明细表-代销标记 /" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_sptid dbname="u_dismantle_installmx.sptid" values="拆装单明细表-供应商ID /" ) column=(type=long updatewhereclause=yes initial="null" name=u_dismantle_installmx_printid dbname="u_dismantle_installmx.printid" values="拆装单明细表-序号 /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_storage_storagename dbname="u_storage.storagename" ) retrieve="SELECT u_dismantle_installmx.billid, u_dismantle_installmx.storageid, u_mtrldef.mtrlcode, u_dismantle_installmx.qty, u_dismantle_installmx.price, u_dismantle_installmx.status, u_dismantle_installmx.woodcode, u_dismantle_installmx.pcode, u_dismantle_installmx.plancode, u_dismantle_installmx.mxdscrp, u_dismantle_installmx.mtrlid, u_mtrldef.mtrlname, u_dismantle_installmx.mtrlwareid, u_dismantle_installmx.standardqty, u_mtrldef.unit, u_mtrldef.mtrlmode, u_dismantle_installmx.dxflag, u_dismantle_installmx.sptid , u_dismantle_installmx.printid, u_storage.storagename FROM u_dismantle_installmx INNER JOIN u_mtrldef ON u_dismantle_installmx.mtrlid = u_mtrldef.mtrlid INNER JOIN u_storage on u_storage.storageid = u_dismantle_installmx.storageid WHERE u_dismantle_installmx.billid = :arg_billid and ( :arg_scid = :arg_scid ) and ( :arg_printrow = :arg_printrow ) and ( :arg_top = :arg_top ) union all SELECT TOP :arg_top null,null, null, null, null, null,null, null, null, null, null,null, null, null, null, null,null, null, 10000 ,null FROM syscolumns " arguments=(("arg_scid", number), ("arg_billid", number), ("arg_printrow", number), ("arg_top", number)) ) group(level=1 header.height=0 trailer.height=18 by=("aa" ) header.color="536870912" header.pointer="aa" trailer.color="536870912" ) compute(name=aa visible="0" tag="ceiling( getrow() / arg_printrow )" band=background font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" x="728" y="48" height="17" width="31" format="[GENERAL]" expression="ceiling( getrow() / arg_printrow )" alignment="0" border="0" crosstab.repeat=no ) text(name=storageid_t 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="33554432" alignment="2" border="0" x="25" y="2" height="14" width="74" text="仓库" ) text(name=u_mtrldef_mtrlcode_t 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="33554432" alignment="2" border="0" x="101" y="2" height="14" width="84" text="物料编码" ) text(name=u_mtrldef_mtrlname_t 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="33554432" alignment="2" border="0" x="187" y="2" height="14" width="138" text="物料名称" ) text(name=u_mtrldef_mtrlmode_t 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="33554432" alignment="2" border="0" x="327" y="2" height="14" width="102" text="规格" ) text(name=qty_t 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="33554432" alignment="2" border="0" x="469" y="2" height="14" width="66" text="数量" ) text(name=u_mtrldef_unit_t 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="33554432" alignment="2" border="0" x="431" y="2" height="14" width="36" text="单位" ) text(name=t_2 visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" alignment="2" border="0" x="2" y="2" height="14" width="21" text="序" ) text(name=plancode_t 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="33554432" alignment="2" border="0" x="537" y="2" height="14" width="98" text="批号" ) text(name=mxdscrp_t 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="33554432" alignment="2" border="0" x="637" y="2" height="14" width="78" text="备注" ) text(name=t_3 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" alignment="2" border="0" x="25" y="1" height="14" width="74" text="合计" ) compute(name=compute_2 visible="1" tag="sum(u_dismantle_installmx_qty for all)" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" x="469" y="1" height="14" width="66" format="#,##0.#####" expression="sum(u_dismantle_installmx_qty for all)" alignment="1" border="0" crosstab.repeat=no ) compute(name=pid visible="1" tag="getrow()" height.autosize=yes 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="33554432" x="2" y="1" height="17" width="21" format="[GENERAL]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no ) column(name=u_storage_storagename visible="1" tag="u_storage_storagename" height.autosize=yes band=detail id=20 x="25" y="1" height="17" width="74" color="33554432" 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_mtrldef_mtrlcode visible="1" tag="u_mtrldef_mtrlcode" height.autosize=yes band=detail id=3 x="101" y="1" height="17" width="84" color="33554432" border="0" alignment="0" format="[general]" protect="0" edit.focusrectangle=no 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_mtrldef_mtrlname visible="1" tag="u_mtrldef_mtrlname" height.autosize=yes band=detail id=12 x="187" y="1" height="17" width="138" color="33554432" border="0" alignment="0" format="[general]" protect="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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_mtrldef_unit visible="1" tag="u_mtrldef_unit" height.autosize=yes band=detail id=15 x="431" y="1" height="17" width="36" color="33554432" border="0" alignment="2" format="[general]" protect="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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_dismantle_installmx_qty visible="1" tag="u_dismantle_installmx_qty" height.autosize=yes band=detail id=4 x="469" y="1" height="17" width="66" color="33554432" border="0" alignment="1" format="#,##0.#####" 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_mtrldef_mtrlmode visible="1" tag="u_mtrldef_mtrlmode" height.autosize=yes band=detail id=16 x="327" y="1" height="17" width="102" color="33554432" border="0" alignment="0" format="[general]" protect="0" 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_dismantle_installmx_plancode visible="1" tag="u_dismantle_installmx_plancode" height.autosize=yes band=detail id=9 x="537" y="1" height="17" width="98" color="33554432" 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) column(name=u_dismantle_installmx_mxdscrp visible="1" tag="u_dismantle_installmx_mxdscrp" height.autosize=yes band=detail id=10 x="637" y="1" height="17" width="78" color="33554432" 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="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 ) compute(name=compute_1 visible="1" tag="sum(u_dismantle_installmx_qty for group 1)" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" x="469" y="2" height="14" width="66" format="#,##0.#####" expression="sum(u_dismantle_installmx_qty for group 1)" alignment="1" border="0" crosstab.repeat=no ) text(name=t_1 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="33554432" alignment="2" border="0" x="25" y="2" height="14" width="74" text="小计" ) htmltable() htmlgen() export.xml(metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 )