fix #8131 - chinese translations
[Pman.Core] / Pman.Dialog.CorePersonContact.bjs
1 {
2  "name" : "Pman.Dialog.CorePersonContact",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/leon/gitlive/web.MediaOutreach/Pman/Core/Pman.Dialog.CorePersonContact.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "1c76cbfe21c6f44c1d1e59d54f3e4420" : "Company",
10   "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
11   "c8972faa3b9e1c7250db23c57c85aa23" : "Edit / Create Contact Details",
12   "1243daf593fa297e07ab03bf06d925af" : "Searching...",
13   "bcc254b55c4a1babdf1dcb82c207506b" : "Phone",
14   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
15   "9675747b5ab12d05f18518761e68a533" : "Select Companies",
16   "df814135652a5a308fea15bff37ea284" : "Office",
17   "c373dd4bd4ba0b5d3e0c7522c5629880" : "Select Office",
18   "49ee3087348e8d44e1feda1917443987" : "Name",
19   "bbbabdbe1b262f75d99d62880b953be1" : "Role",
20   "c9cc8cce247e49bae79f15173ce97354" : "Save",
21   "9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
22  },
23  "named_strings" : {
24   "company_id_code_loadingText" : "1243daf593fa297e07ab03bf06d925af",
25   "role_fieldLabel" : "bbbabdbe1b262f75d99d62880b953be1",
26   "fax_fieldLabel" : "9810aa2b9f44401be4bf73188ef2b67d",
27   "office_id_name_emptyText" : "c373dd4bd4ba0b5d3e0c7522c5629880",
28   "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
29   "phone_fieldLabel" : "bcc254b55c4a1babdf1dcb82c207506b",
30   "office_id_name_fieldLabel" : "df814135652a5a308fea15bff37ea284",
31   "office_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
32   "company_id_code_qtip" : "9675747b5ab12d05f18518761e68a533",
33   "office_id_name_qtip" : "c373dd4bd4ba0b5d3e0c7522c5629880",
34   "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
35   "company_id_code_emptyText" : "9675747b5ab12d05f18518761e68a533",
36   "company_id_code_fieldLabel" : "1c76cbfe21c6f44c1d1e59d54f3e4420"
37  },
38  "items" : [
39   {
40    "collapsible" : false,
41    "xtype" : "LayoutDialog",
42    "title" : "Edit / Create Contact Details",
43    "width" : 450,
44    "$ xns" : "Roo",
45    "closable" : false,
46    "resizable" : false,
47    "height" : 290,
48    "items" : [
49     {
50      "xtype" : "LayoutRegion",
51      "$ xns" : "Roo",
52      "* prop" : "center"
53     },
54     {
55      "region" : "center",
56      "xtype" : "ContentPanel",
57      "$ xns" : "Roo",
58      "items" : [
59       {
60        "listeners" : {
61         "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\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",
62         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
63        },
64        "$ url" : "baseURL + '/Roo/core_person'",
65        "method" : "POST",
66        "xtype" : "Form",
67        "style" : "margin:10px;",
68        "$ xns" : "Roo.form",
69        "items" : [
70         {
71          "listeners" : {
72           "add" : "function (combo)\n{\n\n    Pman.Dialog.Companies.show( {  id: 0 },  function(data) {\n            _this.form.setValues({\n                    company_id_name : data.name,\n                    company_id : data.id\n            });\n    }); \n}"
73          },
74          "listWidth" : 400,
75          "triggerAction" : "all",
76          "fieldLabel" : "Company",
77          "forceSelection" : true,
78          "selectOnFocus" : true,
79          "pageSize" : 20,
80          "displayField" : "code",
81          "emptyText" : "Select Companies",
82          "hiddenName" : "company_id",
83          "minChars" : 2,
84          "valueField" : "id",
85          "xtype" : "ComboBox",
86          "allowBlank" : false,
87          "typeAhead" : true,
88          "editable" : false,
89          "width" : 300,
90          "$ xns" : "Roo.form",
91          "name" : "company_id_code",
92          "qtip" : "Select Companies",
93          "queryParam" : "query[code]",
94          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> </div>",
95          "loadingText" : "Searching...",
96          "items" : [
97           {
98            "listeners" : {
99             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
100            },
101            "xtype" : "Store",
102            "remoteSort" : true,
103            "$ xns" : "Roo.data",
104            "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
105            "* prop" : "store",
106            "items" : [
107             {
108              "$ url" : "baseURL + '/Roo/core_company.php'",
109              "xtype" : "HttpProxy",
110              "method" : "GET",
111              "$ xns" : "Roo.data",
112              "* prop" : "proxy"
113             },
114             {
115              "id" : "id",
116              "root" : "data",
117              "xtype" : "JsonReader",
118              "$ xns" : "Roo.data",
119              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]",
120              "* prop" : "reader",
121              "totalProperty" : "total"
122             }
123            ]
124           }
125          ]
126         },
127         {
128          "listeners" : {
129           "add" : "function (combo)\n{\n    var coid = _this.form.findField('company_id').getValue();\n    if (!coid ) {\n    \n         Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n        return false;\n\n    }\n    Pman.Dialog.Office.show(cfg, function(data) {\n                _this.form.setValues({\n                    office_id_name : data.name,\n                    office_id : data.id\n            });\n        }); \n    \n    \n}",
130           "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n        var coid = _this.form.findField('company_id').getValue();\n        if (coid < 1 ) {\n            Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n            return false;\n        }\n}"
131          },
132          "listWidth" : 400,
133          "triggerAction" : "all",
134          "fieldLabel" : "Office",
135          "forceSelection" : true,
136          "selectOnFocus" : true,
137          "pageSize" : 20,
138          "displayField" : "name",
139          "emptyText" : "Select Office",
140          "hiddenName" : "office_id",
141          "minChars" : 2,
142          "valueField" : "id",
143          "xtype" : "ComboBox",
144          "allowBlank" : false,
145          "typeAhead" : true,
146          "editable" : false,
147          "width" : 300,
148          "$ xns" : "Roo.form",
149          "name" : "office_id_name",
150          "qtip" : "Select Office",
151          "queryParam" : "query[name]",
152          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
153          "loadingText" : "Searching...",
154          "items" : [
155           {
156            "listeners" : {
157             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    var coid = _this.form.findField('company_id').getValue();\n    o.params.company_id = coid;\n}\n"
158            },
159            "xtype" : "Store",
160            "remoteSort" : true,
161            "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
162            "$ xns" : "Roo.data",
163            "* prop" : "store",
164            "items" : [
165             {
166              "$ url" : "baseURL + '/Roo/Office.php'",
167              "xtype" : "HttpProxy",
168              "method" : "GET",
169              "$ xns" : "Roo.data",
170              "* prop" : "proxy"
171             },
172             {
173              "id" : "id",
174              "root" : "data",
175              "xtype" : "JsonReader",
176              "$ xns" : "Roo.data",
177              "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
178              "* prop" : "reader",
179              "totalProperty" : "total"
180             }
181            ]
182           }
183          ]
184         },
185         {
186          "fieldLabel" : "Name",
187          "xtype" : "TextField",
188          "allowBlank" : true,
189          "width" : 300,
190          "$ xns" : "Roo.form",
191          "name" : "name"
192         },
193         {
194          "fieldLabel" : "Role",
195          "xtype" : "TextField",
196          "width" : 200,
197          "$ xns" : "Roo.form",
198          "name" : "role"
199         },
200         {
201          "fieldLabel" : "Phone",
202          "xtype" : "TextField",
203          "width" : 200,
204          "$ xns" : "Roo.form",
205          "name" : "phone"
206         },
207         {
208          "fieldLabel" : "Fax",
209          "xtype" : "TextField",
210          "width" : 200,
211          "$ xns" : "Roo.form",
212          "name" : "fax"
213         },
214         {
215          "fieldLabel" : "Email",
216          "xtype" : "TextField",
217          "allowBlank" : false,
218          "width" : 200,
219          "$ xns" : "Roo.form",
220          "name" : "email"
221         },
222         {
223          "xtype" : "Hidden",
224          "$ xns" : "Roo.form",
225          "name" : "id"
226         }
227        ]
228       }
229      ]
230     },
231     {
232      "listeners" : {
233       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
234      },
235      "text" : "Cancel",
236      "xtype" : "Button",
237      "$ xns" : "Roo",
238      "* prop" : "buttons[]"
239     },
240     {
241      "listeners" : {
242       "click" : "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
243      },
244      "text" : "Save",
245      "xtype" : "Button",
246      "$ xns" : "Roo",
247      "* prop" : "buttons[]"
248     }
249    ]
250   }
251  ]
252 }