|
我们的X3从1495升级到3002,不是说对1495是兼容的么?可是在取当前环境的参数的时候,为什么运行以前的程序,会提示“当前环境链中,隔离级为【position】的不存在?”
譬如下面这段比较经典的:
var
lContextCurrent: Business.Model.TContextCurrent;
cGW,cDeptID:STRING; //岗位,部门id
begin
lContextCurrent := Business.Model.TContextCurrent.Create(Self.Context);
try
... ...
cGW := lContextCurrent.PositionMember.ID;
cDeptID := lContextCurrent.Dept.ID;
finally
lContextCurrent.Free;
end;
end;
高人提示在X3里已经不这么用了?那应该怎么用?取当前环境的操作者的操作者id,或者部门id,难道用TContextCurrent不可以了么?请明确指导和提示。谢谢。 |
|