BOS工作流脚本是否不允许使用for循环
BOS工作流脚本是否不允许使用for循环
以下在s-HR V8.2的版本只执行一次
[code]if(positionId!=null)
superiorPosId=positionId;
for(int i=0;i<8;i++)
{
sumTotal=sumTotal+1;
superiorPosId=#sql_val("select FPARENTID from T_ORG_PositionHierarchy where FCHILDID ='"+superiorPosId+"' and FHIERARCHYID ='00000000-0000-0000-0000-000000000001396FCAD0'");
superiorId=#sql_val("SELECT max(a.FID) FROM T_bd_person a join T_ORG_PositionMember b on b.FPERSONID =a.fid join T_ORG_Position c on c.FID = b.FPOSITIONID join t_org_job d on d.fid = c.FJOBID where c.fid='"+ superiorPosId +"'");
jobNo=#sql_val("select s.FNUMBER from T_ORG_Position t join t_org_job s on s.fid = t.FJOBID where t.fid='" + superiorPosId+"' and t.CFisApproval=1");
switch(jobNo){
case "M":
managerId=superiorId;
break;
case "SM":
seniorManagerId=superiorId;
break;
case "G":
generalId=superiorId;
break;
case "SG":
seniorGeneralId=superiorId;
break;
case "VP":
vicePresidentId=superiorId;
break;
case "EVP":
evicePresidentId=superiorId;
break;
case "CEO":
ceoId=superiorId;
break;
default:
superiorId=empId;
break;
}
}[/code]
以上问题还请KSM提单,提单请选择【系统平台】模块,谢谢
以下在s-HR V8.2的版本只执行一次
[code]if(positionId!=null)
superiorPosId=positionId;
for(int i=0;i<8;i++)
{
sumTotal=sumTotal+1;
superiorPosId=#sql_val("select FPARENTID from T_ORG_PositionHierarchy where FCHILDID ='"+superiorPosId+"' and FHIERARCHYID ='00000000-0000-0000-0000-000000000001396FCAD0'");
superiorId=#sql_val("SELECT max(a.FID) FROM T_bd_person a join T_ORG_PositionMember b on b.FPERSONID =a.fid join T_ORG_Position c on c.FID = b.FPOSITIONID join t_org_job d on d.fid = c.FJOBID where c.fid='"+ superiorPosId +"'");
jobNo=#sql_val("select s.FNUMBER from T_ORG_Position t join t_org_job s on s.fid = t.FJOBID where t.fid='" + superiorPosId+"' and t.CFisApproval=1");
switch(jobNo){
case "M":
managerId=superiorId;
break;
case "SM":
seniorManagerId=superiorId;
break;
case "G":
generalId=superiorId;
break;
case "SG":
seniorGeneralId=superiorId;
break;
case "VP":
vicePresidentId=superiorId;
break;
case "EVP":
evicePresidentId=superiorId;
break;
case "CEO":
ceoId=superiorId;
break;
default:
superiorId=empId;
break;
}
}[/code]
以上问题还请KSM提单,提单请选择【系统平台】模块,谢谢
BOS工作流脚本是否不允许使用for循环
BOS工作流脚本是否不允许使用for循环以下在s-HR V8.2的版本只执行一次[code]if(positionId!=null)superiorPosId=positionId;for(int i=0;i
点击下载文档
上一篇:考勤计算转薪资问题已解决下一篇:取卡规则问题
本文2024-09-17 00:33:03发表“s-hr cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-shr-61721.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章