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