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

Pro-字段默认逻辑2

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202012
    • Y-易路产品-
    • 基础通用功能
    • 隐藏

      八个计算字段的代码如下:

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_socialsecurity']=871

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_societylocaitoncity']=341

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_contractlocation']=871

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_hetonglvyuedicity']=341

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_companylocate']=871

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_worklocation']=341

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_financelocate']=871

      for record in self:
      if record['x_buildlocate'].name in ('北京 晓月楼','北京 稻香湖'):
      record['x_financelocation']=341

      显示
      八个计算字段的代码如下: for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_socialsecurity'] =871 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_societylocaitoncity'] =341 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_contractlocation'] =871 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_hetonglvyuedicity'] =341 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_companylocate'] =871 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_worklocation'] =341 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_financelocate'] =871 for record in self: if record ['x_buildlocate'] .name in ('北京 晓月楼','北京 稻香湖'): record ['x_financelocation'] =341

      根据办公所在大楼的值(picklist),在页面自动显示社保缴纳省、社保缴纳市、合同履行地省、合同履行地市、办公常驻地省、办公常驻地市、财务报销地省和财务报销地市。
      对应关系见截图一,动态表单见截图二。

        1. 2.png
          50 kB
          陈小娟
        2. Snipaste_2020-12-25_16-01-11.png
          28 kB
          陈小娟

            grant.yang 杨光磊
            eva.chen 陈小娟
            表决:
            0 为这个问题表决

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