Fix #5702 - Supplier contact details - extra fields
[Pman.Admin] / Pman.Dialog.AdminGeoDivisionEdit.bjs
1 {
2  "name" : "Pman.Dialog.AdminGeoDivisionEdit",
3  "parent" : "center",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminGeoDivisionEdit.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "59716c97497eb9694541f7c3d37b1a4d" : "Country",
10   "3c1df4260ce594cb5594696461087f2f" : "Select Country",
11   "1243daf593fa297e07ab03bf06d925af" : "Searching...",
12   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
13   "49ee3087348e8d44e1feda1917443987" : "Name",
14   "211ffad4dcc51379ddbc8b96230a9bd9" : "Add / Edit Division",
15   "ca0dbad92a874b2f69b549293387925e" : "Code",
16   "c9cc8cce247e49bae79f15173ce97354" : "Save"
17  },
18  "named_strings" : {
19   "country_name_qtip" : "3c1df4260ce594cb5594696461087f2f",
20   "country_name_emptyText" : "3c1df4260ce594cb5594696461087f2f",
21   "code_fieldLabel" : "ca0dbad92a874b2f69b549293387925e",
22   "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
23   "country_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
24   "country_name_fieldLabel" : "59716c97497eb9694541f7c3d37b1a4d"
25  },
26  "items" : [
27   {
28    "modal" : true,
29    "collapsible" : false,
30    "title" : "Add / Edit Division",
31    "xtype" : "LayoutDialog",
32    "width" : 400,
33    "$ xns" : "Roo",
34    "closable" : false,
35    "resizable" : false,
36    "height" : 200,
37    "items" : [
38     {
39      "xtype" : "LayoutRegion",
40      "$ xns" : "Roo",
41      "* prop" : "center"
42     },
43     {
44      "region" : "center",
45      "xtype" : "ContentPanel",
46      "$ xns" : "Roo",
47      "items" : [
48       {
49        "listeners" : {
50         "|actioncomplete" : "function(_self, action)\n{\n    if (action.type == 'setdata') {\n        \n        if(_this.data.id) {\n            this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n        }\n        return;\n    }\n    if (action.type == 'load') {\n        \n        _this.dialog.el.unmask();\n        \n        _this.data = action.result.data;\n        \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",
51         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
52        },
53        "$ url" : "baseURL + '/Roo/geoip_division.php'",
54        "style" : "margin:10px;",
55        "method" : "POST",
56        "xtype" : "Form",
57        "labelWidth" : 100,
58        "$ xns" : "Roo.form",
59        "items" : [
60         {
61          "Boolean allowBlank" : false,
62          "fieldLabel" : "Code",
63          "xtype" : "TextField",
64          "width" : 200,
65          "$ xns" : "Roo.form",
66          "name" : "code"
67         },
68         {
69          "Boolean allowBlank" : false,
70          "fieldLabel" : "Name",
71          "xtype" : "TextField",
72          "width" : 200,
73          "$ xns" : "Roo.form",
74          "name" : "name"
75         },
76         {
77          "alwaysQuery" : true,
78          "listWidth" : 400,
79          "triggerAction" : "all",
80          "fieldLabel" : "Country",
81          "forceSelection" : true,
82          "selectOnFocus" : true,
83          "pageSize" : 20,
84          "displayField" : "lval",
85          "emptyText" : "Select Country",
86          "hiddenName" : "country",
87          "minChars" : 2,
88          "valueField" : "lkey",
89          "xtype" : "ComboBox",
90          "allowBlank" : false,
91          "typeAhead" : true,
92          "editable" : true,
93          "width" : 200,
94          "$ xns" : "Roo.form",
95          "name" : "country_name",
96          "qtip" : "Select Country",
97          "queryParam" : "query[name]",
98          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{lval}</b> </div>",
99          "loadingText" : "Searching...",
100          "items" : [
101           {
102            "listeners" : {
103             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.ltype = 'c',\n    o.params.inlang = 'en';\n    o.is_active = 1;\n}\n"
104            },
105            "xtype" : "Store",
106            "remoteSort" : true,
107            "$ sortInfo" : "{ direction : 'ASC', field: 'lval' }",
108            "$ xns" : "Roo.data",
109            "* prop" : "store",
110            "items" : [
111             {
112              "$ url" : "baseURL + '/Roo/i18n.php'",
113              "xtype" : "HttpProxy",
114              "method" : "GET",
115              "$ xns" : "Roo.data",
116              "* prop" : "proxy"
117             },
118             {
119              "id" : "id",
120              "root" : "data",
121              "xtype" : "JsonReader",
122              "$ xns" : "Roo.data",
123              "$ fields" : "[\n    {\n        \"name\":\"id\",\n        \"type\":\"int\"\n    },\n    {\n        \"name\":\"code\",\n        \"type\":\"string\"\n    },\n    {\n        \"name\":\"name\",\n        \"type\":\"string\"\n    },\n    {\n        \"name\":\"country\",\n        \"type\":\"string\"\n    },\n    {\n        \"name\":\"country_name\",\n        \"type\":\"string\"\n    }\n]",
124              "* prop" : "reader",
125              "totalProperty" : "total"
126             }
127            ]
128           }
129          ]
130         },
131         {
132          "xtype" : "Hidden",
133          "$ xns" : "Roo.form",
134          "name" : "id"
135         }
136        ]
137       }
138      ]
139     },
140     {
141      "listeners" : {
142       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
143      },
144      "text" : "Cancel",
145      "xtype" : "Button",
146      "$ xns" : "Roo",
147      "* prop" : "buttons[]"
148     },
149     {
150      "listeners" : {
151       "click" : "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n}"
152      },
153      "text" : "Save",
154      "xtype" : "Button",
155      "$ xns" : "Roo",
156      "* prop" : "buttons[]"
157     }
158    ]
159   }
160  ]
161 }