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,
62 "loadingText": "Searching...",
66 "qtip": "Select Project Type",
67 "queryParam": "query[name]",
68 "selectOnFocus": true,
69 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{desc}</b> </div>",
70 "triggerAction": "all",
81 "|data": "[ [ 'U' , \"Project (Unconfirmed)\" ],\n[ 'P' , \"Project\" ],\n[ 'C' , \"Project (Closed)\" ],\n[ 'N' , \"Non-Project\" ],\n[ 'X' , \"Non-Project (Closed)\" ]\n]",
82 "|fields": " [ 'code', 'desc' ]",
83 "xtype": "SimpleStore",
90 "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}"
92 "allowBlank": "false",
93 "displayField": "code",
95 "emptyText": "Select Company",
96 "fieldLabel": "Client",
97 "forceSelection": true,
98 "hiddenName": "client_id",
100 "loadingText": "Searching...",
102 "name": "client_id_name",
104 "qtip": "Select Companies",
105 "queryParam": "query[code]",
106 "selectOnFocus": true,
107 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
108 "triggerAction": "all",
117 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n \n o.params.type = 1;\n o.params['query[group_pulldown]'] = 1;\n}\n"
122 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
127 "xtype": "HttpProxy",
130 "|url": "baseURL + '/Roo/Companies.php'"
134 "xtype": "JsonReader",
138 "totalProperty": "total",
139 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]"
146 "allowBlank": "false",
147 "displayField": "name",
149 "emptyText": "Select Team",
150 "fieldLabel": "Team",
151 "forceSelection": true,
152 "hiddenName": "team_id",
154 "loadingText": "Searching...",
156 "name": "team_id_name",
158 "qtip": "Select Team",
159 "queryParam": "query[name]",
160 "selectOnFocus": true,
161 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
162 "triggerAction": "all",
174 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
176 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
181 "xtype": "HttpProxy",
184 "|url": "baseURL + '/Roo/Groups.php'"
188 "xtype": "JsonReader",
192 "totalProperty": "total",
193 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
200 "fieldLabel": "File location",
201 "name": "file_location",
203 "xtype": "TextField",
207 "fieldLabel": "Remarks",
220 "altFormats": "Y-m-d|d/m/Y",
221 "fieldLabel": "Open date",
225 "xtype": "DateField",
231 "allowBlank": "false",
233 "emptyText": "Select Person",
234 "forceSelection": true,
236 "loadingText": "Searching...",
239 "qtip": "Select Person",
240 "selectOnFocus": true,
241 "triggerAction": "all",
244 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
245 "queryParam": "query[name]",
246 "fieldLabel": "Open by",
248 "displayField": "name",
249 "hiddenName": "open_by",
250 "name": "open_by_name",
257 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
259 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
264 "xtype": "HttpProxy",
267 "|url": "baseURL + '/Roo/Person.php'"
271 "xtype": "JsonReader",
275 "totalProperty": "total",
276 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
295 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
297 "*prop": "buttons[]",
304 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
306 "*prop": "buttons[]",