dw_rp_saletaskmx_print_sc.srd 13 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. $PBExportHeader$dw_rp_saletaskmx_print_sc.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=18 color="536870912" )
  5. summary(height=18 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=25 color="536870912" height.autosize=yes)
  8. table(column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_saletaskmx_orderqty dbname="u_SaleTaskMx.orderqty" )
  9. column=(type=char(255) updatewhereclause=yes initial="null" name=u_saletaskmx_mxdscrp dbname="u_SaleTaskMx.mxdscrp" )
  10. column=(type=long updatewhereclause=yes initial="null" name=u_saletaskmx_taskid dbname="u_SaleTaskMx.TaskID"
  11. values="销售订单ID /" )
  12. column=(type=long updatewhereclause=yes initial="null" name=u_saletaskmx_mtrlid dbname="u_SaleTaskMx.MtrlID"
  13. values="物料ID /" )
  14. column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname" )
  15. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" )
  16. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_saletaskmx_assignqty dbname="u_SaleTaskMx.assignQty"
  17. values="已排产数量 /" )
  18. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode" )
  19. column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_saletaskmx_price dbname="u_SaleTaskMx.Price"
  20. values="实际单价 /" )
  21. column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit" )
  22. column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_saletaskmx_fprice dbname="u_SaleTaskMx.fprice"
  23. values="人民币单价 /" )
  24. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_saletaskmx_rebate dbname="u_SaleTaskMx.rebate"
  25. values="折扣 /" )
  26. column=(type=long updatewhereclause=yes initial="null" name=u_saletaskmx_printid dbname="u_SaleTaskMx.printid"
  27. values="序号 /" )
  28. column=(type=char(255) updatewhereclause=yes initial="null" name=u_saletaskmx_status dbname="u_SaleTaskMx.status" )
  29. retrieve="SELECT u_saletaskmx.orderqty,
  30. u_SaleTaskMx.mxdscrp,
  31. u_SaleTaskMx.TaskID,
  32. u_SaleTaskMx.MtrlID,
  33. u_mtrldef.mtrlname as mtrlname,
  34. u_mtrldef.mtrlmode,
  35. u_SaleTaskMx.assignQty,
  36. u_mtrldef.mtrlcode,
  37. u_SaleTaskMx.Price,
  38. u_mtrldef.unit,
  39. u_SaleTaskMx.fprice,
  40. u_SaleTaskMx.rebate,
  41. u_SaleTaskMx.printid ,
  42. u_SaleTaskMx.status
  43. FROM u_SaleTaskMx,
  44. u_mtrldef
  45. WHERE ( u_SaleTaskMx.MtrlID = u_mtrldef.mtrlid ) and
  46. ( u_SaleTaskMx.TaskID = :taskid ) and
  47. ( u_SaleTaskMx.scid = :arg_scid ) and
  48. ( :arg_printrow = :arg_printrow ) and
  49. ( :arg_top = :arg_top )
  50. union all
  51. SELECT TOP :arg_top null, null, null, null, null, null, null, null, null, null, null,null, 10000, null
  52. FROM syscolumns
  53. "
  54. arguments=(("arg_scid", number), ("taskid", number), ("arg_printrow", number), ("arg_top", number))
  55. )
  56. group(level=1 header.height=0 trailer.height=17 by=("aa" ) header.color="536870912" header.pointer="aa" trailer.color="536870912" newpage=yes )
  57. compute(name=aa visible="1 if(0=0,0,1)" 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="1342" y="50" height="19" width="55" format="[GENERAL]" expression="ceiling( getrow() / arg_printrow )" alignment="0" border="0" crosstab.repeat=no )
  58. 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="序" )
  59. 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="129" text="编码" )
  60. text(name=t_2 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="148" y="2" height="15" width="120" text="品名" )
  61. 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="452" y="2" height="15" width="66" text="库存单位" )
  62. text(name=u_mtrldef_mtrlmode_t visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="270" y="2" height="15" width="89" text="规格" )
  63. text(name=u_saletaskmx_status_t visible="1" band=header font.charset="0" font.face="宋体" font.family="2" font.height="-10" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="361" y="2" height="15" width="89" text="颜色" )
  64. text(name=u_saletaskmx_orderqty_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="520" y="2" height="15" width="72" text="排产数" )
  65. text(name=u_saletaskmx_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="594" y="2" height="15" width="115" text="明细备注" )
  66. compute(name=compute_3 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="700" background.mode="2" background.color="16777215" color="0" x="148" y="1" height="16" width="120" format="[general]" expression="count(u_mtrldef_mtrlname for all)" alignment="2" border="0" crosstab.repeat=no )
  67. text(name=t_5 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="17" y="1" height="16" width="129" text="合计:" )
  68. compute(name=compute_2 visible="1" tag="sum( u_saletaskmx_orderqty 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="1073741824" color="33554432" x="520" y="1" height="15" width="72" format="##,##0.#####" expression="sum( u_saletaskmx_orderqty for all)" alignment="1" border="0" crosstab.repeat=no )
  69. compute(name=cmpl1 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="13" format="[general]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no )
  70. column(name=u_mtrldef_mtrlname visible="1" tag="u_mtrldef_mtrlname" band=detail id=5 x="148" y="4" height="20" width="120" 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=yes 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="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=10 )
  71. column(name=u_mtrldef_unit visible="1" tag="u_mtrldef_unit" band=detail id=10 x="452" y="4" height="20" width="66" 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="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=0 )
  72. column(name=u_mtrldef_mtrlcode visible="1" tag="u_mtrldef_mtrlcode" band=detail id=8 x="17" y="4" height="20" width="129" 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="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  73. column(name=u_mtrldef_mtrlmode visible="1" tag="u_mtrldef_mtrlmode" band=detail id=6 x="270" y="4" height="20" width="89" 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="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=20 )
  74. column(name=u_saletaskmx_status visible="1" tag="u_saletaskmx_status" band=detail id=14 x="361" y="4" height="20" width="89" 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="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=30 )
  75. column(name=u_saletaskmx_mxdscrp visible="1" tag="u_saletaskmx_mxdscrp" height.autosize=yes band=detail id=2 x="594" y="4" height="20" width="115" 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="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=50 )
  76. column(name=u_saletaskmx_orderqty visible="1" tag="u_saletaskmx_orderqty" band=detail id=1 x="520" y="4" height="20" width="72" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.focusrectangle=no edit.autohscroll=no edit.autoselect=no 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="0" font.height="-10" font.pitch="2" font.weight="400" tabsequence=40 )
  77. compute(name=compute_6 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="700" background.mode="2" background.color="16777215" color="0" x="148" y="1" height="15" width="120" format="[general]" expression="count(u_mtrldef_mtrlname for group 1)" alignment="2" border="0" crosstab.repeat=no )
  78. text(name=t_7 visible="1" band=trailer.1 font.charset="134" font.face="宋体" font.family="0" font.height="-10" font.pitch="2" font.weight="700" background.mode="2" background.color="1073741824" color="33554432" alignment="2" border="0" x="17" y="1" height="15" width="129" text="本页小计" )
  79. compute(name=compute_1 visible="1" tag="sum( u_saletaskmx_orderqty 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="520" y="1" height="15" width="72" format="##,##0.#####" expression="sum( u_saletaskmx_orderqty for group 1)" alignment="1" border="0" crosstab.repeat=no )
  80. htmltable()
  81. htmlgen()
  82. export.xml(metadatatype=0 savemetadata=0 )
  83. import.xml()
  84. export.pdf(method=0 )