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

e表单”员工个人信息修改的“的字段,回写主数据

XMLWord打印

    • Icon: 任务 任务
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202009
    • Y-易路产品-
    • UR测试环境
    • 人力资源等
    • 隐藏

      record = current_approve_instance
      value_dict = {
      'identification_id': record.x_fd_2020_0160 if record.x_fd_2020_0160 else '',
      'social_work_start_date': record.x_fd_2020_0135 if record.x_fd_2020_0135 else False,
      'bank_name': record.x_fd_2020_0161 if record.x_fd_2020_0161 else '',
      'bank_account': record.x_fd_2020_0162 if record.x_fd_2020_0162 else '',
      'permanent_residence': record.x_fd_2020_0163 if record.x_fd_2020_0163 else '',
      'registered_permanent_residence': record.x_fd_2020_0164 if record.x_fd_2020_0164 else '',
      'id_address': record.x_fd_2020_0165 if record.x_fd_2020_0165 else '',
      'home_address': record.x_fd_2020_0166 if record.x_fd_2020_0166 else '',
      }
      for item in record.x_fd_2020_0148:
      if not value_dict.get('worked_ids'):
      value_dict['worked_ids'] = [
      [0,False,

      {'worked_start':item.x_fd_2020_0143, 'worked_end':item.x_fd_2019_0074, 'worked_unit':item.x_fd_2020_0167, 'worked_department':item.x_fd_2020_0168, 'worked_job':item.x_fd_2020_0169}

      ]]
      else:
      value_dict['worked_ids'].append(
      [0,False,

      {'worked_start':item.x_fd_2020_0143, 'worked_end':item.x_fd_2019_0074, 'worked_unit':item.x_fd_2020_0167, 'worked_department':item.x_fd_2020_0168, 'worked_job':item.x_fd_2020_0169}

      ])
      for item in record.x_fd_2020_0154:
      if not value_dict.get('contact_ids'):
      value_dict['contact_ids'] = [
      [0,False,

      {'relationship': item.x_fd_2020_0174.id, 'name': item.x_fd_2020_0176, 'telephone':item.x_fd_2020_0177, 'emergency_contact': True if item.x_fd_2020_0181 == 'x_fd_2020_01811' else False }

      ]]
      else:
      value_dict['contact_ids'].append(
      [0,False,

      {'relationship': item.x_fd_2020_0174.id, 'name': item.x_fd_2020_0176, 'telephone':item.x_fd_2020_0177, 'emergency_contact': True if item.x_fd_2020_0181 == 'x_fd_2020_01811' else False }

      ])
      if current_instance_emp:
      current_instance_emp.write(value_dict)

      显示
      record = current_approve_instance value_dict = { 'identification_id': record.x_fd_2020_0160 if record.x_fd_2020_0160 else '', 'social_work_start_date': record.x_fd_2020_0135 if record.x_fd_2020_0135 else False, 'bank_name': record.x_fd_2020_0161 if record.x_fd_2020_0161 else '', 'bank_account': record.x_fd_2020_0162 if record.x_fd_2020_0162 else '', 'permanent_residence': record.x_fd_2020_0163 if record.x_fd_2020_0163 else '', 'registered_permanent_residence': record.x_fd_2020_0164 if record.x_fd_2020_0164 else '', 'id_address': record.x_fd_2020_0165 if record.x_fd_2020_0165 else '', 'home_address': record.x_fd_2020_0166 if record.x_fd_2020_0166 else '', } for item in record.x_fd_2020_0148: if not value_dict.get('worked_ids'): value_dict ['worked_ids'] = [ [0,False, {'worked_start':item.x_fd_2020_0143, 'worked_end':item.x_fd_2019_0074, 'worked_unit':item.x_fd_2020_0167, 'worked_department':item.x_fd_2020_0168, 'worked_job':item.x_fd_2020_0169} ]] else: value_dict ['worked_ids'] .append( [0,False, {'worked_start':item.x_fd_2020_0143, 'worked_end':item.x_fd_2019_0074, 'worked_unit':item.x_fd_2020_0167, 'worked_department':item.x_fd_2020_0168, 'worked_job':item.x_fd_2020_0169} ]) for item in record.x_fd_2020_0154: if not value_dict.get('contact_ids'): value_dict ['contact_ids'] = [ [0,False, {'relationship': item.x_fd_2020_0174.id, 'name': item.x_fd_2020_0176, 'telephone':item.x_fd_2020_0177, 'emergency_contact': True if item.x_fd_2020_0181 == 'x_fd_2020_01811' else False } ]] else: value_dict ['contact_ids'] .append( [0,False, {'relationship': item.x_fd_2020_0174.id, 'name': item.x_fd_2020_0176, 'telephone':item.x_fd_2020_0177, 'emergency_contact': True if item.x_fd_2020_0181 == 'x_fd_2020_01811' else False } ]) if current_instance_emp: current_instance_emp.write(value_dict)

      涉及E表单的字段如下:
      ①身份证号码、社会工作开始日期、开户银行、银行账号、通讯地址、户籍 详细地址、证件地址、家庭地址
      ②工作经历:开始日期、结束日期、公司、组织单元、岗位
      ③家庭成员:成员关系、紧急联系人、姓名、电话
      2.E 表单中的以上字段可以通过在审批流中写编码的方式回写至主数据

            wenqiang.liu 刘文强
            allen.xu 许鹏威
            表决:
            0 为这个问题表决

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