dw_rp_saletask_sc_mx_edit.srd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. $PBExportHeader$dw_rp_saletask_sc_mx_edit.srd
  2. release 9;
  3. 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 )
  4. header(height=276 color="536870912" )
  5. summary(height=64 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=72 color="536870912" )
  8. table(column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" )
  9. column=(type=char(50) updatewhereclause=yes name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" )
  10. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" )
  11. column=(type=char(30) updatewhereclause=yes name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype" )
  12. column=(type=char(10) updatewhereclause=yes name=u_mtrldef_unit dbname="u_mtrldef.unit" )
  13. column=(type=decimal(4) updatewhereclause=yes name=sumsaleqty dbname="sumSaleQty" )
  14. column=(type=decimal(5) updatewhereclause=yes name=sumorderqty dbname="sumorderqty" )
  15. retrieve=" SELECT u_mtrldef.mtrlcode,
  16. u_mtrldef.mtrlname,
  17. u_mtrldef.mtrlmode,
  18. u_mtrldef.mtrltype,
  19. u_mtrldef.unit,
  20. sum(u_SaleTaskMx.SaleQty) as sumSaleQty,
  21. sum(u_saletaskmx.orderqty) as sumorderqty
  22. FROM u_SaleTask left outer join u_cust on ( u_SaleTask.CusID = u_cust.cusid )
  23. left outer join cw_currency on u_SaleTask.moneyid = cw_currency.moneyid ,
  24. u_SaleTaskMx,
  25. u_mtrldef
  26. WHERE ( u_SaleTask.TaskID = u_SaleTaskMx.TaskID ) and
  27. ( u_SaleTask.scid = u_SaleTaskMx.scid ) and
  28. ( u_SaleTaskMx.MtrlID = u_mtrldef.mtrlid ) and
  29. ( u_SaleTask.scid = :arg_scid) and
  30. ((LTRIM(RTRIM(u_SaleTask.TaskCode)) + LTRIM(RTRIM(u_SaleTaskMx.printid)))
  31. IN (:arg_taskcode))
  32. group by u_mtrldef.mtrlcode,
  33. u_mtrldef.mtrlname,
  34. u_mtrldef.mtrlmode,
  35. u_mtrldef.mtrltype,
  36. u_mtrldef.unit
  37. " arguments=(("arg_scid", number),("arg_taskcode", stringlist),("arg_printrow", number),("arg_top", number)) )
  38. 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" )
  39. 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" )
  40. 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" )
  41. 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" )
  42. 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" )
  43. 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" )
  44. 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" )
  45. 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" )
  46. 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" )
  47. 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" )
  48. 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" )
  49. 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" )
  50. 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" )
  51. 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" )
  52. 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" )
  53. 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" )
  54. 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" )
  55. 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" )
  56. 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" )
  57. 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" )
  58. 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" )
  59. htmltable(border="1" )
  60. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
  61. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  62. import.xml()
  63. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )