]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/classic/grid/remote-group-summary-grid-simjax.js
2 'Ext.ux.ajax.SimManager'
6 * Setup our faux Ajax response "simlet".
8 function initAjaxSim () {
9 Ext
. ux
. ajax
. SimManager
. register ({
10 'remote-group-summary-grid.php' : {
14 { projectId
: 100 , project
: 'Forms: Field Anchoring' , taskId
: 112 , description
: 'Integrate 2.0 Forms with 2.0 Layouts' , estHours
: 6 , rate
: 150 , due
: '06/24/2007' },
15 { projectId
: 100 , project
: 'Forms: Field Anchoring' , taskId
: 113 , description
: 'Implement AnchorLayout' , estHours
: 4 , rate
: 150 , due
: '06/25/2007' },
16 { projectId
: 100 , project
: 'Forms: Field Anchoring' , taskId
: 114 , description
: 'Add support for multiple types of anchors' , estHours
: 4 , rate
: 150 , due
: '06/27/2007' },
17 { projectId
: 100 , project
: 'Forms: Field Anchoring' , taskId
: 115 , description
: 'Testing and debugging' , estHours
: 8 , rate
: 0 , due
: '06/29/2007' },
18 { projectId
: 101 , project
: 'Grid: Single-level Grouping' , taskId
: 101 , description
: 'Add required rendering "hooks" to GridView' , estHours
: 6 , rate
: 100 , due
: '07/01/2007' },
19 { projectId
: 101 , project
: 'Grid: Single-level Grouping' , taskId
: 102 , description
: 'Extend GridView and override rendering functions' , estHours
: 6 , rate
: 100 , due
: '07/03/2007' },
20 { projectId
: 101 , project
: 'Grid: Single-level Grouping' , taskId
: 103 , description
: 'Extend Store with grouping functionality' , estHours
: 4 , rate
: 100 , due
: '07/04/2007' },
21 { projectId
: 101 , project
: 'Grid: Single-level Grouping' , taskId
: 121 , description
: 'Default CSS Styling' , estHours
: 2 , rate
: 100 , due
: '07/05/2007' },
22 { projectId
: 101 , project
: 'Grid: Single-level Grouping' , taskId
: 104 , description
: 'Testing and debugging' , estHours
: 6 , rate
: 100 , due
: '07/06/2007' },
23 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 105 , description
: 'Ext Grid plugin integration' , estHours
: 4 , rate
: 125 , due
: '07/01/2007' },
24 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 106 , description
: 'Summary creation during rendering phase' , estHours
: 4 , rate
: 125 , due
: '07/02/2007' },
25 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 107 , description
: 'Dynamic summary updates in editor grids' , estHours
: 6 , rate
: 125 , due
: '07/05/2007' },
26 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 108 , description
: 'Remote summary integration' , estHours
: 4 , rate
: 125 , due
: '07/05/2007' },
27 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 109 , description
: 'Summary renderers and calculators' , estHours
: 4 , rate
: 125 , due
: '07/06/2007' },
28 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 110 , description
: 'Integrate summaries with GroupingView' , estHours
: 10 , rate
: 125 , due
: '07/11/2007' },
29 { projectId
: 102 , project
: 'Grid: Summary Rows' , taskId
: 111 , description
: 'Testing and debugging' , estHours
: 8 , rate
: 125 , due
: '07/15/2007' }
32 getGroupSummary : function ( groupField
, rows
, ctx
) {
33 var ret
= Ext
. apply ({}, rows
[ 0 ]);
36 Ext
. Array
. forEach ( rows
, function ( row
) {
37 ret
. estHours
+= row
. estHours
;
38 ret
. cost
+= row
. estHours
* row
. rate
;
46 Ext
. onReady ( initAjaxSim
);