$PBExportHeader$dw_rp_warepdb_billmx_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=no) header(height=18 color="536870912" ) summary(height=0 color="536870912" ) footer(height=16 color="536870912" ) detail(height=19 color="536870912" ) table(column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" values="物料定义表-编码 /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_barcode dbname="u_mtrldef.barcode" values="物料定义表-条形码 /" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_factqty dbname="u_warepdb_billmx.factqty" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_factaddqty dbname="u_warepdb_billmx.factaddqty" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_mxdscrp dbname="u_warepdb_billmx.mxdscrp" values="盘点单明细表-明细备注 /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_mtrlwareid dbname="u_warepdb_billmx.mtrlwareid" values="盘点单明细表-库存ID /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_status dbname="u_warepdb_billmx.status" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_warepdb_billmx_plancode dbname="u_warepdb_billmx.plancode" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_woodcode dbname="u_warepdb_billmx.woodcode" values="盘点单明细表-配置1 /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_pcode dbname="u_warepdb_billmx.pcode" values="盘点单明细表-配置2 /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_mtrlid dbname="u_warepdb_billmx.mtrlid" values="盘点单明细表-物料ID /" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_qty dbname="u_warepdb_billmx.qty" ) column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_addqty dbname="u_warepdb_billmx.addqty" values="盘点单明细表-库存辅数 /" ) column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit" values="物料定义表-标准库存单位 /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" ) column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" values="物料定义表-品名 /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_scid dbname="u_warepdb_billmx.scid" values="盘点单明细表-分部ID /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_sptid dbname="u_warepdb_billmx.Sptid" values="盘点单明细表-客户ID /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_dxflag dbname="u_warepdb_billmx.Dxflag" values="盘点单明细表-代销标记 /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype" values="物料定义表-类别 /" ) column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_warepdb_billmx_wareamt dbname="u_warepdb_billmx.wareamt" ) column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_warepdb_billmx_cost dbname="u_warepdb_billmx.cost" values="盘点单明细表-库存成本价 /" ) column=(type=char(50) updatewhereclause=yes initial="null" name=sptname dbname="sptname" values="Sptname /" ) column=(type=char(20) updatewhereclause=yes initial="null" name=sptcode dbname="sptcode" values="Sptcode /" ) column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlsectype dbname="u_mtrldef.mtrlsectype" values="物料定义表-自定义1 /" ) column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_zxmtrlmode dbname="u_mtrldef.zxmtrlmode" values="物料定义表-自定义2 /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_billid dbname="u_warepdb_billmx.billid" values="盘点单明细表-单据ID /" ) column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_printid dbname="u_warepdb_billmx.printid" values="盘点单明细表-序号 /" ) column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_waredscrp dbname="u_warepdb_billmx.waredscrp" values="U Warepdb Billmx Waredscrp /" ) column=(type=datetime updatewhereclause=yes initial="null" name=u_mtrlware_inworkdate dbname="u_mtrlware.inworkdate" values="U Mtrlware Inworkdate /" ) retrieve="SELECT u_mtrldef.mtrlcode, u_mtrldef.barcode, u_warepdb_billmx.factqty, u_warepdb_billmx.factaddqty, u_warepdb_billmx.mxdscrp, u_warepdb_billmx.mtrlwareid, u_warepdb_billmx.status, u_warepdb_billmx.plancode, u_warepdb_billmx.woodcode, u_warepdb_billmx.pcode, u_warepdb_billmx.mtrlid, u_warepdb_billmx.qty, u_warepdb_billmx.addqty, u_mtrldef.unit, u_mtrldef.mtrlmode, u_mtrldef.mtrlname, u_warepdb_billmx.scid, u_warepdb_billmx.Sptid, u_warepdb_billmx.Dxflag, u_mtrldef.mtrltype, u_warepdb_billmx.wareamt, u_warepdb_billmx.cost, IsNull(u_cust.Name,'') as sptname , IsNull(u_cust.cuscode,'') as sptcode , u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode, u_warepdb_billmx.billid, u_warepdb_billmx.printid, case when u_mtrlware.waredscrp is null then '' else u_mtrlware.waredscrp end as waredscrp, u_mtrlware.inworkdate FROM u_warepdb_billmx Inner JOIN u_mtrldef ON u_warepdb_billmx.mtrlid = u_mtrldef.mtrlid left outer join u_cust ON u_warepdb_billmx.Sptid = u_cust.cusid LEFT OUTER JOIN u_mtrlware ON u_warepdb_billmx.MtrlWareID = u_mtrlware.mtrlwareid WHERE ( u_mtrldef.mtrlid = u_warepdb_billmx.mtrlid ) and ( ( u_warepdb_billmx.billid = :arg_billid) AND ( u_warepdb_billmx.scid = :arg_scid ) ) " arguments=(("arg_scid", number), ("arg_billid", number)) ) 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="0" alignment="2" border="0" x="106" y="2" height="14" width="114" 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="0" alignment="2" border="0" x="222" y="2" height="14" width="53" 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="0" alignment="2" border="0" x="18" y="2" height="14" width="86" 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="0" alignment="2" border="0" x="277" y="2" height="14" width="77" text="规格" ) text(name=u_warepdb_billmx_wareamt_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="0" alignment="2" border="0" x="668" y="2" height="14" width="65" text="库存金额" ) text(name=pypkqty_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="0" alignment="2" border="0" x="536" y="2" height="14" width="71" text="盈亏数量" ) text(name=u_warepdb_billmx_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="0" alignment="2" border="0" x="356" y="2" height="14" width="88" 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="2" y="2" height="14" width="14" text="序" ) text(name=u_warepdb_billmx_factqty_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="0" alignment="2" border="0" x="446" y="2" height="14" width="88" text="盘点数量" ) text(name=u_warepdb_billmx_factaddqty_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="0" alignment="2" border="0" x="609" y="2" height="14" width="57" text="盘点辅数" ) compute(name=compute_1 visible="1" tag="count( u_mtrldef_mtrlcode for all )" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" x="18" y="1" height="14" width="86" format="[general]" expression="count( u_mtrldef_mtrlcode for all )" alignment="2" border="0" crosstab.repeat=no ) compute(name=compute_2 visible="1" tag="sum(u_warepdb_billmx_qty)" band=footer 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="356" y="1" height="14" width="88" format="##,##0.#####" expression="sum(u_warepdb_billmx_qty)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_3 visible="1" tag="sum(u_warepdb_billmx_factqty)" band=footer 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="446" y="1" height="14" width="88" format="##,##0.#####" expression="sum(u_warepdb_billmx_factqty)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_5 visible="1" tag="sum(u_warepdb_billmx_factaddqty)" band=footer 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="609" y="1" height="14" width="57" format="##,##0.#####" expression="sum(u_warepdb_billmx_factaddqty)" alignment="1" border="0" crosstab.repeat=no ) compute(name=compute_6 visible="1" tag="sum(u_warepdb_billmx_wareamt)" band=footer 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="668" y="1" height="14" width="65" format="##,##0.00#####" expression="sum(u_warepdb_billmx_wareamt)" alignment="1" border="0" crosstab.repeat=no ) column(name=u_warepdb_billmx_wareamt visible="1" tag="u_warepdb_billmx_wareamt" band=detail id=21 x="668" y="1" height="17" width="65" color="0" border="0" alignment="1" format="##,##0.00#####" protect="0" edit.format="##,##0.00#####" 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_mtrlname visible="1" tag="u_mtrldef_mtrlname" band=detail id=4 x="106" y="1" height="17" width="114" color="0" border="0" alignment="0" format="[general]" protect="0" 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=50 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" band=detail id=7 x="222" y="1" height="17" width="53" color="0" border="0" alignment="2" format="[general]" protect="0" 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=10 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" band=detail id=8 x="18" y="1" height="17" width="86" color="0" border="0" alignment="0" format="[general]" protect="0" 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=30 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" band=detail id=15 x="277" y="1" height="17" width="77" color="0" 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 ) compute(name=printid visible="1" tag="getrow()" 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="0" x="2" y="1" height="17" width="14" format="[general]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no ) column(name=u_warepdb_billmx_qty visible="1" tag="u_warepdb_billmx_qty" band=detail id=12 x="356" y="1" height="17" width="88" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.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="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_warepdb_billmx_factqty visible="1" tag="u_warepdb_billmx_factqty" band=detail id=3 x="446" y="1" height="17" width="88" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.format="##,##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_warepdb_billmx_factaddqty visible="1" tag="u_warepdb_billmx_factaddqty" band=detail id=4 x="609" y="1" height="17" width="57" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.format="##,##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 ) compute(name=pypkqty visible="1" tag=" u_warepdb_billmx_factqty - u_warepdb_billmx_qty " 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="0" x="536" y="1" height="17" width="71" format="##,##0.#####" expression=" u_warepdb_billmx_factqty - u_warepdb_billmx_qty " alignment="1" border="0" crosstab.repeat=no ) htmltable() htmlgen() export.xml(metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 )