3 "name": "Pman.Dialog.CoreProject",
12 "title": "Edit / Create Projects",
14 "xtype": "LayoutDialog",
19 "xtype": "LayoutRegion",
24 "xtype": "ContentPanel",
31 "|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",
32 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
35 "style": "margin:10px;",
36 "|url": "baseURL + '/Roo/Projects.php'",
46 "fieldLabel": "Project Name",
48 "qtip": "Enter Project Name",
55 "displayField": "desc",
57 "emptyText": "Select Project Type",
58 "fieldLabel": "Project Type",
59 "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",
79 "|data": "[ [ 'U' , \"Project (Unconfirmed)\" ],\n[ 'P' , \"Project\" ],\n[ 'C' , \"Project (Closed)\" ],\n[ 'N' , \"Non-Project\" ],\n[ 'X' , \"Non-Project (Closed)\" ]\n]",
80 "|fields": " [ 'code', 'desc' ]",
81 "xtype": "SimpleStore",
88 "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}"
90 "allowBlank": "false",
91 "displayField": "code",
93 "emptyText": "Select Company",
94 "fieldLabel": "Client",
95 "forceSelection": true,
96 "hiddenName": "client_id",
98 "loadingText": "Searching...",
100 "name": "client_id_name",
102 "qtip": "Select Companies",
103 "queryParam": "query[code]",
104 "selectOnFocus": true,
105 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
106 "triggerAction": "all",
115 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n \n o.params.type = 1;\n o.params['query[group_pulldown]'] = 1;\n}\n"
120 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
125 "xtype": "HttpProxy",
128 "|url": "baseURL + '/Roo/Companies.php'"
132 "xtype": "JsonReader",
136 "totalProperty": "total",
137 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]"
144 "allowBlank": "false",
145 "displayField": "name",
147 "emptyText": "Select Team",
148 "fieldLabel": "Team",
149 "forceSelection": true,
150 "hiddenName": "team_id",
152 "loadingText": "Searching...",
154 "name": "team_id_name",
156 "qtip": "Select Team",
157 "queryParam": "query[name]",
158 "selectOnFocus": true,
159 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
160 "triggerAction": "all",
172 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
174 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
179 "xtype": "HttpProxy",
182 "|url": "baseURL + '/Roo/Groups.php'"
186 "xtype": "JsonReader",
190 "totalProperty": "total",
191 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
198 "fieldLabel": "File location",
199 "name": "file_location",
201 "xtype": "TextField",
205 "fieldLabel": "Remarks",
218 "altFormats": "Y-m-d|d/m/Y",
219 "fieldLabel": "Open date",
223 "xtype": "DateField",
229 "allowBlank": "false",
231 "emptyText": "Select Person",
232 "forceSelection": true,
234 "loadingText": "Searching...",
237 "qtip": "Select Person",
238 "selectOnFocus": true,
239 "triggerAction": "all",
242 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
243 "queryParam": "query[name]",
244 "fieldLabel": "Open by",
246 "displayField": "name",
247 "hiddenName": "open_by",
248 "name": "open_by_name",
255 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
257 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
262 "xtype": "HttpProxy",
265 "|url": "baseURL + '/Roo/Person.php'"
269 "xtype": "JsonReader",
273 "totalProperty": "total",
274 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
293 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
295 "*prop": "buttons[]",
302 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
304 "*prop": "buttons[]",