生产订单新增过滤组织python
由于8.2 20240229的限制, 计划订单投放需要生产订单的新增权限, 只能在生产订单用插件BeforeSetItemValueByNumbe,BeforeF7Select来限定生产组织:
def BeforeSetItemValueByNumber(e):
key = str(e.BaseDataFieldKey.ToUpper());
if (key == "FPRDORGID" and this.Context.UserId in [XXX]):#XXX为用户ID, 100,100.01为组织代码
e.Filter ="Fnumber = '100' or Fnumber = '100.04'";
if (key == "FPRDORGID" and this.Context.UserId not in [XXX,XXX]):#不在此列, 不能取到组织代码
e.Filter = "Fnumber =''";
def BeforeF7Select(e):
key = str(e.FieldKey.ToUpper());
if ((key == "FPRDORGID" and this.Context.UserId in [XXX])):#
e.ListFilterParameter.Filter = "Fnumber = '100' or Fnumber = '100.04'";
if (key == "FPRDORGID" and this.Context.UserId not in [XXX,XXX]):
e.ListFilterParameter.Filter ="Fnumber =''";
生产订单新增过滤组织python
本文2024-09-16 18:05:14发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-19856.html