dw_rp_warepdb_billmx_edit.srd 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. $PBExportHeader$dw_rp_warepdb_billmx_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)
  4. header(height=18 color="536870912" )
  5. summary(height=0 color="536870912" )
  6. footer(height=16 color="536870912" )
  7. detail(height=19 color="536870912" )
  8. table(column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlcode dbname="u_mtrldef.mtrlcode"
  9. values="物料定义表-编码 /" )
  10. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_barcode dbname="u_mtrldef.barcode"
  11. values="物料定义表-条形码 /" )
  12. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_factqty dbname="u_warepdb_billmx.factqty" )
  13. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_factaddqty dbname="u_warepdb_billmx.factaddqty" )
  14. column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_mxdscrp dbname="u_warepdb_billmx.mxdscrp"
  15. values="盘点单明细表-明细备注 /" )
  16. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_mtrlwareid dbname="u_warepdb_billmx.mtrlwareid"
  17. values="盘点单明细表-库存ID /" )
  18. column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_status dbname="u_warepdb_billmx.status" )
  19. column=(type=char(30) updatewhereclause=yes initial="null" name=u_warepdb_billmx_plancode dbname="u_warepdb_billmx.plancode" )
  20. column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_woodcode dbname="u_warepdb_billmx.woodcode"
  21. values="盘点单明细表-配置1 /" )
  22. column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_pcode dbname="u_warepdb_billmx.pcode"
  23. values="盘点单明细表-配置2 /" )
  24. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_mtrlid dbname="u_warepdb_billmx.mtrlid"
  25. values="盘点单明细表-物料ID /" )
  26. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_qty dbname="u_warepdb_billmx.qty" )
  27. column=(type=decimal(5) updatewhereclause=yes initial="null" name=u_warepdb_billmx_addqty dbname="u_warepdb_billmx.addqty"
  28. values="盘点单明细表-库存辅数 /" )
  29. column=(type=char(10) updatewhereclause=yes initial="null" name=u_mtrldef_unit dbname="u_mtrldef.unit"
  30. values="物料定义表-标准库存单位 /" )
  31. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlmode dbname="u_mtrldef.mtrlmode" )
  32. column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlname dbname="u_mtrldef.mtrlname"
  33. values="物料定义表-品名 /" )
  34. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_scid dbname="u_warepdb_billmx.scid"
  35. values="盘点单明细表-分部ID /" )
  36. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_sptid dbname="u_warepdb_billmx.Sptid"
  37. values="盘点单明细表-客户ID /" )
  38. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_dxflag dbname="u_warepdb_billmx.Dxflag"
  39. values="盘点单明细表-代销标记 /" )
  40. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrltype dbname="u_mtrldef.mtrltype"
  41. values="物料定义表-类别 /" )
  42. column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_warepdb_billmx_wareamt dbname="u_warepdb_billmx.wareamt" )
  43. column=(type=decimal(10) updatewhereclause=yes initial="null" name=u_warepdb_billmx_cost dbname="u_warepdb_billmx.cost"
  44. values="盘点单明细表-库存成本价 /" )
  45. column=(type=char(50) updatewhereclause=yes initial="null" name=sptname dbname="sptname"
  46. values="Sptname /" )
  47. column=(type=char(20) updatewhereclause=yes initial="null" name=sptcode dbname="sptcode"
  48. values="Sptcode /" )
  49. column=(type=char(30) updatewhereclause=yes initial="null" name=u_mtrldef_mtrlsectype dbname="u_mtrldef.mtrlsectype"
  50. values="物料定义表-自定义1 /" )
  51. column=(type=char(50) updatewhereclause=yes initial="null" name=u_mtrldef_zxmtrlmode dbname="u_mtrldef.zxmtrlmode"
  52. values="物料定义表-自定义2 /" )
  53. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_billid dbname="u_warepdb_billmx.billid"
  54. values="盘点单明细表-单据ID /" )
  55. column=(type=long updatewhereclause=yes initial="null" name=u_warepdb_billmx_printid dbname="u_warepdb_billmx.printid"
  56. values="盘点单明细表-序号 /" )
  57. column=(type=char(255) updatewhereclause=yes initial="null" name=u_warepdb_billmx_waredscrp dbname="u_warepdb_billmx.waredscrp"
  58. values="U Warepdb Billmx
  59. Waredscrp /" )
  60. column=(type=datetime updatewhereclause=yes initial="null" name=u_mtrlware_inworkdate dbname="u_mtrlware.inworkdate"
  61. values="U Mtrlware
  62. Inworkdate /" )
  63. retrieve="SELECT u_mtrldef.mtrlcode,
  64. u_mtrldef.barcode,
  65. u_warepdb_billmx.factqty,
  66. u_warepdb_billmx.factaddqty,
  67. u_warepdb_billmx.mxdscrp,
  68. u_warepdb_billmx.mtrlwareid,
  69. u_warepdb_billmx.status,
  70. u_warepdb_billmx.plancode,
  71. u_warepdb_billmx.woodcode,
  72. u_warepdb_billmx.pcode,
  73. u_warepdb_billmx.mtrlid,
  74. u_warepdb_billmx.qty,
  75. u_warepdb_billmx.addqty,
  76. u_mtrldef.unit,
  77. u_mtrldef.mtrlmode,
  78. u_mtrldef.mtrlname,
  79. u_warepdb_billmx.scid,
  80. u_warepdb_billmx.Sptid,
  81. u_warepdb_billmx.Dxflag,
  82. u_mtrldef.mtrltype,
  83. u_warepdb_billmx.wareamt,
  84. u_warepdb_billmx.cost,
  85. IsNull(u_cust.Name,'') as sptname ,
  86. IsNull(u_cust.cuscode,'') as sptcode ,
  87. u_mtrldef.mtrlsectype,
  88. u_mtrldef.zxmtrlmode,
  89. u_warepdb_billmx.billid,
  90. u_warepdb_billmx.printid,
  91. case when u_mtrlware.waredscrp is null then '' else u_mtrlware.waredscrp end as waredscrp,
  92. u_mtrlware.inworkdate
  93. FROM u_warepdb_billmx Inner JOIN
  94. u_mtrldef ON u_warepdb_billmx.mtrlid = u_mtrldef.mtrlid left outer join
  95. u_cust ON u_warepdb_billmx.Sptid = u_cust.cusid
  96. LEFT OUTER JOIN
  97. u_mtrlware ON
  98. u_warepdb_billmx.MtrlWareID = u_mtrlware.mtrlwareid
  99. WHERE ( u_mtrldef.mtrlid = u_warepdb_billmx.mtrlid ) and
  100. ( ( u_warepdb_billmx.billid = :arg_billid) AND
  101. ( u_warepdb_billmx.scid = :arg_scid ) )
  102. "
  103. arguments=(("arg_scid", number), ("arg_billid", number))
  104. )
  105. text(name=u_mtrldef_mtrlname_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="106" y="2" height="14" width="114" text="品名" )
  106. text(name=u_mtrldef_unit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="222" y="2" height="14" width="53" text="库存单位" )
  107. text(name=u_mtrldef_mtrlcode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="18" y="2" height="14" width="86" text="编码" )
  108. text(name=u_mtrldef_mtrlmode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="277" y="2" height="14" width="77" text="规格" )
  109. text(name=u_warepdb_billmx_wareamt_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="668" y="2" height="14" width="65" text="库存金额" )
  110. text(name=pypkqty_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="536" y="2" height="14" width="71" text="盈亏数量" )
  111. text(name=u_warepdb_billmx_qty_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="356" y="2" height="14" width="88" text="库存数量" )
  112. text(name=t_2 visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="2" y="2" height="14" width="14" text="序" )
  113. text(name=u_warepdb_billmx_factqty_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="446" y="2" height="14" width="88" text="盘点数量" )
  114. text(name=u_warepdb_billmx_factaddqty_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="609" y="2" height="14" width="57" text="盘点辅数" )
  115. compute(name=compute_1 visible="1" tag="count( u_mtrldef_mtrlcode for all )" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="2" background.color="16777215" color="0" x="18" y="1" height="14" width="86" format="[general]" expression="count( u_mtrldef_mtrlcode for all )" alignment="2" border="0" crosstab.repeat=no )
  116. compute(name=compute_2 visible="1" tag="sum(u_warepdb_billmx_qty)" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="356" y="1" height="14" width="88" format="##,##0.#####" expression="sum(u_warepdb_billmx_qty)" alignment="1" border="0" crosstab.repeat=no )
  117. compute(name=compute_3 visible="1" tag="sum(u_warepdb_billmx_factqty)" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="446" y="1" height="14" width="88" format="##,##0.#####" expression="sum(u_warepdb_billmx_factqty)" alignment="1" border="0" crosstab.repeat=no )
  118. compute(name=compute_5 visible="1" tag="sum(u_warepdb_billmx_factaddqty)" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="609" y="1" height="14" width="57" format="##,##0.#####" expression="sum(u_warepdb_billmx_factaddqty)" alignment="1" border="0" crosstab.repeat=no )
  119. compute(name=compute_6 visible="1" tag="sum(u_warepdb_billmx_wareamt)" band=footer font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="668" y="1" height="14" width="65" format="##,##0.00#####" expression="sum(u_warepdb_billmx_wareamt)" alignment="1" border="0" crosstab.repeat=no )
  120. column(name=u_warepdb_billmx_wareamt visible="1" tag="u_warepdb_billmx_wareamt" band=detail id=21 x="668" y="1" height="17" width="65" color="0" border="0" alignment="1" format="##,##0.00#####" protect="0" edit.format="##,##0.00#####" 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="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  121. column(name=u_mtrldef_mtrlname visible="1" tag="u_mtrldef_mtrlname" band=detail id=4 x="106" y="1" height="17" width="114" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  122. column(name=u_mtrldef_unit visible="1" tag="u_mtrldef_unit" band=detail id=7 x="222" y="1" height="17" width="53" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  123. column(name=u_mtrldef_mtrlcode visible="1" tag="u_mtrldef_mtrlcode" band=detail id=8 x="18" y="1" height="17" width="86" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  124. column(name=u_mtrldef_mtrlmode visible="1" tag="u_mtrldef_mtrlmode" band=detail id=15 x="277" y="1" 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  125. compute(name=printid visible="1" tag="getrow()" band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="2" y="1" height="17" width="14" format="[general]" expression="getrow()" alignment="2" border="0" crosstab.repeat=no )
  126. column(name=u_warepdb_billmx_qty visible="1" tag="u_warepdb_billmx_qty" band=detail id=12 x="356" y="1" height="17" width="88" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.format="##,##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="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  127. column(name=u_warepdb_billmx_factqty visible="1" tag="u_warepdb_billmx_factqty" band=detail id=3 x="446" y="1" height="17" width="88" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.format="##,##0.#####" edit.focusrectangle=no 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  128. column(name=u_warepdb_billmx_factaddqty visible="1" tag="u_warepdb_billmx_factaddqty" band=detail id=4 x="609" y="1" height="17" width="57" color="0" border="0" alignment="1" format="##,##0.#####" protect="0" edit.format="##,##0.#####" edit.focusrectangle=no 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="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  129. compute(name=pypkqty visible="1" tag=" u_warepdb_billmx_factqty - u_warepdb_billmx_qty " band=detail font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" x="536" y="1" height="17" width="71" format="##,##0.#####" expression=" u_warepdb_billmx_factqty - u_warepdb_billmx_qty " alignment="1" border="0" crosstab.repeat=no )
  130. htmltable()
  131. htmlgen()
  132. export.xml(metadatatype=0 savemetadata=0 )
  133. import.xml()
  134. export.pdf(method=0 )