dw_rp_outwaremovemx_edit.srd 15 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. $PBExportHeader$dw_rp_outwaremovemx_edit.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=no row.resize=1)
  4. header(height=18 color="536870912" )
  5. summary(height=17 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=26 color="536870912" )
  8. table(column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" )
  9. column=(type=decimal(4) updatewhereclause=yes initial="null" name=u_outwaremovemx_qty dbname="u_OutWaremoveMx.Qty" )
  10. column=(type=char(255) updatewhereclause=yes initial="null" name=u_outwaremovemx_mxdscrp dbname="u_OutWaremoveMx.Mxdscrp" )
  11. column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" )
  12. column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit" )
  13. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype" )
  14. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_outwareid dbname="u_OutWaremoveMx.outWareID"
  15. values="调拨单ID /" )
  16. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_mtrlwareid dbname="u_OutWaremoveMx.MtrlWareID"
  17. values="库存ID /" )
  18. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_mtrlid dbname="u_OutWaremoveMx.MtrlID"
  19. values="物料ID /" )
  20. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_storageid dbname="u_OutWaremoveMx.StorageID"
  21. values="仓库ID /" )
  22. column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_outwaremovemx_cost dbname="u_OutWaremoveMx.Cost"
  23. values="Cost /" )
  24. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_printid dbname="u_OutWaremoveMx.Printid"
  25. values="序号 /" )
  26. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" )
  27. column=(type=long updatewhereclause=yes initial="null" name=u_outwaremovemx_scid dbname="u_OutWaremoveMx.scid"
  28. values="分部ID /" )
  29. column=(type=char(30) updatewhereclause=yes initial="null" name=u_outwaremovemx_plancode dbname="u_OutWaremoveMx.plancode"
  30. values="批号 /" )
  31. column=(type=char(255) updatewhereclause=yes initial="null" name=u_outwaremovemx_status dbname="u_OutWaremoveMx.status" )
  32. column=(type=decimal(14) updatewhereclause=yes initial="null" name=amt dbname="amt"
  33. values="Amt /" )
  34. retrieve="SELECT u_mtrldef.mtrlcode,
  35. u_OutWaremoveMx.Qty,
  36. u_OutWaremoveMx.Mxdscrp,
  37. u_mtrldef.mtrlname,
  38. u_mtrldef.unit,
  39. u_mtrldef.mtrltype,
  40. u_OutWaremoveMx.outWareID,
  41. u_OutWaremoveMx.MtrlWareID,
  42. u_OutWaremoveMx.MtrlID,
  43. u_OutWaremoveMx.StorageID,
  44. u_OutWaremoveMx.Cost,
  45. u_OutWaremoveMx.Printid,
  46. u_mtrldef.mtrlmode,
  47. u_OutWaremoveMx.scid,
  48. u_OutWaremoveMx.plancode,
  49. u_OutWaremoveMx.status ,
  50. round( u_OutWaremoveMx.Qty * u_OutWaremoveMx.Cost ,2) as amt
  51. FROM u_mtrldef,
  52. u_OutWaremoveMx
  53. WHERE ( u_mtrldef.mtrlid = u_OutWaremoveMx.MtrlID ) and
  54. ( u_outwaremovemx.outwareid = :arg_outwareid )
  55. union all
  56. SELECT TOP :arg_top null, null, null, null, null, null, null, null, null, null, null,10000,
  57. null, null, null, null, null
  58. FROM syscolumns"
  59. arguments=(("arg_outwareid", number), ("arg_printrow", number), ("arg_top", number))
  60. )
  61. group(level=1 header.height=0 trailer.height=18 by=("aa" ) header.color="536870912" header.pointer="aa" trailer.color="536870912" )
  62. text(name=u_mtrldef_mtrlcode_t visible="1" band=header 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" alignment="2" border="0" x="17" y="2" height="15" width="65" text="物料编码" )
  63. text(name=t_1 visible="1" band=header 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" alignment="2" border="0" x="2" y="2" height="15" width="13" text="序" )
  64. text(name=u_mtrldef_mtrlname_t visible="1" band=header 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" alignment="2" border="0" x="84" y="2" height="15" width="92" text="物料名称" )
  65. text(name=u_mtrldef_unit_t visible="1" band=header 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" alignment="2" border="0" x="438" y="2" height="15" width="25" text="单位" )
  66. text(name=u_mtrldef_mtrltype_t visible="1" band=header 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" alignment="2" border="0" x="350" y="2" height="15" width="86" text="物料类型" )
  67. text(name=u_mtrldef_mtrlmode_t visible="1" band=header 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" alignment="2" border="0" x="178" y="2" height="15" width="77" text="物料规格" )
  68. text(name=u_outwaremovemx_qty_t visible="1" band=header 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" alignment="2" border="0" x="465" y="2" height="15" width="79" text="数量" )
  69. text(name=u_outwaremovemx_mxdscrp_t visible="1" band=header 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" alignment="2" border="0" x="546" y="2" height="15" width="97" text="明细备注" )
  70. text(name=u_outwaremovemx_status_t visible="1" band=header 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" alignment="2" border="0" x="257" y="2" height="15" width="91" text="颜色" )
  71. compute(name=compute_1 visible="1" tag="count(u_mtrldef_mtrlname for all)" band=summary 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="84" y="1" height="15" width="92" format="[general]" expression="count(u_mtrldef_mtrlname for all)" alignment="0" border="0" crosstab.repeat=no )
  72. compute(name=compute_2 visible="1" tag="sum(u_outwaremovemx_qty for all)" band=summary 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="465" y="1" height="15" width="79" format="#,##0.####" expression="sum(u_outwaremovemx_qty for all)" alignment="1" border="0" crosstab.repeat=no )
  73. text(name=t_2 visible="1" band=summary 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" alignment="2" border="0" x="17" y="1" height="15" width="65" text="合计" )
  74. compute(name=pid visible="1" tag="getrow()" 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="2" y="5" height="17" width="13" format="[general]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no )
  75. column(name=u_mtrldef_unit visible="1" tag="u_mtrldef_unit" band=detail id=5 x="438" y="5" height="17" width="25" color="0" border="0" alignment="2" 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=10 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 )
  76. column(name=u_mtrldef_mtrlcode visible="1" tag="u_mtrldef_mtrlcode" band=detail id=1 x="17" y="5" height="17" width="65" 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 )
  77. column(name=u_outwaremovemx_qty visible="1" tag="u_outwaremovemx_qty" band=detail id=2 x="465" y="5" height="17" width="79" color="0" border="0" alignment="1" format="#,##0.####" protect="0" edit.format="#,##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 )
  78. column(name=u_outwaremovemx_mxdscrp visible="1" tag="u_outwaremovemx_mxdscrp" height.autosize=yes band=detail id=3 x="546" y="5" height="17" width="97" 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 )
  79. column(name=u_mtrldef_mtrltype visible="1" tag="u_mtrldef_mtrltype" height.autosize=yes band=detail id=6 x="350" y="5" height="17" width="86" 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 )
  80. compute(name=aa visible="0" tag="ceiling( getrow() / arg_printrow )" band=detail font.charset="0" font.face="Arial" font.family="2" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" x="645" y="5" height="19" width="55" format="[GENERAL]" expression="ceiling( getrow() / arg_printrow )" alignment="0" border="0" crosstab.repeat=no )
  81. column(name=u_mtrldef_mtrlname visible="1" tag="u_mtrldef_mtrlname" height.autosize=yes band=detail id=4 x="84" y="5" height="17" width="92" 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="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  82. column(name=u_mtrldef_mtrlmode visible="1" tag="u_mtrldef_mtrlmode" height.autosize=yes band=detail id=13 x="178" y="5" height="17" width="77" 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 )
  83. column(name=u_outwaremovemx_status visible="1" tag="u_outwaremovemx_status" height.autosize=yes band=detail id=16 x="257" y="5" height="17" 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 )
  84. text(name=t_3 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="17" y="2" height="15" width="65" text="本页小计" )
  85. compute(name=compute_3 visible="1" tag="count( u_mtrldef_mtrlname for group 1 )" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" x="84" y="1" height="16" width="92" format="[GENERAL]" expression="count( u_mtrldef_mtrlname for group 1 )" alignment="0" border="0" crosstab.repeat=no )
  86. compute(name=compute_4 visible="1" tag="sum( u_outwaremovemx_qty for group 1 )" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" x="465" y="1" height="16" width="79" format="#,##0.####" expression="sum( u_outwaremovemx_qty for group 1 )" alignment="1" border="0" crosstab.repeat=no )
  87. htmltable()
  88. htmlgen()
  89. export.xml(metadatatype=0 savemetadata=0 )
  90. import.xml()
  91. export.pdf(method=0 )