实际出勤天数=出勤天数-出差天数,要怎么实现?实际出勤天数的公式,不统计出差天数即可,如加上出差、外出:
workTime=#工作时长#( ,小时) outCheckTime=#外出时长#(小时) tripTime=#出差时长#(小时)
count=workTime/(#排班净时长#/60.0);
count=( + + )/(#排班净时长#/ )
if(#排了班# and count and count ){return count;
if(#排了班# and ) {return 1;}
else return 0;
不要出差外出直接删除对应的即可:
workTime=#工作时长#(严格模式小时) outCheckTime=#外出时长#(小时) tripTime=#出差时长#(小时)
count=workTime/(#排班净时长#/60.0)
if(#排了班# and count and count ){return count;
if(#排了班# and ){return 1;} else return 0