3 "name": "Pman.Dialog.CoreProject",
6 "path": "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreProject.bjs",
13 "title": "Edit / Create Projects",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
32 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\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 _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\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",
33 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
36 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/Projects.php'",
47 "fieldLabel": "Project Name",
49 "qtip": "Enter Project Name",
56 "displayField": "desc",
58 "emptyText": "Select Project Type",
59 "fieldLabel": "Project Type",
60 "forceSelection": true,
63 "loadingText": "Searching...",
67 "qtip": "Select Project Type",
68 "queryParam": "query[name]",
69 "selectOnFocus": true,
70 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{desc}</b> </div>",
71 "triggerAction": "all",
80 "|data": "[ [ 'U' , \"Project (Unconfirmed)\" ],\n[ 'P' , \"Project\" ],\n[ 'C' , \"Project (Closed)\" ],\n[ 'N' , \"Non-Project\" ],\n[ 'X' , \"Non-Project (Closed)\" ]\n]",
81 "|fields": " [ 'code', 'desc' ]",
82 "xtype": "SimpleStore",
89 "add": "function (combo)\n{\n Pman.Dialog.Companies.show( { id: 0 }, function(data) {\n _this.form.setValues({ \n client_id : data.id,\n client_id_name : data.name\n });\n }); \n}"
91 "allowBlank": "false",
92 "displayField": "name",
94 "emptyText": "Select Company",
95 "fieldLabel": "Client",
96 "forceSelection": true,
97 "hiddenName": "client_id",
99 "loadingText": "Searching...",
101 "name": "client_id_name",
103 "qtip": "Select Companies",
104 "queryParam": "query[name]",
105 "selectOnFocus": true,
106 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
107 "triggerAction": "all",
116 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n \n o.params.type = 1;\n o.params['query[group_pulldown]'] = 1;\n}\n"
121 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
126 "xtype": "HttpProxy",
129 "|url": "baseURL + '/Roo/Companies.php'"
133 "xtype": "JsonReader",
137 "totalProperty": "total",
138 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]"
145 "allowBlank": "false",
146 "displayField": "name",
148 "emptyText": "Select Team",
149 "fieldLabel": "Team",
150 "forceSelection": true,
151 "hiddenName": "team_id",
153 "loadingText": "Searching...",
155 "name": "team_id_name",
157 "qtip": "Select Team",
158 "queryParam": "query[name]",
159 "selectOnFocus": true,
160 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
161 "triggerAction": "all",
173 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
175 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
180 "xtype": "HttpProxy",
183 "|url": "baseURL + '/Roo/Groups.php'"
187 "xtype": "JsonReader",
191 "totalProperty": "total",
192 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
199 "fieldLabel": "File location",
200 "name": "file_location",
202 "xtype": "TextField",
206 "fieldLabel": "Remarks",
219 "altFormats": "Y-m-d|d/m/Y",
220 "fieldLabel": "Open date",
224 "xtype": "DateField",
230 "allowBlank": "false",
232 "emptyText": "Select Person",
233 "forceSelection": true,
235 "loadingText": "Searching...",
238 "qtip": "Select Person",
239 "selectOnFocus": true,
240 "triggerAction": "all",
243 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
244 "queryParam": "query[name]",
245 "fieldLabel": "Open by",
247 "displayField": "name",
248 "hiddenName": "open_by",
249 "name": "open_by_name",
256 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
258 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
263 "xtype": "HttpProxy",
266 "|url": "baseURL + '/Roo/Person.php'"
270 "xtype": "JsonReader",
274 "totalProperty": "total",
275 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
294 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
296 "*prop": "buttons[]",
303 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
305 "*prop": "buttons[]",