Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
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-helpdesk
Commits
82d437b3
Commit
82d437b3
authored
Sep 03, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Helpdesk:
Showing now statistics per department
parent
21e8353c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
11 deletions
+49
-11
ticket-aging.adp
lib/ticket-aging.adp
+6
-0
index.tcl
www/index.tcl
+43
-11
No files found.
lib/ticket-aging.adp
View file @
82d437b3
...
@@ -102,6 +102,12 @@ Ext.onReady(function () {
...
@@ -102,6 +102,12 @@ Ext.onReady(function () {
if ("" != "@ticket_customer_contact_id@" && 0 != parseInt("@ticket_customer_contact_id@")) {
if ("" != "@ticket_customer_contact_id@" && 0 != parseInt("@ticket_customer_contact_id@")) {
url = url + "&ticket_customer_contact_id=@ticket_customer_contact_id@";
url = url + "&ticket_customer_contact_id=@ticket_customer_contact_id@";
}
}
if ("" != "@ticket_customer_contact_dept_code@") {
url = url + "&customer_contact_dept_code=@ticket_customer_contact_dept_code@";
}
if ("" != "@ticket_assignee_dept_code@") {
url = url + "&assignee_dept_code=@ticket_assignee_dept_code@";
}
window.open(url);
window.open(url);
}
}
}
}
...
...
www/index.tcl
View file @
82d437b3
...
@@ -23,7 +23,10 @@ ad_page_contract {
...
@@ -23,7 +23,10 @@ ad_page_contract {
{
customer_id:integer 0
}
{
customer_id:integer 0
}
{
customer_contact_id:integer 0
}
{
customer_contact_id:integer 0
}
{
assignee_id:integer 0
}
{
assignee_id:integer 0
}
{
customer_contact_dept_id:nohtml 0
}
{
customer_contact_dept_code:nohtml
""
}
{
assignee_dept_id:nohtml 0
}
{
assignee_dept_id:nohtml 0
}
{
assignee_dept_code:nohtml
""
}
{
letter:trim
""
}
{
letter:trim
""
}
{
start_idx:integer 0
}
{
start_idx:integer 0
}
{
how_many
""
}
{
how_many
""
}
...
@@ -344,19 +347,48 @@ if {[empty_string_p $ticket_creator_id] == 0 && $ticket_creator_id != 0 } {
...
@@ -344,19 +347,48 @@ if {[empty_string_p $ticket_creator_id] == 0 && $ticket_creator_id != 0 } {
if
{
0 !=
$assignee
_id &&
""
!=
$assignee
_id
}
{
if
{
0 !=
$assignee
_id &&
""
!=
$assignee
_id
}
{
lappend criteria
"t.ticket_assignee_id = :assignee_id"
lappend criteria
"t.ticket_assignee_id = :assignee_id"
}
}
if
{
0 !=
$assignee
_dept_id &&
""
!=
$assignee
_dept_id
}
{
if
{
"null"
==
$assignee
_dept_id
}
{
# Assignee Department
lappend criteria
"t.ticket_assignee_id is null"
if
{
"null"
==
$assignee
_dept_id
}
{
}
else
{
lappend criteria
"t.ticket_assignee_id is null"
lappend criteria
"t.ticket_assignee_id in (
set assignee_dept_code
""
select e.employee_id
}
else
{
from im_employees e,
if
{
0 !=
$assignee
_dept_id
}
{
im_cost_centers cc
set assignee_dept_code
[
db_string dept_code
"select im_cost_center_code_from_id(:assignee_dept_id)"
-default
""
]
where cc.cost_center_id = :assignee_dept_id and
e.department_id = cc.cost_center_id
)"
}
}
}
}
if
{
""
!=
$assignee
_dept_code
}
{
lappend criteria
"t.ticket_assignee_id in (
select e.employee_id
from im_employees e,
im_cost_centers cc
where e.department_id = cc.cost_center_id and
substring(cc.cost_center_code for (length(:assignee_dept_code))) = :assignee_dept_code
)"
}
# Customer_Contact Department
if
{
"null"
==
$customer
_contact_dept_id
}
{
lappend criteria
"t.ticket_customer_contact_id is null"
set customer_contact_dept_code
""
}
else
{
if
{
0 !=
$customer
_contact_dept_id
}
{
set customer_contact_dept_code
[
db_string dept_code
"select im_cost_center_code_from_id(:customer_contact_dept_id)"
-default
""
]
}
}
if
{
""
!=
$customer
_contact_dept_code
}
{
lappend criteria
"t.ticket_customer_contact_id in (
select e.employee_id
from im_employees e,
im_cost_centers cc
where e.department_id = cc.cost_center_id and
substring(cc.cost_center_code for (length(:customer_contact_dept_code))) = :customer_contact_dept_code
)"
}
if
{
!
[
empty_string_p
$customer
_id
]
&&
$customer
_id != 0
}
{
if
{
!
[
empty_string_p
$customer
_id
]
&&
$customer
_id != 0
}
{
lappend criteria
"p.company_id = :customer_id"
lappend criteria
"p.company_id = :customer_id"
...
...
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