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

新增占位符根据员工性别判断称呼

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202104
    • S-史带财险-Y2020021
    • 史带starrchina
    • 基础通用功能
    • 隐藏
      if employee.new_gender.name in ("男", "Male", "male"):
          result = "先生"
      elif employee.new_gender.name in ("女", "Female", "female"):
          result = "女士"
      else:
          result = "先生/女士"
      
      显示
      if employee.new_gender.name in ( "男" , "Male" , "male" ): result = "先生" elif employee.new_gender.name in ( "女" , "Female" , "female" ): result = "女士" else : result = "先生/女士"

      根据性别字段,当性别为男时显示为先生,当性别为女时显示为女士

            chengdd 程丹丹
            liuxz 刘襄周
            表决:
            0 为这个问题表决

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