$PBExportHeader$ds_pack1_refp_task.srd release 11.5; datawindow(units=0 timer_interval=0 color=1073741824 brushmode=0 transparency=0 gradient.angle=0 gradient.color=8421504 gradient.focus=0 gradient.repetition.count=0 gradient.repetition.length=100 gradient.repetition.mode=0 gradient.scale=100 gradient.spread=100 gradient.transparency=0 picture.blur=0 picture.clip.bottom=0 picture.clip.left=0 picture.clip.right=0 picture.clip.top=0 picture.mode=0 picture.scale.x=100 picture.scale.y=100 picture.transparency=0 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 print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="" grid.lines=0 ) header(height=128 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) summary(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) footer(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) detail(height=84 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100" ) table(column=(type=long updatewhereclause=yes name=u_saletaskmx_scid dbname="scid" ) column=(type=long updatewhereclause=yes name=u_saletaskmx_taskid dbname="taskid" ) column=(type=datetime updatewhereclause=yes name=u_saletask_requiredate dbname="requiredate" ) retrieve="select distinct scid,taskid,requiredate from ( SELECT u_SaleTaskMx.scid as scid, u_SaleTaskMx.TaskID as taskid, u_SaleTask.requiredate as requiredate FROM u_SaleTaskMx INNER JOIN u_mtrldef ON u_SaleTaskMx.MtrlID = u_mtrldef.mtrlid INNER JOIN u_SaleTask ON u_SaleTaskMx.scid = u_SaleTask.scid AND u_SaleTaskMx.TaskID = u_SaleTask.TaskID WHERE (u_SaleTaskMx.SaleQty - u_SaleTaskMx.stopqty - u_SaleTaskMx.fpqty > 0) AND ( u_mtrldef.ifpack = 1 ) AND ( u_SaleTask.Status = 1 ) and ( DATEADD ( day , :arg_datenum, getdate() ) >= u_SaleTaskMx.requiredate) UNION ALL SELECT u_SaleTaskMx.scid as scid, u_SaleTaskMx.TaskID as taskid, u_SaleTask.requiredate as requiredate FROM u_SaleTaskMx INNER JOIN u_SaleTask ON u_SaleTaskMx.scid = u_SaleTask.scid AND u_SaleTaskMx.TaskID = u_SaleTask.TaskID INNER join u_saletaskmx_pf on u_SaleTaskMx.scid = u_saletaskmx_pf.scid AND u_SaleTaskMx.taskid = u_saletaskmx_pf.taskid AND u_SaleTaskMx.printid = u_saletaskmx_pf.printid INNER JOIN u_mtrldef ON u_saletaskmx_pf.sonMtrlID = u_mtrldef.mtrlid INNER join u_mtrldef u_mtrldef_p on u_SaleTaskMx.mtrlid = u_mtrldef_p.mtrlid WHERE (u_SaleTaskMx.SaleQty - u_SaleTaskMx.stopqty - u_SaleTaskMx.fpqty > 0) AND ( u_mtrldef.ifpack = 1 ) AND ( u_SaleTask.Status = 1 ) AND ( u_mtrldef_p.ifpackpro = 1 OR u_mtrldef_p.ifpackpro = 2 ) and ( DATEADD ( day , :arg_datenum, getdate() ) >= u_SaleTaskMx.requiredate) UNION ALL SELECT u_SaleTaskMx.scid as scid, u_SaleTaskMx.TaskID as taskid, u_SaleTask.requiredate as requiredate FROM u_SaleTaskMx INNER JOIN u_SaleTask ON u_SaleTaskMx.scid = u_SaleTask.scid AND u_SaleTaskMx.TaskID = u_SaleTask.TaskID INNER join u_mtrl_pf on u_SaleTaskMx.mtrlid = u_mtrl_pf.mtrlid AND u_mtrl_pf.ifdft = 1 INNER join u_prdpf on u_mtrl_pf.mtrlid = u_prdpf.mtrlid AND u_mtrl_pf.pfcode = u_prdpf.pfcode INNER JOIN u_mtrldef ON u_prdpf.sonMtrlID = u_mtrldef.mtrlid INNER join u_mtrldef u_mtrldef_p on u_SaleTaskMx.mtrlid = u_mtrldef_p.mtrlid WHERE (u_SaleTaskMx.SaleQty - u_SaleTaskMx.stopqty - u_SaleTaskMx.fpqty > 0) AND ( u_mtrldef.ifpack = 1 ) AND ( u_mtrldef_p.ifpackpro = 1 OR u_mtrldef_p.ifpackpro = 2 ) AND ( u_SaleTask.Status = 1 ) and ( DATEADD ( day , :arg_datenum, getdate() ) >= u_SaleTaskMx.requiredate) AND ( CAST(u_SaleTaskMx.Scid AS varchar(20)) + '_' + CAST(u_SaleTaskMx.taskid AS varchar(20)) + '_' + CAST(u_SaleTaskMx.printid AS varchar(20)) not in (select CAST(u_SaleTaskMx_pf.Scid AS varchar(20)) + '_' + CAST(u_SaleTaskMx_pf.taskid AS varchar(20)) + '_' + CAST(u_SaleTaskMx_pf.printid AS varchar(20)) from u_saletaskmx_pf )) ) v_task " arguments=(("arg_datenum", number)) sort="u_saletask_requiredate A " ) text(band=header alignment="2" text="分部ID" border="0" color="33554432" x="9" y="8" height="56" width="329" html.valueishtml="0" name=u_saletaskmx_scid_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" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) text(band=header alignment="2" text="销售订单ID" border="0" color="33554432" x="347" y="8" height="56" width="329" html.valueishtml="0" name=u_saletaskmx_taskid_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" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) column(band=detail id=1 alignment="1" tabsequence=32766 border="0" color="33554432" x="9" y="8" height="68" width="329" format="[general]" html.valueishtml="0" name=u_saletaskmx_scid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) column(band=detail id=2 alignment="1" tabsequence=32766 border="0" color="33554432" x="347" y="8" height="68" width="329" format="[general]" html.valueishtml="0" name=u_saletaskmx_taskid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) column(band=detail id=3 alignment="0" tabsequence=0 border="0" color="33554432" x="690" y="0" height="56" width="178" html.valueishtml="0" name=u_saletask_requiredate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0" ) text(band=header alignment="0" text="U Saletask Requiredate" border="0" color="33554432" x="686" y="4" height="76" width="183" html.valueishtml="0" name=u_saletask_requiredate_t visible="1" font.face="Tahoma" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="0" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="0" background.gradient.focus="0" background.gradient.scale="0" background.gradient.spread="0" tooltip.backcolor="0" tooltip.delay.initial="0" tooltip.delay.visible="0" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="0" tooltip.transparency="0" transparency="0" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" ) xhtmlgen() cssgen(sessionspecific="0" ) xmlgen(inline="0" ) xsltgen() jsgen() export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) export.xhtml()