dw_rp_inwaremx_wfjg_edit_th.srd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. $PBExportHeader$dw_rp_inwaremx_wfjg_edit_th.srd
  2. release 9;
  3. datawindow ( units=1 timer_interval=0 color=16777215 processing=1 print.orientation=0 print.margin.left=24 print.margin.right=24 print.margin.top=24 print.margin.bottom=24 print.paper.size=0 print.paper.source=0 grid.lines=0 selected.mouse=yes)
  4. header(height=23 color="536870912" )
  5. summary(height=0 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=26 color="536870912" height.autosize=yes)
  8. table(column=(type=decimal(4) updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_qty dbname="ow_wfjgmx_in_aft.qty" )
  9. column=(type=decimal(10) updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_planprice dbname="ow_wfjgmx_in_aft.planprice"
  10. values="planprice /" )
  11. column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit" )
  12. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" )
  13. column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" )
  14. column=(type=char(255) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef_mtrlmode" )
  15. column=(type=char(30) updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_plancode dbname="ow_wfjgmx_in_aft.plancode"
  16. values="批号 /" )
  17. column=(type=long updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_inwareid dbname="ow_wfjgmx_in_aft.inwareid"
  18. values="外协收货单ID /" )
  19. column=(type=decimal(10) updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_jgprice dbname="ow_wfjgmx_in_aft.jgprice" )
  20. column=(type=char(255) updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_mxdscrp dbname="ow_wfjgmx_in_aft.mxdscrp" )
  21. column=(type=char(15) updatewhereclause=yes initial="null" name=u_order_wfjg_taskcode dbname="u_order_wfjg.TaskCode" )
  22. column=(type=long updatewhereclause=yes initial="null" name=ow_wfjgmx_in_aft_printid dbname="ow_wfjgmx_in_aft.printid"
  23. values="序号 /" )
  24. retrieve="SELECT ow_wfjgmx_in_aft.qty,
  25. ow_wfjgmx_in_aft.planprice,
  26. u_mtrldef.unit,
  27. u_mtrldef.mtrlcode,
  28. u_mtrldef.mtrlname,
  29. case len(ltrim(rtrim(ow_wfjgmx_in_aft.status))) when 0 then u_mtrldef.mtrlmode else ow_wfjgmx_in_aft.status end as u_mtrldef_mtrlmode,
  30. ow_wfjgmx_in_aft.plancode,
  31. ow_wfjgmx_in_aft.inwareid,
  32. ow_wfjgmx_in_aft.jgprice,
  33. ow_wfjgmx_in_aft.mxdscrp,
  34. u_order_wfjg.TaskCode,
  35. ow_wfjgmx_in_aft.printid
  36. FROM ow_wfjgmx_in_aft LEFT OUTER JOIN u_order_wfjg ON ow_wfjgmx_in_aft.relid = u_order_wfjg.wfjgid,
  37. u_mtrldef
  38. WHERE ( ow_wfjgmx_in_aft.mtrlid = u_mtrldef.mtrlid ) and
  39. ( ow_wfjgmx_in_aft.inwareid = :arg_inwareid ) and
  40. ( ow_wfjgmx_in_aft.scid = :arg_scid ) and
  41. ( :arg_printrow = :arg_printrow ) and
  42. ( :arg_top = :arg_top )
  43. union all
  44. SELECT TOP :arg_top null, null, null, null, null, null, null,null, null, null, null, 10000
  45. FROM syscolumns
  46. "
  47. arguments=(("arg_scid", number), ("arg_inwareid", number), ("arg_printrow", number), ("arg_top", number))
  48. )
  49. group(level=1 header.height=0 trailer.height=19 by=("aa" ) header.color="536870912" header.pointer="aa" trailer.color="536870912" newpage=yes )
  50. compute(name=aa visible="0" tag="ceiling( getrow() / arg_printrow )" band=background font.charset="0" font.face="Arial" font.family="2" font.height="-12" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" x="487" y="58" height="19" width="24" format="[GENERAL]" expression="ceiling( getrow() / arg_printrow )" alignment="0" border="0" crosstab.repeat=no )
  51. text(name=t_1 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="2" y="4" height="17" width="14" text="序" )
  52. text(name=u_mtrldef_mtrlcode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="18" y="4" height="17" width="78" text="编码" )
  53. text(name=u_mtrldef_mtrlname_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="98" y="4" height="17" width="88" text="品名" )
  54. text(name=ow_wfjgmx_in_aft_qty_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" alignment="2" border="0" x="348" y="4" height="17" width="57" text="数量" )
  55. text(name=t_2 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="467" y="4" height="17" width="75" text="金额" )
  56. text(name=u_mtrldef_unit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="281" y="4" height="17" width="65" text="库存单位" )
  57. text(name=ow_wfjgmx_in_aft_mxdscrp_t visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="544" y="4" height="17" width="93" text="明细备注" )
  58. text(name=ow_wfjgmx_in_aft_jgprice_t visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="407" y="4" height="17" width="58" text="单价" )
  59. text(name=u_order_wfjg_taskcode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="639" y="4" height="17" width="65" text="加工单号" )
  60. text(name=u_mtrldef_mtrlmode_t visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="188" y="4" height="17" width="91" text="规格" )
  61. compute(name=cmpl2 visible="1" tag="getrow()" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="2" y="4" height="20" width="14" format="[general]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no )
  62. column(name=u_mtrldef_mtrlcode visible="1" tag="u_mtrldef_mtrlcode" band=detail id=4 x="18" y="4" height="20" width="78" color="0" border="0" alignment="0" format="[general]" protect="0" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=30 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  63. column(name=u_mtrldef_mtrlname visible="1" tag="u_mtrldef_mtrlname" height.autosize=yes band=detail id=5 x="98" y="4" height="20" width="88" color="0" border="0" alignment="0" format="[general]" protect="0" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=50 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  64. column(name=ow_wfjgmx_in_aft_qty visible="1" tag="ow_wfjgmx_in_aft_qty" band=detail id=1 x="348" y="4" height="20" width="57" color="0" border="0" alignment="1" format="#,##0.####" protect="0" edit.format="#########0.0###" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  65. compute(name=cmpl1 visible="1" tag="ow_wfjgmx_in_aft_jgprice * ow_wfjgmx_in_aft_qty " band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="467" y="4" height="20" width="75" format="#,##0.00" expression="ow_wfjgmx_in_aft_jgprice * ow_wfjgmx_in_aft_qty " alignment="1" border="0" crosstab.repeat=no )
  66. column(name=u_mtrldef_unit visible="1" tag="u_mtrldef_unit" band=detail id=3 x="281" y="4" height="20" width="65" color="0" border="0" alignment="2" format="[general]" protect="0" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  67. column(name=ow_wfjgmx_in_aft_mxdscrp visible="1" tag="ow_wfjgmx_in_aft_mxdscrp" height.autosize=yes band=detail id=10 x="544" y="4" height="20" width="93" color="0" border="0" alignment="2" format="[general]" protect="0" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  68. column(name=ow_wfjgmx_in_aft_jgprice visible="1" tag="ow_wfjgmx_in_aft_jgprice" band=detail id=9 x="407" y="4" height="20" width="58" color="0" border="0" alignment="1" format="#,##0.00########" protect="0" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-11" font.pitch="2" font.weight="400" tabsequence=0 )
  69. column(name=u_order_wfjg_taskcode visible="1" tag="u_order_wfjg_taskcode" band=detail id=11 x="639" y="4" height="20" width="65" color="0" border="0" alignment="0" format="[general]" protect="0" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  70. column(name=u_mtrldef_mtrlmode visible="1" tag="u_mtrldef_mtrlmode" band=detail id=6 x="188" y="4" height="20" width="91" color="0" border="0" alignment="0" format="[general]" protect="0" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="134" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  71. compute(name=compute_1 visible="1" tag="count(u_mtrldef_mtrlname for group 1)" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="98" y="1" height="17" width="88" format="[general]" expression="count(u_mtrldef_mtrlname for group 1)" alignment="2" border="0" crosstab.repeat=no )
  72. text(name=t_3 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="18" y="1" height="17" width="78" text="本页小计" )
  73. compute(name=compute_3 visible="1" tag="sum(ow_wfjgmx_in_aft_qty for group 1)" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="348" y="1" height="17" width="57" format="#,##0.####" expression="sum(ow_wfjgmx_in_aft_qty for group 1)" alignment="1" border="0" crosstab.repeat=no )
  74. compute(name=compute_2 visible="1" tag="sum(ow_wfjgmx_in_aft_jgprice * ow_wfjgmx_in_aft_qty for group 1)" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-11" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="467" y="1" height="17" width="75" format="#,##0.00" expression="sum(ow_wfjgmx_in_aft_jgprice * ow_wfjgmx_in_aft_qty for group 1)" alignment="1" border="0" crosstab.repeat=no )
  75. htmltable()
  76. htmlgen()
  77. export.xml(metadatatype=0 savemetadata=0 )
  78. import.xml()
  79. export.pdf(method=0 )