123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- $PBExportHeader$dw_rp_dqtaskmx_3_mx.srd
- release 9;
- datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
- header(height=72 color="536870912" )
- summary(height=64 color="536870912" )
- footer(height=0 color="536870912" )
- detail(height=84 color="536870912" height.autosize=yes)
- table(column=(type=char(18) updatewhereclause=yes name=u_sc_taskwork_billcode dbname="Billcode" )
- column=(type=datetime updatewhereclause=yes name=u_sc_abnormity_billdate dbname="u_sc_abnormity.Billdate" )
- column=(type=char(50) updatewhereclause=yes name=u_sc_abnormitymx_relcode dbname="u_sc_abnormitymx.relcode" )
- column=(type=char(255) updatewhereclause=yes name=dscrp dbname="u_sc_abnormity.dscrp" )
- column=(type=decimal(10) updatewhereclause=yes name=u_sc_abnormitymx_amount dbname="u_sc_abnormitymx.Amount" )
- column=(type=decimal(10) updatewhereclause=yes name=u_sc_abnormitymx_workprice dbname="u_sc_abnormitymx.Workprice" )
- column=(type=decimal(11) updatewhereclause=yes name=amt dbname="amt" )
- column=(type=long updatewhereclause=yes name=wagetype dbname="wagetype" )
- column=(type=char(30) updatewhereclause=yes name=u_sc_workprocedure_code dbname="u_sc_workprocedure.code" )
- column=(type=char(50) updatewhereclause=yes name=u_sc_workprocedure_name dbname="u_sc_workprocedure.name" )
- retrieve="
- SELECT right(ltrim(rtrim(u_sc_abnormity.Billcode)),9) as Billcode,
- u_sc_abnormity.Billdate as Billdate,
- u_sc_abnormitymx.relcode as relcode,
- mxdscrp as dscrp,
- u_sc_abnormitymx.Amount as Amount,
- u_sc_abnormitymx.Wage as Workprice,
- round(u_sc_abnormitymx.Amount * u_sc_abnormitymx.Wage ,2) as amt,
- 1 as wagetype,
- u_sc_workprocedure.code ,
- u_sc_workprocedure.name
- FROM u_sc_abnormity,
- u_sc_abnormitymx left outer join u_sc_workprocedure
- on u_sc_abnormitymx.proid = u_sc_workprocedure.proid
- WHERE ( u_sc_abnormity.billid = u_sc_abnormitymx.Billid ) and
- ( ( u_sc_abnormity.Wagemth = :arg_month ) AND
- ( u_sc_abnormitymx.Empid = :arg_empid ) )
- union all
- SELECT right(ltrim(rtrim(u_sc_taskwork.Billcode)),9) as Billcode,
- u_sc_taskwork.Billdate as Billdate,
- u_sc_taskwork.relcode as relcode,
- ltrim(rtrim(u_mtrldef.mtrlcode)) + '/' + ltrim(rtrim(u_sc_taskworkmx.Proname )) as dscrp,
- u_sc_taskworkmx.Amount as Amount,
- u_sc_taskworkmx.Workprice as Workprice,
- round(u_sc_taskworkmx.Amount * u_sc_taskworkmx.Workprice ,2) as amt,
- 0 as wagetype,
- u_sc_taskworkmx.procode,
- u_sc_taskworkmx.proname
- FROM u_sc_taskwork,
- u_sc_taskworkmx,
- u_mtrldef
- WHERE ( u_sc_taskwork.billid = u_sc_taskworkmx.Billid ) and
- ( u_sc_taskwork.mtrlid = u_mtrldef.mtrlid ) and
- ( ( u_sc_taskwork.Wagemth = :arg_month ) AND
- ( u_sc_taskworkmx.Empid = :arg_empid ) )
- union all
- SELECT right(ltrim(rtrim(u_scwg_taskwork_2.Billcode)),9) as Billcode,
- u_scwg_taskwork_2.Billdate as Billdate,
- u_scwg_taskwork_2.relcode as relcode,
- u_scwg_taskwork_2_mx.mxdscrp as dscrp,
- u_scwg_taskwork_2_mx.qty as Amount,
- u_scwg_taskwork_2_mx.price as Workprice,
- round(u_scwg_taskwork_2_mx.qty * u_scwg_taskwork_2_mx.price ,2) as amt,
- 2 as wagetype,
- u_scwg_taskwork_2_mx.procode,
- u_scwg_taskwork_2_mx.proname
- FROM u_scwg_taskwork_2,
- u_scwg_taskwork_2_mx
- WHERE ( u_scwg_taskwork_2.billid = u_scwg_taskwork_2_mx.Billid ) and
- ( u_scwg_taskwork_2.Wagemth = :arg_month ) AND
- ( u_scwg_taskwork_2.wrkGrpid = :arg_empid ) and
- ( u_scwg_taskwork_2.billtype = 1 )" arguments=(("arg_month", number),("arg_empid", number)) sort="wagetype A " )
- group(level=1 header.height=0 trailer.height=68 by=("wagetype" ) header.color="536870912" trailer.color="536870912" )
- text(band=header alignment="2" text="计件单号" border="0" color="33554432" x="105" y="8" height="60" width="247" html.valueishtml="0" name=u_sc_taskwork_billcode_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- text(band=header alignment="2" text="计件日期" border="0" color="33554432" x="361" y="8" height="60" width="320" html.valueishtml="0" name=u_sc_abnormity_billdate_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- text(band=header alignment="2" text="编号" border="0" color="33554432" x="690" y="8" height="60" width="165" html.valueishtml="0" name=u_sc_abnormitymx_relcode_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=header alignment="2" expression="count(getrow() for all)"border="0" color="33554432" x="9" y="8" height="60" width="87" format="[GENERAL]" html.valueishtml="0" name=compute_2 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- text(band=header alignment="2" text="工序编号" border="0" color="33554432" x="864" y="8" height="60" width="270" html.valueishtml="0" name=u_sc_workprocedure_code_t visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- text(band=header alignment="2" text="工序名称" border="0" color="33554432" x="1143" y="8" height="60" width="453" html.valueishtml="0" name=u_sc_workprocedure_name_t visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- text(band=header alignment="2" text="摘要" border="0" color="33554432" x="1605" y="8" height="60" width="466" html.valueishtml="0" name=dscrp_t visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- text(band=header alignment="2" text="数量" border="0" color="33554432" x="2080" y="8" height="60" width="219" html.valueishtml="0" name=u_sc_abnormitymx_amount_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- text(band=header alignment="2" text="单价" border="0" color="33554432" x="2309" y="8" height="60" width="146" html.valueishtml="0" name=u_sc_abnormitymx_workprice_t visible="1" font.face="宋体" font.height="-9" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- text(band=header alignment="2" text="金额" border="0" color="33554432" x="2464" y="8" height="60" width="293" html.valueishtml="0" name=amt_t visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- column(band=detail id=1 alignment="2" tabsequence=32766 border="0" color="33554432" x="105" y="12" height="68" width="247" format="[general]" html.valueishtml="0" name=u_sc_taskwork_billcode visible="1" height.autosize=yes edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="33554432" x="1605" y="12" height="68" width="466" format="[general]" html.valueishtml="0" name=dscrp visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=detail alignment="2" expression="getrow()"border="0" color="33554432" x="9" y="12" height="68" width="87" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" height.autosize=yes)
- column(band=detail id=2 alignment="2" tabsequence=32766 border="0" color="33554432" x="361" y="12" height="68" width="320" format="[shortdate] " html.valueishtml="0" name=u_sc_abnormity_billdate visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="33554432" x="690" y="12" height="68" width="165" format="[general]" html.valueishtml="0" name=u_sc_abnormitymx_relcode visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=5 alignment="1" tabsequence=32766 border="0" color="33554432" x="2080" y="12" height="68" width="219" format="#,##0.####" html.valueishtml="0" name=u_sc_abnormitymx_amount visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=6 alignment="1" tabsequence=32766 border="0" color="33554432" x="2309" y="12" height="68" width="146" format="#,##0.####" html.valueishtml="0" name=u_sc_abnormitymx_workprice visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=7 alignment="1" tabsequence=32766 border="0" color="33554432" x="2464" y="12" height="68" width="293" 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="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="33554432" x="864" y="12" height="68" width="270" format="[general]" html.valueishtml="0" name=u_sc_workprocedure_code visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="33554432" x="1143" y="12" height="68" width="453" format="[general]" html.valueishtml="0" name=u_sc_workprocedure_name visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.imemode=0 font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=trailer.1 alignment="2" expression="count(getrow() for group 1)"border="0" color="33554432" x="9" y="4" height="60" width="87" format="[GENERAL]" html.valueishtml="0" name=compute_5 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- text(band=trailer.1 alignment="2" text="小计" border="0" color="33554432" x="1605" y="4" height="60" width="466" html.valueishtml="0" name=t_1 visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=trailer.1 alignment="1" expression="sum(amt for group 1)"border="0" color="33554432" x="2464" y="4" height="60" width="293" format="#,##0.00" html.valueishtml="0" name=compute_6 visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=summary alignment="2" expression="count(getrow() for all)"border="0" color="33554432" x="9" y="4" height="56" width="87" format="[GENERAL]" html.valueishtml="0" name=compute_3 visible="1" font.face="宋体" font.height="-9" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="1073741824" )
- text(band=summary alignment="2" text="合计" border="0" color="33554432" x="1605" y="4" height="56" width="466" html.valueishtml="0" name=t_2 visible="1" font.face="宋体" font.height="-10" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- compute(band=summary alignment="1" expression="sum(amt for all)"border="0" color="33554432" x="2464" y="4" height="56" width="293" format="#,##0.00" html.valueishtml="0" name=compute_4 visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" )
- htmltable(border="1" )
- htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
- export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="gb2312" name="1" xml="<?xml version=~"1.0~" encoding=~"gb2312~" standalone=~"no~"?><dw_rp_dqtaskmx_3_mx_backup><dw_rp_dqtaskmx_3_mx_backup_row><dw_rp_dqtaskmx_3_mx_backup_group1 __pbband=~"detail~"><u_sc_taskwork_billcode>u_sc_taskwork_billcode</u_sc_taskwork_billcode><u_sc_taskwork_billdate/><u_sc_taskwork_relcode/><dscrp>dscrp</dscrp><u_sc_taskworkmx_amount/><u_sc_taskworkmx_workprice/><amt>amt</amt><wagetype>wagetype</wagetype></dw_rp_dqtaskmx_3_mx_backup_group1></dw_rp_dqtaskmx_3_mx_backup_row></dw_rp_dqtaskmx_3_mx_backup>"))
- import.xml()
- export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
|