$PBExportHeader$dw_rp_gz_month.srd release 9; datawindow(units=0 timer_interval=0 color=16777215 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=284 color="536870912" ) summary(height=0 color="536870912" ) footer(height=76 color="536870912" ) detail(height=92 color="536870912" ) table(column=(type=long updatewhereclause=yes name=a_wagemth dbname="u_rs_empinfo.Wagemth" ) column=(type=decimal(10) updatewhereclause=yes name=sumamount dbname="sumAmount" ) column=(type=decimal(11) updatewhereclause=yes name=sumamt dbname="sumamt" ) column=(type=char(30) updatewhereclause=yes name=cw_department_departmentname dbname="cw_department.departmentname" ) retrieve="SELECT a.Wagemth, SUM(a.Amount) AS sumAmount, SUM(a.amt) AS sumamt, cw_department.departmentname FROM (SELECT u_sc_taskwork.Wagemth, u_sc_taskworkmx.Empid, u_sc_taskworkmx.Amount, ROUND(u_sc_taskworkmx.Workprice * u_sc_taskworkmx.Amount, 2) AS amt FROM u_sc_taskwork INNER JOIN u_sc_taskworkmx ON u_sc_taskwork.billid = u_sc_taskworkmx.Billid WHERE (u_sc_taskwork.AuditingFlag = 1) UNION ALL SELECT u_sc_abnormity.Wagemth, u_sc_abnormitymx.Empid, u_sc_abnormitymx.amount, ROUND(u_sc_abnormitymx.amount * u_sc_abnormitymx.Wage, 2) AS amt FROM u_sc_abnormity INNER JOIN u_sc_abnormitymx ON u_sc_abnormity.billid = u_sc_abnormitymx.billid WHERE (u_sc_abnormity.Auditingflag = 1) UNION ALL SELECT u_scwg_taskwork_2.wagemth, u_scwg_taskwork_2.wrkGrpid AS empid, u_scwg_taskwork_2_mx.qty, u_scwg_taskwork_2_mx.price * u_scwg_taskwork_2_mx.qty AS amt FROM u_scwg_taskwork_2 INNER JOIN u_scwg_taskwork_2_mx ON u_scwg_taskwork_2.billid = u_scwg_taskwork_2_mx.billid WHERE (u_scwg_taskwork_2.flag = 1)) a INNER JOIN u_rs_empinfo ON a.Empid = u_rs_empinfo.empid LEFT OUTER JOIN cw_department ON u_rs_empinfo.Deptid = cw_department.departmentid where a.Wagemth >= :arg_first and a.Wagemth <= :arg_end GROUP BY a.Wagemth, cw_department.departmentname order by a.Wagemth, cw_department.departmentname " arguments=(("arg_first", number),("arg_end", number)) ) text(band=header alignment="2" text="金额" border="2" color="33554432" x="1367" y="216" height="60" width="384" html.valueishtml="0" name=sumamt_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="2" color="33554432" x="9" y="216" height="60" width="384" html.valueishtml="0" name=a_wagemth_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="2" color="33554432" x="974" y="216" height="60" width="384" html.valueishtml="0" name=sumamount_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="2" color="33554432" x="402" y="216" height="60" width="562" html.valueishtml="0" name=cw_department_departmentname_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" ) column(band=detail id=1 alignment="2" tabsequence=32766 border="0" color="33554432" x="9" y="8" height="80" width="384" format="[general]" html.valueishtml="0" name=a_wagemth visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="1" tabsequence=32766 border="0" color="33554432" x="974" y="8" height="80" width="384" format="###,###0.#####" html.valueishtml="0" name=sumamount visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="1" tabsequence=32766 border="0" color="33554432" x="1367" y="8" height="80" width="384" format="###,###0.00" html.valueishtml="0" name=sumamt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="2" tabsequence=32766 border="0" color="33554432" x="402" y="8" height="80" width="562" format="[general]" html.valueishtml="0" name=cw_department_departmentname visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="宋体" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="134" background.mode="1" background.color="536870912" ) text(band=footer alignment="2" text="合计" border="0" color="33554432" x="9" y="8" height="60" width="384" html.valueishtml="0" name=t_2 visible="1" font.face="宋体" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" ) compute(band=footer alignment="1" expression="sum(sumamt)"border="0" color="33554432" x="1367" y="4" height="60" width="384" format="###,###0.00" html.valueishtml="0" name=compute_3 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=footer alignment="1" expression="sum(sumamount)"border="0" color="33554432" x="974" y="4" height="60" width="384" format="###,###0.#####" html.valueishtml="0" name=compute_2 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" ) text(band=foreground alignment="0" text="部门工资年汇总" border="0" color="33554432" x="0" y="0" height="208" width="1865" html.valueishtml="0" name=t_1 visible="1" slideup=allabove font.face="宋体" font.height="-20" font.weight="700" font.family="0" font.pitch="2" font.charset="134" background.mode="2" background.color="16777215" ) 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 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )