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