$PBExportHeader$dw_order_wfjg_mx_ch.srd release 9; datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no 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.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 selected.mouse=no ) header(height=68 color="536870912" ) summary(height=4 color="536870912" ) footer(height=76 color="536870912" ) detail(height=84 color="536870912" ) table(column=(type=char(15) updatewhereclause=yes name=u_saletask_taskcode dbname="u_SaleTask.TaskCode" ) column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" ) column=(type=char(50) updatewhereclause=yes name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" ) column=(type=long updatewhereclause=yes name=u_saletaskmx_taskid dbname="u_SaleTaskMx.TaskID" ) column=(type=long updatewhereclause=yes name=u_saletaskmx_printid dbname="u_SaleTaskMx.printid" ) column=(type=long updatewhereclause=yes name=u_saletaskmx_mtrlid dbname="u_SaleTaskMx.MtrlID" ) column=(type=decimal(5) updatewhereclause=yes name=u_saletaskmx_needwfjgqty dbname="u_SaleTaskMx.needwfjgqty" ) column=(type=decimal(5) updatewhereclause=yes name=u_saletaskmx_wfjgtaskqty dbname="u_SaleTaskMx.wfjgtaskqty" ) column=(type=char(255) updatewhereclause=yes name=u_saletaskmx_pcode dbname="u_SaleTaskMx.pcode" ) column=(type=char(255) updatewhereclause=yes name=u_saletaskmx_woodcode dbname="u_SaleTaskMx.woodcode" ) column=(type=char(255) updatewhereclause=yes name=u_saletaskmx_status dbname="u_SaleTaskMx.status" ) column=(type=decimal(5) updatewhereclause=yes name=nowfjgqty dbname="nowfjgqty" ) column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" ) column=(type=char(10) updatewhereclause=yes name=u_mtrldef_unit dbname="u_mtrldef.unit" ) column=(type=decimal(10) updatewhereclause=yes name=u_mtrldef_planprice dbname="u_mtrldef.planprice" ) column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlsectype dbname="u_mtrldef.mtrlsectype" ) column=(type=char(50) updatewhereclause=yes name=u_mtrldef_zxmtrlmode dbname="u_mtrldef.zxmtrlmode" ) column=(type=decimal(5) updatewhereclause=yes name=u_mtrldef_rate_buy dbname="u_mtrldef.rate_buy" ) column=(type=char(20) updatewhereclause=yes name=u_mtrldef_unit_buy dbname="u_mtrldef.unit_buy" ) column=(type=decimal(10) updatewhereclause=yes name=u_mtrldef_lmbuyprice dbname="u_mtrldef.lmbuyprice" ) column=(type=decimal(5) updatewhereclause=yes name=u_saletaskmx_addqty dbname="u_SaleTaskMx.addqty" ) column=(type=long updatewhereclause=yes name=u_mtrldef_statusflag dbname="u_mtrldef.statusflag" ) column=(type=long updatewhereclause=yes name=u_mtrldef_woodcodeflag dbname="u_mtrldef.woodcodeflag" ) column=(type=long updatewhereclause=yes name=u_mtrldef_pcodeflag dbname="u_mtrldef.pcodeflag" ) retrieve="SELECT u_SaleTask.TaskCode, u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_SaleTaskMx.TaskID, u_SaleTaskMx.printid, u_SaleTaskMx.MtrlID, u_SaleTaskMx.needwfjgqty, u_SaleTaskMx.wfjgtaskqty, u_SaleTaskMx.pcode, u_SaleTaskMx.woodcode, u_SaleTaskMx.status, u_SaleTaskMx.needwfjgqty - u_SaleTaskMx.wfjgtaskqty as nowfjgqty, u_mtrldef.mtrlmode, u_mtrldef.unit, u_mtrldef.planprice, u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode, u_mtrldef.rate_buy, u_mtrldef.unit_buy, u_mtrldef.lmbuyprice, u_SaleTaskMx.addqty, u_mtrldef.statusflag , u_mtrldef.woodcodeflag, u_mtrldef.pcodeflag FROM u_SaleTask INNER JOIN u_SaleTaskMx ON u_SaleTask.scid = u_SaleTaskMx.scid AND u_SaleTask.TaskID = u_SaleTaskMx.TaskID INNER JOIN u_mtrldef ON u_SaleTaskMx.MtrlID = u_mtrldef.mtrlid WHERE (u_SaleTask.status = 1) AND (u_SaleTaskMx.needwfjgqty - u_SaleTaskMx.wfjgtaskqty > 0 ) AND (u_SaleTask.scid = :arg_scid ) " arguments=(("arg_scid", number)) sort="u_saletaskmx_taskid A u_saletaskmx_printid A " ) text(band=header alignment="2" text="销售订单编号" border="0" color="33554432" x="9" y="8" height="56" width="439" html.valueishtml="0" name=u_saletask_taskcode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text=" 编码" border="0" color="33554432" x="457" y="8" height="56" width="494" html.valueishtml="0" name=u_mtrldef_mtrlcode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="品名" border="0" color="33554432" x="960" y="8" height="56" width="535" html.valueishtml="0" name=u_mtrldef_mtrlname_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="属性" border="0" color="33554432" x="3557" y="8" height="56" width="384" html.valueishtml="0" name=u_saletaskmx_status_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="需外协数" border="0" color="33554432" x="2007" y="8" height="56" width="375" html.valueishtml="0" name=u_saletaskmx_needwfjgqty_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="已订外协数" border="0" color="33554432" x="2391" y="8" height="56" width="389" html.valueishtml="0" name=u_saletaskmx_wfjgtaskqty_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="未订外协数" border="0" color="33554432" x="2789" y="8" height="56" width="375" html.valueishtml="0" name=nowfjgqty_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="属性1" border="0" color="33554432" x="3950" y="8" height="56" width="434" html.valueishtml="0" name=u_saletaskmx_woodcode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="辅数" border="0" color="33554432" x="3173" y="8" height="56" width="375" html.valueishtml="0" name=u_saletaskmx_addqty_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="属性2" border="0" color="33554432" x="4393" y="8" height="56" width="439" html.valueishtml="0" name=u_saletaskmx_pcode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text=" 规格" border="0" color="33554432" x="1504" y="8" height="56" width="494" html.valueishtml="0" name=u_mtrldef_mtrlmode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="库存单位" border="0" color="33554432" x="4841" y="8" height="56" width="261" html.valueishtml="0" name=u_mtrldef_unit_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="计划价" border="0" color="33554432" x="5111" y="8" height="56" width="357" html.valueishtml="0" name=u_mtrldef_planprice_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="自定义1" border="0" color="33554432" x="5477" y="8" height="56" width="475" html.valueishtml="0" name=u_mtrldef_mtrlsectype_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="自定义2" border="0" color="33554432" x="5961" y="8" height="56" width="494" html.valueishtml="0" name=u_mtrldef_zxmtrlmode_t visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="9" y="8" height="68" width="439" format="[general]" html.valueishtml="0" name=u_saletask_taskcode visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="457" y="8" height="68" width="494" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlcode visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="33554432" x="960" y="8" height="68" width="535" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlname visible="1" edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="33554432" x="3557" y="8" height="68" width="384" format="[general]" html.valueishtml="0" name=u_saletaskmx_status visible="1" edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="33554432" x="3950" y="8" height="68" width="434" format="[general]" html.valueishtml="0" name=u_saletaskmx_woodcode visible="1" edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="33554432" x="4393" y="8" height="68" width="439" format="[general]" html.valueishtml="0" name=u_saletaskmx_pcode visible="1" edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="33554432" x="1504" y="8" height="68" width="494" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlmode visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="33554432" x="4841" y="8" height="68" width="261" format="[general]" html.valueishtml="0" name=u_mtrldef_unit visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="1" tabsequence=32766 border="0" color="33554432" x="5111" y="8" height="68" width="357" format="#,##0.##########" html.valueishtml="0" name=u_mtrldef_planprice visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="33554432" x="5477" y="8" height="68" width="475" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlsectype visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=21 alignment="0" tabsequence=32766 border="0" color="33554432" x="3173" y="8" height="68" width="375" format="#,##0.#####" html.valueishtml="0" name=u_saletaskmx_addqty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="33554432" x="5961" y="8" height="68" width="494" format="[general]" html.valueishtml="0" name=u_mtrldef_zxmtrlmode visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="1" tabsequence=32766 border="0" color="33554432" x="2007" y="8" height="68" width="375" format="##,##0.#####" html.valueishtml="0" name=u_saletaskmx_needwfjgqty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="1" tabsequence=32766 border="0" color="33554432" x="2391" y="8" height="68" width="389" format="##,##0.#####" html.valueishtml="0" name=u_saletaskmx_wfjgtaskqty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="1" tabsequence=32766 border="0" color="33554432" x="2789" y="8" height="68" width="375" format="##,##0.#####" html.valueishtml="0" name=nowfjgqty visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) compute(band=footer alignment="2" expression="count( u_saletask_taskcode for all)"border="0" color="33554432" x="9" y="8" height="56" width="439" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) compute(band=footer alignment="1" expression="sum(u_saletaskmx_needwfjgqty)"border="0" color="33554432" x="2007" y="8" height="56" width="375" format="##,##0.#####" html.valueishtml="0" name=compute_2 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) compute(band=footer alignment="1" expression="sum(u_saletaskmx_wfjgtaskqty)"border="0" color="33554432" x="2391" y="8" height="56" width="389" format="##,##0.#####" html.valueishtml="0" name=compute_3 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) compute(band=footer alignment="1" expression="sum(nowfjgqty)"border="0" color="33554432" x="2789" y="8" height="56" width="375" format="##,##0.#####" html.valueishtml="0" name=compute_4 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) sparse(names="u_saletask_taskcode")htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) export.xml(usetemplate="" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="gb2312" name="1" xml="u_saletask_taskcodeu_mtrldef_mtrlcodeu_mtrldef_mtrlnameu_saletaskmx_needbuyqtyu_saletaskmx_buytaskqtyu_saletaskmx_pcodeu_saletaskmx_woodcodeu_saletaskmx_status")) import.xml(usetemplate="" ) export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )