dw_getmater_query_bygood_total.srd

来自「delphi编写的ERP原代码事例2,供广大初学者学习参考!」· SRD 代码 · 共 83 行

SRD
83
字号
$PBExportHeader$dw_getmater_query_bygood_total.srd
$PBExportComments$领料汇总(按品种)
release 9;
datawindow ( units=0 timer_interval=0 color=79741120 processing=1 print.documentname=""  print.orientation=0 print.margin.left=110 print.margin.right=110 print.margin.top=96 print.margin.bottom=96 print.paper.size=0 print.paper.source=0 grid.lines=0 selected.mouse=yes)
header(height=72 color="536870912" )
summary(height=80 color="536870912" )
footer(height=0 color="536870912" )
detail(height=100 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=getmaterdetail_gm_no dbname="getmaterdetail.gm_no" )
 column=(type=char(12) updatewhereclause=yes name=getmaterdetail_goo_code dbname="getmaterdetail.goo_code" )
 column=(type=decimal(4) updatewhereclause=yes name=quanty dbname="quanty" )
 column=(type=datetime updatewhereclause=yes name=getmatermain_gm_date dbname="getmatermain.gm_date" )
 column=(type=char(10) updatewhereclause=yes name=getmatermain_cus_code dbname="getmatermain.cus_code" )
 column=(type=char(8) updatewhereclause=yes name=getmatermain_human dbname="getmatermain.human" )
 column=(type=char(80) updatewhereclause=yes name=goodsno_goo_name dbname="goodsno.goo_name" )
 column=(type=char(10) updatewhereclause=yes name=goodsno_goo_unit dbname="goodsno.goo_unit" )
 column=(type=char(10) updatewhereclause=yes name=goodsno_goo_type dbname="goodsno.goo_type" )
 column=(type=decimal(3) updatewhereclause=yes name=goodsno_goo_price dbname="goodsno.goo_price" )
 column=(type=char(20) updatewhereclause=yes name=goodsno_spec dbname="goodsno.spec" )
 column=(type=char(30) updatewhereclause=yes name=goodsno_goo_no dbname="goodsno.goo_no" )
 column=(type=char(4) updatewhereclause=yes name=goodsno_goo_mate dbname="goodsno.goo_mate" )
 column=(type=char(20) updatewhereclause=yes name=goodsno_content dbname="goodsno.content" )
 column=(type=char(30) updatewhereclause=yes name=shop_sho_name dbname="shop.sho_name" )
 retrieve="  SELECT getmaterdetail.gm_no,   
         getmaterdetail.goo_code,   
         sum(getmaterdetail.quanty) as quanty,   
         getmatermain.gm_date,   
         getmatermain.cus_code,   
         getmatermain.human,   
         goodsno.goo_name,   
         goodsno.goo_unit,   
         goodsno.goo_type,   
         goodsno.goo_price,   
         goodsno.spec,   
         goodsno.goo_no,   
         goodsno.goo_mate,   
         goodsno.content,
         shop.sho_name 
    FROM getmaterdetail,   
         getmatermain,   
         goodsno,
         shop  
   WHERE ( getmaterdetail.gm_no = getmatermain.gm_no ) and  
         ( getmaterdetail.goo_code = goodsno.goo_code )    and
           getmatermain.cus_code = shop.sho_code
group by getmaterdetail.gm_no,   
         getmaterdetail.goo_code, 
         getmatermain.gm_date,   
         getmatermain.cus_code,   
         getmatermain.human,   
         goodsno.goo_name,   
         goodsno.goo_unit,   
         goodsno.goo_type,   
         goodsno.goo_price,   
         goodsno.spec,   
         goodsno.goo_no,   
         goodsno.goo_mate,   
         goodsno.content,
         shop.sho_name "
 )
text(name=goodsno_goo_no_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="9" y="8" height="64" width="425" text="品种编码" )
text(name=goodsno_goo_name_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="443" y="8" height="64" width="695" text="品种名称" )
text(name=goodsno_content_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="1147" y="8" height="64" width="640" text="净含量" )
text(name=goodsno_spec_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="1797" y="8" height="64" width="169" text="规格" )
text(name=getmaterdetail_quanty_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="1975" y="8" height="64" width="325" text="数量" )
text(name=getmatermain_gm_date_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="2309" y="8" height="64" width="389" text="领料日期" )
text(name=getmaterdetail_gm_no_t band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="2706" y="8" height="64" width="375" text="单号" )
text(name=t_1 band=header font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="0" alignment="2" border="6" x="3090" y="8" height="64" width="453" text="部门" )
compute(name=compute_1 band=summary font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="16711680" x="1975" y="0" height="76" width="325" format="###,###,##0.##" expression="sum(quanty for all)" alignment="1" border="0" crosstab.repeat=no )
compute(name=compute_2 band=summary font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="79741120" color="16711680" x="9" y="8" height="60" width="425" format="[GENERAL]" expression="~"合计~"+rowcount()+~"条记录~"" alignment="0" border="0" crosstab.repeat=no )
column(name=gm_no band=detail id=1 x="2706" y="4" height="92" width="375" color="0" border="0" alignment="0" format="[general]" 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=quanty band=detail id=3 x="1975" y="4" height="92" width="325" color="0" border="0" alignment="1" format="###,###,##0.##" editmask.focusrectangle=no editmask.autoskip=no editmask.required=no editmask.readonly=no editmask.codetable=no editmask.spin=no editmask.mask="###,###,##0.##" editmask.imemode=0 criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="2" background.color="16777215" font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=gm_date tag="领料日期" band=detail id=4 x="2309" y="4" height="92" width="389" color="0" border="0" alignment="0" format="yyyy-mm-dd" 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="2" background.color="16777215" font.charset="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=goo_name tag="品种名称" band=detail id=7 x="443" y="4" height="92" width="695" color="0" border="0" alignment="0" format="[general]" 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=80 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=spec band=detail id=11 x="1797" y="4" height="92" width="169" color="0" border="0" alignment="0" format="[general]" 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=20 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=goo_no tag="品种编码" band=detail id=12 x="9" y="4" height="92" width="425" color="0" border="0" alignment="0" format="[general]" 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=content band=detail id=14 x="1147" y="4" height="92" width="640" color="0" border="0" alignment="0" format="[general]" 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=20 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
column(name=sho_name band=detail id=15 x="3090" y="4" height="92" width="453" color="0" border="0" alignment="0" format="[general]" 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="0" font.face="Arial" font.family="2" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
htmltable(border="1" )
htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" )
export.xml(metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?