dw_rp_jg_spt.srd 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $PBExportHeader$dw_rp_jg_spt.srd
  2. release 9;
  3. datawindow(units=0 timer_interval=60000 color=16777215 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 2 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 row.resize=1 grid.lines=0 )
  4. header(height=284 color="536870912" )
  5. summary(height=76 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=84 color="536870912" )
  8. table(column=(type=char(20) updatewhereclause=yes name=u_spt_sptcode dbname="u_spt.sptcode" )
  9. column=(type=char(50) updatewhereclause=yes name=u_spt_name dbname="u_spt.name" )
  10. column=(type=decimal(6) updatewhereclause=yes name=amt dbname="amt" )
  11. retrieve="SELECT u_spt.sptcode,
  12. u_spt.name,
  13. sum(round(ow_wfjgmx_in_aft.uqty * ow_wfjgmx_in_aft.jgprice * ow_wfjgmx_in_aft.rebate,2)) as amt
  14. FROM u_spt,
  15. ow_wfjg_in,
  16. ow_wfjgmx_in_aft
  17. WHERE ( u_spt.sptid = ow_wfjg_in.sptid ) AND
  18. ( ow_wfjg_in.inwareid = ow_wfjgmx_in_aft.inwareid ) AND
  19. ( ow_wfjg_in.scid = ow_wfjgmx_in_aft.scid ) AND
  20. ( ow_wfjg_in.flag = :arg_flag OR :arg_flag = -1 ) AND
  21. ( ow_wfjg_in.secflag = :arg_secflag OR :arg_secflag = -1 ) AND
  22. ( ow_wfjgmx_in_aft.storageid in (:arg_storageid) ) AND
  23. ( ow_wfjg_in.billtype = 4 ) AND
  24. ( ow_wfjg_in.indate >= :arg_firstdate) AND
  25. ( ow_wfjg_in.indate <= :arg_enddate) and
  26. ( u_spt.spttypeid in (:arg_spttypeid))
  27. GROUP BY u_spt.sptcode,u_spt.name
  28. HAVING sum(ow_wfjgmx_in_aft.qty * ow_wfjgmx_in_aft.jgprice) > 0
  29. " arguments=(("arg_firstdate", datetime),("arg_enddate", datetime),("arg_flag", number),("arg_storageid", numberlist),("arg_secflag", number),("arg_spttypeid", numberlist)) sort="amt D " )
  30. text(band=header alignment="2" text="加工金额" border="2" color="0" x="1920" y="216" height="68" width="658" html.valueishtml="0" name=amt_t visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" )
  31. text(band=header alignment="2" text="外协商编号" border="2" color="0" x="9" y="216" height="68" width="539" html.valueishtml="0" name=u_spt_sptcode_t visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="33554431" )
  32. text(band=header alignment="2" text="外协商名称" border="2" color="0" x="558" y="216" height="68" width="1353" html.valueishtml="0" name=u_spt_name_t visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="33554431" )
  33. column(band=detail id=3 alignment="1" tabsequence=32766 border="0" color="0" x="1920" y="4" height="76" width="658" format="#,##0.00" html.valueishtml="0" name=amt visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" )
  34. column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="4" height="76" width="539" format="[general]" html.valueishtml="0" name=u_spt_sptcode visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" )
  35. column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="558" y="4" height="76" width="1353" format="[general]" html.valueishtml="0" name=u_spt_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" )
  36. compute(band=summary alignment="1" expression="sum(amt for all)"border="0" color="0" x="1920" y="4" height="68" width="658" format="#,##0.00" html.valueishtml="0" name=compute_1 visible="1" font.face="宋体" font.height="-11" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" )
  37. text(band=foreground alignment="0" text="" border="0" color="0" x="0" y="0" height="212" width="2624" html.valueishtml="0" name=t_1 visible="1" resizeable=1 font.face="宋体" font.height="-20" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="33554431" )
  38. text(band=foreground alignment="0" text="外协商加工金额汇总表" border="0" color="0" x="14" y="8" height="124" width="2053" html.valueishtml="0" name=t_2 visible="1" moveable=1 font.face="宋体" font.height="-20" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="33554431" )
  39. compute(band=foreground alignment="0" expression="'日期范围: '+string( arg_firstdate ,'yyyy-mm-dd')+' 到 '+string( arg_enddate ,'yyyy-mm-dd')+' 打印日期: '+string(today(),'yyyy-mm-dd')+' 共 '+string(pageCount())+' 页 第 ' + string(page()) + ' 页'"border="0" color="0" x="14" y="148" height="56" width="2395" 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="1" background.color="553648127" )
  40. htmltable(border="1" )
  41. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
  42. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  43. import.xml()
  44. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )