Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
c2be90a2
Commit
c2be90a2
authored
Sep 10, 2019
by
Sven Franck
Committed by
Romain Courteaud
Oct 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_afs_directory] Add financial data
parent
1418705c
Changes
26
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
12514 additions
and
713 deletions
+12514
-713
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_css.css
.../PathTemplateItem/web_page_module/gadget_erp5_afs_css.css
+78
-18
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_css.xml
.../PathTemplateItem/web_page_module/gadget_erp5_afs_css.xml
+163
-151
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_html.html
...ateItem/web_page_module/gadget_erp5_afs_dygraph_html.html
+24
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_html.xml
...lateItem/web_page_module/gadget_erp5_afs_dygraph_html.xml
+320
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_js.js
...emplateItem/web_page_module/gadget_erp5_afs_dygraph_js.js
+195
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_js.xml
...mplateItem/web_page_module/gadget_erp5_afs_dygraph_js.xml
+316
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
...athTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
+134
-52
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
...thTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_html.html
...plateItem/web_page_module/gadget_erp5_afs_panel_html.html
+4
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_html.xml
...mplateItem/web_page_module/gadget_erp5_afs_panel_html.xml
+163
-151
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
...hTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
+3
-1
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
...TemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_html.html
...page_module/gadget_erp5_page_afs_financial_list_html.html
+30
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_html.xml
..._page_module/gadget_erp5_page_afs_financial_list_html.xml
+320
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_js.js
...web_page_module/gadget_erp5_page_afs_financial_list_js.js
+103
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_js.xml
...eb_page_module/gadget_erp5_page_afs_financial_list_js.xml
+316
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.js
...Item/web_page_module/gadget_erp5_page_afs_publisher_js.js
+1
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
...tem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
+163
-151
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.js
...web_page_module/gadget_erp5_page_afs_publisher_list_js.js
+12
-12
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.xml
...eb_page_module/gadget_erp5_page_afs_publisher_list_js.xml
+163
-151
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_site_module/afs.xml
...js_afs_directory/PathTemplateItem/web_site_module/afs.xml
+4
-4
bt5/erp5_officejs_afs_directory_ui_test/PathTemplateItem/portal_tests/afs_ui_zuite/testAfsRenderjsListNavigation.zpt
...rtal_tests/afs_ui_zuite/testAfsRenderjsListNavigation.zpt
+25
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.css
...s_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.css
+117
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.xml
...s_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.xml
+322
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.js
...rjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.js
+9464
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.xml
...js_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.xml
+70
-9
No files found.
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_css.css
View file @
c2be90a2
/*
-------------------------------------------------------------------------
----------------------------- Dygraph -----------------------------------
-------------------------------------------------------------------------
*/
body
.dygraph-legend
{
left
:
15%
;
top
:
5%
;
}
body
.dygraph-legend
>
span
{
display
:
block
;
}
/*
/*
-------------------------------------------------------------------------
-------------------------------------------------------------------------
----------------------------- Masonry -----------------------------------
----------------------------- Masonry -----------------------------------
...
@@ -366,7 +379,51 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -366,7 +379,51 @@ div[data-gadget-scope='header'] .ui-header {
.document_table
table
tbody
tr
th
:not
(
:first-child
)
{
.document_table
table
tbody
tr
th
:not
(
:first-child
)
{
text-align
:
right
;
text-align
:
right
;
}
}
/* break lines... hacky */
.financial_listbox
.document_table
tbody
tr
td
:not
(
:first-of-type
)
a
{
display
:
table-caption
;
text-align
:
left
;
padding
:
0
;
margin
:
0
;
}
@media
(
max-width
:
45em
)
{
.financial_listbox
.document_table
tbody
tr
td
:not
(
:first-of-type
)
a
{
display
:
block
;
}
.financial_listbox
.document_table
table
tbody
tr
{
height
:
auto
;
}
.document_table
table
tbody
tr
td
:first-child
~
th
:not
(
:last-child
)
a
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
th
:first-child
~
th
:not
(
:last-child
)
a
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
td
:first-child
~
td
:not
(
:last-child
)
a
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
th
:first-child
~
td
:not
(
:last-child
)
a
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
td
:first-child
~
th
:not
(
:last-child
)
label
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
th
:first-child
~
th
:not
(
:last-child
)
label
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
td
:first-child
~
td
:not
(
:last-child
)
label
:not
(
:empty
)
:after
,
.document_table
table
tbody
tr
th
:first-child
~
td
:not
(
:last-child
)
label
:not
(
:empty
)
:after
{
content
:
none
;
}
.document_table
table
tbody
tr
td
:first-child
~
th
,
.document_table
table
tbody
tr
th
:first-child
~
th
,
.document_table
table
tbody
tr
td
:first-child
~
td
,
.document_table
table
tbody
tr
th
:first-child
~
td
{
display
:
inherit
;
}
.financial_listbox
tbody
tr
td
:not
(
:first-child
)
{
margin-left
:
5em
;
}
.financial_listbox
tbody
tr
td
:nth-child
(
2
)
:before
{
content
:
"Staff"
;
position
:
absolute
;
left
:
.5em
;
}
.financial_listbox
tbody
tr
td
:nth-child
(
3
)
:before
{
content
:
"Assets"
;
position
:
absolute
;
left
:
.5em
;
}
.financial_listbox
tbody
tr
td
:nth-child
(
4
)
:before
{
content
:
"Revenues"
;
position
:
absolute
;
left
:
.5em
;
}
.financial_listbox
tbody
tr
td
:nth-child
(
5
)
:before
{
content
:
"Earnings"
;
position
:
absolute
;
left
:
.5em
;
}
}
/* align header and background colors */
/* align header and background colors */
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
button
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
a
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
button
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
a
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
{
...
@@ -416,7 +473,10 @@ div[data-gadget-scope='panel'] {
...
@@ -416,7 +473,10 @@ div[data-gadget-scope='panel'] {
padding
:
0
1em
;
padding
:
0
1em
;
display
:
block
;
display
:
block
;
}
}
.ui-custom-content
a
{
text-decoration
:
underline
;
color
:
lightblue
;
}
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_css.xml
View file @
c2be90a2
...
@@ -154,11 +154,13 @@
...
@@ -154,11 +154,13 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -202,16 +204,20 @@
...
@@ -202,16 +204,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -234,7 +240,7 @@
...
@@ -234,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
972.5598.40843.32341
</string>
</value>
<value>
<string>
978.57202.17736.49817
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +258,7 @@
...
@@ -252,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1543942098.55
</float>
<float>
1571834038.63
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -261,16 +267,20 @@
...
@@ -261,16 +267,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -318,7 +328,9 @@
...
@@ -318,7 +328,9 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_html.html
0 → 100644
View file @
c2be90a2
<!Doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Graph
</title>
<link
rel=
"stylesheet"
href=
"dygraph.css"
/>
<link
rel=
"stylesheet"
href=
"gadget_erp5_afs.css"
/>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"handlebars.js"
type=
"text/javascript"
></script>
<script
src=
"dygraph.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_afs_dygraph.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
class=
"dygraph-multibar dygraph-fullsize-chart chart"
></div>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_html.xml
0 → 100644
View file @
c2be90a2
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_afs_dygraph.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Custom AFS publisher list gadget
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_afs_dygraph_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget AFS Dygraph
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690329.44
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.15470.58044.42803
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567780986.37
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690309.75
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_js.js
0 → 100644
View file @
c2be90a2
/*globals window, RSVP, rJS, Dygraph, Date, Object, Intl*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
,
Dygraph
,
Date
,
Object
,
Intl
)
{
"
use strict
"
;
// Darken a color
function
darkenColor
(
colorStr
)
{
// Defined in dygraph-utils.js
var
color
=
Dygraph
.
toRGB_
(
colorStr
);
color
.
r
=
Math
.
floor
((
255
+
color
.
r
)
/
2
);
color
.
g
=
Math
.
floor
((
255
+
color
.
g
)
/
2
);
color
.
b
=
Math
.
floor
((
255
+
color
.
b
)
/
2
);
return
'
rgb(
'
+
color
.
r
+
'
,
'
+
color
.
g
+
'
,
'
+
color
.
b
+
'
)
'
;
}
function
multiColumnBarPlotter
(
e
)
{
var
g
,
ctx
,
set
,
y_bottom
,
min_sep
,
j
,
points
,
sep
,
sets
,
bar_width
,
fillColors
,
strokeColors
,
i
,
k
,
l
,
m
,
p
,
center_x
,
x_left
;
if
(
e
.
seriesIndex
!==
0
)
{
return
;
}
g
=
e
.
dygraph
;
ctx
=
e
.
drawingContext
;
sets
=
e
.
allSeriesPoints
;
y_bottom
=
e
.
dygraph
.
toDomYCoord
(
0
);
min_sep
=
Infinity
;
// Find the minimum separation between x-values.
// This determines the bar width.
for
(
j
=
0
;
j
<
sets
.
length
;
j
+=
1
)
{
points
=
sets
[
j
];
for
(
i
=
1
;
i
<
points
.
length
;
i
++
)
{
sep
=
points
[
i
].
canvasx
-
points
[
i
-
1
].
canvasx
;
if
(
sep
<
min_sep
)
{
min_sep
=
sep
;
}
}
}
bar_width
=
Math
.
floor
(
2.0
/
3
*
min_sep
);
fillColors
=
[];
strokeColors
=
g
.
getColors
();
for
(
m
=
0
;
m
<
strokeColors
.
length
;
m
+=
1
)
{
fillColors
.
push
(
darkenColor
(
strokeColors
[
m
]));
}
for
(
k
=
0
;
k
<
sets
.
length
;
k
+=
1
)
{
ctx
.
fillStyle
=
fillColors
[
k
];
ctx
.
strokeStyle
=
strokeColors
[
k
];
for
(
l
=
0
;
l
<
sets
[
k
].
length
;
l
+=
1
)
{
p
=
sets
[
k
][
l
];
center_x
=
p
.
canvasx
;
x_left
=
center_x
-
(
bar_width
/
2
)
*
(
1
-
k
/
(
sets
.
length
-
1
));
ctx
.
fillRect
(
x_left
,
p
.
canvasy
,
bar_width
/
sets
.
length
,
y_bottom
-
p
.
canvasy
);
ctx
.
strokeRect
(
x_left
,
p
.
canvasy
,
bar_width
/
sets
.
length
,
y_bottom
-
p
.
canvasy
);
}
}
}
function
prepDataSet
(
my_data
)
{
return
Object
.
keys
(
my_data
).
map
(
function
(
year
)
{
var
reported_year
=
my_data
[
year
];
return
[
new
Date
(
year
+
"
/6/30
"
),
reported_year
.
total_assets
.
value
,
reported_year
.
revenues
.
value
,
reported_year
.
earnings
.
value
,
reported_year
.
staff
.
value
];
});
}
function
getElem
(
my_element
,
my_selector
)
{
return
my_element
.
querySelector
(
my_selector
);
}
rJS
(
window
)
.
ready
(
function
(
gadget
)
{
gadget
.
property_dict
=
{
"
graph_wrapper
"
:
getElem
(
gadget
.
element
,
"
.dygraph-multibar
"
),
"
graph
"
:
null
,
"
deferred
"
:
new
RSVP
.
defer
()
};
// disable zoom
Dygraph
.
prototype
.
doZoomY_
=
function
()
{
return
;
};
Dygraph
.
prototype
.
doZoomX_
=
function
()
{
return
;
};
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
,
dict
=
gadget
.
property_dict
;
return
dict
.
deferred
.
resolve
(
options
.
data
);
})
.
declareMethod
(
"
renderGraph
"
,
function
(
my_data
)
{
var
gadget
=
this
;
var
dict
=
gadget
.
property_dict
;
dict
.
graph
=
new
Dygraph
(
dict
.
graph_wrapper
,
prepDataSet
(
my_data
),
{
dateWindow
:
[
Date
.
parse
(
"
2016/01/01
"
),
Date
.
parse
(
"
2019/01/01
"
)],
legend
:
'
always
'
,
drawPoints
:
true
,
title
:
'
Aggregate Financial Performance
'
,
width
:
"
auto
"
,
height
:
720
,
maxNumberWidth
:
20
,
includeZero
:
true
,
plotter
:
multiColumnBarPlotter
,
axes
:
{
x
:
{
axisLabelFormatter
:
function
(
d
)
{
return
d
.
getFullYear
();
},
valueFormatter
:
function
(
ms
)
{
return
new
Date
(
ms
).
getFullYear
();
}
},
y
:
{
axisLabelWidth
:
100
,
valueFormatter
:
function
(
value
)
{
return
new
Intl
.
NumberFormat
(
'
en-EN
'
,
{
style
:
'
currency
'
,
currency
:
'
EUR
'
,
minimumFractionDigits
:
"
0
"
}).
format
(
value
);
}
},
y2
:
{
labelsKMB
:
true
,
axisLabelWidth
:
100
,
independentTicks
:
true
}
},
labels
:
[
"
Year
"
,
"
Total Assets
"
,
"
Revenues
"
,
"
Earnings
"
,
"
Staff
"
],
series
:
{
"
Staff
"
:
{
axis
:
"
y2
"
}
}
}
);
})
.
declareService
(
function
()
{
var
gadget
=
this
,
dict
=
gadget
.
property_dict
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
dict
.
deferred
.
promise
;
})
.
push
(
function
(
my_data
)
{
return
gadget
.
renderGraph
(
my_data
);
});
});
}(
window
,
RSVP
,
rJS
,
Dygraph
,
Date
,
Object
,
Intl
));
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_dygraph_js.xml
0 → 100644
View file @
c2be90a2
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_afs_dygraph.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Dygraph generator
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_afs_dygraph_js
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget AFS Page Dygraph JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690871.98
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.57267.40535.56064
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1570115778.54
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690654.66
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
View file @
c2be90a2
/*global window, rJS, RSVP,
/*global window, rJS, RSVP, jIO, DOMParser, Object, Intl */
jIO, DOMParser */
/*jslint indent: 2, maxerr: 3, nomen: true */
/*jslint indent: 2, maxerr: 3, nomen: true */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
Object
)
{
"
use strict
"
;
"
use strict
"
;
var
DIRTY_OLOH_LOOKUP_UNTIL_API_WORKS
=
{
var
SPACE
=
"
"
,
DOUBLE_POINT
=
"
:
"
,
NA
=
"
-
"
,
TRUE
=
"
true
"
,
TOTAL
=
"
total
"
,
ENTRIES
=
"
entries
"
,
VALUE
=
"
value
"
,
STR
=
""
,
STAFF
=
"
staff
"
,
GLOBAL_KPI_DICT
=
{
2016
:
getEmptyKpiDict
(),
2017
:
getEmptyKpiDict
(),
2018
:
getEmptyKpiDict
()
},
DIRTY_OLOH_LOOKUP_UNTIL_API_WORKS
=
{
"
https://www.openhub.net/p/alfresco/analyses/latest/languages_summary
"
:
62894263
,
"
https://www.openhub.net/p/alfresco/analyses/latest/languages_summary
"
:
62894263
,
"
https://www.openhub.net/p/swift-lang/analyses/latest/languages_summary
"
:
755449
,
"
https://www.openhub.net/p/swift-lang/analyses/latest/languages_summary
"
:
755449
,
"
https://www.openhub.net/p/bluemind/analyses/latest/languages_summary
"
:
857795
,
"
https://www.openhub.net/p/bluemind/analyses/latest/languages_summary
"
:
857795
,
...
@@ -65,6 +78,66 @@
...
@@ -65,6 +78,66 @@
return
query
;
return
query
;
}
}
function
getEmptyKpiDict
()
{
return
{
"
staff
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
"
total_assets
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
"
revenues
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
"
earnings
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
"
public_source
"
:
{
"
entries
"
:
0
,
"
total
"
:
0
}
};
}
function
updateGlobalKpiDict
(
data
)
{
if
(
!
data
)
{
return
;
}
Object
.
keys
(
data
).
map
(
function
(
year
)
{
var
reported_year
=
data
[
year
];
Object
.
keys
(
reported_year
).
map
(
function
(
kpi
)
{
var
reported_value
=
reported_year
[
kpi
];
if
(
reported_value
!==
TRUE
)
{
GLOBAL_KPI_DICT
[
year
][
kpi
][
TOTAL
]
+=
1
;
if
(
reported_value
!==
STR
)
{
GLOBAL_KPI_DICT
[
year
][
kpi
][
VALUE
]
+=
parseInt
(
reported_value
,
10
);
GLOBAL_KPI_DICT
[
year
][
kpi
][
ENTRIES
]
+=
1
;
}
}
});
});
}
function
S4
()
{
return
(
'
0000
'
+
Math
.
floor
(
Math
.
random
()
*
0x10000
/* 65536 */
).
toString
(
16
)).
slice
(
-
4
);
}
function
UUID
()
{
return
S4
()
+
S4
()
+
"
-
"
+
S4
()
+
"
-
"
+
S4
()
+
"
-
"
+
S4
()
+
"
-
"
+
S4
()
+
S4
()
+
S4
();
}
function
setKpi
(
kpi
,
data
)
{
if
(
kpi
===
undefined
)
{
return
""
;
}
return
Object
.
keys
(
data
).
map
(
function
(
year
)
{
var
value
=
data
[
year
][
kpi
];
if
(
value
&&
kpi
!==
STAFF
)
{
value
=
new
Intl
.
NumberFormat
(
'
en-EN
'
,
{
style
:
'
currency
'
,
currency
:
'
EUR
'
,
minimumFractionDigits
:
"
0
"
}).
format
(
value
);
}
return
year
+
DOUBLE_POINT
+
(
value
||
NA
);
}).
join
(
SPACE
);
}
function
createDataSheets
(
gadget
)
{
function
createDataSheets
(
gadget
)
{
gadget
.
jio_allDocs
=
gadget
.
state_parameter_dict
.
jio_storage
.
allDocs
;
gadget
.
jio_allDocs
=
gadget
.
state_parameter_dict
.
jio_storage
.
allDocs
;
gadget
.
jio_get
=
gadget
.
state_parameter_dict
.
jio_storage
.
get
;
gadget
.
jio_get
=
gadget
.
state_parameter_dict
.
jio_storage
.
get
;
...
@@ -76,23 +149,23 @@
...
@@ -76,23 +149,23 @@
// Make Publisher datasheets
// Make Publisher datasheets
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
push
(
function
(
data
)
{
.
push
(
function
(
data
)
{
var
uid
=
0
,
var
publisher_id_list
,
publisher_id_list
,
promise_list
;
promise_list
;
/*
function isReplicate(el) {
return (el.id.indexOf("_replicate_") < 0);
}
*/
function
setPortalTypeOnPublisher
(
el
)
{
function
setPortalTypeOnPublisher
(
el
)
{
return
gadget
.
jio_get
(
el
.
id
)
return
gadget
.
jio_get
(
el
.
id
)
.
push
(
function
(
publisher_object
)
{
.
push
(
function
(
publisher_object
)
{
var
kpi
=
publisher_object
.
kpi_dict
;
publisher_object
.
portal_type
=
"
publisher
"
;
publisher_object
.
portal_type
=
"
publisher
"
;
//publisher_object.url = publisher_object.website;
// first punt at financial information
uid
+=
1
;
updateGlobalKpiDict
(
kpi
);
publisher_object
.
uid
=
uid
.
toString
();
publisher_object
.
staff
=
setKpi
(
"
staff
"
,
kpi
);
publisher_object
.
revenues
=
setKpi
(
"
revenues
"
,
kpi
);
publisher_object
.
total_assets
=
setKpi
(
"
total_assets
"
,
kpi
);
publisher_object
.
earnings
=
setKpi
(
"
earnings
"
,
kpi
);
publisher_object
.
uid
=
UUID
();
return
gadget
.
jio_put
(
publisher_object
.
uid
,
publisher_object
);
return
gadget
.
jio_put
(
publisher_object
.
uid
,
publisher_object
);
});
});
}
}
...
@@ -100,8 +173,18 @@
...
@@ -100,8 +173,18 @@
publisher_id_list
=
data
.
data
.
rows
;
publisher_id_list
=
data
.
data
.
rows
;
promise_list
=
publisher_id_list
.
map
(
setPortalTypeOnPublisher
);
promise_list
=
publisher_id_list
.
map
(
setPortalTypeOnPublisher
);
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
(
promise_list
);
return
RSVP
.
all
(
promise_list
);
})
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
UUID
(),
{
portal_type
:
"
kpi
"
,
data
:
GLOBAL_KPI_DICT
});
});
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
jio_allDocs
({
return
gadget
.
jio_allDocs
({
select_list
:
[
'
title
'
,
'
free_software_list
'
,
'
website
'
,
'
lines
'
],
select_list
:
[
'
title
'
,
'
free_software_list
'
,
'
website
'
,
'
lines
'
],
...
@@ -189,8 +272,7 @@
...
@@ -189,8 +272,7 @@
// Make Software datasheets
// Make Software datasheets
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
push
(
function
(
publisher_list
)
{
.
push
(
function
(
publisher_list
)
{
var
uid
=
2000
,
var
save_software_promise_list
,
save_software_promise_list
,
publishers
,
publishers
,
promise_list
;
promise_list
;
...
@@ -203,8 +285,7 @@
...
@@ -203,8 +285,7 @@
software
.
portal_type
=
"
software
"
;
software
.
portal_type
=
"
software
"
;
software
.
publisher
=
publisher
;
software
.
publisher
=
publisher
;
software
.
publisher_website
=
website
;
software
.
publisher_website
=
website
;
uid
+=
1
;
software
.
uid
=
UUID
();
software
.
uid
=
uid
.
toString
();
return
gadget
.
jio_put
(
software
.
uid
,
software
);
return
gadget
.
jio_put
(
software
.
uid
,
software
);
}
}
...
@@ -219,6 +300,7 @@
...
@@ -219,6 +300,7 @@
return
RSVP
.
all
(
promise_list
);
return
RSVP
.
all
(
promise_list
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
jio_allDocs
({
return
gadget
.
jio_allDocs
({
select_list
:
[
select_list
:
[
...
@@ -235,8 +317,7 @@
...
@@ -235,8 +317,7 @@
// Make Success Case datasheets
// Make Success Case datasheets
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
push
(
function
(
software_list
)
{
.
push
(
function
(
software_list
)
{
var
uid
=
3000
,
var
softwares
,
softwares
,
promise_list
;
promise_list
;
function
saveSuccessCaseListFromSoftware
(
softwareObject
)
{
function
saveSuccessCaseListFromSoftware
(
softwareObject
)
{
...
@@ -259,8 +340,7 @@
...
@@ -259,8 +340,7 @@
success_case
.
publisher
=
publisher
;
success_case
.
publisher
=
publisher
;
success_case
.
publisher_website
=
website
;
success_case
.
publisher_website
=
website
;
success_case
.
category_list
=
software
.
category_list
;
success_case
.
category_list
=
software
.
category_list
;
uid
+=
1
;
success_case
.
uid
=
UUID
();
success_case
.
uid
=
uid
.
toString
();
return
gadget
.
jio_put
(
success_case
.
uid
,
success_case
);
return
gadget
.
jio_put
(
success_case
.
uid
,
success_case
);
}
}
...
@@ -332,9 +412,11 @@
...
@@ -332,9 +412,11 @@
});
});
})
})
.
declareMethod
(
'
allDocs
'
,
function
(
option_dict
)
{
.
declareMethod
(
'
allDocs
'
,
function
(
options
)
{
option_dict
.
query
=
updateQuery
(
option_dict
.
query
,
option_dict
.
select_list
);
if
(
options
!==
undefined
)
{
return
this
.
state_parameter_dict
.
jio_storage
.
allDocs
(
option_dict
);
options
.
query
=
updateQuery
(
options
.
query
,
options
.
select_list
);
}
return
this
.
state_parameter_dict
.
jio_storage
.
allDocs
(
options
);
})
})
.
declareMethod
(
'
getAttachment
'
,
function
(
id
,
view
)
{
.
declareMethod
(
'
getAttachment
'
,
function
(
id
,
view
)
{
return
this
.
state_parameter_dict
.
jio_storage
.
getAttachment
(
id
,
view
);
return
this
.
state_parameter_dict
.
jio_storage
.
getAttachment
(
id
,
view
);
...
@@ -348,4 +430,4 @@
...
@@ -348,4 +430,4 @@
.
declareMethod
(
'
repair
'
,
function
()
{
.
declareMethod
(
'
repair
'
,
function
()
{
return
this
.
state_parameter_dict
.
jio_storage
.
repair
();
return
this
.
state_parameter_dict
.
jio_storage
.
repair
();
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
Object
,
Intl
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
View file @
c2be90a2
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
59.45138.58632.4420
</string>
</value>
<value>
<string>
9
78.57314.3759.273
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
496066128.63
</float>
<float>
1
570118702.65
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_html.html
View file @
c2be90a2
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<
li
class
=
"
ui-first-child
"
><
a
href
=
"
{{directory_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-table
"
data
-
i18n
=
"
Directory
"
accesskey
=
"
d
"
>
Directory
<
/a></
li
>
<
li
class
=
"
ui-first-child
"
><
a
href
=
"
{{directory_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-table
"
data
-
i18n
=
"
Directory
"
accesskey
=
"
d
"
>
Directory
<
/a></
li
>
<
li
><
a
href
=
"
{{publisher_statistic_href}}
"
class
=
"
ui.btn ui-btn-icon-left ui-icon-trophy
"
data
-
i18n
=
"
Statistics
"
accesskey
=
"
t
"
>
Statistics
<
/a></
li
>
<
li
><
a
href
=
"
{{publisher_statistic_href}}
"
class
=
"
ui.btn ui-btn-icon-left ui-icon-trophy
"
data
-
i18n
=
"
Statistics
"
accesskey
=
"
t
"
>
Statistics
<
/a></
li
>
<
li
><
a
href
=
"
{{publisher_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-university
"
data
-
i18n
=
"
Publishers
"
accesskey
=
"
a
"
>
Publishers
<
/a></
li
>
<
li
><
a
href
=
"
{{publisher_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-university
"
data
-
i18n
=
"
Publishers
"
accesskey
=
"
a
"
>
Publishers
<
/a></
li
>
<
li
><
a
href
=
"
{{financial_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-euro
"
data
-
i18n
=
"
Financial Data
"
accesskey
=
"
f
"
>
Financial
Data
<
/a></
li
>
<
li
><
a
href
=
"
{{software_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-cube
"
data
-
i18n
=
"
Software Products
"
accesskey
=
"
p
"
>
Software
Products
<
/a></
li
>
<
li
><
a
href
=
"
{{software_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-cube
"
data
-
i18n
=
"
Software Products
"
accesskey
=
"
p
"
>
Software
Products
<
/a></
li
>
<
li
class
=
"
ui-last-child
"
><
a
href
=
"
{{success_case_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-book
"
data
-
i18n
=
"
Success Cases
"
accesskey
=
"
s
"
>
Success
Cases
<
/a></
li
>
<
li
class
=
"
ui-last-child
"
><
a
href
=
"
{{success_case_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-book
"
data
-
i18n
=
"
Success Cases
"
accesskey
=
"
s
"
>
Success
Cases
<
/a></
li
>
<!--
div
>
<!--
div
>
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
<!--
li
class
=
"
ui-last-child
"
><
a
href
=
"
{{logout_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-power-off
"
data
-
i18n
=
"
Logout
"
accesskey
=
"
o
"
>
Logout
<
/a></
li
-->
<!--
li
class
=
"
ui-last-child
"
><
a
href
=
"
{{logout_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-power-off
"
data
-
i18n
=
"
Logout
"
accesskey
=
"
o
"
>
Logout
<
/a></
li
-->
<
/ul
>
<
/ul
>
<
br
/>
<
br
/>
<
p
class
=
"
ui-custom-content
"
>
Powered
by
:
<
br
/><
a
href
=
"
http://fdl-lef.org
"
>
Fond
de
Dotation
du
Libre
<
/a>.</
p
>
<
p
class
=
"
ui-custom-content
"
>
Powered
by
:
<
br
/><
a
href
=
"
http://fdl-lef.org
"
>
Fonds
de
Dotation
du
Libre
<
/a></
p
>
<
p
class
=
"
ui-custom-content
"
>
Contribute
on
:
<
br
/><
a
href
=
"
https://github.com/Nexedi/awesome-free-software
"
>
Awesome
Free
Software
(
on
Github
)
<
/a></
p
>
<
/div
>
<
/div
>
</script>
</script>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_html.xml
View file @
c2be90a2
...
@@ -152,11 +152,13 @@
...
@@ -152,11 +152,13 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -200,16 +202,20 @@
...
@@ -200,16 +202,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -232,7 +238,7 @@
...
@@ -232,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
972.5621.1286.50961
</string>
</value>
<value>
<string>
979.20368.21598.9762
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -250,7 +256,7 @@
...
@@ -250,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1544004551.94
</float>
<float>
1571834142.8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -259,16 +265,20 @@
...
@@ -259,16 +265,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -316,7 +326,9 @@
...
@@ -316,7 +326,9 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
View file @
c2be90a2
...
@@ -52,7 +52,8 @@
...
@@ -52,7 +52,8 @@
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_publisher_statistic
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_publisher_statistic
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_publisher_list
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_publisher_list
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_software_list
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_software_list
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_success_case_list
"
}})
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_success_case_list
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
afs_financial_list
"
}})
]);
]);
})
})
.
push
(
function
(
all_result
)
{
.
push
(
function
(
all_result
)
{
...
@@ -63,6 +64,7 @@
...
@@ -63,6 +64,7 @@
"
directory_href
"
:
all_result
[
0
],
"
directory_href
"
:
all_result
[
0
],
"
publisher_statistic_href
"
:
all_result
[
1
],
"
publisher_statistic_href
"
:
all_result
[
1
],
"
publisher_href
"
:
all_result
[
2
],
"
publisher_href
"
:
all_result
[
2
],
"
financial_href
"
:
all_result
[
5
],
"
software_href
"
:
all_result
[
3
],
"
software_href
"
:
all_result
[
3
],
"
success_case_href
"
:
all_result
[
4
]
"
success_case_href
"
:
all_result
[
4
]
});
});
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
View file @
c2be90a2
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
59.45262.19816.3459
4
</string>
</value>
<value>
<string>
9
78.13614.57660.4913
4
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
496066838.57
</float>
<float>
1
567689087.36
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_html.html
0 → 100644
View file @
c2be90a2
<!Doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Financial Data
</title>
<link
rel=
"stylesheet"
href=
"gadget_erp5_afs.css"
/>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"handlebars.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_afs_financial_list.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
data-gadget-url=
"gadget_erp5_afs_dygraph.html"
data-gadget-scope=
"dygraph"
data-gadget-sandbox=
"public"
>
</div>
<div
data-gadget-url=
"gadget_erp5_pt_form_list.html"
data-gadget-scope=
"form_list"
data-gadget-sandbox=
"public"
>
</div>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_html.xml
0 → 100644
View file @
c2be90a2
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_afs_financial_list.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Custom AFS publisher list gadget
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_page_afs_financial_list_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget AFS Page Financial List
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567688658.42
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.15403.27252.14950
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690801.37
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567688635.75
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_js.js
0 → 100644
View file @
c2be90a2
/*globals window, RSVP, rJS*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
allowPublicAcquisition
(
'
updateHeader
'
,
function
()
{
return
;
})
.
allowPublicAcquisition
(
'
getUrlParameter
'
,
function
(
argument_list
)
{
return
this
.
getUrlParameter
(
argument_list
)
.
push
(
function
(
result
)
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
return
[[
'
title
'
,
'
ascending
'
]];
}
return
result
;
});
})
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
,
kpi_data
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
updateHeader
({
page_title
:
"
Financial Data
"
}),
gadget
.
getUrlParameter
(
"
extended_search
"
)
]);
})
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
getDeclaredGadget
(
"
dygraph
"
),
gadget
.
getDeclaredGadget
(
"
form_list
"
),
gadget
.
jio_allDocs
({
query
:
'
portal_type: "kpi"
'
,
select_list
:
[
'
data
'
]
})
]);
})
.
push
(
function
(
response_list
)
{
var
column_list
=
[
//['logo', 'Logo'],
[
'
title
'
,
'
Title
'
],
[
'
staff
'
,
'
Staff
'
],
[
'
total_assets
'
,
'
Total Assets
'
],
[
'
revenues
'
,
'
Revenues
'
],
[
'
earnings
'
,
'
Earnings
'
]
];
return
RSVP
.
all
([
response_list
[
0
].
render
({
data
:
response_list
[
2
].
data
.
rows
[
0
].
value
.
data
}),
response_list
[
1
].
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
listbox
"
:
{
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
0
,
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
20
,
"
css_class
"
:
"
financial_listbox
"
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
'
urn:jio:allDocs?query=
'
+
'
portal_type:
'
+
'
"publisher"
'
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
sort_on
"
:
[
"
title
"
,
"
ascending
"
],
"
title
"
:
"
Documents
"
,
"
type
"
:
"
ListBox
"
}
}
},
"
_links
"
:
{
"
type
"
:
{
name
:
""
}}
},
form_definition
:
{
group_list
:
[
[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
]
]
}
})
]);
});
});
}(
window
,
RSVP
,
rJS
));
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_financial_list_js.xml
0 → 100644
View file @
c2be90a2
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_afs_financial_list.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Custom AFS publisher list gadget
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_page_afs_financial_list_js
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget AFS Page Financial List JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567688744.91
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.57299.34791.13755
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1570538607.06
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567688727.22
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.js
View file @
c2be90a2
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
}
else
{
}
else
{
software
.
success_case_list
=
software
.
success_case_list
software
.
success_case_list
=
software
.
success_case_list
.
filter
(
function
(
entry
)
{
.
filter
(
function
(
entry
)
{
if
(
!
!
EMPTY
.
includes
(
entry
.
title
))
{
if
(
!
EMPTY
.
includes
(
entry
.
title
))
{
return
entry
;
return
entry
;
}
}
});
});
...
@@ -80,7 +80,6 @@
...
@@ -80,7 +80,6 @@
);
);
}
}
});
});
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
(
wiki_list
);
return
RSVP
.
all
(
wiki_list
);
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
View file @
c2be90a2
...
@@ -148,11 +148,13 @@
...
@@ -148,11 +148,13 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -196,16 +198,20 @@
...
@@ -196,16 +198,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -228,7 +234,7 @@
...
@@ -228,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.15194.20575.26129
</string>
</value>
<value>
<string>
979.10395.10108.60245
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +252,7 @@
...
@@ -246,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1567678597.7
3
</float>
<float>
1571236327.3
3
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -255,16 +261,20 @@
...
@@ -255,16 +261,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -312,7 +322,9 @@
...
@@ -312,7 +322,9 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.js
View file @
c2be90a2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.xml
View file @
c2be90a2
...
@@ -148,11 +148,13 @@
...
@@ -148,11 +148,13 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -196,16 +198,20 @@
...
@@ -196,16 +198,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -228,7 +234,7 @@
...
@@ -228,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.45151.41449.24985
</string>
</value>
<value>
<string>
978.13614.57660.49134
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +252,7 @@
...
@@ -246,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1496067110.92
</float>
<float>
1571233280.55
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -255,16 +261,20 @@
...
@@ -255,16 +261,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -312,7 +322,9 @@
...
@@ -312,7 +322,9 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_site_module/afs.xml
View file @
c2be90a2
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
configuration_content_security_policy
</string>
</key>
<key>
<string>
configuration_content_security_policy
</string>
</key>
<value>
<string>
default-src \'self\'; img-src \'self\' https://images.unsplash.com * data:; media-src \'self\' blob:; connect-src \'self\' https://api.unsplash.com https://en.wikipedia.org https://fr.wikipedia.org https://raw.githubusercontent.com https://api.github.com data:; script-src \'self\' \'unsafe-eval\'; font-src \'self\'; style-src \'self\' data:; frame-src \'self\' data:
</string>
</value>
<value>
<string>
default-src \'self\'; img-src \'self\' https://images.unsplash.com * data:; media-src \'self\' blob:; connect-src \'self\' https://api.unsplash.com https://en.wikipedia.org https://fr.wikipedia.org https://raw.githubusercontent.com https://api.github.com data:; script-src \'self\' \'unsafe-eval\'; font-src \'self\'; style-src \'self\'
\'unsafe-inline\'
data:; frame-src \'self\' data:
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
configuration_default_view_action_reference
</string>
</key>
<key>
<string>
configuration_default_view_action_reference
</string>
</key>
...
@@ -600,7 +600,7 @@
...
@@ -600,7 +600,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -614,7 +614,7 @@
...
@@ -614,7 +614,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
59.30886.17996.5358
</string>
</value>
<value>
<string>
9
78.15528.13706.25002
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -632,7 +632,7 @@
...
@@ -632,7 +632,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
495226845.13
</float>
<float>
1
567697804.89
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs_afs_directory_ui_test/PathTemplateItem/portal_tests/afs_ui_zuite/testAfsRenderjsListNavigation.zpt
View file @
c2be90a2
...
@@ -245,6 +245,31 @@
...
@@ -245,6 +245,31 @@
<td>
//div[contains(@class, 'custom-success-story-image-wrapper')]
</td>
<td>
//div[contains(@class, 'custom-success-story-image-wrapper')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Financial Data']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[contains(@class, 'ui-icon-euro')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'dygraph-title')]
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Aggregate Financial Performance
</td>
<td></td>
</tr>
</tbody></table>
</tbody></table>
</body>
</body>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.css
0 → 100644
View file @
c2be90a2
/**
* Default styles for the dygraphs charting library.
*/
.dygraph-legend
{
position
:
absolute
;
font-size
:
14px
;
z-index
:
10
;
width
:
250px
;
/* labelsDivWidth */
/*
dygraphs determines these based on the presence of chart labels.
It might make more sense to create a wrapper div around the chart proper.
top: 0px;
right: 2px;
*/
background
:
white
;
line-height
:
normal
;
text-align
:
left
;
overflow
:
hidden
;
}
/* styles for a solid line in the legend */
.dygraph-legend-line
{
display
:
inline-block
;
position
:
relative
;
bottom
:
.5ex
;
padding-left
:
1em
;
height
:
1px
;
border-bottom-width
:
2px
;
border-bottom-style
:
solid
;
/* border-bottom-color is set based on the series color */
}
/* styles for a dashed line in the legend, e.g. when strokePattern is set */
.dygraph-legend-dash
{
display
:
inline-block
;
position
:
relative
;
bottom
:
.5ex
;
height
:
1px
;
border-bottom-width
:
2px
;
border-bottom-style
:
solid
;
/* border-bottom-color is set based on the series color */
/* margin-right is set based on the stroke pattern */
/* padding-left is set based on the stroke pattern */
}
.dygraph-roller
{
position
:
absolute
;
z-index
:
10
;
}
/* This class is shared by all annotations, including those with icons */
.dygraph-annotation
{
position
:
absolute
;
z-index
:
10
;
overflow
:
hidden
;
}
/* This class only applies to annotations without icons */
/* Old class name: .dygraphDefaultAnnotation */
.dygraph-default-annotation
{
border
:
1px
solid
black
;
background-color
:
white
;
text-align
:
center
;
}
.dygraph-axis-label
{
/* position: absolute; */
/* font-size: 14px; */
z-index
:
10
;
line-height
:
normal
;
overflow
:
hidden
;
color
:
black
;
/* replaces old axisLabelColor option */
}
.dygraph-axis-label-x
{
}
.dygraph-axis-label-y
{
}
.dygraph-axis-label-y2
{
}
.dygraph-title
{
font-weight
:
bold
;
z-index
:
10
;
text-align
:
center
;
/* font-size: based on titleHeight option */
}
.dygraph-xlabel
{
text-align
:
center
;
/* font-size: based on xLabelHeight option */
}
/* For y-axis label */
.dygraph-label-rotate-left
{
text-align
:
center
;
/* See http://caniuse.com/#feat=transforms2d */
transform
:
rotate
(
90deg
);
-webkit-transform
:
rotate
(
90deg
);
-moz-transform
:
rotate
(
90deg
);
-o-transform
:
rotate
(
90deg
);
-ms-transform
:
rotate
(
90deg
);
}
/* For y2-axis label */
.dygraph-label-rotate-right
{
text-align
:
center
;
/* See http://caniuse.com/#feat=transforms2d */
transform
:
rotate
(
-90deg
);
-webkit-transform
:
rotate
(
-90deg
);
-moz-transform
:
rotate
(
-90deg
);
-o-transform
:
rotate
(
-90deg
);
-ms-transform
:
rotate
(
-90deg
);
}
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_css.xml
0 → 100644
View file @
c2be90a2
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Style"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
dygraph.css
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
version 2.1.0
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
rjs_dygraph_css
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Style
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Dygraph CSS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690608.53
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.15408.30609.16640
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690602.64
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690571.35
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.js
View file @
c2be90a2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_dygraph_js.xml
View file @
c2be90a2
...
@@ -73,9 +73,7 @@
...
@@ -73,9 +73,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<value>
<string>
Version 2.1.0
</string>
</value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
@@ -97,7 +95,7 @@
...
@@ -97,7 +95,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Dygraph
</string>
</value>
<value>
<string>
Dygraph
JS
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -134,6 +132,12 @@
...
@@ -134,6 +132,12 @@
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</dictionary>
</value>
</value>
</item>
</item>
...
@@ -155,7 +159,7 @@
...
@@ -155,7 +159,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
superseb
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -177,7 +181,7 @@
...
@@ -177,7 +181,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
490781708.05
</float>
<float>
1
567690543.21
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -208,7 +212,7 @@
...
@@ -208,7 +212,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
superseb
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -222,7 +226,7 @@
...
@@ -222,7 +226,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
58.21273.52560.22391
</string>
</value>
<value>
<string>
9
78.15406.43543.58828
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -240,7 +244,64 @@
...
@@ -240,7 +244,64 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1490878686.29
</float>
<float>
1567690486.25
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1567690414.24
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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