Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
nexedi
dream
Commits
99a31474
Commit
99a31474
authored
Jun 17, 2014
by
Romain Courteaud
Committed by
Jérome Perrin
Aug 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Publish static version.
parent
b0206ca4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
121 additions
and
12 deletions
+121
-12
dream/platform/static/dream/Input_viewShiftSpreadsheet.html
dream/platform/static/dream/Input_viewShiftSpreadsheet.html
+17
-0
dream/platform/static/dream/Input_viewShiftSpreadsheet.js
dream/platform/static/dream/Input_viewShiftSpreadsheet.js
+22
-0
dream/platform/static/dream/Input_viewWipPartSpreadsheet.html
...m/platform/static/dream/Input_viewWipPartSpreadsheet.html
+17
-0
dream/platform/static/dream/Input_viewWipPartSpreadsheet.js
dream/platform/static/dream/Input_viewWipPartSpreadsheet.js
+22
-0
dream/platform/static/dream/index.html
dream/platform/static/dream/index.html
+2
-2
dream/platform/static/dream/index.js
dream/platform/static/dream/index.js
+41
-10
No files found.
dream/platform/static/dream/Input_viewShiftSpreadsheet.html
0 → 100644
View file @
99a31474
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Edit Wip Part Spreadsheet
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Input_viewShiftSpreadsheet.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
data-gadget-url=
"../handsontable/index.html"
data-gadget-scope=
"tableeditor"
></div>
</body>
</html>
dream/platform/static/dream/Input_viewShiftSpreadsheet.js
0 → 100644
View file @
99a31474
/*global console, rJS, RSVP, initGadgetMixin */
(
function
(
window
,
rJS
,
RSVP
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
).
declareMethod
(
"
render
"
,
function
(
options
)
{
var
jio_key
=
options
.
id
,
gadget
=
this
;
gadget
.
props
.
jio_key
=
jio_key
;
return
new
RSVP
.
Queue
().
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
aq_getAttachment
({
_id
:
jio_key
,
_attachment
:
"
body.json
"
}),
gadget
.
getDeclaredGadget
(
"
tableeditor
"
)
]);
}).
push
(
function
(
result_list
)
{
return
result_list
[
1
].
render
(
JSON
.
stringify
(
JSON
.
parse
(
result_list
[
0
]).
shift_spreadsheet
));
});
}).
declareMethod
(
"
startService
"
,
function
()
{
return
this
.
getDeclaredGadget
(
"
tableeditor
"
).
push
(
function
(
tableeditor
)
{
return
tableeditor
.
startService
();
});
});
})(
window
,
rJS
,
RSVP
,
initGadgetMixin
);
\ No newline at end of file
dream/platform/static/dream/Input_viewWipPartSpreadsheet.html
0 → 100644
View file @
99a31474
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Edit Wip Part Spreadsheet
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Input_viewWipPartSpreadsheet.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
data-gadget-url=
"../handsontable/index.html"
data-gadget-scope=
"tableeditor"
></div>
</body>
</html>
dream/platform/static/dream/Input_viewWipPartSpreadsheet.js
0 → 100644
View file @
99a31474
/*global console, rJS, RSVP, initGadgetMixin */
(
function
(
window
,
rJS
,
RSVP
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
).
declareMethod
(
"
render
"
,
function
(
options
)
{
var
jio_key
=
options
.
id
,
gadget
=
this
;
gadget
.
props
.
jio_key
=
jio_key
;
return
new
RSVP
.
Queue
().
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
aq_getAttachment
({
_id
:
jio_key
,
_attachment
:
"
body.json
"
}),
gadget
.
getDeclaredGadget
(
"
tableeditor
"
)
]);
}).
push
(
function
(
result_list
)
{
return
result_list
[
1
].
render
(
JSON
.
stringify
(
JSON
.
parse
(
result_list
[
0
]).
wip_part_spreadsheet
));
});
}).
declareMethod
(
"
startService
"
,
function
()
{
return
this
.
getDeclaredGadget
(
"
tableeditor
"
).
push
(
function
(
tableeditor
)
{
return
tableeditor
.
startService
();
});
});
})(
window
,
rJS
,
RSVP
,
initGadgetMixin
);
\ No newline at end of file
dream/platform/static/dream/index.html
View file @
99a31474
...
...
@@ -52,8 +52,8 @@
<a
href=
"#leftpanel"
data-icon=
"bars"
class=
"menu_link ui-btn ui-icon-bars ui-btn-icon-left"
>
Menu
</a>
<a
data-icon=
"
back
"
class=
"back_link ui-btn ui-icon-
back ui-btn-icon-right"
>
Back
</a>
<a
data-icon=
"
carat-u
"
class=
"back_link ui-btn ui-icon-
carat-u ui-btn-icon-left"
>
Parent
</a>
</div>
<h1>
Dream Simulation
</h1>
...
...
dream/platform/static/dream/index.js
View file @
99a31474
...
...
@@ -31,10 +31,21 @@
type
:
"
object_view
"
,
title
:
"
Production Line
"
},
view_
table
:
{
gadget
:
"
Input_view
Table
"
,
view_
wip_part_spreadsheet
:
{
gadget
:
"
Input_view
WipPartSpreadsheet
"
,
type
:
"
object_view
"
,
title
:
"
Edit table
"
title
:
"
WIP Part Spreadsheet
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
wip_part_spreadsheet
;
}
},
view_shift_spreadsheet
:
{
gadget
:
"
Input_viewShiftSpreadsheet
"
,
type
:
"
object_view
"
,
title
:
"
Shift Spreadsheet
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
shift_spreadsheet
;
}
},
view_simu
:
{
gadget
:
"
Input_viewSimulation
"
,
...
...
@@ -56,32 +67,50 @@
view
:
{
gadget
:
"
Output_viewStationUtilisationGraph
"
,
type
:
"
object_view
"
,
title
:
"
Stations Utilization
"
title
:
"
Stations Utilization
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
station_utilisation_graph
;
}
},
view_queue_stat
:
{
gadget
:
"
Output_viewQueueStatGraph
"
,
type
:
"
object_view
"
,
title
:
"
Queues Statistics
"
title
:
"
Queues Statistics
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
queue_stat
;
}
},
view_exit_stat
:
{
gadget
:
"
Output_viewExitStatistics
"
,
type
:
"
object_view
"
,
title
:
"
Exit Statistics
"
title
:
"
Exit Statistics
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
exit_stat
;
}
},
view_gantt
:
{
gadget
:
"
Output_viewJobGantt
"
,
type
:
"
object_view
"
,
title
:
"
Job Gantt
"
title
:
"
Job Gantt
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
job_gantt
;
}
},
view_schedule
:
{
gadget
:
"
Output_viewJobScheduleSpreadsheet
"
,
type
:
"
object_view
"
,
title
:
"
Job Schedule
"
title
:
"
Job Schedule
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
job_schedule_spreadsheet
;
}
},
view_debug
:
{
gadget
:
"
Output_viewDebugJson
"
,
type
:
"
object_view
"
,
title
:
"
Debug JSON
"
title
:
"
Debug JSON
"
,
condition
:
function
(
gadget
)
{
return
gadget
.
props
.
configuration_dict
[
"
Dream-Configuration
"
].
gui
.
debug_json
;
}
}
}
},
panel_template
,
navigation_template
,
active_navigation_template
,
gadget_klass
=
rJS
(
window
);
...
...
@@ -172,7 +201,9 @@
if
(
portal_types
[
portal_type
].
hasOwnProperty
(
key2
))
{
action
=
portal_types
[
portal_type
][
key2
];
if
(
action
.
type
===
"
object_view
"
)
{
url_list
.
push
(
calculateTabHTML
(
gadget
,
options
,
key2
,
action
.
title
,
key2
===
options
.
action
));
if
(
action
.
condition
===
undefined
||
action
.
condition
(
gadget
))
{
url_list
.
push
(
calculateTabHTML
(
gadget
,
options
,
key2
,
action
.
title
,
key2
===
options
.
action
));
}
}
}
}
...
...
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