dw_price_remind.srd 17 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $PBExportHeader$dw_price_remind.srd
  2. release 11.5;
  3. datawindow(units=0 timer_interval=60000 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 = 2 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 print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="" grid.lines=0 )
  4. header(height=68 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" )
  5. summary(height=76 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" )
  6. 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" )
  7. detail(height=84 color="553648127" 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" height.autosize=yes )
  8. table(column=(type=decimal(5) updatewhereclause=yes identity=yes name=bir_price dbname="bir_price" )
  9. column=(type=decimal(5) updatewhereclause=yes identity=yes name=p_price dbname="p_price" )
  10. column=(type=decimal(5) updatewhereclause=yes identity=yes name=ipv_price dbname="ipv_price" )
  11. column=(type=decimal(10) updatewhereclause=yes identity=yes name=buy_price dbname="buy_price" )
  12. retrieve="SELECT ISNULL(BIR.NPrice, 0) AS bir_price,
  13. ISNULL(P.NPrice, 0) AS p_price,
  14. ISNULL(IPV.Nprice, 0) AS ipv_price,
  15. ISNULL(uv_sptprice_mtrl.Wareprice, 0) AS buy_price
  16. FROM u_mtrldef LEFT OUTER JOIN
  17. (SELECT ProductID, MPrice, Nprice, CreateTime, opdate
  18. FROM u_aifmb_IndexProductValue mIPV
  19. WHERE ((SELECT COUNT(*)
  20. FROM u_aifmb_IndexProductValue subIPV
  21. WHERE subIPV.productid = mIPV.productid AND
  22. subIPV.CreateTime >= mIPV.CreateTime) <= 1)) IPV ON
  23. u_mtrldef.ProductID = IPV.ProductID LEFT OUTER JOIN
  24. (SELECT ProductID, EntID, SDate, EDate, MPrice, NPrice, Qty, CreateTime, opdate,
  25. sptid
  26. FROM u_aifmb_Promotions mP
  27. WHERE ((SELECT COUNT(*)
  28. FROM u_aifmb_Promotions subP
  29. WHERE subP.productid = mP.productid AND
  30. subP.CreateTime >= mP.CreateTime) <= 1)) P ON
  31. u_mtrldef.ProductID = P.ProductID LEFT OUTER JOIN
  32. (SELECT ProductID, EntID, MPrice, NPrice, ReplyTime, opdate, sptid
  33. FROM u_aifmb_BuyInfoReply mBIR
  34. WHERE ((SELECT COUNT(*)
  35. FROM u_aifmb_BuyInfoReply subBIR
  36. WHERE subBIR.productid = mBIR.productid AND
  37. subBIR.replytime >= mBIR.replytime) <= 1)) BIR ON
  38. u_mtrldef.ProductID = BIR.ProductID left outer join
  39. uv_sptprice_mtrl on u_mtrldef.mtrlid = uv_sptprice_mtrl.mtrlid
  40. where u_mtrldef.mtrlid = :arg_mtrlid
  41. " arguments=(("arg_mtrlid", number),("arg_price", number)) )
  42. text(band=header alignment="2" text="最新求购报价" border="0" color="0" x="869" y="8" height="56" width="329" html.valueishtml="0" name=bir_price_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" 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" )
  43. text(band=header alignment="2" text="最新促销价" border="0" color="0" x="1317" y="8" height="56" width="302" html.valueishtml="0" name=p_price_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" 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" )
  44. text(band=header alignment="2" text="最新价格指数" border="0" color="0" x="430" y="8" height="56" width="320" html.valueishtml="0" name=ipv_price_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" 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" )
  45. text(band=header alignment="2" text="最新采购价" border="0" color="0" x="9" y="8" height="56" width="302" html.valueishtml="0" name=buy_price_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" 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" )
  46. column(band=detail id=1 alignment="1" tabsequence=32766 border="0" color="0~tif(bir_price > 0 and bir_price < buy_price, rgb(255,0,0),rgb(0,0,0))" x="869" y="4" height="76" width="329" format="#,##0.00#####" html.valueishtml="0" name=bir_price visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.useellipsis=yes font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  47. column(band=detail id=4 alignment="1" tabsequence=32766 border="0" color="0" x="9" y="4" height="76" width="302" format="#,##0.00####" html.valueishtml="0" name=buy_price visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  48. compute(band=detail alignment="0" expression="bitmap ('graphics\上升_red.bmp')"border="0" color="0" x="320" y="4" height="76" width="101" format="[General]" html.valueishtml="0" name=buy_pic visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  49. compute(band=detail alignment="0" expression="bitmap ('graphics\上升_red.bmp')"border="0" color="0" x="1207" y="4" height="76" width="101" format="[GENERAL]" html.valueishtml="0" name=bir_pic visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  50. compute(band=detail alignment="0" expression="bitmap ('graphics\上升_red.bmp')"border="0" color="33554432" x="1627" y="4" height="76" width="101" format="[GENERAL]" html.valueishtml="0" name=p_pic visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  51. compute(band=detail alignment="0" expression="bitmap ('graphics\上升_red.bmp')"border="0" color="33554432" x="759" y="4" height="76" width="101" format="[GENERAL]" html.valueishtml="0" name=ipv_pic visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  52. column(band=detail id=2 alignment="1" tabsequence=32766 border="0" color="0~tif(p_price > 0 and p_price < buy_price, rgb(255,0,0),rgb(0,0,0))" x="1317" y="4" height="76" width="302" format="#,##0.00#####" html.valueishtml="0" name=p_price visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.useellipsis=yes font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  53. column(band=detail id=3 alignment="1" tabsequence=32766 border="0" color="0~tif(ipv_price > 0 and ipv_price < buy_price, rgb(255,0,0),rgb(0,0,0))" x="430" y="4" height="76" width="320" format="#,##0.00#####" html.valueishtml="0" name=ipv_price visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.useellipsis=yes font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" 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" )
  54. htmltable(border="1" )
  55. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" )
  56. xhtmlgen() cssgen(sessionspecific="0" )
  57. xmlgen(inline="0" )
  58. xsltgen()
  59. jsgen()
  60. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-16LE" name="ew" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"no~"?><dw_rp_buy_mtrl><dw_rp_buy_mtrl_row __pbband=~"detail~"><u_mtrldef_mtrlcode/><u_mtrldef_mtrlname/><u_mtrldef_mtrlmode/><u_mtrldef_unit/><u_mtrldef_mtrlsectype/><u_mtrldef_zxmtrlmode/><u_mtrldef_mtrltype/><u_inwaremx_unit/><u_inwaremx_mxdscrp/><bootqty/><aqty/><addqty/><amt/><jqty/><jamt/></dw_rp_buy_mtrl_row></dw_rp_buy_mtrl>"))
  61. import.xml()
  62. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
  63. export.xhtml()