3 "name": "Pman.Dialog.AdminWatch",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminWatch.bjs",
14 "title": "Edit / Create core_watch",
16 "xtype": "LayoutDialog",
21 "xtype": "LayoutRegion",
26 "xtype": "ContentPanel",
31 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n if (_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\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",
32 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
35 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/core_watch.php'",
42 "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}",
43 "|render": "function (_self)\n{\n _this.affectSel = _self;\n}"
46 "displayField": "on_table",
48 "emptyText": "Select Table",
49 "fieldLabel": "Table",
50 "forceSelection": true,
52 "loadingText": "Searching...",
56 "qtip": "Select Action",
57 "queryParam": "query[on_table]",
58 "selectOnFocus": true,
59 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{on_table}</b> </div>",
60 "triggerAction": "all",
62 "valueField": "action",
69 "|beforeload": "function (_self, o)\n{\n o.params = o.params || {};\n // staff can see all logs, other companies can only see their own.\n if ((typeof(Pman.Login) != 'undefined') && Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n o.params._distinct = 'on_table';\n o.params._columns ='on_table';\n}"
74 "|sortInfo": "{ field : 'on_table' , direction : 'ASC' }",
81 "|url": "baseURL + '/Roo/Events.php'",
86 "xtype": "JsonReader",
87 "totalProperty": "total",
91 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]"
101 "xtype": "NumberField",
105 "allowBlank": "false",
106 "displayField": "name",
108 "emptyText": "Select Person",
109 "fieldLabel": "Notify Who",
110 "forceSelection": true,
111 "hiddenName": "person_id",
113 "loadingText": "Searching...",
115 "name": "person_id_name",
117 "qtip": "Select Person",
118 "queryParam": "query[name]",
119 "selectOnFocus": true,
120 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> ({company_id_name}) <{email}></div>",
121 "triggerAction": "all",
130 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
135 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
140 "xtype": "HttpProxy",
143 "|url": "baseURL + '/Roo/core_person'"
147 "xtype": "JsonReader",
151 "totalProperty": "total",
152 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
160 "|select": "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}",
161 "|render": "function (_self)\n{\n _this.actionSel = _self;\n}"
164 "displayField": "action",
166 "fieldLabel": "Match Event",
167 "forceSelection": false,
169 "loadingText": "Searching...",
173 "qtip": "Select Action",
174 "queryParam": "query[action]",
175 "selectOnFocus": true,
176 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{action}</b> </div>",
177 "triggerAction": "all",
179 "valueField": "action",
186 "|beforeload": "function (_self, o)\n{\n o.params = o.params || {};\n // staff can see all logs, other companies can only see their own.\n if (typeof(Pman.Login) !='undefined' && Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n o.params._distinct = 'action';\n o.params._columns ='action';\n}"
191 "|sortInfo": "{ field : 'action' , direction : 'ASC' }",
197 "xtype": "HttpProxy",
198 "|url": "baseURL + '/Roo/Events.php'",
203 "xtype": "JsonReader",
204 "totalProperty": "total",
208 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]"
216 "displayField": "val",
218 "fieldLabel": "Action",
219 "forceSelection": false,
222 "triggerAction": "all",
230 "xtype": "SimpleStore",
231 "|data": "[ [ 'email' ], [ 'APPROVAL' ], ['ENDOFDAYMAIL'] ]",
232 "|fields": "[ 'val' ]",
238 "fieldLabel": "Active?",
254 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
256 "*prop": "buttons[]",
263 "click": "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
265 "*prop": "buttons[]",