上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-2310

【Pro-e签宝】规则中心增加两条规则

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202104
    • E-e签宝-OP-Y202005001
    • e签宝测试站
    • 基础通用功能
    • 隐藏

      1. 查询员工上级部门的组织单元经理;

      if self.employee_id.department_id.parent_department_id:
          result = self.employee_id.department_id.parent_department_id.manager_id.user_id
      

      2. 加班单据上查询员工的二级部门的组织单元经理

      department = self.employee_id.department_id
      while department.parent_department_id.parent_department_id: 
          department = department.parent_department_id
      if department and department.manager_id:
          result = department.manager_id.user_id
      
      显示
      1. 查询员工上级部门的组织单元经理; if self.employee_id.department_id.parent_department_id: result = self.employee_id.department_id.parent_department_id.manager_id.user_id 2. 加班单据上查询员工的二级部门的组织单元经理 department = self.employee_id.department_id while department.parent_department_id.parent_department_id: department = department.parent_department_id if department and department.manager_id: result = department.manager_id.user_id

      1. 查询员工上级部门的组织单元经理;
      2. 加班单据上查询员工的二级部门的组织单元经理

            chengdd 程丹丹
            huyf 胡易菲
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: