Pman.Tab.XtupleSalesShipment.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Jan 2014 09:52:27 +0000 (17:52 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Jan 2014 09:52:27 +0000 (17:52 +0800)
Pman.Tab.XtupleSalesShipment.js

Pman.Tab.XtupleSalesShipment.bjs
Pman.Tab.XtupleSalesShipment.js

index ea08e0e..e86c3cc 100644 (file)
                             "|xns": "Roo",
                             "items": [
                                 {
-                                    "|xns": "Roo.form",
-                                    "xtype": "ComboBox",
+                                    "listeners": {
+                                        "select": "function (combo, record, index)\n{\n (function() {   _this.grid.footer.onClick('first'); }).defer(100);\n}"
+                                    },
                                     "allowBlank": false,
+                                    "displayField": "cust_name",
                                     "editable": true,
                                     "emptyText": "Select custinfo",
+                                    "fieldLabel": "cust_name",
                                     "forceSelection": true,
+                                    "hiddenName": "cust_id",
                                     "listWidth": 400,
                                     "loadingText": "Searching...",
                                     "minChars": 2,
+                                    "name": "cust_name",
                                     "pageSize": 20,
                                     "qtip": "Select Customer",
+                                    "queryParam": "query[cust_name]",
                                     "selectOnFocus": true,
+                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
                                     "triggerAction": "all",
                                     "typeAhead": true,
-                                    "width": 300,
-                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
-                                    "queryParam": "query[cust_name]",
-                                    "fieldLabel": "cust_name",
                                     "valueField": "cust_id",
-                                    "displayField": "cust_name",
-                                    "hiddenName": "cust_id",
-                                    "name": "cust_name",
+                                    "width": 300,
+                                    "xtype": "ComboBox",
+                                    "|xns": "Roo.form",
                                     "items": [
                                         {
                                             "listeners": {
index c60c63e..1ad5cd0 100644 (file)
@@ -147,26 +147,32 @@ Pman.Tab.XtupleSalesShipment = new Roo.XComponent({
                         {
                             xtype: 'ComboBox',
                             xns: Roo.form,
+                            listeners : {
+                                select : function (combo, record, index)
+                                {
+                                 (function() {   _this.grid.footer.onClick('first'); }).defer(100);
+                                }
+                            },
                             allowBlank : false,
+                            displayField : 'cust_name',
                             editable : true,
                             emptyText : "Select custinfo",
+                            fieldLabel : 'cust_name',
                             forceSelection : true,
+                            hiddenName : 'cust_id',
                             listWidth : 400,
                             loadingText : "Searching...",
                             minChars : 2,
+                            name : 'cust_name',
                             pageSize : 20,
                             qtip : "Select Customer",
+                            queryParam : 'query[cust_name]',
                             selectOnFocus : true,
+                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{cust_name}</b> </div>',
                             triggerAction : 'all',
                             typeAhead : true,
-                            width : 300,
-                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{cust_name}</b> </div>',
-                            queryParam : 'query[cust_name]',
-                            fieldLabel : 'cust_name',
                             valueField : 'cust_id',
-                            displayField : 'cust_name',
-                            hiddenName : 'cust_id',
-                            name : 'cust_name',
+                            width : 300,
                             store : {
                                 xtype: 'Store',
                                 xns: Roo.data,