// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+Roo.namespace('Pman.Tab');
+
Pman.Tab.XtupleSalesShipment = new Roo.XComponent({
- part : ["Xtuple","SalesShipment"],
+ part : ["Xtuple", "SalesShipment" ],
order : '100-Pman.Tab.XtupleSalesShipment',
region : 'center',
parent : 'Pman.Tab.XtupleSales',
var _this = this;
var MODULE = this;
return {
- xtype: 'GridPanel',
- xns: Roo,
- title : "Fullfillments",
- fitToframe : true,
- fitContainer : true,
- tableName : 'shiphead',
- background : true,
- region : 'center',
- listeners : {
- activate : function() {
- _this.panel = this;
- if (_this.grid) {
- _this.grid.footer.onClick('first');
- }
- }
- },
grid : {
- xtype: 'Grid',
- xns: Roo.grid,
- listeners : {
- render : function()
- {
- _this.grid = this;
- try {
- _this.dialog = Pman.Dialog.XtupleSalesOrder;
- } catch(e) {}
- if (_this.panel.active) {
- this.footer.onClick('first');
- }
- },
- rowdblclick : function (_self, rowIndex, e)
- {
- if (!_this.dialog) return;
-
- var d = this.getDataSource().getAt(rowIndex).data;
- _this.dialog.show( {
- cohead_id : d.shiphead_order_id
-
- }, function() {
- _this.grid.footer.onClick('refresh');
- Pman.Tab.XtupleSales.grid.footer.onClick('first');
- });
- }
- },
- autoExpandColumn : 'shiphead_notes',
- loadMask : true,
dataSource : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, options)
- {
- options.params._status = _this.status.getValue();
- var cust = _this.custSel.getValue();
- if (cust *1) {
-
-
- }
- }
- },
- remoteSort : true,
- sortInfo : { field : 'shiphead_shipdate', direction: 'DESC' },
proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
+ url : baseURL + '/Roo/shiphead.php',
method : 'GET',
- url : baseURL + '/Roo/shiphead.php'
+ xtype : 'HttpProxy',
+ xns : Roo.data
},
reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- totalProperty : 'total',
- root : 'data',
+ '|xns' : 'Roo.data',
id : 'id',
+ root : 'data',
+ xtype : 'JsonReader',
+ xns : Roo.data,
fields : [
{
'name': 'shiphead_order_id',
{
'name': 'shiphead_sfstatus'
}
- ]
- }
+ ],
+ totalProperty : 'total',
+ builderCfg : '{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}'
+ },
+ '|xns' : 'Roo.data',
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { field : 'shiphead_shipdate', direction: 'DESC' },
+ xns : Roo.data,
+ listeners : {
+ beforeload : function (_self, o)
+ {
+ o.params._status = _this.status.getValue();
+ var cust = _this.custSel.getValue();
+ if (cust *1) {
+ o.params.shiphead_custinfo_cust_id = cust;
+ }
+
+ if (_this.fromDate.getValue()) {
+ o.params['search[fromDate]'] = _this.fromDate.getValue().format('Y-m-d');
+ }
+ if (_this.toDate.getValue()) {
+ o.params['search[toDate]'] = _this.toDate.getValue().format('Y-m-d');
+ }
+ }
+ },
+ items : [
+
+ ]
+
},
footer : {
- xtype: 'PagingToolbar',
- xns: Roo,
+ '|xns' : 'Roo',
pageSize : 25,
+ xtype : 'PagingToolbar',
+ emptyMsg : "No shiphead found",
+ xns : Roo,
displayInfo : true,
displayMsg : "Displaying shiphead{0} - {1} of {2}",
- emptyMsg : "No shiphead found",
items : [
- {
- xtype: 'Button',
- xns: Roo.Toolbar,
+ {
+ '|xns' : 'Roo.Toolbar',
+ text : "Download",
+ xtype : 'Button',
+ xns : Roo.Toolbar,
listeners : {
- click : function (_self, e)
- {
- new Pman.Download({
- grid: _this.grid
- });
- Roo.MessageBox.alert("Notice", "Download should start soon");
- }
- },
- text : "Download"
+ click : function (_self, e)
+ {
+ new Pman.Download({
+ grid: _this.grid
+ });
+ Roo.MessageBox.alert("Notice", "Download should start soon");
+ }
+ }
}
]
+
},
toolbar : {
- xtype: 'Toolbar',
- xns: Roo,
+ '|xns' : 'Roo',
+ xtype : 'Toolbar',
+ xns : Roo,
items : [
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- listeners : {
- select : function (combo, record, index)
- {
- (function() { _this.grid.footer.onClick('first'); }).defer(100);
- },
- render : function (_self)
- {
- _this.custSel = _self;
- }
- },
- allowBlank : false,
- displayField : 'cust_name',
- editable : true,
- emptyText : "Select custinfo",
- fieldLabel : 'cust_name',
- forceSelection : false,
- 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,
- valueField : 'cust_id',
- width : 300,
+ {
store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'shiphead_shipdate' },
proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
+ url : baseURL + '/Roo/custinfo.php',
method : 'GET',
- url : baseURL + '/Roo/custinfo.php'
+ xtype : 'HttpProxy',
+ xns : Roo.data
},
reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
id : 'cust_id',
root : 'data',
- totalProperty : 'total',
- fields : [{"name":"cust_id","type":"int"},"cust_name"]
- }
- }
- },
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- listeners : {
- render : function (_self)
- {
- _this.status = _self;
- },
- beforeselect : function (combo, record, index)
- {
- (function() { _this.grid.footer.onClick('first'); }).defer(100);
- }
- },
- allowBlank : false,
- displayField : 'fname',
- editable : false,
- fieldLabel : 'Status',
- hiddenName : 'status',
- listWidth : 200,
- mode : 'local',
- name : 'status',
- triggerAction : 'all',
- value : "S",
- valueField : 'ftype',
- width : 100,
- store : {
- xtype: 'SimpleStore',
- xns: Roo.data,
- data : [
- [ 'S', "Shipped"],
- [ 'R' , "Reserved"],
- [ 'V' , "Void Only"],
- [ 'A', "All"]
- ],
- fields : [ 'ftype', 'fname']
- }
- },
- {
- xtype: 'TextItem',
- xns: Roo.Toolbar,
- text : "From:"
- },
- {
- xtype: 'DateField',
- xns: Roo.form,
- listeners : {
- select : function (combo, date)
- {
- _this.grid.footer.onClick('first');
+ xtype : 'JsonReader',
+ xns : Roo.data,
+ fields : [{"name":"cust_id","type":"int"},"cust_name"],
+ totalProperty : 'total'
},
- render : function (_self)
- {
- _this.fromDate = _self;
- }
- },
- format : 'Y-m-d'
- },
- {
- xtype: 'TextItem',
- xns: Roo.Toolbar,
- text : " To:"
- },
- {
- xtype: 'DateField',
- xns: Roo.form,
- listeners : {
- select : function (combo, date)
- {
- _this.grid.footer.onClick('first');
- },
- render : function (_self)
- {
- _this.toDate = _self;
- }
- },
- format : 'Y-m-d'
- }
- ]
- },
- toolbar : {
- xtype: 'Toolbar',
- xns: Roo,
- items : [
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- listeners : {
- select : function (combo, record, index)
- {
- (function() { _this.grid.footer.onClick('first'); }).defer(100);
+ '|xns' : 'Roo.data',
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'cust_name' },
+ xns : Roo.data,
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ }
},
- render : function (_self)
- {
- _this.custSel = _self;
- }
+ items : [
+
+ ]
+
},
- allowBlank : false,
- displayField : 'cust_name',
- editable : true,
- emptyText : "Select custinfo",
+ '|xns' : 'Roo.form',
+ listWidth : 400,
+ triggerAction : 'all',
fieldLabel : 'cust_name',
forceSelection : false,
+ selectOnFocus : true,
+ pageSize : 20,
+ displayField : 'cust_name',
+ emptyText : "Select custinfo",
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,
valueField : 'cust_id',
+ xtype : 'ComboBox',
+ allowBlank : true,
+ typeAhead : true,
+ editable : true,
width : 300,
- store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'shiphead_shipdate' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Roo/custinfo.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'cust_id',
- root : 'data',
- totalProperty : 'total',
- fields : [{"name":"cust_id","type":"int"},"cust_name"]
- }
- }
- },
- {
- xtype: 'ComboBox',
- xns: Roo.form,
+ xns : Roo.form,
+ name : 'cust_name',
+ qtip : "Select Customer",
+ queryParam : 'query[cust_name_begin]',
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>',
+ loadingText : "Searching...",
listeners : {
- render : function (_self)
- {
- _this.status = _self;
- },
- beforeselect : function (combo, record, index)
- {
- (function() { _this.grid.footer.onClick('first'); }).defer(100);
- }
+ render : function (_self)
+ {
+ _this.custSel = _self;
+ },
+ select : function (combo, record, index)
+ {
+ (function() { _this.grid.footer.onClick('first'); }).defer(100);
+ }
},
- allowBlank : false,
- displayField : 'fname',
- editable : false,
- fieldLabel : 'Status',
- hiddenName : 'status',
- listWidth : 200,
- mode : 'local',
- name : 'status',
- triggerAction : 'all',
- value : "S",
- valueField : 'ftype',
- width : 100,
+ items : [
+
+ ]
+
+ },
+ {
store : {
- xtype: 'SimpleStore',
- xns: Roo.data,
+ '|xns' : 'Roo.data',
+ xtype : 'SimpleStore',
data : [
[ 'S', "Shipped"],
[ 'R' , "Reserved"],
[ 'V' , "Void Only"],
[ 'A', "All"]
],
- fields : [ 'ftype', 'fname']
- }
+ fields : [ 'ftype', 'fname'],
+ xns : Roo.data
+ },
+ '|xns' : 'Roo.form',
+ listWidth : 200,
+ triggerAction : 'all',
+ fieldLabel : 'Status',
+ displayField : 'fname',
+ hiddenName : 'status',
+ value : "S",
+ valueField : 'ftype',
+ xtype : 'ComboBox',
+ allowBlank : false,
+ editable : false,
+ width : 100,
+ xns : Roo.form,
+ mode : 'local',
+ name : 'status',
+ listeners : {
+ render : function (_self)
+ {
+ _this.status = _self;
+ },
+ beforeselect : function (combo, record, index)
+ {
+ (function() { _this.grid.footer.onClick('first'); }).defer(100);
+ }
+ },
+ items : [
+
+ ]
+
},
- {
- xtype: 'TextItem',
- xns: Roo.Toolbar,
- text : "From:"
+ {
+ '|xns' : 'Roo.Toolbar',
+ text : "From:",
+ xtype : 'TextItem',
+ xns : Roo.Toolbar
},
- {
- xtype: 'DateField',
- xns: Roo.form,
+ {
+ '|xns' : 'Roo.form',
+ format : 'Y-m-d',
+ xtype : 'DateField',
+ xns : Roo.form,
listeners : {
- select : function (combo, date)
- {
- _this.grid.footer.onClick('first');
- },
- render : function (_self)
- {
- _this.fromDate = _self;
- }
- },
- format : 'Y-m-d'
+ render : function (_self)
+ {
+ _this.fromDate = _self;
+ },
+ select : function (combo, date)
+ {
+ _this.grid.footer.onClick('first');
+ }
+ }
},
- {
- xtype: 'TextItem',
- xns: Roo.Toolbar,
- text : " To:"
+ {
+ '|xns' : 'Roo.Toolbar',
+ text : " To:",
+ xtype : 'TextItem',
+ xns : Roo.Toolbar
},
- {
- xtype: 'DateField',
- xns: Roo.form,
+ {
+ '|xns' : 'Roo.form',
+ format : 'Y-m-d',
+ xtype : 'DateField',
+ xns : Roo.form,
listeners : {
- select : function (combo, date)
- {
- _this.grid.footer.onClick('first');
- },
- render : function (_self)
- {
- _this.toDate = _self;
- }
- },
- format : 'Y-m-d'
+ render : function (_self)
+ {
+ _this.toDate = _self;
+ },
+ select : function (combo, date)
+ {
+ _this.grid.footer.onClick('first');
+ }
+ }
}
]
+
},
+ '|xns' : 'Roo.grid',
+ autoExpandColumn : 'shiphead_notes',
+ xtype : 'Grid',
+ loadMask : true,
+ xns : Roo.grid,
+ builderCfg : '{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}',
colModel : [
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_order_id_cohead_number',
- header : 'Order#',
- sortable : true,
- width : 75,
- renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_custinfo_cust_name',
- header : 'Customer',
- width : 200,
- renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_number',
- header : 'Shipment#',
- sortable : true,
- width : 200,
- renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- header : 'notes',
- width : 200,
- dataIndex : 'shiphead_notes',
- renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_delivery_note',
- header : 'Delivery Note#',
- width : 200,
- renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_shipped',
- header : 'shipped',
- width : 75,
- renderer : function(v,x,r) {
-
-
-
-
- if (r.json.shiphead_shipdate.length) {
-
- if (r.json.shiphead_shipped) {
- return "Confirmed";
- }
-
- return 'Draft';
- }
-
- return 'VOID';
-
-
- }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'shiphead_shipdate',
- header : 'shipdate',
- sortable : true,
- width : 75,
- renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
- }
+ {
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ sortable : true,
+ header : 'Order#',
+ width : 75,
+ renderer : function(v) { return String.format('{0}', v); },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_order_id_cohead_number',
+ builderCfg : '{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"}'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ header : 'Customer',
+ width : 200,
+ renderer : function(v) { return String.format('{0}', v); },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_custinfo_cust_name'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ sortable : true,
+ header : 'Shipment#',
+ width : 200,
+ renderer : function(v) { return String.format('{0}', v); },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_number',
+ builderCfg : '{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"}'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ header : 'notes',
+ width : 200,
+ renderer : function(v) { return String.format('{0}', v); },
+ xns : Roo.grid,
+ builderCfg : '{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}',
+ dataIndex : 'shiphead_notes'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ header : 'Delivery Note#',
+ width : 200,
+ renderer : function(v) { return String.format('{0}', v); },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_delivery_note'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ header : 'shipped',
+ width : 75,
+ renderer : function(v,x,r) {
+
+
+
+
+ if (r.json.shiphead_shipdate.length) {
+
+ if (r.json.shiphead_shipped) {
+ return "Confirmed";
+ }
+
+ return 'Draft';
+ }
+
+ return 'VOID';
+
+
+ },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_shipped',
+ builderCfg : '{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}'
+ },
+{
+ '|xns' : 'Roo.grid',
+ xtype : 'ColumnModel',
+ sortable : true,
+ header : 'shipdate',
+ width : 75,
+ renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
+ xns : Roo.grid,
+ dataIndex : 'shiphead_shipdate',
+ builderCfg : '{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}'
+ }
+ ],
+ listeners : {
+ rowdblclick : function (_self, rowIndex, e)
+ {
+ if (!_this.dialog) return;
+
+ var d = this.getDataSource().getAt(rowIndex).data;
+ _this.dialog.show( {
+ cohead_id : d.shiphead_order_id
+
+ }, function() {
+ _this.grid.footer.onClick('refresh');
+ Pman.Tab.XtupleSales.grid.footer.onClick('first');
+ });
+ },
+ render : function()
+ {
+ _this.grid = this;
+ try {
+ _this.dialog = Pman.Dialog.XtupleSalesOrder;
+ } catch(e) {}
+ if (_this.panel.active) {
+ this.footer.onClick('first');
+ }
+ }
+ },
+ items : [
+
]
- }
- };
- }
+
+ },
+ '|xns' : 'Roo',
+ fitToframe : true,
+ background : true,
+ region : 'center',
+ xtype : 'GridPanel',
+ title : "Fullfillments",
+ xns : Roo,
+ fitContainer : true,
+ builderCfg : '{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}',
+ tableName : 'shiphead',
+ listeners : {
+ activate : function() {
+ _this.panel = this;
+ if (_this.grid) {
+ _this.grid.footer.onClick('first');
+ }
+ }
+ },
+ items : [
+
+ ]
+
+ }; }
});