Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.bjs
1 {
2     "id": "roo-file-348",
3     "name": "Pman.Dialog.CoreAutoSavePreview",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
7     "items": [
8         {
9             "background": false,
10             "closable": false,
11             "collapsible": false,
12             "height": 500,
13             "modal": true,
14             "resizable": false,
15             "title": "Saved Version",
16             "width": 800,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "*prop": "center",
22                     "titlebar": false,
23                     "xtype": "LayoutRegion",
24                     "|xns": "Roo"
25                 },
26                 {
27                     "*prop": "west",
28                     "split": true,
29                     "xtype": "LayoutRegion",
30                     "|xns": "Roo"
31                 },
32                 {
33                     "listeners": {
34                         "|activate": "function() {\n    _this.wpanel = this;\n    if (_this.wgrid) {\n        _this.wgrid.footer.onClick('first');\n    }\n}"
35                     },
36                     "background": true,
37                     "fitContainer": true,
38                     "fitToframe": true,
39                     "region": "west",
40                     "tableName": "clipping_journalist",
41                     "title": "Publication Lists",
42                     "xtype": "GridPanel",
43                     "|xns": "Roo",
44                     "items": [
45                         {
46                             "listeners": {
47                                 "|render": "function() \n{\n    _this.wgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.wpanel.active) {\n       this.footer.onClick('first');\n    }\n}"
48                             },
49                             "*prop": "grid",
50                             "autoExpandColumn": "publication",
51                             "loadMask": true,
52                             "xtype": "Grid",
53                             "|xns": "Roo.grid",
54                             "items": [
55                                 {
56                                     "listeners": {
57                                         "beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params._list = 1;\n}"
58                                     },
59                                     "*prop": "dataSource",
60                                     "remoteSort": true,
61                                     "xtype": "Store",
62                                     "|sortInfo": "{ field : 'publication', direction: 'ASC' }",
63                                     "|xns": "Roo.data",
64                                     "items": [
65                                         {
66                                             "*prop": "proxy",
67                                             "xtype": "HttpProxy",
68                                             "method": "GET",
69                                             "|url": "baseURL + '/Roo/Groups.php'",
70                                             "|xns": "Roo.data"
71                                         },
72                                         {
73                                             "|xns": "Roo.data",
74                                             "xtype": "JsonReader",
75                                             "totalProperty": "total",
76                                             "root": "data",
77                                             "*prop": "reader",
78                                             "id": "id",
79                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'type',\n        'type': 'int'\n    },\n    {\n        'name': 'leader',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_name',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_email',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_role',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_active',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'leader_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_name_facebook',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_blog',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_twitter',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_linkedin',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_crm_lead_percentage',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_industry_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_updated_action_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_created_action_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_type_id',\n        'type': 'int'\n    }\n]"
80                                         }
81                                     ]
82                                 },
83                                 {
84                                     "*prop": "footer",
85                                     "displayInfo": true,
86                                     "displayMsg": "Displaying Publication{0} - {1} of {2}",
87                                     "emptyMsg": "Nothing found",
88                                     "pageSize": 25,
89                                     "xtype": "PagingToolbar",
90                                     "|xns": "Roo"
91                                 },
92                                 {
93                                     "*prop": "colModel[]",
94                                     "dataIndex": "publication",
95                                     "header": "Publication Lists",
96                                     "width": 200,
97                                     "xtype": "ColumnModel",
98                                     "|renderer": "function(v) { return String.format('{0}', v); }",
99                                     "|xns": "Roo.grid"
100                                 }
101                             ]
102                         }
103                     ]
104                 },
105                 {
106                     "listeners": {
107                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
108                     },
109                     "background": true,
110                     "fitContainer": true,
111                     "fitToframe": true,
112                     "region": "center",
113                     "tableName": "clipping_journalist",
114                     "title": "Journalist",
115                     "xtype": "GridPanel",
116                     "|xns": "Roo",
117                     "items": [
118                         {
119                             "listeners": {
120                                 "|render": "function() \n{\n    _this.grid = this; \n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
121                             },
122                             "*prop": "grid",
123                             "autoExpandColumn": "name",
124                             "clicksToEdit": 1,
125                             "loadMask": true,
126                             "xtype": "EditorGrid",
127                             "|xns": "Roo.grid",
128                             "items": [
129                                 {
130                                     "listeners": {
131                                         "beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    if (!_this.data.campaign_id) {\n        Roo.log('Missing campaign id!?');\n        return false;\n    }\n    o.params.campaign_id = _this.data.campaign_id;\n}"
132                                     },
133                                     "*prop": "dataSource",
134                                     "remoteSort": true,
135                                     "xtype": "Store",
136                                     "|sortInfo": "{ field : 'name', direction: 'ASC' }",
137                                     "|xns": "Roo.data",
138                                     "items": [
139                                         {
140                                             "*prop": "proxy",
141                                             "method": "GET",
142                                             "xtype": "HttpProxy",
143                                             "|url": "baseURL + '/Roo/clipping_journalist.php'",
144                                             "|xns": "Roo.data"
145                                         },
146                                         {
147                                             "*prop": "reader",
148                                             "id": "id",
149                                             "root": "data",
150                                             "totalProperty": "total",
151                                             "xtype": "JsonReader",
152                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'publication',\n        'type': 'string'\n    }\n]",
153                                             "|xns": "Roo.data"
154                                         }
155                                     ]
156                                 },
157                                 {
158                                     "*prop": "footer",
159                                     "displayInfo": true,
160                                     "displayMsg": "Displaying Journalist {0} - {1} of {2}",
161                                     "emptyMsg": "Nothing found",
162                                     "pageSize": 25,
163                                     "xtype": "PagingToolbar",
164                                     "|xns": "Roo"
165                                 },
166                                 {
167                                     "*prop": "colModel[]",
168                                     "dataIndex": "name",
169                                     "header": "Name",
170                                     "width": 100,
171                                     "xtype": "ColumnModel",
172                                     "|renderer": "function(v,x,r) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
173                                     "|xns": "Roo.grid"
174                                 },
175                                 {
176                                     "*prop": "colModel[]",
177                                     "dataIndex": "publication",
178                                     "header": "Publication",
179                                     "width": 300,
180                                     "xtype": "ColumnModel",
181                                     "|renderer": "function(v,x,r) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
182                                     "|xns": "Roo.grid",
183                                     "items": [
184                                         {
185                                             "|xns": "Roo.grid",
186                                             "xtype": "GridEditor",
187                                             "*prop": "editor"
188                                         }
189                                     ]
190                                 }
191                             ]
192                         }
193                     ]
194                 },
195                 {
196                     "listeners": {
197                         "|click": "function() {\n    _this.dialog.hide();\n}"
198                     },
199                     "*prop": "buttons[]",
200                     "text": "Cancel",
201                     "xtype": "Button",
202                     "|xns": "Roo"
203                 },
204                 {
205                     "listeners": {
206                         "|click": "function() {\n    _this.dialog.hide();\n}"
207                     },
208                     "*prop": "buttons[]",
209                     "text": "OK",
210                     "xtype": "Button",
211                     "|xns": "Roo"
212                 }
213             ]
214         }
215     ],
216     "permname": "",
217     "modOrder": "001"
218 }