sync
[Pman.Admin] / Pman.Dialog.AdminEventLog.bjs
1 {
2  "name" : "Pman.Dialog.AdminEventLog",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminEventLog.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "7a11042f53957727d8667732d7de1102" : "Ipaddr",
10   "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11   "87f9f735a1d36793ceaecd4e47124b63" : "Events",
12   "d9578744f1d4b13d40a51fbb8b9d6ea5" : "Person name",
13   "c0a002606fb906d471e04fe02e5e53f9" : "Event history",
14   "6be4aa550791c310e098cd6c234af7d8" : "Event when",
15   "d3d2e617335f08df83599665eef8a418" : "Close",
16   "7205d42d6d975c911bc1147259d78935" : "Displaying Events{0} - {1} of {2}",
17   "004bf6c9a40003140292e97330236c53" : "Action",
18   "90e4ac2e5a22e53df63b6b186d8727ba" : "No Events found"
19  },
20  "items" : [
21   {
22    "listeners" : {
23     "show" : "function (_self)\n{\n    _this.grid.footer.onClick('first');\n}"
24    },
25    "title" : "Event history",
26    "xtype" : "LayoutDialog",
27    "width" : 800,
28    "$ xns" : "Roo",
29    "height" : 500,
30    "items" : [
31     {
32      "xtype" : "LayoutRegion",
33      "$ xns" : "Roo",
34      "* prop" : "center"
35     },
36     {
37      "listeners" : {
38       "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
39      },
40      "fitToframe" : true,
41      "background" : false,
42      "region" : "center",
43      "title" : "Events",
44      "xtype" : "GridPanel",
45      "fitContainer" : true,
46      "$ xns" : "Roo",
47      "tableName" : "Events",
48      "items" : [
49       {
50        "listeners" : {
51         "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
52        },
53        "autoExpandColumn" : "remarks",
54        "xtype" : "Grid",
55        "loadMask" : true,
56        "$ xns" : "Roo.grid",
57        "* prop" : "grid",
58        "items" : [
59         {
60          "listeners" : {
61           "beforeload" : "function (_self,o )\n{\n    if (!_this.data || !_this.data.on_id) {\n        return false;\n    }\n    o.params.on_table = _this.data.on_table;\n    o.params.on_id = _this.data.on_id;\n    \n    if (typeof(_this.data.person_table) != 'undefined') {\n         o.params.person_table =_this.data.person_table;\n     }\n}"
62          },
63          "xtype" : "Store",
64          "remoteSort" : true,
65          "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
66          "$ xns" : "Roo.data",
67          "* prop" : "dataSource",
68          "items" : [
69           {
70            "$ url" : "baseURL + '/Roo/Events.php'",
71            "method" : "GET",
72            "xtype" : "HttpProxy",
73            "$ xns" : "Roo.data",
74            "* prop" : "proxy"
75           },
76           {
77            "id" : "id",
78            "root" : "data",
79            "xtype" : "JsonReader",
80            "$ xns" : "Roo.data",
81            "$ 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_table',\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    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    }\n]",
82            "* prop" : "reader",
83            "totalProperty" : "total"
84           }
85          ]
86         },
87         {
88          "pageSize" : 25,
89          "xtype" : "PagingToolbar",
90          "emptyMsg" : "No Events found",
91          "$ xns" : "Roo",
92          "displayInfo" : true,
93          "displayMsg" : "Displaying Events{0} - {1} of {2}",
94          "* prop" : "footer"
95         },
96         {
97          "xtype" : "ColumnModel",
98          "width" : 75,
99          "header" : "Event when",
100          "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
101          "$ xns" : "Roo.grid",
102          "* prop" : "colModel[]",
103          "dataIndex" : "event_when"
104         },
105         {
106          "xtype" : "ColumnModel",
107          "header" : "Person name",
108          "width" : 100,
109          "$ renderer" : "function(v) { return String.format('{0}', v); }",
110          "$ xns" : "Roo.grid",
111          "* prop" : "colModel[]",
112          "dataIndex" : "person_id_name"
113         },
114         {
115          "xtype" : "ColumnModel",
116          "header" : "Action",
117          "width" : 80,
118          "$ renderer" : "function(v) { return String.format('{0}', v); }",
119          "$ xns" : "Roo.grid",
120          "* prop" : "colModel[]",
121          "dataIndex" : "action"
122         },
123         {
124          "xtype" : "ColumnModel",
125          "header" : "Ipaddr",
126          "width" : 80,
127          "$ renderer" : "function(v) { return String.format('{0}', v); }",
128          "$ xns" : "Roo.grid",
129          "* prop" : "colModel[]",
130          "dataIndex" : "ipaddr"
131         },
132         {
133          "xtype" : "ColumnModel",
134          "width" : 200,
135          "header" : "Remarks",
136          "$ renderer" : "function(v) { return String.format('{0}', v); }",
137          "$ xns" : "Roo.grid",
138          "* prop" : "colModel[]",
139          "dataIndex" : "remarks"
140         }
141        ]
142       }
143      ]
144     },
145     {
146      "listeners" : {
147       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
148      },
149      "text" : "Close",
150      "xtype" : "Button",
151      "$ xns" : "Roo",
152      "* prop" : "buttons[]"
153     }
154    ]
155   }
156  ]
157 }