$PBExportHeader$dw_rp_saletask_sc_mx_edit.srd release 9; datawindow(units=0 timer_interval=60000 color=16777215 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 1 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 9 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 ) header(height=276 color="536870912" ) summary(height=64 color="536870912" ) footer(height=0 color="536870912" ) detail(height=72 color="536870912" ) table(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=char(30) updatewhereclause=yes name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" ) column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype" ) column=(type=char(10) updatewhereclause=yes name=u_mtrldef_unit dbname="u_mtrldef.unit" ) column=(type=decimal(4) updatewhereclause=yes name=sumsaleqty dbname="sumSaleQty" ) column=(type=decimal(5) updatewhereclause=yes name=sumorderqty dbname="sumorderqty" ) retrieve=" SELECT u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_mtrldef.mtrlmode, u_mtrldef.mtrltype, u_mtrldef.unit, sum(u_SaleTaskMx.SaleQty) as sumSaleQty, sum(u_saletaskmx.orderqty) as sumorderqty FROM u_SaleTask left outer join u_cust on ( u_SaleTask.CusID = u_cust.cusid ) left outer join cw_currency on u_SaleTask.moneyid = cw_currency.moneyid , u_SaleTaskMx, u_mtrldef WHERE ( u_SaleTask.TaskID = u_SaleTaskMx.TaskID ) and ( u_SaleTask.scid = u_SaleTaskMx.scid ) and ( u_SaleTaskMx.MtrlID = u_mtrldef.mtrlid ) and ( u_SaleTask.scid = :arg_scid) and ((LTRIM(RTRIM(u_SaleTask.TaskCode)) + LTRIM(RTRIM(u_SaleTaskMx.printid))) IN (:arg_taskcode)) group by u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_mtrldef.mtrlmode, u_mtrldef.mtrltype, u_mtrldef.unit " arguments=(("arg_scid", number),("arg_taskcode", stringlist),("arg_printrow", number),("arg_top", number)) ) text(band=header alignment="2" text="序" border="2" color="0" x="9" y="216" height="56" width="105" html.valueishtml="0" name=t_14 visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="编码" border="2" color="0" x="123" y="216" height="56" width="485" html.valueishtml="0" name=u_mtrldef_mtrlcode_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="品名" border="2" color="0" x="617" y="216" height="56" width="658" html.valueishtml="0" name=u_mtrldef_mtrlname_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="规格" border="2" color="33554432" x="1285" y="216" height="56" width="517" html.valueishtml="0" name=u_mtrldef_mtrlmode_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="类别" border="2" color="33554432" x="1810" y="216" height="56" width="462" html.valueishtml="0" name=u_mtrldef_mtrltype_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="库存单位" border="2" color="33554432" x="2281" y="216" height="56" width="306" html.valueishtml="0" name=u_mtrldef_unit_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="订货数量" border="2" color="33554432" x="2597" y="216" height="56" width="274" html.valueishtml="0" name=sumsaleqty_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" ) text(band=header alignment="2" text="排产数量" border="2" color="33554432" x="2880" y="216" height="56" width="398" html.valueishtml="0" name=sumorderqty_t visible="1" font.face="宋体" font.height="-9" font.weight="700" 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="0" x="123" y="4" height="64" width="485" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlcode tag="" 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=2 alignment="0" tabsequence=32766 border="0" color="0" x="617" y="4" height="64" width="658" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlname tag="" 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=3 alignment="0" tabsequence=32766 border="0" color="0" x="1285" y="4" height="64" width="517" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrlmode visible="1" edit.limit=0 edit.case=any edit.autoselect=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=4 alignment="0" tabsequence=32766 border="0" color="0" x="1810" y="4" height="64" width="462" format="[general]" html.valueishtml="0" name=u_mtrldef_mtrltype visible="1" edit.limit=0 edit.case=any edit.autoselect=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" ) compute(band=detail alignment="2" expression="getrow()"border="0" color="33554432" x="9" y="4" height="64" width="105" format="[GENERAL]" html.valueishtml="0" name=row 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=5 alignment="2" tabsequence=32766 border="0" color="0" x="2281" y="4" height="64" width="306" format="[general]" html.valueishtml="0" name=u_mtrldef_unit visible="1" edit.limit=0 edit.case=any edit.autoselect=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=6 alignment="1" tabsequence=32766 border="0" color="0" x="2597" y="4" height="64" width="274" format="##,##0.#####" html.valueishtml="0" name=sumsaleqty 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="0" x="2880" y="4" height="64" width="398" format="##,##0.#####" html.valueishtml="0" name=sumorderqty 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=summary alignment="2" expression="count(u_mtrldef_mtrlcode for all)"border="0" color="0" x="123" y="4" height="56" width="485" format="[general]" html.valueishtml="0" name=compute_2 visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" ) compute(band=summary alignment="1" expression="sum(sumsaleqty)"border="0" color="0" x="2597" y="4" height="56" width="274" format="##,##0.#####" 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=summary alignment="1" expression="sum(sumorderqty)"border="0" color="0" x="2880" y="4" height="56" width="398" 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" ) text(band=foreground alignment="2" text="" border="0" color="33554432" x="0" y="4" height="204" width="3305" html.valueishtml="0" name=t_1 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" ) text(band=foreground alignment="2" text="排产单" border="0" color="33554432" x="0" y="80" height="124" width="3291" html.valueishtml="0" name=t_2 visible="1" font.face="宋体" font.height="-20" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )