Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-reporting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-reporting
Commits
31182a53
Commit
31182a53
authored
Dec 01, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- implementing SLA Management
parent
52f8e6c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
intranet-reporting-procs.tcl
tcl/intranet-reporting-procs.tcl
+9
-2
No files found.
tcl/intranet-reporting-procs.tcl
View file @
31182a53
...
...
@@ -47,6 +47,7 @@ ad_proc -public im_report_select {
{
-include_empty 0
}
{
-include_empty_name
""
}
{
-report_type_id 0
}
{
-indicator_object_type
""
}
select_name
{
default
""
}
}
{
...
...
@@ -56,6 +57,7 @@ ad_proc -public im_report_select {
-include_empty
$include
_empty
\
-include_empty_name
$include
_empty_name
\
-report_type_id
$report
_type_id
\
-indicator_object_type
$indicator
_object_type
\
]
return
[
im_options_to_select_box
$select
_name
$options
$default
]
...
...
@@ -66,13 +68,18 @@ ad_proc -public im_report_options {
{
-include_empty 0
}
{
-include_empty_name
""
}
{
-report_type_id
""
}
{
-indicator_object_type
""
}
}
{
Returns a list of all Reports.
}
{
set current_user_id
[
ad_get_user_id
]
set where_clause
""
if
{
""
!=
$report
_type_id && 0 !=
$report
_type_id
}
{
set report_type_sql
"and r.report_type_id in (
[
join
[
im_sub_categories
$report
_type_id
]
","
]
)"
append where_clause
"and r.report_type_id in (
[
join
[
im_sub_categories
$report
_type_id
]
","
]
)"
}
if
{
""
!=
$indicator
_object_type
}
{
append where_clause
"and r.report_id in (select indicator_id from im_indicators where indicator_object_type = :indicator_object_type)"
}
set options_sql
"
...
...
@@ -80,7 +87,7 @@ ad_proc -public im_report_options {
r.report_id
from im_reports r
where 1=1
$
report
_type_sql
$
where
_clause
order by
r.report_name
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment