电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

金蝶s-HR-取加班日期所在考勤周期的汇总时长.txt

金蝶s-HR-取加班日期所在考勤周期的汇总时长.txt_第1页
1/2
金蝶s-HR-取加班日期所在考勤周期的汇总时长.txt_第2页
2/2
//流程变量说明://输入变量:personid是职员id,OverDate加班日期//输出变量:Wlength当月加班时长,Dlength当天加班时长//其他tsql执行的语句SimpleDateFormatsdf=newjava.text.SimpleDateFormat("yyyy-MM-dd");Stringod=sdf.format(OverDate);java.sql.Connectioncon=com.kingdee.bos.framework.ejb.EJBFactory.getConnection(__bosContext);java.sql.Statementst=con.createStatement();java.sql.ResultSetrs=null;tsql="selectsum(FApplyOTTime)fwapllh,sum(casewhenFOTDATE={ts'"+od+"'}thenFAPPLYOTTIMEelse0end)Fdapllh"+"fromt_hr_ats_overtimebillentrya"+"innerjoint_hr_ats_attendancefilebona.FPERSONID=b.fproposeridanda.FPERSONID='"+personid+"'"+"innerjoint_hr_AtS_attencepolicyconb.FATTENCEPOLICYID=c.fid"+"innerjoint_ats_attencecycledonc.FATTENCECYCLEID=d.fid"+"innerjoint_hr_ats_attendanceperiodeond.fid=e.fgroupidande.fstartdate<={ts'"+od+"'}ande.fenddate>={Ts'"+od+"'}"+"whereFBILLIDin(selectfidfromt_hr_ats_overtimebillwhereFBILLSTATE=2orFBILLSTATE=3orFBILLSTATE=1);"rs=st.executeQuery(tsql);if(rs.next){Wlength=rs.getDouble("fwapllh");Dlength=rs.getDouble("fdapllh");}com.kingdee.util.db.SQLUtils.cleanup(st,con);com.kingdee.util.db.SQLUtils.cleanup(con);sql脚本selectsum(FApplyOTTime)fwapllh,sum(casewhenFOTDATE={ts'2020-07-10'}thenFAPPLYOTTIMEelse0end)Fdapllhfromt_hr_ats_overtimebillentryainnerjoint_hr_ats_attendancefilebona.FPERSONID=b.fproposeridanda.FPERSONID='yFrzAzZMSESvwMSB3IQbGoDvfe0='innerjoint_hr_AtS_attencepolicyconb.FATTENCEPOLICYID=c.fidinnerjoint_ats_attencecycledonc.FATTENCECYCLEID=d.fidinnerjoint_hr_ats_attendanceperiodeond.fid=e.fgroupidande.fstartdate<={ts'2020-07-10'}ande.fenddate>={Ts'2020-07-10'}whereFBILLIDin(selectfidfromt_hr_ats_overtimebillwhereFBILLSTATE=2orFBILLSTATE=3orFBILLSTATE=1)工作流网页设计器脚本//流程变量说明://输入变量:bizObj.entries.person.id是职员id,bizObj.entries.otDate加班日期//输出变量:Wlength当月加班时长,Dlength当天加班时长//其他tsql执行的语句SimpleDateFormatsdf=newjava.text.SimpleDateFormat("yyyy-MM-dd");Stringod=sdf.format(bizObj.entries.otDate);java.sql.Connectioncon=com.kingdee.bos.framework.ejb.EJBFactory.getConnection(__bosContext);java.sql.Statementst=con.createStatement();java.sql.ResultSetrs=null;tsql="selectsum(FApplyOTTime)fwapllh,sum(casewhenFOTDATE={ts'"+od+"'}thenFAPPLYOTTIMEelse0end)Fdapllh"+"fromt_hr_ats_overtimebillentrya"+"innerjoint_hr_ats_attendancefilebona.FPERSONID=b.fproposeridanda.FPERSONID='"+bizObj.entries.person.id+"'"+"innerjoint_hr_AtS_attencepolicyconb.FATTENCEPOLICYID=c.fid"+"innerjoint_ats_attencecycledonc.FATTENCECYCLEID=d.fid"+"innerjoint_hr_ats_attendanceperiodeond.fid=e.fgroupidande.fstartdate<={ts'"+od+"'}ande.fenddate>={Ts'"+od+"'}"+"whereFBILLIDin(selectfidfromt_hr_ats_overtimebillwhereFBILLSTATE=2orFBILLSTATE=3orFBILLSTATE=1);"rs=st.executeQuery(tsql);if(rs.next){Wlength=rs.getDouble("fwapllh");Dlength=rs.getDouble("fdapllh");}

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

金蝶s-HR-取加班日期所在考勤周期的汇总时长.txt

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信