Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-resource-management
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-resource-management
Commits
83c4f8f0
Commit
83c4f8f0
authored
Nov 25, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Gustaf changes
parent
ce615303
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
144 additions
and
145 deletions
+144
-145
employee-assignment-pie-chart.tcl
lib/employee-assignment-pie-chart.tcl
+2
-2
intranet-resource-management-procs.tcl
tcl/intranet-resource-management-procs.tcl
+89
-90
employee-assignment-pie-chart.json.tcl
www/employee-assignment-pie-chart.json.tcl
+8
-8
index.adp
www/index.adp
+9
-9
index.tcl
www/index.tcl
+1
-1
resources-planning-advanced.adp
www/resources-planning-advanced.adp
+6
-6
resources-planning-advanced.tcl
www/resources-planning-advanced.tcl
+3
-3
resources-planning-liwo.adp
www/resources-planning-liwo.adp
+6
-6
resources-planning-liwo.tcl
www/resources-planning-liwo.tcl
+3
-3
resources-planning-planned-hours.adp
www/resources-planning-planned-hours.adp
+6
-6
resources-planning-planned-hours.tcl
www/resources-planning-planned-hours.tcl
+3
-3
resources-planning.adp
www/resources-planning.adp
+6
-6
resources-planning.tcl
www/resources-planning.tcl
+2
-2
No files found.
lib/employee-assignment-pie-chart.tcl
View file @
83c4f8f0
...
...
@@ -23,7 +23,7 @@ set company_department_id [im_cost_center_company]
# ----------------------------------------------------
# Create a random ID for the diagram
set
diagram_rand
[
expr
round
(
rand
()
* 100000000.0
)
]
set
diagram_rand
[
expr
{
round
(
rand
()
* 100000000.0
)}
]
set
diagram_id
"employee_assignment_pie_chart_
$diagram
_rand"
#ToDo: Eliminate deleted employees
...
...
@@ -47,7 +47,7 @@ db_foreach departments $department_sql {
}
if
{
""
!=
$employee
_id
}
{
multirow append departments
$employee
_id
[
expr
1+$indent
]
$employee
_name
multirow append departments
$employee
_id
[
expr
{
1+$indent
}
]
$employee
_name
}
}
...
...
tcl/intranet-resource-management-procs.tcl
View file @
83c4f8f0
This diff is collapsed.
Click to expand it.
www/employee-assignment-pie-chart.json.tcl
View file @
83c4f8f0
...
...
@@ -80,10 +80,10 @@ db_foreach employee_assignments $employee_assignments_sql {
for
{
set
i 0
}
{
$i
<
$len
}
{
incr
i
}
{
set workday
[
lindex
$workday
_list
$i
]
if
{
100 !=
$workday
}
{
continue
}
set workday_sum
[
expr
$workday
_sum +
$workday
]
set absence_sum
[
expr
$absence
_sum +
[
lindex
$absence
_list
$i
]
]
set billable_sum
[
expr
$billable
_sum +
[
lindex
$billable
_list
$i
]
]
set nonbillable_sum
[
expr
$nonbillable
_sum +
[
lindex
$nonbillable
_list
$i
]
]
set workday_sum
[
expr
{
$workday
_sum +
$workday
}
]
set absence_sum
[
expr
{
$absence
_sum +
[
lindex
$absence
_list
$i
]}
]
set billable_sum
[
expr
{
$billable
_sum +
[
lindex
$billable
_list
$i
]}
]
set nonbillable_sum
[
expr
{
$nonbillable
_sum +
[
lindex
$nonbillable
_list
$i
]}
]
}
}
...
...
@@ -98,11 +98,11 @@ multirow create mr name value
if
{
0.0 ==
$workday
_sum
}
{
multirow append mr
$invalid
_data_l10n 1
}
else
{
if
{
$billable
_sum > 0
}
{
multirow append mr
$billable
_l10n
[
expr
100.0 *
$billable
_sum /
$workday
_sum
]
}
if
{
$nonbillable
_sum > 0
}
{
multirow append mr
$nonbillable
_l10n
[
expr
100.0 *
$nonbillable
_sum /
$workday
_sum
]
}
if
{
$absence
_sum > 0
}
{
multirow append mr
$absences
_l10n
[
expr
100.0 *
$absence
_sum /
$workday
_sum
]
}
if
{
$billable
_sum > 0
}
{
multirow append mr
$billable
_l10n
[
expr
{
100.0 *
$billable
_sum /
$workday
_sum
}
]
}
if
{
$nonbillable
_sum > 0
}
{
multirow append mr
$nonbillable
_l10n
[
expr
{
100.0 *
$nonbillable
_sum /
$workday
_sum
}
]
}
if
{
$absence
_sum > 0
}
{
multirow append mr
$absences
_l10n
[
expr
{
100.0 *
$absence
_sum /
$workday
_sum
}
]
}
set not_assigned_sum
[
expr
100.0 - 100.0 *
$absence
_sum /
$workday
_sum - 100.0 *
$billable
_sum /
$workday
_sum - 100.0 *
$nonbillable
_sum /
$workday
_sum
]
set not_assigned_sum
[
expr
{
100.0 - 100.0 *
$absence
_sum /
$workday
_sum - 100.0 *
$billable
_sum /
$workday
_sum - 100.0 *
$nonbillable
_sum /
$workday
_sum
}
]
if
{
$not
_assigned_sum > 0
}
{
multirow append mr
$not
_assigned_l10n
$not
_assigned_sum
}
}
...
...
www/index.adp
View file @
83c4f8f0
<master>
<property name="
title">@page_title;noquote
@</property>
<property name="main_navbar_label">@main_navbar_label@</property>
<property name="sub_navbar">@sub_navbar;
noquote
@</property>
<property name="left_navbar">@left_navbar_html;
noquote
@</property>
<property name="
doc(title)">@page_title;literal
@</property>
<property name="main_navbar_label">@main_navbar_label
;literal
@</property>
<property name="sub_navbar">@sub_navbar;
literal
@</property>
<property name="left_navbar">@left_navbar_html;
literal
@</property>
<table cellpadding=
0 cellspacing=0 border=0
width="100%">
<table cellpadding=
"0" cellspacing="0" border="0"
width="100%">
<tr><td>
<%= [im_component_bay top] %>
</td></tr>
</table>
<table cellpadding=
0 cellspacing=0 border=0
width="100%">
<table cellpadding=
"0" cellspacing="0" border="0"
width="100%">
<tr>
<td valign=
top
>
<td valign=
"top"
>
<%= [im_component_bay left] %>
</td>
<td valign=
top
>
<td valign=
"top"
>
<%= [im_component_bay right] %>
</td>
</tr>
</table>
<table cellpadding=
0 cellspacing=0 border=0
width="100%">
<table cellpadding=
"0" cellspacing="0" border="0"
width="100%">
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
...
...
www/index.tcl
View file @
83c4f8f0
...
...
@@ -11,7 +11,7 @@ ad_page_contract {
}
{
}
set
user_id
[
a
d_maybe_redirect_for_registratio
n
]
set
user_id
[
a
uth::require_logi
n
]
set
page_title
[
lang::message::lookup
""
intranet-resource-management.Resource_Management_Home
"Resource Management Home"
]
set
context_bar
[
im_context_bar
$page
_title
]
set
return_url
[
im_url_with_query
]
...
...
www/resources-planning-advanced.adp
View file @
83c4f8f0
<master>
<property name="
title">@page_title
@</property>
<property name="main_navbar_label">@main_navbar_label@</property>
<property name="sub_navbar">@sub_navbar;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="left_navbar">@left_navbar_html;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="
doc(title)">@page_title;literal
@</property>
<property name="main_navbar_label">@main_navbar_label
;literal
@</property>
<property name="sub_navbar">@sub_navbar;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
<property name="left_navbar">@left_navbar_html;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
@html;noquote@
www/resources-planning-advanced.tcl
View file @
83c4f8f0
...
...
@@ -41,7 +41,7 @@ ad_page_contract {
im_permission_flush
set
user_id
[
a
d_maybe_redirect_for_registratio
n
]
set
user_id
[
a
uth::require_logi
n
]
if
{
!
[
im_permission
$user
_id
"view_projects_all"
]}
{
ad_return_complaint 1
"You don't have permissions to see this page"
ad_script_abort
...
...
@@ -135,7 +135,7 @@ if {0} {
"
}
if
{
[
empty_string_p
$customer
_id
]
}
{
if
{
$customer
_id eq
""
}
{
set customer_id 0
}
...
...
@@ -307,7 +307,7 @@ append absence_color_codes "<div class=filter-title> [lang::message::lookup
append
absence_color_codes
"<table cellpadding='5' cellspacing='5'>
\n
"
append
absence_color_codes
"<tr><td> </td><td bgcolor='
\#
666699' style='padding:3px'>Planned hours</td></tr>
\n
"
db_foreach cols
$col
_sql
{
set index
[
expr
$category
_id - 5000
]
set index
[
expr
{
$category
_id - 5000
}
]
set col
[
lindex
$color
_list
$index
]
regsub -all
" "
$category
"_"
category_key
set category_l10n
[
lang::message::lookup
""
intranet-core.$category_key
$category
]
...
...
www/resources-planning-liwo.adp
View file @
83c4f8f0
<master>
<property name="
title">@page_title
@</property>
<property name="main_navbar_label">@main_navbar_label@</property>
<property name="sub_navbar">@sub_navbar;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="left_navbar">@left_navbar_html;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="
doc(title)">@page_title;literal
@</property>
<property name="main_navbar_label">@main_navbar_label
;literal
@</property>
<property name="sub_navbar">@sub_navbar;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
<property name="left_navbar">@left_navbar_html;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
@html;noquote@
www/resources-planning-liwo.tcl
View file @
83c4f8f0
...
...
@@ -43,7 +43,7 @@ ad_page_contract {
im_permission_flush
set
user_id
[
a
d_maybe_redirect_for_registratio
n
]
set
user_id
[
a
uth::require_logi
n
]
if
{
!
[
im_permission
$user
_id
"view_projects_all"
]}
{
ad_return_complaint 1
"You don't have permissions to see this page"
ad_script_abort
...
...
@@ -140,7 +140,7 @@ if {0} {
"
}
if
{
[
empty_string_p
$customer
_id
]
}
{
if
{
$customer
_id eq
""
}
{
set customer_id 0
}
...
...
@@ -335,7 +335,7 @@ append absence_color_codes "<div class=filter-title> [lang::message::lookup
append
absence_color_codes
"<table cellpadding='5' cellspacing='5'>
\n
"
append
absence_color_codes
"<tr><td> </td><td bgcolor='
\#
666699' style='padding:3px'>Planned hours</td></tr>
\n
"
db_foreach cols
$col
_sql
{
set index
[
expr
$category
_id - 5000
]
set index
[
expr
{
$category
_id - 5000
}
]
set col
[
lindex
$color
_list
$index
]
regsub -all
" "
$category
"_"
category_key
set category_l10n
[
lang::message::lookup
""
intranet-core.$category_key
$category
]
...
...
www/resources-planning-planned-hours.adp
View file @
83c4f8f0
<master>
<property name="
title">@page_title
@</property>
<property name="main_navbar_label">@main_navbar_label@</property>
<property name="sub_navbar">@sub_navbar;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="left_navbar">@left_navbar_html;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="
doc(title)">@page_title;literal
@</property>
<property name="main_navbar_label">@main_navbar_label
;literal
@</property>
<property name="sub_navbar">@sub_navbar;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
<property name="left_navbar">@left_navbar_html;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
@html;noquote@
www/resources-planning-planned-hours.tcl
View file @
83c4f8f0
...
...
@@ -43,7 +43,7 @@ ad_page_contract {
im_permission_flush
set
user_id
[
a
d_maybe_redirect_for_registratio
n
]
set
user_id
[
a
uth::require_logi
n
]
if
{
!
[
im_permission
$user
_id
"view_projects_all"
]}
{
ad_return_complaint 1
"You don't have permissions to see this page"
ad_script_abort
...
...
@@ -138,7 +138,7 @@ if {0} {
"
}
if
{
[
empty_string_p
$customer
_id
]
}
{
if
{
$customer
_id eq
""
}
{
set customer_id 0
}
...
...
@@ -303,7 +303,7 @@ append absence_color_codes "<div class=filter-title> [lang::message::lookup
append
absence_color_codes
"<table cellpadding='5' cellspacing='5'>
\n
"
append
absence_color_codes
"<tr><td> </td><td bgcolor='
\#
666699' style='padding:3px'>Planned hours</td></tr>
\n
"
db_foreach cols
$col
_sql
{
set index
[
expr
$category
_id - 5000
]
set index
[
expr
{
$category
_id - 5000
}
]
set col
[
lindex
$color
_list
$index
]
regsub -all
" "
$category
"_"
category_key
set category_l10n
[
lang::message::lookup
""
intranet-core.$category_key
$category
]
...
...
www/resources-planning.adp
View file @
83c4f8f0
<master>
<property name="
title">@page_title
@</property>
<property name="main_navbar_label">@main_navbar_label@</property>
<property name="sub_navbar">@sub_navbar;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="left_navbar">@left_navbar_html;
noquote
@</property>
<property name="show_context_help">@show_context_help_p;
noquote
@</property>
<property name="
doc(title)">@page_title;literal
@</property>
<property name="main_navbar_label">@main_navbar_label
;literal
@</property>
<property name="sub_navbar">@sub_navbar;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
<property name="left_navbar">@left_navbar_html;
literal
@</property>
<property name="show_context_help">@show_context_help_p;
literal
@</property>
@html;noquote@
www/resources-planning.tcl
View file @
83c4f8f0
...
...
@@ -41,7 +41,7 @@ ad_page_contract {
im_permission_flush
set
user_id
[
a
d_maybe_redirect_for_registratio
n
]
set
user_id
[
a
uth::require_logi
n
]
if
{
!
[
im_permission
$user
_id
"view_projects_all"
]}
{
ad_return_complaint 1
"You don't have permissions to see this page"
ad_script_abort
...
...
@@ -133,7 +133,7 @@ if {0} {
"
}
if
{
[
empty_string_p
$customer
_id
]
}
{
if
{
$customer
_id eq
""
}
{
set customer_id 0
}
...
...
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