php warnings
[Pman.MTrack] / Pman.Dialog.MTrackBulkChange.bjs
1 {
2  "name" : "Pman.Dialog.MTrackBulkChange",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackBulkChange.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "672caf27f5363dc833bda5099775e891" : "Developer",
10   "9e727fdd3aec8274f46685441900280d" : "Project",
11   "6c768695a8efb18436d5b7b4374cdb45" : "Select core_enum",
12   "ec53a8c4f07baed5d8825072c89799be" : "Status",
13   "1243daf593fa297e07ab03bf06d925af" : "Searching...",
14   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
15   "b18d852fa0d2465fe38b05b96dd5b736" : "Bulk Update",
16   "502996d9790340c5fd7b86a5b93b1c9f" : "Priority",
17   "3cc5fe396ec583c6d9f38f80a06674a4" : "Select prioirty",
18   "24f27bda5dd2c488aa9bc7700ba98c34" : "Select Projects",
19   "340c2ee497b85d5954b01c64de7f44f6" : "Select Person",
20   "9aadb017cc5b335be77ba090d5029259" : "Select status",
21   "06933067aafd48425d67bcb01bba5cb6" : "Update"
22  },
23  "named_strings" : {
24   "status_display_name_emptyText" : "ec53a8c4f07baed5d8825072c89799be",
25   "developer_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
26   "project_id_name_emptyText" : "24f27bda5dd2c488aa9bc7700ba98c34",
27   "priority_id_display_name_qtip" : "6c768695a8efb18436d5b7b4374cdb45",
28   "status_display_name_qtip" : "9aadb017cc5b335be77ba090d5029259",
29   "priority_id_display_name_emptyText" : "3cc5fe396ec583c6d9f38f80a06674a4",
30   "developer_id_name_emptyText" : "340c2ee497b85d5954b01c64de7f44f6",
31   "project_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
32   "priority_id_display_name_fieldLabel" : "502996d9790340c5fd7b86a5b93b1c9f",
33   "project_id_name_qtip" : "24f27bda5dd2c488aa9bc7700ba98c34",
34   "status_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
35   "developer_id_name_qtip" : "340c2ee497b85d5954b01c64de7f44f6",
36   "project_id_name_fieldLabel" : "9e727fdd3aec8274f46685441900280d",
37   "status_display_name_fieldLabel" : "ec53a8c4f07baed5d8825072c89799be",
38   "priority_id_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
39   "developer_id_name_fieldLabel" : "672caf27f5363dc833bda5099775e891"
40  },
41  "items" : [
42   {
43    "modal" : true,
44    "collapsible" : false,
45    "title" : "Bulk Update",
46    "xtype" : "LayoutDialog",
47    "width" : 500,
48    "$ xns" : "Roo",
49    "closable" : false,
50    "resizable" : false,
51    "height" : 300,
52    "items" : [
53     {
54      "xtype" : "LayoutRegion",
55      "$ xns" : "Roo",
56      "* prop" : "center"
57     },
58     {
59      "region" : "center",
60      "xtype" : "ContentPanel",
61      "$ xns" : "Roo",
62      "items" : [
63       {
64        "listeners" : {
65         "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n    \n        _this.form.setValues(_this.data);\n        \n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n \n        return;\n    }\n    if (action.type =='submit') {\n        return;\n        // not used here..\n \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
66         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
67        },
68        "$ url" : "baseURL + '/Roo/mtrack_ticket.php'",
69        "method" : "POST",
70        "xtype" : "Form",
71        "style" : "margin:10px;",
72        "$ xns" : "Roo.form",
73        "items" : [
74         {
75          "listWidth" : 400,
76          "triggerAction" : "all",
77          "forceSelection" : true,
78          "selectOnFocus" : true,
79          "fieldLabel" : "Project",
80          "pageSize" : 20,
81          "xtype" : "ComboBox",
82          "emptyText" : "Select Projects",
83          "minChars" : 2,
84          "valueField" : "id",
85          "displayField" : "name",
86          "hiddenName" : "project_id",
87          "allowBlank" : false,
88          "typeAhead" : true,
89          "editable" : false,
90          "$ xns" : "Roo.form",
91          "width" : 300,
92          "qtip" : "Select Projects",
93          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
94          "queryParam" : "query[name]",
95          "name" : "project_id_name",
96          "loadingText" : "Searching...",
97          "items" : [
98           {
99            "listeners" : {
100             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
101            },
102            "xtype" : "Store",
103            "remoteSort" : true,
104            "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
105            "$ xns" : "Roo.data",
106            "* prop" : "store",
107            "items" : [
108             {
109              "$ url" : "baseURL + '/Roo/Projects.php'",
110              "xtype" : "HttpProxy",
111              "method" : "GET",
112              "$ xns" : "Roo.data",
113              "* prop" : "proxy"
114             },
115             {
116              "id" : "id",
117              "root" : "data",
118              "xtype" : "JsonReader",
119              "$ xns" : "Roo.data",
120              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
121              "* prop" : "reader",
122              "totalProperty" : "total"
123             }
124            ]
125           }
126          ]
127         },
128         {
129          "listWidth" : 400,
130          "triggerAction" : "all",
131          "fieldLabel" : "Priority",
132          "forceSelection" : true,
133          "selectOnFocus" : true,
134          "pageSize" : 20,
135          "displayField" : "display_name",
136          "emptyText" : "Select prioirty",
137          "hiddenName" : "priority_id",
138          "minChars" : 2,
139          "valueField" : "id",
140          "xtype" : "ComboBox",
141          "allowBlank" : false,
142          "typeAhead" : true,
143          "editable" : false,
144          "width" : 300,
145          "$ xns" : "Roo.form",
146          "name" : "priority_id_display_name",
147          "qtip" : "Select core_enum",
148          "queryParam" : "query[etype]",
149          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
150          "loadingText" : "Searching...",
151          "items" : [
152           {
153            "listeners" : {
154             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype = 'priority';\n}\n"
155            },
156            "xtype" : "Store",
157            "remoteSort" : true,
158            "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
159            "$ xns" : "Roo.data",
160            "* prop" : "store",
161            "items" : [
162             {
163              "$ url" : "baseURL + '/Roo/core_enum.php'",
164              "xtype" : "HttpProxy",
165              "method" : "GET",
166              "$ xns" : "Roo.data",
167              "* prop" : "proxy"
168             },
169             {
170              "id" : "id",
171              "root" : "data",
172              "xtype" : "JsonReader",
173              "$ xns" : "Roo.data",
174              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
175              "* prop" : "reader",
176              "totalProperty" : "total"
177             }
178            ]
179           }
180          ]
181         },
182         {
183          "alwaysQuery" : true,
184          "listWidth" : 400,
185          "triggerAction" : "all",
186          "fieldLabel" : "Status",
187          "forceSelection" : true,
188          "selectOnFocus" : true,
189          "pageSize" : 20,
190          "displayField" : "display_name",
191          "emptyText" : "Status",
192          "hiddenName" : "status",
193          "minChars" : 2,
194          "valueField" : "id",
195          "xtype" : "ComboBox",
196          "allowBlank" : false,
197          "typeAhead" : true,
198          "editable" : false,
199          "width" : 300,
200          "$ xns" : "Roo.form",
201          "name" : "status_display_name",
202          "qtip" : "Select status",
203          "queryParam" : "query[etype]",
204          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
205          "loadingText" : "Searching...",
206          "items" : [
207           {
208            "listeners" : {
209             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    \n   // o.params['query[ticket_change]'] = _this.data.ids;\n    o.params['etype[0]'] = 'ticketstate';\n    o.params['etype[0]'] = 'resolution';    \n    \n}\n"
210            },
211            "xtype" : "Store",
212            "remoteSort" : true,
213            "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
214            "$ xns" : "Roo.data",
215            "* prop" : "store",
216            "items" : [
217             {
218              "$ url" : "baseURL + '/Roo/core_enum.php'",
219              "xtype" : "HttpProxy",
220              "method" : "GET",
221              "$ xns" : "Roo.data",
222              "* prop" : "proxy"
223             },
224             {
225              "id" : "id",
226              "root" : "data",
227              "xtype" : "JsonReader",
228              "$ xns" : "Roo.data",
229              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
230              "* prop" : "reader",
231              "totalProperty" : "total"
232             }
233            ]
234           }
235          ]
236         },
237         {
238          "listWidth" : 400,
239          "triggerAction" : "all",
240          "fieldLabel" : "Developer",
241          "forceSelection" : true,
242          "selectOnFocus" : true,
243          "pageSize" : 20,
244          "displayField" : "name",
245          "emptyText" : "Select Person",
246          "hiddenName" : "developer_id",
247          "minChars" : 2,
248          "valueField" : "id",
249          "xtype" : "ComboBox",
250          "allowBlank" : false,
251          "typeAhead" : true,
252          "editable" : false,
253          "width" : 300,
254          "$ xns" : "Roo.form",
255          "name" : "developer_id_name",
256          "qtip" : "Select Person",
257          "queryParam" : "query[name]",
258          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>",
259          "loadingText" : "Searching...",
260          "items" : [
261           {
262            "listeners" : {
263             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['query[project_id]'] = _this.data.project_id;\n    o.params['query[role]'] = 'DEVELOPER';\n}\n"
264            },
265            "xtype" : "Store",
266            "remoteSort" : true,
267            "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
268            "$ xns" : "Roo.data",
269            "* prop" : "store",
270            "items" : [
271             {
272              "$ url" : "baseURL + '/Roo/Person.php'",
273              "xtype" : "HttpProxy",
274              "method" : "GET",
275              "$ xns" : "Roo.data",
276              "* prop" : "proxy"
277             },
278             {
279              "id" : "id",
280              "root" : "data",
281              "xtype" : "JsonReader",
282              "$ xns" : "Roo.data",
283              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
284              "* prop" : "reader",
285              "totalProperty" : "total"
286             }
287            ]
288           }
289          ]
290         }
291        ]
292       }
293      ]
294     },
295     {
296      "listeners" : {
297       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
298      },
299      "text" : "Cancel",
300      "xtype" : "Button",
301      "$ xns" : "Roo",
302      "* prop" : "buttons[]"
303     },
304     {
305      "listeners" : {
306       "click" : "function (_self, e)\n{\n    // do some checks?\n    var params = _this.form.getValues();\n    params._bulk_update = _this.data.ids;\n  \n    Pman.Request({\n        url : baseURL + '/Roo/mtrack_ticket',\n        method : 'POST',\n        params : params,\n        mask: 'updating',\n        success : function(res) {\n            _this.dialog.hide();\n            _this.callback(res);\n        }\n     });\n\n     \n    //_this.form.doAction(\"submit\");\n\n}"
307      },
308      "text" : "Update",
309      "xtype" : "Button",
310      "$ xns" : "Roo",
311      "* prop" : "buttons[]"
312     }
313    ]
314   }
315  ]
316 }