You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/YanTaiYardView.js

174 lines
4.8 KiB
JavaScript

2 years ago
Ext.namespace('Shipping');
Shipping.YantaiYardView = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
Shipping.YantaiYardView.superclass.constructor.call(this);
};
Ext.extend(Shipping.YantaiYardView, Ext.Window, {
StoreList: null,
mblno: '',
start: 0,
limit: 100,
condition: '',
returnsql: null,
initUIComponents: function () {
// BEGIN OF CODE GENERATION PARTS, DON'T DELETE CODE BELOW
//#region 集装箱-数据集
this.storeBodyList = Ext.create('Ext.data.Store', {
model: 'MsOpSeaeDetail',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/MvcShipping/MsOpSeae/GetyardidctnList',
reader: {
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.gridList = new Ext.grid.GridPanel({
store: this.storeBodyList,
enableHdMenu: false,
region: 'center',
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
selType: 'cellmodel',
columns: [{
sortable: true,
dataIndex: 'CTN_ID',
header: '编号',
hidden: true,
width: 0
}, {
sortable: true,
dataIndex: 'BSNO',
header: '业务编号',
hidden: true,
width: 0
}, {
sortable: true,
dataIndex: 'CTNCODE',
hidden: true, header: '序号',
width: 30
}, {
dataIndex: 'CNTRNO',
header: '箱号',
width: 100
}, {
dataIndex: 'SEALNO',
header: '封号',
width: 80
}, {
dataIndex: 'SIZE',
header: '箱尺寸',
width: 30
}, {
dataIndex: 'CTN',
header: '箱类型',
width: 50
}, {
dataIndex: 'EXITDOOR',
header: '出门时间',
width: 140
}, {
dataIndex: 'ENTERDOOR',
header: '进门时间',
width: 140
}, {
dataIndex: 'CTNSTATUS',
header: '箱状态',
width: 80
}, {
dataIndex: 'VESSEL',
header: '船名',
width: 165
}, {
dataIndex: 'VOYNO',
header: '航次',
width: 60
}, {
dataIndex: 'MBLNO',
header: '提单号',
width: 120
}, {
dataIndex: 'TRUCKNO',
header: '车号',
width: 80
}, {
dataIndex: 'TRUCKTYPE',
header: '作业方式',
width: 80
}, {
dataIndex: 'ONBORD',
header: '装船时间',
width: 140
}, {
dataIndex: 'ETD',
header: '离港时间',
width: 140
}]
});
//#endregion
var yardview = this;
this.panelBodyCtn = new Ext.Panel({
title: '集装箱信息',
layout: "border",
height: 170,
//margin: '5 10',
frame: true,
items: [this.gridList]
});
this.formSearch = Ext.widget('form', {
frame: true,
region: 'center',
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
labelWidth: 60,
msgTarget: 'qtip'
},
items: [this.panelBodyCtn],
buttons: [{
text: "关闭",
handler: function (button, event) {
var win = this.up("window");
win.close();
}
}]
});
Ext.apply(this, {
height: 250,
closable: true,
draggable: true,
// title: '高级查询',
defaultButton: 'btnQuery',
resizable: false,
items: [this.formSearch],
layout: "border",
width: 950,
xtype: "window",
id: "DsQueryWin",
listeners: {
scope: this,
'beforeshow': function (thewin, eOpts) {
yardview.storeBodyList.load({ params: { mblno: this.mblno, bsno: '', yardid: 'YANTAIYARD'} });
}
}
});
}
});