dw_set_mtrl_arg.srd 17 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. $PBExportHeader$dw_set_mtrl_arg.srd
  2. release 9;
  3. 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 )
  4. header(height=68 color="536870912" )
  5. summary(height=0 color="536870912" )
  6. footer(height=68 color="536870912" )
  7. detail(height=76 color="536870912" )
  8. table(column=(type=long updatewhereclause=yes key=yes name=u_mtrldef_mtrlid dbname="u_mtrldef.mtrlid" )
  9. column=(type=decimal(5) updatewhereclause=yes name=u_mtrlware_noallocqty dbname="noallocqty" )
  10. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" )
  11. column=(type=char(50) updatewhereclause=yes name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" )
  12. column=(type=char(10) updatewhereclause=yes name=u_mtrldef_unit dbname="u_mtrldef.unit" )
  13. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype" )
  14. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" )
  15. column=(type=char(100) updatewhereclause=yes name=u_mtrldef_handtype dbname="u_mtrldef.handtype" initial="empty" )
  16. column=(type=decimal(4) updatewhereclause=yes name=u_mtrlware_objmaxminqty dbname="objmaxminqty" initial="0" )
  17. column=(type=decimal(4) updatewhereclause=yes name=u_mtrlware_saleqty dbname="saleqty" initial="0" )
  18. column=(type=long update=yes updatewhereclause=yes name=u_mtrldef_maxminqty_mtrlid dbname="u_mtrldef_maxminqty.mtrlid" initial="0" )
  19. column=(type=char(255) update=yes updatewhereclause=yes key=yes name=u_mtrldef_maxminqty_status dbname="u_mtrldef_maxminqty.status" initial="empty" )
  20. column=(type=char(255) update=yes updatewhereclause=yes key=yes name=u_mtrldef_maxminqty_woodcode dbname="u_mtrldef_maxminqty.woodcode" initial="empty" )
  21. column=(type=char(255) update=yes updatewhereclause=yes key=yes name=u_mtrldef_maxminqty_pcode dbname="u_mtrldef_maxminqty.pcode" initial="empty" )
  22. column=(type=decimal(5) update=yes updatewhereclause=yes name=u_mtrldef_maxminqty_maxqty dbname="u_mtrldef_maxminqty.maxqty" initial="999999" )
  23. column=(type=decimal(5) update=yes updatewhereclause=yes name=u_mtrldef_maxminqty_minqty dbname="u_mtrldef_maxminqty.minqty" initial="0" )
  24. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlsectype dbname="u_mtrldef.mtrlsectype" )
  25. column=(type=char(50) updatewhereclause=yes name=u_mtrldef_zxmtrlmode dbname="u_mtrldef.zxmtrlmode" )
  26. retrieve="SELECT u_mtrldef.mtrlid, SUM(u_mtrlware.noallocqty) AS noallocqty,
  27. u_mtrldef.mtrlcode,
  28. u_mtrldef.mtrlname,
  29. u_mtrldef.unit,
  30. u_mtrldef.mtrltype,
  31. u_mtrldef.mtrlmode,
  32. u_mtrldef.handtype,
  33. 0.0000 AS objmaxminqty,
  34. 0.0000 AS saleqty,
  35. u_mtrldef_maxminqty.mtrlid,
  36. u_mtrldef_maxminqty.status,
  37. u_mtrldef_maxminqty.woodcode,
  38. u_mtrldef_maxminqty.pcode,
  39. u_mtrldef_maxminqty.maxqty,
  40. u_mtrldef_maxminqty.minqty,
  41. u_mtrldef.mtrlsectype,u_mtrldef.zxmtrlmode
  42. FROM u_mtrldef INNER JOIN
  43. u_mtrldef_maxminqty ON
  44. u_mtrldef.mtrlid = u_mtrldef_maxminqty.mtrlid LEFT OUTER JOIN
  45. u_mtrlware ON u_mtrldef_maxminqty.mtrlid = u_mtrlware.mtrlid AND
  46. u_mtrldef_maxminqty.status = u_mtrlware.Status AND
  47. u_mtrldef_maxminqty.woodcode = u_mtrlware.woodcode AND
  48. u_mtrldef_maxminqty.pcode = u_mtrlware.pcode
  49. WHERE ( u_mtrldef.handtype LIKE :arg_handtype OR :arg_handtype = '')
  50. AND ( u_mtrldef.mtrlorigin = :arg_mtrlorigin or :arg_mtrlorigin = -1)
  51. GROUP BY u_mtrldef.mtrlid, u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_mtrldef.unit,
  52. u_mtrldef.mtrltype, u_mtrldef.mtrlmode, u_mtrldef.handtype,
  53. u_mtrldef_maxminqty.mtrlid,
  54. u_mtrldef_maxminqty.status,
  55. u_mtrldef_maxminqty.woodcode,
  56. u_mtrldef_maxminqty.pcode,
  57. u_mtrldef_maxminqty.maxqty, u_mtrldef_maxminqty.minqty,
  58. u_mtrldef.mtrlsectype,u_mtrldef.zxmtrlmode
  59. " update="u_mtrldef_maxminqty" updatewhere=0 updatekeyinplace=no arguments=(("arg_handtype", string),("arg_mtrlorigin", number)) sort="u_mtrldef_mtrlcode A u_mtrldef_maxminqty_status A u_mtrldef_maxminqty_woodcode A u_mtrldef_maxminqty_pcode A " )
  60. text(band=header alignment="2" text="品名" border="0" color="33554432" x="453" y="8" height="56" width="672" 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" )
  61. text(band=header alignment="2" text="库存单位" border="0" color="33554432" x="1586" y="8" height="56" width="233" 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="1" background.color="536870912" )
  62. text(band=header alignment="2" text="参考数量" border="0" color="16711680" x="3858" y="8" height="56" width="311" html.valueishtml="0" name=u_mtrlware_objmaxminqty_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" )
  63. text(band=header alignment="2" text="类别" border="0" color="33554432" x="1829" y="8" height="56" width="311" html.valueishtml="0" name=u_mtrldef_mtrltype_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" )
  64. text(band=header alignment="2" text="规格" border="0" color="33554432" x="1134" y="8" height="56" width="443" 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" )
  65. text(band=header alignment="2" text="出仓数" border="0" color="33554432" x="4178" y="8" height="56" width="334" html.valueishtml="0" name=u_mtrlware_saleqty_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" )
  66. text(band=header alignment="2" text="报警上限" border="0" color="16711680" x="3200" y="8" height="56" width="311" html.valueishtml="0" name=u_mtrldef_maxminqty_maxqty_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" )
  67. text(band=header alignment="2" text="报警下限" border="0" color="16711680" x="3520" y="8" height="56" width="329" html.valueishtml="0" name=u_mtrldef_maxminqty_minqty_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" )
  68. text(band=header alignment="2" text="属性" border="0" color="16711680" x="2149" y="8" height="56" width="334" html.valueishtml="0" name=u_mtrldef_maxminqty_status_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" )
  69. text(band=header alignment="2" text="属性1" border="0" color="16711680" x="2491" y="8" height="56" width="357" html.valueishtml="0" name=u_mtrldef_maxminqty_woodcode_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" )
  70. text(band=header alignment="2" text="属性2" border="0" color="16711680" x="2857" y="8" height="56" width="334" html.valueishtml="0" name=u_mtrldef_maxminqty_pcode_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" )
  71. text(band=header alignment="2" text="库存数量" border="0" color="33554432" x="4521" y="8" height="56" width="325" html.valueishtml="0" name=u_mtrlware_noallocqty_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" )
  72. text(band=header alignment="2" text="自定义1" border="0" color="33554432" x="4855" y="8" height="56" width="343" 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" )
  73. text(band=header alignment="2" text="自定义2" border="0" color="33554432" x="5207" y="8" height="56" width="329" 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" )
  74. text(band=header alignment="2" text="编码" border="0" color="16711680" x="9" y="8" height="56" width="434" 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" )
  75. column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="33554432" x="453" y="4" height="68" width="672" 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" )
  76. column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="33554432" x="1586" y="4" height="68" width="233" format="[general]" html.valueishtml="0" name=u_mtrldef_unit visible="1" edit.limit=10 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" )
  77. column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="33554432" x="1829" y="4" height="68" width="311" 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" )
  78. column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="33554432" x="1134" y="4" height="68" width="443" 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" )
  79. column(band=detail id=10 alignment="1" tabsequence=32766 border="0" color="33554432" x="4178" y="4" height="68" width="334" format="##0.0###" html.valueishtml="0" name=u_mtrlware_saleqty visible="1" edit.limit=0 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" )
  80. column(band=detail id=9 alignment="1" tabsequence=32766 border="0" color="16711680" x="3858" y="4" height="68" width="311" format="##0.0###" html.valueishtml="0" name=u_mtrlware_objmaxminqty visible="1" edit.limit=0 edit.case=any edit.format="##0.0###" 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" )
  81. column(band=detail id=12 alignment="2" tabsequence=32766 border="0" color="16711680" x="2149" y="4" height="68" width="334" format="[general]" html.valueishtml="0" name=u_mtrldef_maxminqty_status visible="1" dddw.name=ddd_color dddw.displaycolumn=colorname dddw.datacolumn=colorname dddw.percentwidth=0 dddw.lines=15 dddw.limit=0 dddw.allowedit=no dddw.useasborder=no dddw.case=any dddw.imemode=0 dddw.vscrollbar=yes font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
  82. column(band=detail id=13 alignment="2" tabsequence=32766 border="0" color="16711680" x="2491" y="4" height="68" width="357" format="[general]" html.valueishtml="0" name=u_mtrldef_maxminqty_woodcode visible="1" dddw.name=ddd_color_wood dddw.displaycolumn=woodcode dddw.datacolumn=woodcode dddw.percentwidth=0 dddw.lines=15 dddw.limit=0 dddw.allowedit=no dddw.useasborder=no dddw.case=any dddw.imemode=0 dddw.vscrollbar=yes font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
  83. column(band=detail id=14 alignment="2" tabsequence=32766 border="0" color="16711680" x="2857" y="4" height="68" width="334" format="[general]" html.valueishtml="0" name=u_mtrldef_maxminqty_pcode visible="1" dddw.name=ddd_color_pcode dddw.displaycolumn=pcode dddw.datacolumn=pcode dddw.percentwidth=0 dddw.lines=15 dddw.limit=0 dddw.allowedit=no dddw.useasborder=no dddw.case=any dddw.imemode=0 dddw.vscrollbar=yes font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
  84. column(band=detail id=2 alignment="1" tabsequence=32766 border="0" color="33554432" x="4521" y="4" height="68" width="325" format="##0.0###" html.valueishtml="0" name=u_mtrlware_noallocqty visible="1" edit.limit=0 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" )
  85. column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="33554432" x="4855" y="4" height="68" width="343" 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" )
  86. column(band=detail id=18 alignment="0" tabsequence=32766 border="0" color="33554432" x="5207" y="4" height="68" width="329" 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" )
  87. column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="16711680" x="9" y="4" height="68" width="434" 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" )
  88. column(band=detail id=15 alignment="1" tabsequence=32766 border="0" color="16711680" x="3200" y="4" height="68" width="311" format="#,##0.#####" html.valueishtml="0" name=u_mtrldef_maxminqty_maxqty visible="1" edit.limit=0 edit.case=any edit.format="#,##0.#####" edit.focusrectangle=no 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" )
  89. column(band=detail id=16 alignment="1" tabsequence=32766 border="0" color="16711680" x="3520" y="4" height="68" width="329" format="#,##0.#####" html.valueishtml="0" name=u_mtrldef_maxminqty_minqty visible="1" edit.limit=0 edit.case=any edit.format="#,##0.#####" edit.focusrectangle=no 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" )
  90. compute(band=footer alignment="1" expression="count(u_mtrldef_mtrlcode for all)"border="0" color="16711680" x="9" y="4" height="56" width="434" format="[general]" html.valueishtml="0" name=compute_1 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" )
  91. htmltable(border="1" )
  92. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
  93. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  94. import.xml()
  95. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )