仪表盘
版本库
文件存储
活动
搜索
登录
main
/
VWED
VWED PPPS项目
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
vwed 初始化
chenqinghong
2024-05-07
3ec06a830367465068963156dcc1d8e522571c13
[VWED.git]
/
LibMacroPlannerTCUI
/
UI
/
LibMacroPlannerTCUI
/
Component_ApplicationLibMacroPlanner
/
Method_ConstructScenarioFilter.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Quintiq file version 2.0
#parent: #root
Method ConstructScenarioFilter (
Boolean includedeleted
) as String id:Method_ApplicationLibMacroPlanner_ConstructScenarioFilter
{
#keys: '[11660.0.11700564]'
Body:
[*
// Filter on scenario
filter := '';
if( not includedeleted )
{
filter := filter + 'not object.IsDeleted() and'
}
filter := filter + '( object.CreatedBy()=' + ApplicationLibMacroPlanner.GetUserName().AsQUILL();
filter := filter + ' or ' + ApplicationScope.Session().CurrentUser().IsAdministrator().AsQUILL() + ' or exists ( object, ScenarioAuthorization, o, exists ( dataholderusergroup, Elements, el, o.Name() = el.Name() ) ) )';
filter := filter + ' and not object.IsHidden()';
return filter;
*]
}