项目中一个 “指标录入” 单据的”预算单位” 字段引用了单位字典,但是在选择时不能选择汇总节点(即总公司),后经研究发现:字典字段有一个隐藏的属性ItemMatchMask,该属性共有7种状态:

Init:初始刚添加的节点、ForUse:已启用、InUse:已使用、Deleted:已删除、Leaf:叶子节点、Branch:汇总节点、Root:根节点

 

所以更改如下:

<BillMetaField Key="yusuandanwei" Caption="预算单位:" DBLocation="Table1" DBColumnName="yusuandanwei" FieldType="ItemID" ItemMatchMask="ForUse|InUse|Leaf|Branch|Root" ItemKey="Department" ItemPropKey="ID" DefaultFormulaValue="GetDicValueByID(Caozuoyuan,GetCurOperator(),DepartMent)" ControlType="DICTIONARY">

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-12-03
  • 2021-12-06
相关资源
相似解决方案