|
|
Ext.namespace('Shipping');
|
|
|
|
|
|
Shipping.MsOpCtnBsCardIndex = function (config) {
|
|
|
Ext.applyIf(this, config);
|
|
|
this.initUIComponents();
|
|
|
window.Shipping.MsOpCtnBsCardIndex.superclass.constructor.call(this);
|
|
|
};
|
|
|
|
|
|
Ext.extend(Shipping.MsOpCtnBsCardIndex, Ext.Panel, {
|
|
|
|
|
|
OprationStatus: null, //仅当弹出界面时使用
|
|
|
SelectedRecord: null,
|
|
|
sqlcontext: '',
|
|
|
PageSize: 50,
|
|
|
sortfield: '',
|
|
|
sortdire: '',
|
|
|
AccDate: null,
|
|
|
initUIComponents: function () {
|
|
|
|
|
|
this.formname = "formMsOpCtnBsCardIndex"; //页面名称
|
|
|
|
|
|
this.openertype = getUrlParam("opener");
|
|
|
this.CTNBSCARDUNLOCK = false;
|
|
|
this.MsOpCtnCQTXIsOnly = 0;
|
|
|
|
|
|
this.storeListLock = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
fields: [
|
|
|
{ name: 'GID', type: 'string' },
|
|
|
{ name: 'FIELDNAME', type: 'string' }
|
|
|
|
|
|
],
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/GetLockField',
|
|
|
reader: {
|
|
|
id: '',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.worksql = getUrlParam('worksql');
|
|
|
|
|
|
|
|
|
this.storePLList = Ext.create('Ext.data.Store', {
|
|
|
model: 'MsOpCtnBsCard'
|
|
|
});
|
|
|
|
|
|
this.storeModuleEnable = Ext.create('Ext.data.Store', {
|
|
|
model: 'DsShipping.ux.ModuleModel',
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnableList',
|
|
|
reader: {
|
|
|
id: 'id',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//定义数据集
|
|
|
this.storeList = Ext.create('Ext.data.Store', {
|
|
|
model: 'MsOpCtnBsCard',
|
|
|
pageSize: this.PageSize,
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/GetDataList',
|
|
|
reader: {
|
|
|
id: 'GID',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.Pagenum = Ext.create('Ext.form.field.Number', {
|
|
|
name: 'bottles',
|
|
|
fieldLabel: '每页记录数',
|
|
|
labelAlign: 'right',
|
|
|
value: this.PageSize,
|
|
|
maxValue: 100000,
|
|
|
width: 170,
|
|
|
minValue: 0,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
|
|
|
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
|
|
|
width: 50
|
|
|
});
|
|
|
|
|
|
this.initgirdcolums = [{
|
|
|
sortable: true,
|
|
|
dataIndex: 'GID',
|
|
|
header: 'GID',
|
|
|
hidden: true,
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: '',
|
|
|
header: '',
|
|
|
width: 0
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'COMPANYID',
|
|
|
header: 'COMPANYID',
|
|
|
hidden: true,
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CTNNO',
|
|
|
header: '箱号',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'APPLYNO',
|
|
|
header: '放箱申请编号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CTNPROP',
|
|
|
header: '箱属',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSNO',
|
|
|
header: '业务编号',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MODIFYTIME',
|
|
|
header: '更新时间',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISCLOSE',
|
|
|
header: '锁定',
|
|
|
width: 100,
|
|
|
renderer: function (value, cellmeta) {
|
|
|
if (value == 'true') {
|
|
|
return "<img src='../../../../TruckMng/Content/Images/Lock.png' />";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS_PUTCTN',
|
|
|
header: '放箱通知发送',
|
|
|
width: 100,
|
|
|
renderer: function (value, cellmeta) {
|
|
|
if (value == 'true') {
|
|
|
return "是";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PUTCTNDATE',
|
|
|
header: '放箱通知发送时间',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PUTCTNAUDITSTATUS',
|
|
|
header: '放箱通知状态',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PUTCTNAUDITBYREF',
|
|
|
header: '放箱通知审核人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
xtype: 'actioncolumn',
|
|
|
width: 50,
|
|
|
text: '预览放箱单', //操作
|
|
|
items: [{
|
|
|
icon: '/images/icons/btnSearch.gif', // Use a URL in the icon config
|
|
|
tooltip: '预览',
|
|
|
getClass: function (v, meta, rec) {
|
|
|
var filePath = rec.get('ATTACHMENTFXD');
|
|
|
if (filePath == '' || filePath == null) {
|
|
|
return '';
|
|
|
} else {
|
|
|
return 'button_view';
|
|
|
}
|
|
|
},
|
|
|
handler: function (grid, rowIndex, colIndex) {
|
|
|
var rec = grid.getStore().getAt(rowIndex);
|
|
|
var filePath = rec.get('ATTACHMENTFXD');
|
|
|
if (filePath == '') {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有文件无法预览!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var imgView = new Shipping.FileView({ filePath: filePath + '?a=' + Math.random() });
|
|
|
imgView.show();
|
|
|
}
|
|
|
}]
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
header: '委托单位',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'GOODSNAME',
|
|
|
header: '货物名称',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'GOODSNAMEREF',
|
|
|
header: '货物名称(含英文简称)',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PREGOODSNAME',
|
|
|
header: '前装货品名',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETD',
|
|
|
header: '开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PREETA',
|
|
|
header: '预抵日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PREETD',
|
|
|
header: '预计开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETA',
|
|
|
header: '到港日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'AGENTNAME',
|
|
|
header: '目的港代理',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUR_PORT',
|
|
|
header: '当前位置',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUR_DATE',
|
|
|
header: '当前时间',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CYCLE_DAY',
|
|
|
header: '周期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTNO',
|
|
|
header: '委托编号',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'OP',
|
|
|
header: '操作',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MBLNO',
|
|
|
header: '主提单号',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CARRIER',
|
|
|
header: '船公司',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_STATOIN',
|
|
|
header: '起运港场站',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_CNT_TIME',
|
|
|
header: '起运港提箱日期',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'LOADFACTORY',
|
|
|
header: '装货工厂',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD',
|
|
|
header: '起运港',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT',
|
|
|
header: '目的港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DEST_CNT_TIME',
|
|
|
header: '目的港提箱日期',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DEST_RTCNT_TIME',
|
|
|
header: '目的港还箱日期',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT_STATOIN',
|
|
|
header: '目的港场站',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DETAIN_CTN_DAYS',
|
|
|
header: '滞箱天数',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PRE_CNT_TIME',
|
|
|
header: '预计提箱日期',
|
|
|
width: 200,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (record.data.DEST_CNT_TIME==''&&value != '') {
|
|
|
var ENDATE = new Date(value);
|
|
|
var myDate = new Date();
|
|
|
var mydatestr = Ext.util.Format.date(myDate, 'Y-m-d');
|
|
|
mydatestr = getNewDay(mydatestr, 1);
|
|
|
mydatestr = new Date(mydatestr);
|
|
|
if (mydatestr.getTime() > ENDATE.getTime()) {
|
|
|
meta.tdCls = 'feestatus_nopass';
|
|
|
}
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CLEARNTIME',
|
|
|
header: '清洗日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS_RETURE_EMPTY',
|
|
|
header: '是否返空',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISRETURNDOMESTIC',
|
|
|
header: '空返国内',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISSHORTRENTCTN',
|
|
|
header: '短租箱',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'RTCTNDATE',
|
|
|
header: '退租日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'TRANSTYPE',
|
|
|
header: '运输类型',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS_POD_CLEAN',
|
|
|
header: '否目的港清洗',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS_BOOKING',
|
|
|
header: '是否订舱',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_CUSTNO',
|
|
|
header: '空返委托编号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_MBLNO',
|
|
|
header: '空返提单号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_CARRIER',
|
|
|
header: '空返船公司',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_CONTRACT',
|
|
|
header: '运费约价',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_PORTLOAD_CNT_TIME',
|
|
|
header: '空返起运港提箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_PORTLOAD',
|
|
|
header: '空返起运港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_ETD',
|
|
|
header: '空返开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_DESTPORT',
|
|
|
header: '空返目的港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_ETA',
|
|
|
header: '空返到港日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_DESTPORT_STATOIN',
|
|
|
header: '空返目的港场站',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_DEST_CNT_TIME',
|
|
|
header: '空返目的港提箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_DEST_RTCNT_TIME',
|
|
|
header: '空返目的港还箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_CLEARNTIME',
|
|
|
header: '空返清洗日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'I_PREETD',
|
|
|
header: '空返预计开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PREI_ETA',
|
|
|
header: '空返预抵日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_FREE_DAYS',
|
|
|
header: '起运港免箱使天数',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_OVER_DAYS',
|
|
|
header: '起运港超期天数',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_OVER_DAYS_FEE',
|
|
|
header: '起运港箱使费/天',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD_OVER_DAYS_AMT',
|
|
|
header: '起运港箱使费',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT_FREE_DAYS',
|
|
|
header: '目的港免箱使天数',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT_OVER_DAYS',
|
|
|
header: '目的港超期天数',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT_OVER_DAYS_FEE',
|
|
|
header: '目的港箱使费/天',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT_OVER_DAYS_AMT',
|
|
|
header: '目的港箱使费',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MDGXSFSTATUS',
|
|
|
header: '目的港箱使费生成状态',
|
|
|
width: 140,
|
|
|
renderer: function (value, meta, record) {
|
|
|
var acolor = '#000000';
|
|
|
if (record.data.MDGXSFSTATUS === '') {
|
|
|
acolor = '#000000';
|
|
|
} else if (value === '已生成,已引入') {
|
|
|
acolor = '#00bc12';
|
|
|
} else if (value === '已生成,未引入') {
|
|
|
acolor = '#B87070';
|
|
|
} else if (value === '已还箱,未生成') {
|
|
|
acolor = '#B87070';
|
|
|
} else if (value === '未还箱,未生成') {
|
|
|
acolor = '#B87070';
|
|
|
}else {
|
|
|
acolor = ' #000000';
|
|
|
}
|
|
|
returnValue = '<b style=' + '"color:' + acolor + '"' + '">' + value + '</b>';
|
|
|
return returnValue;
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'QYGXSFSTATUS',
|
|
|
header: '起运港箱使费生成状态',
|
|
|
width: 140,
|
|
|
renderer: function (value, meta, record) {
|
|
|
var acolor = '#000000';
|
|
|
if (record.data.MDGXSFSTATUS === '') {
|
|
|
acolor = '#000000';
|
|
|
} else if (value === '已生成,已引入') {
|
|
|
acolor = '#00bc12';
|
|
|
} else if (value === '已生成,未引入') {
|
|
|
acolor = '#B87070';
|
|
|
} else if (value === '已开船,未生成') {
|
|
|
acolor = '#B87070';
|
|
|
} else if (value === '未开船,未生成') {
|
|
|
acolor = '#B87070';
|
|
|
} else {
|
|
|
acolor = ' #000000';
|
|
|
}
|
|
|
returnValue = '<b style=' + '"color:' + acolor + '"' + '">' + value + '</b>';
|
|
|
return returnValue;
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETDSTATUS',
|
|
|
header: '开船日期超期',
|
|
|
width: 140,
|
|
|
renderer: function (value, meta, record) {
|
|
|
var acolor = '#000000';
|
|
|
if (value === '超期') {
|
|
|
acolor = '#B87070';
|
|
|
} else {
|
|
|
acolor = ' #000000';
|
|
|
}
|
|
|
returnValue = '<b style=' + '"color:' + acolor + '"' + '">' + value + '</b>';
|
|
|
return returnValue;
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'XSFREMARK',
|
|
|
header: '箱使费复核',
|
|
|
width: 140
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MDGXSFSTATUS2',
|
|
|
header: '目的港箱使费一致',
|
|
|
width: 140
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'QYGXSFSTATUS2',
|
|
|
header: '起运港箱使费一致',
|
|
|
width: 140
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IMPFEESTATUS',
|
|
|
header: '有未引入费用',
|
|
|
width: 140
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BOOKGOODNAME',
|
|
|
header: '订舱品名',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMGOODNAME',
|
|
|
header: '报关品名',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'TRUCKNAME',
|
|
|
header: '车队',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'INPUTBYREF',
|
|
|
header: '录入人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'INPUTTIME',
|
|
|
header: '录入时间',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE',
|
|
|
header: '运输条款',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'NEEDBEHEATED',
|
|
|
header: '是否加热',
|
|
|
width: 80,
|
|
|
renderer: function (value, cellmeta) {
|
|
|
if (value == 'true') {
|
|
|
return "是";
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'AGENTINPUTBY',
|
|
|
header: '代理维护人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS_DB',
|
|
|
header: '是否调拨',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_CUSTNO',
|
|
|
header: '调拨委托编号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_MBLNO',
|
|
|
header: '调拨提单号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_CARRIER',
|
|
|
header: '调拨船公司',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_PORTLOAD_CNT_TIME',
|
|
|
header: '调拨起运港提箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_PORTLOAD',
|
|
|
header: '调拨起运港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_ETD',
|
|
|
header: '调拨开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_DESTPORT',
|
|
|
header: '调拨目的港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_ETA',
|
|
|
header: '调拨到港日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_DESTPORT_STATOIN',
|
|
|
header: '调拨目的港场站',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_DEST_CNT_TIME',
|
|
|
header: '调拨目的港提箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_DEST_RTCNT_TIME',
|
|
|
header: '调拨目的港还箱日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'D_CLEARNTIME',
|
|
|
header: '调拨清洗日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'TOPVALVE',
|
|
|
header: '顶阀',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'EXSITSIPHONPIPE',
|
|
|
header: '虹吸管',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'EXSITPRESSUREGAUGE',
|
|
|
header: '压力表',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'EXSITTOPOVERFLOWBOX',
|
|
|
header: '顶部溢流盒盖',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'EXSITINTOOVERFLOWBOX',
|
|
|
header: '人孔溢流盒盖',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'EXSITBOTTONVALVEDUSTCOVER',
|
|
|
header: '底部阀门防尘罩',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IS3TO2VALVE',
|
|
|
header: '3转2球阀',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISBSLOCK',
|
|
|
header: '出口信息锁定',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISSEAILOCK',
|
|
|
header: '进口信息锁定',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISRELOCK',
|
|
|
header: '返空信息锁定',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISDBLOCK',
|
|
|
header: '调拨信息锁定',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true || value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_FACTRY',
|
|
|
header: '送货工厂',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_FACTRYADDR',
|
|
|
header: '送货地址',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'OILXS',
|
|
|
header: '燃油系数',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_BKNO',
|
|
|
header: '交货单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_CARRIER_TASKNO',
|
|
|
header: '船运-运输任务单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_TRUCK_TASKNO',
|
|
|
header: '汽运-运输任务单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'N_DELIVERYDATE',
|
|
|
header: '送货时间',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CTN_HANDINGOP',
|
|
|
header: '箱使费负责人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'RTOP',
|
|
|
header: '空返负责人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SALE',
|
|
|
header: '揽货人',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'REMARKS',
|
|
|
header: '备注',
|
|
|
width: 100
|
|
|
}
|
|
|
];
|
|
|
|
|
|
this.girdcolums = this.initgirdcolums;
|
|
|
|
|
|
|
|
|
this.GridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
|
|
|
_this = this;
|
|
|
//定义Grid
|
|
|
this.gridList = new Ext.grid.GridPanel({
|
|
|
store: this.storeList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
viewConfig: {
|
|
|
enableTextSelection: true
|
|
|
},
|
|
|
selModel: this.GridCheckBoxModel,
|
|
|
columns: this.girdcolums,
|
|
|
// paging bar on the bottom
|
|
|
bbar: [Ext.create('Ext.PagingToolbar', {
|
|
|
store: this.storeList,
|
|
|
displayInfo: true,
|
|
|
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
|
|
|
emptyMsg: "没有数据"
|
|
|
}), this.Pagenum]
|
|
|
});
|
|
|
|
|
|
this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
this.girdcolums.unshift(new Ext.grid.RowNumberer());
|
|
|
|
|
|
this.gridList.reconfigure(this.storeList, this.girdcolums);
|
|
|
|
|
|
this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
|
|
|
this.SelectedRecord = record;
|
|
|
this.OprationStatus = 'edit';
|
|
|
if (BSCARDTYPE == '1')
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/Edit', record.data.GID);
|
|
|
else
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/CtnStatusEdit', record.data.GID);
|
|
|
}, this);
|
|
|
|
|
|
var isloadfee = true;
|
|
|
this.gridList.getSelectionModel().on('select', function (model, record, index) {
|
|
|
if (!isloadfee) return;
|
|
|
var bsno = record.data.GID;
|
|
|
|
|
|
if (this.panelFitings.isHidden() == true) {
|
|
|
|
|
|
} else {
|
|
|
this.panelFitings.strLINKGID = bsno;
|
|
|
this.panelFitings.onRefreshClick();
|
|
|
}
|
|
|
|
|
|
if (this.formMDEdit.isHidden() == true) return;
|
|
|
var sql = "";
|
|
|
sql = " BSNO='" + bsno + "'";
|
|
|
isloadfee = false;
|
|
|
var ISCLOSE = record.data.ISCLOSE;
|
|
|
|
|
|
this.formMDEdit.getForm().reset();
|
|
|
this.formMDEdit.getForm().loadRecord(record);
|
|
|
if (ISCLOSE == 'true') {
|
|
|
Ext.getCmp('btnUpPORTLOADDATE').disable();
|
|
|
Ext.getCmp('btnLockPORTLOADDATE').disable();
|
|
|
Ext.getCmp('btnUnLockPORTLOADDATE').disable();
|
|
|
Ext.getCmp('btnUpPORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockPORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockPORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpETD').disable();
|
|
|
Ext.getCmp('btnLockETD').disable();
|
|
|
Ext.getCmp('btnUnLockETD').disable();
|
|
|
Ext.getCmp('btnUpETA').disable();
|
|
|
Ext.getCmp('btnLockETA').disable();
|
|
|
Ext.getCmp('btnUnLockETA').disable();
|
|
|
Ext.getCmp('btnUnLockDEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockDEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpDEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpDEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockDEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockDEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpI_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockI_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpI_ETD').disable();
|
|
|
Ext.getCmp('btnLockI_ETD').disable();
|
|
|
Ext.getCmp('btnUnLockI_ETD').disable();
|
|
|
Ext.getCmp('btnUpI_ETA').disable();
|
|
|
Ext.getCmp('btnLockI_ETA').disable();
|
|
|
Ext.getCmp('btnUnLockI_ETA').disable();
|
|
|
Ext.getCmp('btnUpI_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockI_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpI_DEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_DEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockI_DEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpI_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockD_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockD_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpD_ETD').disable();
|
|
|
Ext.getCmp('btnLockD_ETD').disable();
|
|
|
Ext.getCmp('btnUnLockD_ETD').disable();
|
|
|
Ext.getCmp('btnUpD_ETA').disable();
|
|
|
Ext.getCmp('btnLockD_ETA').disable();
|
|
|
Ext.getCmp('btnUnLockD_ETA').disable();
|
|
|
Ext.getCmp('btnUpD_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockD_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockD_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnUpD_DEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockD_DEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnUnLockD_DEST_RTCNT_TIME').disable();
|
|
|
} else {
|
|
|
Ext.getCmp('btnUpPORTLOADDATE').enable();
|
|
|
Ext.getCmp('btnLockPORTLOADDATE').enable();
|
|
|
Ext.getCmp('btnUpPORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockPORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpETD').enable();
|
|
|
Ext.getCmp('btnLockETD').enable();
|
|
|
Ext.getCmp('btnUpETA').enable();
|
|
|
Ext.getCmp('btnLockETA').enable();
|
|
|
Ext.getCmp('btnLockDEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpDEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpDEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockDEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpI_PORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_PORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpI_ETD').enable();
|
|
|
Ext.getCmp('btnLockI_ETD').enable();
|
|
|
Ext.getCmp('btnUpI_ETA').enable();
|
|
|
Ext.getCmp('btnLockI_ETA').enable();
|
|
|
Ext.getCmp('btnUpI_DEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_DEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpI_DEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_DEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpD_PORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockD_PORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpD_ETD').enable();
|
|
|
Ext.getCmp('btnLockD_ETD').enable();
|
|
|
Ext.getCmp('btnUpD_ETA').enable();
|
|
|
Ext.getCmp('btnLockD_ETA').enable();
|
|
|
Ext.getCmp('btnUpD_DEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockD_DEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnUpD_DEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockD_DEST_RTCNT_TIME').enable();
|
|
|
|
|
|
//if (this.CTNBSCARDUNLOCK) {
|
|
|
// Ext.getCmp('btnUnLockPORTLOADDATE').enable();
|
|
|
// Ext.getCmp('btnUnLockPORTLOAD_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockETD').enable();
|
|
|
// Ext.getCmp('btnUnLockETA').enable();
|
|
|
// Ext.getCmp('btnUnLockDEST_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockDEST_RTCNT_TIME').enable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockI_PORTLOAD_CNT_TIME').enable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockI_ETD').enable();
|
|
|
// Ext.getCmp('btnUnLockI_ETA').enable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_RTCNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockD_PORTLOAD_CNT_TIME').enable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockD_ETD').enable();
|
|
|
// Ext.getCmp('btnUnLockD_ETA').enable();
|
|
|
// Ext.getCmp('btnUnLockD_DEST_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockD_DEST_RTCNT_TIME').enable();
|
|
|
|
|
|
|
|
|
//} else {
|
|
|
|
|
|
// Ext.getCmp('btnUnLockPORTLOADDATE').disable();
|
|
|
// Ext.getCmp('btnUnLockPORTLOAD_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockETD').disable();
|
|
|
// Ext.getCmp('btnUnLockETA').disable();
|
|
|
// Ext.getCmp('btnUnLockDEST_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockDEST_RTCNT_TIME').disable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockI_PORTLOAD_CNT_TIME').disable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockI_ETD').disable();
|
|
|
// Ext.getCmp('btnUnLockI_ETA').disable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_RTCNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockD_PORTLOAD_CNT_TIME').disable();
|
|
|
|
|
|
// Ext.getCmp('btnUnLockD_ETD').disable();
|
|
|
// Ext.getCmp('btnUnLockD_ETA').disable();
|
|
|
// Ext.getCmp('btnUnLockD_DEST_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockD_DEST_RTCNT_TIME').disable();
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
this.storeListLock.load({ params: { condition: sql },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
isloadfee = true;
|
|
|
if (_this.storeListLock.getCount() > 0) {
|
|
|
for (var j = 0; j < _this.storeListLock.getCount(); j += 1) {
|
|
|
var member = _this.storeListLock.getAt(j);
|
|
|
var headfield = _this.formMDEdit.getForm().findField('IS_' + member.data.FIELDNAME);
|
|
|
headfield.setValue(true);
|
|
|
var btn = Ext.getCmp('btnUp' + member.data.FIELDNAME);
|
|
|
btn.disable();
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
// this.gridList.on({
|
|
|
// selectionchange: function (sm, selections) {
|
|
|
// if (selections.length == 0) {
|
|
|
// _this.formMDEdit.setVisible(false);
|
|
|
|
|
|
// }
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
|
|
|
//#region formSearch 查询面板
|
|
|
_this = this;
|
|
|
|
|
|
//客户加载_委托单位
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListController' }
|
|
|
});
|
|
|
//this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'"} });
|
|
|
//委托单位
|
|
|
_this = this;
|
|
|
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '委托单位',
|
|
|
store: this.storeCustCode,
|
|
|
forceSelection: true,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 1,
|
|
|
queryParam: 'CODENAME',
|
|
|
name: 'CUSTOMERNAME',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
keyup: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
labelwidth = 60;
|
|
|
|
|
|
|
|
|
this.CheckPORTLOAD_CNT_TIME = new Ext.form.Checkbox({
|
|
|
fieldLabel: '起运港提箱超期', //仅需审核业务
|
|
|
labelAlign:'right',
|
|
|
checked: false,
|
|
|
labelWidth: 130,
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
this.CheckETD = new Ext.form.Checkbox({
|
|
|
fieldLabel: '开船日期超期', //仅需审核业务
|
|
|
labelAlign: 'right',
|
|
|
checked: false,
|
|
|
labelWidth: 130,
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
this.CheckETA= new Ext.form.Checkbox({
|
|
|
fieldLabel: '到港日期超期', //仅需审核业务
|
|
|
labelAlign: 'right',
|
|
|
checked: false,
|
|
|
labelWidth: 130,
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
this.CheckDEST_RTCNT_TIME = new Ext.form.Checkbox({
|
|
|
fieldLabel: '目的港还箱日期超期', //仅需审核业务
|
|
|
labelAlign: 'right',
|
|
|
checked: false,
|
|
|
labelWidth: 150,
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
this.CheckInsurance = new Ext.form.Checkbox({
|
|
|
fieldLabel: '有保险费未生成保险信息', //仅需审核业务
|
|
|
labelAlign: 'right',
|
|
|
checked: false,
|
|
|
labelWidth: 150,
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
|
|
|
this.CheckPORTLOAD_CNT_TIME.addListener('change', function (field, newValue, oldValue, eOpts) {
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
this.CheckETD.addListener('change', function (field, newValue, oldValue, eOpts) {
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
this.CheckETA.addListener('change', function (field, newValue, oldValue, eOpts) {
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
this.CheckDEST_RTCNT_TIME.addListener('change', function (field, newValue, oldValue, eOpts) {
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
}, this);
|
|
|
this.CheckInsurance.addListener('change', function (field, newValue, oldValue, eOpts) {
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
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: [{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '箱号',
|
|
|
labelWidth: labelwidth,
|
|
|
name: 'CTNNO',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '编号',
|
|
|
labelWidth: labelwidth,
|
|
|
name: 'BSNO',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, this.comboxCustCode, {
|
|
|
fieldLabel: '开船日期',
|
|
|
labelWidth: labelwidth,
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETDbgn',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '到',
|
|
|
labelWidth: labelwidth,
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETDend',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '只显示每罐箱最新',
|
|
|
labelWidth: 110,
|
|
|
xtype: 'checkbox',
|
|
|
name: 'ONLYNEW',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
width: 90,
|
|
|
text: "执行查询",
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
this.onRefreshClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [this.CheckPORTLOAD_CNT_TIME, this.CheckETD, this.CheckETA, this.CheckDEST_RTCNT_TIME, this.CheckInsurance, { xtype: 'hiddenfield' }, {
|
|
|
xtype: 'button',
|
|
|
width: 90,
|
|
|
text: "高级查询",
|
|
|
iconCls: "btnmore",
|
|
|
handler: function (button, event) {
|
|
|
var sql = this.getCondition();
|
|
|
var winAccess = new Shipping.DsQuery({
|
|
|
|
|
|
});
|
|
|
winAccess.StoreList = this.storeList;
|
|
|
winAccess.formname = this.formname;
|
|
|
winAccess.condition = sql;
|
|
|
winAccess.show();
|
|
|
return;
|
|
|
},
|
|
|
scope: this
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
]//end items(fieldset 1)
|
|
|
}]//end root items
|
|
|
});
|
|
|
//#endregion formSearch
|
|
|
|
|
|
//查询工具条
|
|
|
this.panelBtn = new Ext.Panel({
|
|
|
region: "north",
|
|
|
tbar: [
|
|
|
{
|
|
|
text: "新建",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnadd',
|
|
|
handler: function (button, event) {
|
|
|
this.OprationStatus = 'add';
|
|
|
if (BSCARDTYPE == '1')
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/Edit');
|
|
|
else
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/CtnStatusEdit');
|
|
|
},
|
|
|
scope: this
|
|
|
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "删除",
|
|
|
iconCls: "btndelete",
|
|
|
id: 'btndelete',
|
|
|
handler: function (button, event) {
|
|
|
this.onDeleteClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
},
|
|
|
'-',
|
|
|
{
|
|
|
text: "执行查询",
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
this.onRefreshClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "打印",
|
|
|
iconCls: 'btnprint',
|
|
|
menu: [
|
|
|
{ text: "全部",
|
|
|
handler: function (menu, event) {
|
|
|
_this.Print();
|
|
|
}
|
|
|
}, { text: "选择打印",
|
|
|
handler: function (menu, event) {
|
|
|
_this.PrintSelect();
|
|
|
}
|
|
|
}, { text: "打印放箱通知单",
|
|
|
handler: function (menu, event) {
|
|
|
_this.PrintSelectPutCtn();
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: "导出Excel",
|
|
|
id: "btnExportExcel",
|
|
|
iconCls: 'btnexportexcel',
|
|
|
handler: function (button, event) {
|
|
|
this.onExportClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "打开",
|
|
|
iconCls: "btnright", id: "OPEN",
|
|
|
handler: function (button, event) {
|
|
|
this.onOpenClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
, '-', {
|
|
|
text: "保存列表样式",
|
|
|
id: "btntest",
|
|
|
menu: [
|
|
|
{ text: "保存",
|
|
|
handler: function (button, event) {
|
|
|
this.girdcolums = DsTruck.SaveGridPanel(USERID, _this.formname, _this.gridList.columns, _this.girdcolums, 1, true);
|
|
|
}
|
|
|
}, { text: "初始化",
|
|
|
handler: function (menu, event) {
|
|
|
_this.InitGrid(_this.initgirdcolums);
|
|
|
_this.girdcolums = DsTruck.SaveGridPanel(USERID, _this.formname, _this.gridList.columns, _this.initgirdcolums, 1, true);
|
|
|
}
|
|
|
}],
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "放箱通知审核",
|
|
|
id: "btnPUTCTNAUDIT",
|
|
|
menu: [
|
|
|
{ text: "审核通过",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onAuditSelPutCtnClick('1');
|
|
|
}
|
|
|
}, { text: "取消审核通过",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onAuditSelPutCtnClick('0');
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "放箱通知",
|
|
|
menu: [
|
|
|
{
|
|
|
text: "放箱通知录入", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.winFXTZModifyShow.show();
|
|
|
}
|
|
|
},{
|
|
|
text: "箱管确认",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onAuditSelPutCtnClick('3');
|
|
|
}
|
|
|
},{ text: "放箱通知发送",
|
|
|
handler: function (menu, event) {
|
|
|
_this.winFeeCloseShow.show();
|
|
|
}
|
|
|
}, { text: "取消放箱通知发送",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onCancelSelPutCtnClick();
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "业务卡锁定",
|
|
|
menu: [
|
|
|
{ text: "业务卡锁定",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onSelLockClick();
|
|
|
}
|
|
|
}, { text: "取消业务卡锁定",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onCancelSelLockClick();
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
},
|
|
|
'-',
|
|
|
{
|
|
|
text: "箱使跟踪",
|
|
|
id: 'CtnUpDate',
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
if (this.formMDEdit.isHidden() == true)
|
|
|
this.formMDEdit.setVisible(true);
|
|
|
else
|
|
|
this.formMDEdit.setVisible(false);
|
|
|
},
|
|
|
scope: this
|
|
|
},
|
|
|
'-',
|
|
|
{
|
|
|
text: "配件拆装",
|
|
|
id: 'CtnFitings',
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
if (this.panelBasicFitings.isHidden() == true)
|
|
|
this.panelBasicFitings.setVisible(true);
|
|
|
else
|
|
|
this.panelBasicFitings.setVisible(false);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-', {
|
|
|
text: "其他操作",
|
|
|
menu: [
|
|
|
{
|
|
|
text: "查看罐配件",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangViewFitingCtnKcClick();
|
|
|
}
|
|
|
},{
|
|
|
text: "费用编辑",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangFeeEditClick();
|
|
|
}
|
|
|
}, {
|
|
|
text: "批量费用添加",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangFeeAddClick();
|
|
|
}
|
|
|
}, {
|
|
|
text: "业务批量修改", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.winModifyShow.show();
|
|
|
}
|
|
|
}, {
|
|
|
text: "引入业务信息", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.ImportBs();
|
|
|
}
|
|
|
}, {
|
|
|
text: "业务批量维修清洗", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangRepairClearingEditClick();
|
|
|
}
|
|
|
}, {
|
|
|
text: "批量添加维修", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangRepairAddClick();
|
|
|
}
|
|
|
}, {
|
|
|
text: "批量添加清洗", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangClearingAddClick();
|
|
|
}
|
|
|
}, {
|
|
|
text: "场站EXCEL上传", //"业务批量修改",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onImportYardData();
|
|
|
}
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "生成箱使费",
|
|
|
id: 'CreateOverFee',
|
|
|
menu: [
|
|
|
{
|
|
|
text: "起运港箱使费",
|
|
|
handler: function (menu, event) {
|
|
|
_this.CreateOverFee('1');
|
|
|
}
|
|
|
}, {
|
|
|
text: "起运港箱使代理费",
|
|
|
handler: function (menu, event) {
|
|
|
_this.CreateOverFee('11');
|
|
|
}
|
|
|
},{
|
|
|
text: "目的港箱使费",
|
|
|
handler: function (menu, event) {
|
|
|
_this.CreateOverFee('2');
|
|
|
}
|
|
|
}, {
|
|
|
text: "箱使代理费",
|
|
|
handler: function (menu, event) {
|
|
|
_this.CreateOverFee('3');
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "生成堆存费",
|
|
|
id: 'CreateDcFee',
|
|
|
handler: function (button, event) {
|
|
|
this.CreateDcFee();
|
|
|
},
|
|
|
scope: this
|
|
|
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "生成内贸陆运费",
|
|
|
id: 'CreateNLYFee',
|
|
|
handler: function (button, event) {
|
|
|
this.CreateNLYFee();
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "计提罐租费",
|
|
|
id: 'CreateGzFee',
|
|
|
handler: function (button, event) {
|
|
|
_this.winGZFCLOSEDATEShow.show();
|
|
|
},
|
|
|
scope: this
|
|
|
|
|
|
}, {
|
|
|
text: "查看修改日志",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onViewLogClick();
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "申请返空/调拨",
|
|
|
id: 'ShenReturn',
|
|
|
menu: [
|
|
|
{
|
|
|
text: "申请返空",
|
|
|
handler: function (menu, event) {
|
|
|
_this.ShenReturn('1');
|
|
|
}
|
|
|
}, {
|
|
|
text: "撤销申请",
|
|
|
handler: function (menu, event) {
|
|
|
_this.ShenReturnBack('0');
|
|
|
}
|
|
|
}, {
|
|
|
text: "申请调拨",
|
|
|
handler: function (menu, event) {
|
|
|
_this.ShenReturn('3');
|
|
|
}
|
|
|
}, {
|
|
|
text: "撤销调拨申请",
|
|
|
handler: function (menu, event) {
|
|
|
_this.ShenReturnBack('2');
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "批量上传文件",
|
|
|
iconCls: "btnupload",
|
|
|
menu: [
|
|
|
//{
|
|
|
// text: "改装前照片",
|
|
|
// handler: function (menu, event) {
|
|
|
// _this.UploadFile('GZQ', '改装前照片');
|
|
|
// }
|
|
|
// }, {
|
|
|
// text: "改装后照片",
|
|
|
// handler: function (menu, event) {
|
|
|
// _this.UploadFile('GZH', '改装后照片');
|
|
|
// }
|
|
|
// },
|
|
|
{
|
|
|
text:'清洗照片', //"退舱",
|
|
|
id: "btnOpTui",
|
|
|
menu: [
|
|
|
{
|
|
|
text: '上传进场照片',
|
|
|
tooltip: '上传进场照片',
|
|
|
handler: function (button, event) {
|
|
|
_this.UploadFile('JC', '进场照片');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: '上传EIR照片',
|
|
|
tooltip: '上传EIR照片',
|
|
|
handler: function (button, event) {
|
|
|
_this.UploadFile('EIR', '进场照片');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: '上传清洗照片',
|
|
|
tooltip: '上传清洗照片',
|
|
|
handler: function (button, event) {
|
|
|
_this.UploadFile('QX', '清洗照片');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: '上传清洁证照片',
|
|
|
tooltip: '上传清洁证照片',
|
|
|
handler: function (button, event) {
|
|
|
_this.UploadFile('QJZ', '清洁证照片');
|
|
|
},
|
|
|
scope: this
|
|
|
}]
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
});
|
|
|
|
|
|
this.formMDEdit = Ext.widget('form', {
|
|
|
region: 'east',
|
|
|
width: 600,
|
|
|
frame: true,
|
|
|
hidden: true,
|
|
|
bodyPadding: 5,
|
|
|
title: '箱使跟踪表',
|
|
|
// autoScroll: true,
|
|
|
trackResetOnLoad: true,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'fieldset',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: 'GID',
|
|
|
name: 'GID', flex: 0, hidden: true, margins: '0'
|
|
|
}, {
|
|
|
fieldLabel: 'COMPANYID',
|
|
|
name: 'COMPANYID', flex: 0, hidden: true, margins: '0'
|
|
|
}, {
|
|
|
fieldLabel: 'SEABSNO',
|
|
|
name: 'SEABSNO', flex: 0, hidden: true, margins: '0'
|
|
|
}, {
|
|
|
fieldLabel: 'ISCLOSE',
|
|
|
name: 'ISCLOSE', flex: 0, hidden: true, margins: '0'
|
|
|
}, {
|
|
|
fieldLabel: 'APPLYNO',
|
|
|
name: 'APPLYNO', flex: 0, hidden: true, margins: '0'
|
|
|
}, {
|
|
|
fieldLabel: '业务卡编号',
|
|
|
allowBlank: true,
|
|
|
labelWidth: 120,
|
|
|
readOnly: true,
|
|
|
flex: 1,
|
|
|
name: 'BSNO'
|
|
|
}, {
|
|
|
fieldLabel: '箱号',
|
|
|
readOnly: true,
|
|
|
name: 'CTNNO'
|
|
|
}]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '起运港进港日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PORTLOADDATE'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_PORTLOADDATE'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpPORTLOADDATE',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('PORTLOADDATE');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockPORTLOADDATE',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('PORTLOADDATE');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockPORTLOADDATE',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('PORTLOADDATE');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '起运港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpPORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockPORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockPORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETD'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_ETD'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpETD',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnLockETD',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockETD',
|
|
|
hidden: true,
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETA'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_ETA'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnLockETA',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '目的港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'DEST_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpDEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockDEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockDEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '目的港还箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpDEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnLockDEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockDEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返起运港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_I_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpI_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('I_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockI_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('I_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockI_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('I_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_ETD'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_I_ETD'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpI_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('I_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnLockI_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('I_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockI_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('I_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_ETA'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_I_ETA'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpI_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('I_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockI_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('I_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockI_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('I_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返目的港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_I_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpI_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('I_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockI_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('I_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockI_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('I_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返还箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_I_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpI_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('I_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockI_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('I_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUnLockI_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('I_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨起运港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_D_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpD_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('D_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockD_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('D_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockD_PORTLOAD_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('D_PORTLOAD_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_ETD'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_D_ETD'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpD_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('D_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnLockD_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('D_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockD_ETD',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('D_ETD');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_ETA'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_D_ETA'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpD_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('D_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockD_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('D_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockD_ETA',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('D_ETA');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返目的港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
labelWidth: 120,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_D_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpD_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('D_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockD_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('D_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockD_DEST_CNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('D_DEST_CNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨还箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 120,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '是否锁定',
|
|
|
inputValue: true,
|
|
|
readOnly: true,
|
|
|
flex: 0.5,
|
|
|
xtype: 'checkboxfield',
|
|
|
name: 'IS_D_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "更新",
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnUpD_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UpBsDate('D_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "锁定",
|
|
|
hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
id: 'btnLockD_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.LockBsDate('D_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
text: "批量解除",
|
|
|
iconCls: "btnadd",
|
|
|
hidden: true,
|
|
|
id: 'btnUnLockD_DEST_RTCNT_TIME',
|
|
|
handler: function (button, event) {
|
|
|
this.UnLockBsDate('D_DEST_RTCNT_TIME');
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
}); //end this.formEdit
|
|
|
|
|
|
|
|
|
this.panelFitings = new Shipping.MsOpCtnTkFitingsDetailIndex({
|
|
|
region: 'center',
|
|
|
layout: 'border'
|
|
|
});
|
|
|
this.panelBasicFitings = new Ext.Panel({
|
|
|
title: '配件拆装信息',
|
|
|
layout: "border",
|
|
|
region: "south",
|
|
|
split:true,
|
|
|
hidden: true,
|
|
|
height:280,
|
|
|
items: [this.panelFitings] //
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
layout: "border",
|
|
|
region: "north",
|
|
|
height: 105,
|
|
|
items: [this.formSearch, this.panelBtn]
|
|
|
});
|
|
|
this.panelCenter = new Ext.Panel({
|
|
|
layout: "border",
|
|
|
region: "center",
|
|
|
items: [this.gridList, this.formMDEdit]
|
|
|
});
|
|
|
|
|
|
Ext.apply(this, {
|
|
|
items: [this.panelTop, this.panelCenter,this.panelBasicFitings]
|
|
|
});
|
|
|
|
|
|
this.sqlcontext = '';
|
|
|
|
|
|
this.storeList.on('beforeload', function (store) {
|
|
|
Ext.apply(store.proxy.extraParams, { condition: _this.sqlcontext, pricetype: BSCARDTYPE });
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
if (!isNullorEmpty(this.worksql)) {
|
|
|
this.worksql = this.worksql.replace(/@@/g, '=')
|
|
|
this.sqlcontext = this.worksql;
|
|
|
this.onDsQuery();
|
|
|
|
|
|
} else {
|
|
|
if (!this.isotheropen())
|
|
|
this.onRefreshClick();
|
|
|
}
|
|
|
|
|
|
this.storeYardDataList = Ext.create('Ext.data.Store', {
|
|
|
model: 'MsYardData'
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//明细表表格
|
|
|
this.gridListInspectCellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
|
|
|
clicksToEdit: 1
|
|
|
});
|
|
|
|
|
|
this.GridCheckBoxYardModel = Ext.create('Ext.selection.CheckboxModel');
|
|
|
|
|
|
this.gridListYardDataList = new Ext.grid.GridPanel({
|
|
|
store: this.storeYardDataList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
plugins: [this.gridListInspectCellEditing],
|
|
|
selModel: this.GridCheckBoxYardModel,
|
|
|
viewConfig: {
|
|
|
enableTextSelection: true,
|
|
|
autoFill: true
|
|
|
},
|
|
|
columns: [{
|
|
|
sortable: true,
|
|
|
dataIndex: 'GID',
|
|
|
header: '编号',
|
|
|
hidden: true,
|
|
|
width: 0
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSNO',
|
|
|
header: '编号',
|
|
|
width:150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CTNNO',
|
|
|
header: '箱号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DATEINFIELDREF',
|
|
|
header: '更新字段',
|
|
|
width: 150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DATEIN',
|
|
|
header: '更新新值',
|
|
|
width: 150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DATEINVALUE',
|
|
|
header: '更新旧值',
|
|
|
width: 150
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
this.formYardDataShow = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 85,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [this.gridListYardDataList
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
|
|
|
});
|
|
|
|
|
|
this.winYardDataShow = Ext.create('Ext.window.Window', {
|
|
|
title: "导入数据更新",
|
|
|
width: 720,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formYardDataShow],
|
|
|
buttons: [{
|
|
|
text: "确认更新",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
_this.onUpdateYardDataClick()
|
|
|
|
|
|
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winYardDataShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.formAccMonthShow = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 85,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '放箱通知时间',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'AccDate'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
|
|
|
});
|
|
|
me = this;
|
|
|
|
|
|
|
|
|
this.winFeeCloseShow = Ext.create('Ext.window.Window', {
|
|
|
title: "发送放箱通知",
|
|
|
width: 420,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formAccMonthShow],
|
|
|
buttons: [{
|
|
|
text: "确认发送",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
var form = me.formAccMonthShow.getForm();
|
|
|
me.AccDate = form.findField('AccDate').getRawValue();
|
|
|
if (me.AccDate == '' || me.AccDate == null || me.AccDate == undefined) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '必须有放箱通知发送时间!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
};
|
|
|
_this.onSelPutCtnClick()
|
|
|
|
|
|
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winFeeCloseShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
this.storeCodeDisport = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
autoLoad: true,
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportList' }
|
|
|
});
|
|
|
this.storeCodeDisport.load();
|
|
|
|
|
|
|
|
|
var btndelete = Ext.getCmp('btndelete');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "CTNBSCARDDEL"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
btndelete.disable();
|
|
|
} else {
|
|
|
btndelete.enable();
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
var btnadd = Ext.getCmp('btnadd');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "CTNBSCARDNEW"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
btnadd.disable();
|
|
|
} else {
|
|
|
btnadd.enable();
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
var btnPUTCTNAUDIT = Ext.getCmp('btnPUTCTNAUDIT');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "CTNBSCARDAUDITPUTCTN"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
btnPUTCTNAUDIT.disable();
|
|
|
} else {
|
|
|
btnPUTCTNAUDIT.enable();
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
var btnCtnUpDate = Ext.getCmp('CtnUpDate');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "CTNUPDATE"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
btnCtnUpDate.disable();
|
|
|
this.formMDEdit.setVisible(false);
|
|
|
} else {
|
|
|
btnCtnUpDate.enable();
|
|
|
this.formMDEdit.setVisible(true);
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "CTNBSCARDLOCK"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
Ext.getCmp('btnLockPORTLOADDATE').disable();
|
|
|
Ext.getCmp('btnLockPORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockETD').disable();
|
|
|
Ext.getCmp('btnLockETA').disable();
|
|
|
Ext.getCmp('btnLockDEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockDEST_RTCNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_PORTLOAD_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_ETD').disable();
|
|
|
Ext.getCmp('btnLockI_ETA').disable();
|
|
|
Ext.getCmp('btnLockI_DEST_CNT_TIME').disable();
|
|
|
Ext.getCmp('btnLockI_DEST_RTCNT_TIME').disable();
|
|
|
} else {
|
|
|
Ext.getCmp('btnLockPORTLOADDATE').enable();
|
|
|
Ext.getCmp('btnLockPORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockETD').enable();
|
|
|
Ext.getCmp('btnLockETA').enable();
|
|
|
Ext.getCmp('btnLockDEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockDEST_RTCNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_PORTLOAD_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_ETD').enable();
|
|
|
Ext.getCmp('btnLockI_ETA').enable();
|
|
|
Ext.getCmp('btnLockI_DEST_CNT_TIME').enable();
|
|
|
Ext.getCmp('btnLockI_DEST_RTCNT_TIME').enable();
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
//Ext.Ajax.request({
|
|
|
// waitMsg: '',
|
|
|
// url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
// params: {
|
|
|
// modulename: "CTNBSCARDUNLOCK"
|
|
|
// },
|
|
|
// callback: function (options, success, response) {
|
|
|
// if (success) {
|
|
|
// var result = Ext.JSON.decode(response.responseText);
|
|
|
// if (result.Success != true) {
|
|
|
// this.CTNBSCARDUNLOCK = false;
|
|
|
// Ext.getCmp('btnUnLockPORTLOADDATE').disable();
|
|
|
// Ext.getCmp('btnUnLockPORTLOAD_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockETD').disable();
|
|
|
// Ext.getCmp('btnUnLockETA').disable();
|
|
|
// Ext.getCmp('btnUnLockDEST_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockDEST_RTCNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockI_PORTLOAD_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockI_ETD').disable();
|
|
|
// Ext.getCmp('btnUnLockI_ETA').disable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_CNT_TIME').disable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_RTCNT_TIME').disable();
|
|
|
|
|
|
// } else {
|
|
|
// this.CTNBSCARDUNLOCK = true;
|
|
|
|
|
|
// Ext.getCmp('btnUnLockPORTLOADDATE').enable();
|
|
|
// Ext.getCmp('btnUnLockPORTLOAD_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockETD').enable();
|
|
|
// Ext.getCmp('btnUnLockETA').enable();
|
|
|
// Ext.getCmp('btnUnLockDEST_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockDEST_RTCNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockI_PORTLOAD_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockI_ETD').enable();
|
|
|
// Ext.getCmp('btnUnLockI_ETA').enable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_CNT_TIME').enable();
|
|
|
// Ext.getCmp('btnUnLockI_DEST_RTCNT_TIME').enable();
|
|
|
|
|
|
// }
|
|
|
// } else {
|
|
|
|
|
|
// }
|
|
|
// },
|
|
|
// scope: this
|
|
|
//});
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "MsOpCtnCQTXIsOnly"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
this.MsOpCtnCQTXIsOnly = 0;
|
|
|
|
|
|
} else {
|
|
|
this.MsOpCtnCQTXIsOnly = 1;
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
if (this.isotheropen()) {
|
|
|
BSNO = getUrlParam("BSNO");
|
|
|
sql = " APPLYNO=(select APPLYNO from v_op_bs where BSNO='" + BSNO + "') ";
|
|
|
this.dosearch(sql);
|
|
|
}
|
|
|
|
|
|
me = this;
|
|
|
|
|
|
|
|
|
//客户加载_场站
|
|
|
this.store_PORTLOAD_STATOINm = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.store_PORTLOAD_STATOINm.load({ params: { condition: "ISYARD='1'" } });
|
|
|
|
|
|
//场站
|
|
|
this.comboxPORTLOAD_STATOINm = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '起运港场站',
|
|
|
store: this.store_PORTLOAD_STATOINm,
|
|
|
forceSelection: true,
|
|
|
name: 'PORTLOAD_STATOIN',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
this.storeAGENTm = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeAGENTm.load({ params: { condition: "ISAGENT='1'" } });
|
|
|
|
|
|
this.comboxAgentm = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '目的港代理',
|
|
|
store: this.storeAGENTm,
|
|
|
forceSelection: true,
|
|
|
name: 'AGENTNAME',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
|
|
|
});
|
|
|
|
|
|
this.storeDESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeDESTPORT_STATOINm.load({ params: { condition: "ISYARD='1'" } });
|
|
|
|
|
|
//场站
|
|
|
this.comboxDESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '目的港场站',
|
|
|
store: this.storeDESTPORT_STATOINm,
|
|
|
forceSelection: true,
|
|
|
name: 'DESTPORT_STATOIN',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
this.storeI_DESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeI_DESTPORT_STATOINm.load({ params: { condition: "ISYARD='1'" } });
|
|
|
|
|
|
//场站
|
|
|
this.comboxI_DESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '空返目的港场站',
|
|
|
store: this.storeI_DESTPORT_STATOINm,
|
|
|
forceSelection: true,
|
|
|
name: 'I_DESTPORT_STATOIN',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
|
|
|
this.storeD_DESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeD_DESTPORT_STATOINm.load({ params: { condition: "ISYARD='1'" } });
|
|
|
|
|
|
//场站
|
|
|
this.comboxD_DESTPORT_STATOINm = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '调拨目的港场站',
|
|
|
store: this.storeD_DESTPORT_STATOINm,
|
|
|
forceSelection: true,
|
|
|
name: 'D_DESTPORT_STATOIN',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
this.storeICARRIER = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeICARRIER.load({ params: { condition: "ISCARRIER='1'" } });
|
|
|
|
|
|
//船公司
|
|
|
this.comboxICARRIER = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '空返船公司',
|
|
|
store: this.storeICARRIER,
|
|
|
forceSelection: true,
|
|
|
name: 'I_CARRIER',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
this.storeTOPVALVE = Ext.create('DsExt.ux.RefEnumStore', {});
|
|
|
this.storeTOPVALVE.load({ params: { enumTypeId: 97034 } });
|
|
|
|
|
|
this.comboxTOPVALVE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
store: this.storeTOPVALVE,
|
|
|
fieldLabel: '顶阀',
|
|
|
name: 'TOPVALVE',
|
|
|
valueField: 'EnumValueName',
|
|
|
displayField: 'EnumValueName'
|
|
|
});
|
|
|
|
|
|
this.storeHANDRAIL = Ext.create('DsExt.ux.RefEnumStore', {});
|
|
|
this.storeHANDRAIL.load({ params: { enumTypeId: 97057 } });
|
|
|
|
|
|
this.comboxHANDRAIL = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
store: this.storeHANDRAIL,
|
|
|
fieldLabel: '扶手',
|
|
|
name: 'HANDRAIL',
|
|
|
valueField: 'EnumValueName',
|
|
|
displayField: 'EnumValueName'
|
|
|
});
|
|
|
|
|
|
this.storeSEXSITSIPHONPIPE = Ext.create('Ext.data.Store', {
|
|
|
fields: ['FSTATUS', 'NAME']
|
|
|
});
|
|
|
this.storeSEXSITSIPHONPIPE.add({ "FSTATUS": "", "NAME": "未设置" });
|
|
|
this.storeSEXSITSIPHONPIPE.add({ "FSTATUS": "false", "NAME": "否" });
|
|
|
this.storeSEXSITSIPHONPIPE.add({ "FSTATUS": "true", "NAME": "是" });
|
|
|
|
|
|
this.comboxSEXSITSIPHONPIPE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '虹吸管',
|
|
|
store: this.storeSEXSITSIPHONPIPE,
|
|
|
valueField: 'FSTATUS',
|
|
|
displayField: 'NAME',
|
|
|
forceSelection: true,
|
|
|
name: 'SEXSITSIPHONPIPE',
|
|
|
value: '',
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
|
|
|
this.storeSEXSITPRESSUREGAUGE = Ext.create('Ext.data.Store', {
|
|
|
fields: ['FSTATUS', 'NAME']
|
|
|
});
|
|
|
this.storeSEXSITPRESSUREGAUGE.add({ "FSTATUS": "", "NAME": "未设置" });
|
|
|
this.storeSEXSITPRESSUREGAUGE.add({ "FSTATUS": "false", "NAME": "否" });
|
|
|
this.storeSEXSITPRESSUREGAUGE.add({ "FSTATUS": "true", "NAME": "是" });
|
|
|
|
|
|
this.comboxSEXSITPRESSUREGAUGE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '压力表',
|
|
|
store: this.storeSEXSITPRESSUREGAUGE,
|
|
|
valueField: 'FSTATUS',
|
|
|
displayField: 'NAME',
|
|
|
forceSelection: true,
|
|
|
name: 'SEXSITPRESSUREGAUGE',
|
|
|
value: '',
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
|
|
|
this.storeSEXSITTOPOVERFLOWBOX = Ext.create('Ext.data.Store', {
|
|
|
fields: ['FSTATUS', 'NAME']
|
|
|
});
|
|
|
this.storeSEXSITTOPOVERFLOWBOX.add({ "FSTATUS": "", "NAME": "未设置" });
|
|
|
this.storeSEXSITTOPOVERFLOWBOX.add({ "FSTATUS": "false", "NAME": "否" });
|
|
|
this.storeSEXSITTOPOVERFLOWBOX.add({ "FSTATUS": "true", "NAME": "是" });
|
|
|
|
|
|
this.comboxSEXSITTOPOVERFLOWBOX = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '顶部溢流盒盖',
|
|
|
labelWidth: 80,
|
|
|
store: this.storeSEXSITTOPOVERFLOWBOX,
|
|
|
valueField: 'FSTATUS',
|
|
|
displayField: 'NAME',
|
|
|
forceSelection: true,
|
|
|
name: 'SEXSITTOPOVERFLOWBOX',
|
|
|
value: '',
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
|
|
|
this.storeSIS3TO2VALVE = Ext.create('Ext.data.Store', {
|
|
|
fields: ['FSTATUS', 'NAME']
|
|
|
});
|
|
|
this.storeSIS3TO2VALVE.add({ "FSTATUS": "", "NAME": "未设置" });
|
|
|
this.storeSIS3TO2VALVE.add({ "FSTATUS": "false", "NAME": "否" });
|
|
|
this.storeSIS3TO2VALVE.add({ "FSTATUS": "true", "NAME": "是" });
|
|
|
|
|
|
this.comboxSIS3TO2VALVE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '3转2球阀',
|
|
|
labelWidth: 80,
|
|
|
store: this.storeSIS3TO2VALVE,
|
|
|
valueField: 'FSTATUS',
|
|
|
displayField: 'NAME',
|
|
|
forceSelection: true,
|
|
|
name: 'SIS3TO2VALVE',
|
|
|
value: '',
|
|
|
enableKeyEvents: true
|
|
|
});
|
|
|
|
|
|
this.storeCodeDisportMPORTLOAD = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
autoLoad: true,
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
});
|
|
|
this.storeCodeDisportMDESTPORT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
autoLoad: true,
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
});
|
|
|
|
|
|
this.comboxMPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '起运港',
|
|
|
store: this.storeCodeDisportMPORTLOAD,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'PORTLOAD',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.comboxMDESTPORT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '目的港',
|
|
|
store: this.storeCodeDisportMDESTPORT,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'DESTPORT',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.comboxI_MPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '空返起运港',
|
|
|
store: this.storeCodeDisportMPORTLOAD,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'I_PORTLOAD',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.comboxI_MDESTPORT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '空返目的港',
|
|
|
store: this.storeCodeDisportMDESTPORT,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'I_DESTPORT',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.storeCodeDisportD_PORTLOAD = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
autoLoad: true,
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
});
|
|
|
this.storeCodeDisportD_DESTPORT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
autoLoad: true,
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
});
|
|
|
|
|
|
|
|
|
this.comboxD_PORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '调拨起运港',
|
|
|
store: this.storeCodeDisportD_PORTLOAD,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'D_PORTLOAD',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.comboxD_DESTPORT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '调拨目的港',
|
|
|
store: this.storeCodeDisportD_DESTPORT,
|
|
|
queryMode: 'remote',
|
|
|
minChars: 2,
|
|
|
queryParam: 'PORT',
|
|
|
name: 'D_DESTPORT',
|
|
|
valueField: 'PORT',
|
|
|
displayField: 'PORT'
|
|
|
});
|
|
|
|
|
|
this.StoreTRANSTYPE = Ext.create('Ext.data.Store', {
|
|
|
fields: ['OpLb']
|
|
|
});
|
|
|
this.StoreTRANSTYPE.add({ "OpLb": "配货" });
|
|
|
this.StoreTRANSTYPE.add({ "OpLb": "空返" });
|
|
|
|
|
|
this.comboxTRANSTYPE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '运输类型',
|
|
|
store: this.StoreTRANSTYPE,
|
|
|
//flex: 0.5,
|
|
|
labelWidth: 60,
|
|
|
forceSelection: true,
|
|
|
name: 'TRANSTYPE',
|
|
|
valueField: 'OpLb',
|
|
|
displayField: 'OpLb'
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.formModify = Ext.widget('form', {
|
|
|
region: 'north',
|
|
|
frame: true,
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'fieldset',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETD'
|
|
|
}, {
|
|
|
fieldLabel: '到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'ETA'
|
|
|
}, this.comboxPORTLOAD_STATOINm, {
|
|
|
fieldLabel: '起运港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PORTLOAD_CNT_TIME'
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '预计提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PRE_CNT_TIME'
|
|
|
}, this.comboxAgentm, this.comboxDESTPORT_STATOINm,{
|
|
|
fieldLabel: '目的港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'DEST_CNT_TIME'
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '目的港还箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '空返起运港提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 115,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_PORTLOAD_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '空返开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_ETD'
|
|
|
}, {
|
|
|
fieldLabel: '空返到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_ETA'
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [this.comboxI_DESTPORT_STATOINm,{
|
|
|
fieldLabel: '空返目的港提箱日',
|
|
|
labelWidth: 110,
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_DEST_CNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '空返目的港还箱日',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 110,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'I_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '调拨起运港提箱日',
|
|
|
format: 'Y-m-d',
|
|
|
labelWidth: 110,
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_PORTLOAD_CNT_TIME'
|
|
|
}]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨开船日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_ETD'
|
|
|
}, {
|
|
|
fieldLabel: '调拨到港日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_ETA'
|
|
|
}, this.comboxD_DESTPORT_STATOINm ,{
|
|
|
fieldLabel: '调拨目的港提箱日',
|
|
|
labelWidth: 110,
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_DEST_CNT_TIME'
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '调拨目的港还箱日',
|
|
|
labelWidth: 110,
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'D_DEST_RTCNT_TIME'
|
|
|
}, {
|
|
|
fieldLabel: '预抵日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PREETA'
|
|
|
}, this.comboxICARRIER, this.comboxTOPVALVE
|
|
|
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [this.comboxHANDRAIL, this.comboxSEXSITSIPHONPIPE, this.comboxSEXSITPRESSUREGAUGE, this.comboxSEXSITTOPOVERFLOWBOX
|
|
|
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [this.comboxSIS3TO2VALVE, this.comboxMPORTLOAD, this.comboxMDESTPORT, this.comboxI_MPORTLOAD
|
|
|
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [this.comboxI_MDESTPORT, this.comboxD_PORTLOAD, this.comboxD_DESTPORT, this.comboxTRANSTYPE
|
|
|
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '空返提单号',
|
|
|
name: 'I_MBLNO'
|
|
|
}, {
|
|
|
fieldLabel: '委托编号',
|
|
|
name: 'CUSTNO'
|
|
|
}, { xtype: 'hiddenfield' }, { xtype: 'hiddenfield' }
|
|
|
|
|
|
]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
}); //end this.formEdit
|
|
|
|
|
|
|
|
|
this.winModifyShow = Ext.create('Ext.window.Window', {
|
|
|
title: "业务批量修改", //"批量修改",
|
|
|
width: 900,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formModify],
|
|
|
buttons: [{
|
|
|
text: "确认修改", //"确认修改",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
|
|
|
me.onModifyClick()
|
|
|
|
|
|
|
|
|
}
|
|
|
}, {
|
|
|
text:"清空", //"确认修改",
|
|
|
minWidth: 70,
|
|
|
iconCls: "btnreset",
|
|
|
handler: function () {
|
|
|
var form = me.formModify.getForm();
|
|
|
form.reset();
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭", //"关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winModifyShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '',
|
|
|
url: '/MvcShipping/MsBaseInfo/GetUserModuleEnable',
|
|
|
params: {
|
|
|
modulename: "modBsCardPlCustEdit"
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success != true) {
|
|
|
this.formModify.getForm().findField('CUSTNO').setVisible(false);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
//客户加载_车队
|
|
|
this.storeTRUCKER = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeTRUCKER.load({ params: { condition: "ISTRUCK='1'" } });
|
|
|
//车队
|
|
|
this.comboxTRUCKER = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '车队',
|
|
|
store: this.storeTRUCKER,
|
|
|
name: 'TRUCKNAME',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName',
|
|
|
listeners: {
|
|
|
scope: this,
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
if (records.length > 0) {
|
|
|
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
|
|
|
this.storeTRUCKLINKNAME.load({
|
|
|
params: { condition: s },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (this.storeInfoClientContact.getCount() > 0) {
|
|
|
var member = this.storeTRUCKLINKNAME.getAt(0);
|
|
|
this.comboxTRUCKLINKNAME.setValue(member.data.SHOWNAME);
|
|
|
this.formFXTZModify.getForm().findField('TRUCKLINKTEL').setValue(member.data.TEL);
|
|
|
} else {
|
|
|
this.comboxTRUCKLINKNAME.setValue('');
|
|
|
this.formFXTZModify.getForm().findField('TRUCKLINKTEL').setValue('');
|
|
|
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//委托单位_联系人
|
|
|
this.storeTRUCKLINKNAME = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.InfoClientContactModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetInfoClientContactList' }
|
|
|
});
|
|
|
|
|
|
this.comboxTRUCKLINKNAME = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '车队联系人',
|
|
|
store: this.storeTRUCKLINKNAME,
|
|
|
name: 'TRUCKLINKNAME',
|
|
|
valueField: 'SHOWNAME',
|
|
|
displayField: 'SHOWNAME',
|
|
|
listeners: {
|
|
|
scope: this,
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
if (records.length > 0) {
|
|
|
this.formFXTZModify.getForm().findField('HEAD_ATTNTEL').setValue(records[0].data.TEL);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.formFXTZModify = Ext.widget('form', {
|
|
|
region: 'north',
|
|
|
frame: true,
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'fieldset',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '预计提箱日期',
|
|
|
format: 'Y-m-d',
|
|
|
flex: 1,
|
|
|
xtype: 'datefield',
|
|
|
name: 'PRE_CNT_TIME'
|
|
|
}, this.comboxTRUCKER, this.comboxTRUCKLINKNAME
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '联系电话',
|
|
|
name: 'TRUCKLINKTEL'
|
|
|
}, {
|
|
|
fieldLabel: '装货地址',
|
|
|
flex: 2, name: 'LOADADDR'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
}); //end this.formEdit
|
|
|
|
|
|
|
|
|
|
|
|
this.winFXTZModifyShow = Ext.create('Ext.window.Window', {
|
|
|
title: "业务批量录入", //"批量修改",
|
|
|
width: 900,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formFXTZModify],
|
|
|
buttons: [{
|
|
|
text: "确认录入", //"确认修改",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
|
|
|
me.onModifyFXTZClick()
|
|
|
|
|
|
|
|
|
}
|
|
|
}, {
|
|
|
text: "清空", //"确认修改",
|
|
|
minWidth: 70,
|
|
|
iconCls: "btnreset",
|
|
|
handler: function () {
|
|
|
var form = me.formFXTZModify.getForm();
|
|
|
form.reset();
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭", //"关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winFXTZModifyShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//#region 引入业务信息
|
|
|
this.storeBsList = Ext.create('Ext.data.Store', {
|
|
|
model: 'MsOpCtnBsCard',
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/GetBsList',
|
|
|
reader: {
|
|
|
id: 'GID',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
this.initgirdcolumsBs = [
|
|
|
{
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
header: '委托单位',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'APPLYNO',
|
|
|
header: '放箱申请单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTNO',
|
|
|
header: '委托编号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETD',
|
|
|
header: '开船日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETA',
|
|
|
header: '到港日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD',
|
|
|
header: '起运港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DESTPORT',
|
|
|
header: '卸货港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'AGENTNAME',
|
|
|
header: '目的港代理',
|
|
|
width: 100
|
|
|
}];
|
|
|
|
|
|
this.girdcolumsBs = this.initgirdcolumsBs;
|
|
|
|
|
|
this.gridListBs = new Ext.grid.GridPanel({
|
|
|
store: this.storeBsList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
selType: 'cellmodel',
|
|
|
|
|
|
tbar: [{
|
|
|
text: '确定引入',
|
|
|
tooltip: '确定引入',
|
|
|
iconCls: "btnadddetail",
|
|
|
handler: function (button, event) {
|
|
|
this.addBsDetail("1");
|
|
|
},
|
|
|
scope: this
|
|
|
}, '', {
|
|
|
text: '引入空返信息',
|
|
|
tooltip: '引入空返信息',
|
|
|
iconCls: "btnadddetail",
|
|
|
handler: function (button, event) {
|
|
|
this.addBsDetail("2");
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-', {
|
|
|
text: "保存列表样式",
|
|
|
id: "btntestbslist",
|
|
|
menu: [
|
|
|
{
|
|
|
text: "保存",
|
|
|
handler: function (button, event) {
|
|
|
this.girdcolumsBs = DsTruck.SaveGridPanel(USERID, _this.formname + 'Bs', _this.gridListBs.columns, _this.girdcolumsBs, 1, true);
|
|
|
}
|
|
|
}, {
|
|
|
text: "初始化",
|
|
|
handler: function (menu, event) {
|
|
|
_this.InitGrid(_this.initgirdcolumsBs);
|
|
|
_this.girdcolumsBs = DsTruck.SaveGridPanel(USERID, _this.formname + 'Bs', _this.gridListBs.columns, _this.initgirdcolumsBs, 1, true);
|
|
|
}
|
|
|
}],
|
|
|
scope: this
|
|
|
}],
|
|
|
columns: this.girdcolumsBs
|
|
|
});
|
|
|
|
|
|
this.girdcolumsBs = DsTruck.GetGridPanel(USERID, this.formname + 'Bs', this.girdcolumsBs, 1); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
this.girdcolumsBs.unshift(new Ext.grid.RowNumberer());
|
|
|
|
|
|
this.gridListBs.reconfigure(this.storeBsList, this.girdcolumsBs);
|
|
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
this.storeListCQ = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
fields: [
|
|
|
{ name: 'PORTLOADCNTCQ', type: 'number' },
|
|
|
{ name: 'ETDCQ', type: 'number' },
|
|
|
{ name: 'ETACQ', type: 'number' },
|
|
|
{ name: 'DESTRTCNTCQ', type: 'number' }
|
|
|
],
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/CQDataList',
|
|
|
reader: {
|
|
|
id: '',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
this.storeListCQ.load({
|
|
|
params: { condition: "" },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
isloadfee = true;
|
|
|
if (_this.storeListCQ.getCount() > 0) {
|
|
|
for (var j = 0; j < _this.storeListCQ.getCount(); j += 1) {
|
|
|
var member = _this.storeListCQ.getAt(j);
|
|
|
_this.CheckPORTLOAD_CNT_TIME.setFieldLabel("起运港提箱超期(" + member.data.PORTLOADCNTCQ + ")");
|
|
|
_this.CheckETD.setFieldLabel("开船日期超期(" + member.data.ETDCQ + ")");
|
|
|
_this.CheckETA.setFieldLabel("到港日期超期(" + member.data.ETACQ + ")");
|
|
|
_this.CheckDEST_RTCNT_TIME.setFieldLabel("目的港还箱日期超期(" + member.data.DESTRTCNTCQ + ")");
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
this.formGZFCLOSEDATEShow = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 85,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '计提日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'CLOSEDATE'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
|
|
|
});
|
|
|
this.winGZFCLOSEDATEShow = Ext.create('Ext.window.Window', {
|
|
|
title: "罐租费计提日期",
|
|
|
width: 320,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formGZFCLOSEDATEShow],
|
|
|
buttons: [{
|
|
|
text: "确认",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
|
|
|
var form = _this.formGZFCLOSEDATEShow.getForm();
|
|
|
var CLOSEDATE = form.findField('CLOSEDATE').getRawValue();
|
|
|
if (CLOSEDATE == '') {
|
|
|
Ext.Msg.show({ title: '提示', msg: '计提日期不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
_this.CreateGzFee(CLOSEDATE);
|
|
|
|
|
|
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
_this.winGZFCLOSEDATEShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
this.storeModuleEnable.load({
|
|
|
params: { condition: "sys_module.[NAME] like 'btnUnLock%'" },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (this.storeModuleEnable.getCount() > 0) {
|
|
|
for (var j = 0; j < this.storeModuleEnable.getCount(); j += 1) {
|
|
|
var member = this.storeModuleEnable.getAt(j);
|
|
|
var btnEdit = Ext.getCmp(member.data.NAME);
|
|
|
btnEdit.setVisible(true);
|
|
|
};
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
}, //end initUIComponents
|
|
|
InitGrid: function (grid) {
|
|
|
var agirdcolums = grid;
|
|
|
this.gridList.reconfigure(this.storeList, agirdcolums);
|
|
|
|
|
|
},
|
|
|
onRefreshClick: function (button, event) {
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
|
|
this.dosearch(sql);
|
|
|
|
|
|
},
|
|
|
dosearch: function (sql) {
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
this.sqlcontext = sql;
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (r.length > 0) {
|
|
|
this.gridList.getSelectionModel().select(0);
|
|
|
} else {
|
|
|
this.formMDEdit.getForm().reset();
|
|
|
this.formMDEdit.getForm().loadRecord();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
},
|
|
|
|
|
|
onDsQuery: function () {
|
|
|
var sql = this.sqlcontext;
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (r.length > 0) {
|
|
|
this.gridList.getSelectionModel().select(0);
|
|
|
} else {
|
|
|
this.formMDEdit.getForm().reset();
|
|
|
this.formMDEdit.getForm().loadRecord();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onDeleteClick: function (button, event) {
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择单据!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var record = selections[0];
|
|
|
Ext.MessageBox.confirm('提示', '确定删除该记录吗?', function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
|
|
|
Ext.Msg.wait('正在删除数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在删除数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/Delete',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
this.onDsQuery();
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) {
|
|
|
},
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
}
|
|
|
}, this);
|
|
|
}, //onDeleteClick
|
|
|
onOpenClick: function (button, event) {
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择单据!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
record = selections[0];
|
|
|
|
|
|
this.SelectedRecord = record;
|
|
|
this.OprationStatus = 'edit';
|
|
|
if (BSCARDTYPE == '1')
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/Edit', record.data.GID);
|
|
|
else
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/CtnStatusEdit', record.data.GID);
|
|
|
}, //onOpenClick
|
|
|
UpBsDate: function (datefield) {
|
|
|
|
|
|
var gid = this.formMDEdit.getForm().findField('GID').getValue();
|
|
|
var datefieldValue = this.formMDEdit.getForm().findField(datefield).getRawValue();
|
|
|
//var msg = this.checkBsDate(datefield);
|
|
|
//if (!isNullorEmpty(msg)) {
|
|
|
// Ext.Msg.show({ title: '错误', msg: msg, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
// return;
|
|
|
//}
|
|
|
|
|
|
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
var GidStr = '';
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = "'" + rec.data.GID + "'";
|
|
|
if (GidStr == '')
|
|
|
GidStr = Gid;
|
|
|
else {
|
|
|
|
|
|
GidStr = GidStr + ',' + Gid;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.MessageBox.confirm('提示', '确定要更新' + records.length+'票吗?', function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
|
|
|
|
|
|
Ext.Msg.wait('正在更新数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在更新数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/UpdateFieldDate',
|
|
|
params: {
|
|
|
GID: GidStr,
|
|
|
fieldname: datefield,
|
|
|
update: datefieldValue
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var sql = "";
|
|
|
sql = " BSNO='" + gid + "'";
|
|
|
_this.storeListLock.load({ params: { condition: sql },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (_this.storeListLock.getCount() > 0) {
|
|
|
for (var j = 0; j < _this.storeListLock.getCount(); j += 1) {
|
|
|
var member = _this.storeListLock.getAt(j);
|
|
|
var headfield = _this.formMDEdit.getForm().findField('IS_' + member.data.FIELDNAME);
|
|
|
headfield.setValue(true);
|
|
|
var btn = Ext.getCmp('btnUp' + member.data.FIELDNAME);
|
|
|
btn.disable();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
for (i = 0; i < this.storeList.getCount(); i += 1) {
|
|
|
var memberyf = this.storeList.getAt(i);
|
|
|
if (memberyf.data.GID == gid) {
|
|
|
memberyf.set(datefield, datefieldValue);
|
|
|
memberyf.commit();
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) {
|
|
|
},
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
}
|
|
|
}, this);
|
|
|
}, //
|
|
|
|
|
|
checkBsDate: function (datefield) {
|
|
|
|
|
|
_this = this;
|
|
|
function getformvalue(fieldname) {
|
|
|
var _r = _this.formMDEdit.getForm().findField(fieldname).getRawValue();
|
|
|
return _r;
|
|
|
}
|
|
|
|
|
|
this.StoreBsDate = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'BsDateModel',
|
|
|
proxy: { url: '' }
|
|
|
});
|
|
|
//this.StoreBsDate.add({ "FIELDNAME": "PORTLOAD_CNT_TIME", "NAME": "起运港进港日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "PORTLOAD_CNT_TIME", "NAME": "起运港提箱日期"});
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "ETD", "NAME": "开船日期"});
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "ETA", "NAME": "到港日期"});
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "DEST_CNT_TIME", "NAME": "目的港提箱日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "DEST_RTCNT_TIME", "NAME": "目的港还箱日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "I_PORTLOAD_CNT_TIME", "NAME": "空返起运港提箱日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "I_ETD", "NAME": "空返开船日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "I_ETA", "NAME": "空返到港日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "I_DEST_CNT_TIME", "NAME": "空返目的港提箱日期" });
|
|
|
this.StoreBsDate.add({ "FIELDNAME": "I_DEST_RTCNT_TIME", "NAME": "空返目的港还箱日期" });
|
|
|
|
|
|
var PREVRECORD = null;
|
|
|
var CURRrec = null;
|
|
|
var msg = "";
|
|
|
|
|
|
this.StoreBsDate.each(function (record) {
|
|
|
CURRrec = record;
|
|
|
if (PREVRECORD == null) {
|
|
|
PREVRECORD = record;
|
|
|
} else {
|
|
|
|
|
|
PREVtimeStr = getformvalue(PREVRECORD.data.FIELDNAME);
|
|
|
CURRtimeStr = getformvalue(CURRrec.data.FIELDNAME);
|
|
|
|
|
|
if (isNullorEmpty(CURRtimeStr)) { }
|
|
|
else {
|
|
|
if (isNullorEmpty(PREVtimeStr)) {
|
|
|
msg = '[' + CURRrec.data.NAME + ']有数据而[' + PREVRECORD.data.NAME + '] 还未填写!';
|
|
|
return msg;
|
|
|
}
|
|
|
PREVtime = new Date(PREVtimeStr);
|
|
|
CURRtime = new Date(CURRtimeStr);
|
|
|
if (PREVtime > CURRtime) {
|
|
|
msg = '[' + CURRrec.data.NAME + ']时间早于[' + PREVRECORD.data.NAME + '] 请检查数据!';
|
|
|
return msg;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return msg;
|
|
|
|
|
|
},
|
|
|
|
|
|
LockBsDate: function (datefield) {
|
|
|
|
|
|
var gid = this.formMDEdit.getForm().findField('GID').getValue();
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
var GidStr = '';
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = "'" + rec.data.GID + "'";
|
|
|
if (GidStr == '')
|
|
|
GidStr = Gid;
|
|
|
else {
|
|
|
|
|
|
GidStr = GidStr + ',' + Gid;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
Ext.MessageBox.confirm('提示', '确定要锁定选中的' + records.length +'票吗?', function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
Ext.Msg.wait('正在更新数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在更新数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/LockField',
|
|
|
params: {
|
|
|
GID: GidStr,
|
|
|
fieldname: datefield
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var sql = "";
|
|
|
sql = " BSNO='" + gid + "'";
|
|
|
_this.formMDEdit.getForm().findField('IS_PORTLOADDATE').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_PORTLOAD_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_ETD').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_ETA').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_DEST_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_DEST_RTCNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_PORTLOAD_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_ETD').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_ETA').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_DEST_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_DEST_RTCNT_TIME').setValue(false);
|
|
|
|
|
|
_this.storeListLock.load({ params: { condition: sql },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (_this.storeListLock.getCount() > 0) {
|
|
|
for (var j = 0; j < _this.storeListLock.getCount(); j += 1) {
|
|
|
var member = _this.storeListLock.getAt(j);
|
|
|
var headfield = _this.formMDEdit.getForm().findField('IS_' + member.data.FIELDNAME);
|
|
|
headfield.setValue(true);
|
|
|
var btn = Ext.getCmp('btnUp' + member.data.FIELDNAME);
|
|
|
btn.disable();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) {
|
|
|
},
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
}
|
|
|
}, this);
|
|
|
}, //
|
|
|
UnLockBsDate: function (datefield) {
|
|
|
|
|
|
var gid = this.formMDEdit.getForm().findField('GID').getValue();
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
var GidStr = '';
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = "'" + rec.data.GID + "'";
|
|
|
if (GidStr == '')
|
|
|
GidStr = Gid;
|
|
|
else {
|
|
|
|
|
|
GidStr = GidStr + ',' + Gid;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Ext.MessageBox.confirm('提示', '确定要取消锁定选中的' + records.length +'票业务卡吗?', function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
Ext.Msg.wait('正在更新数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在更新数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/UnLockField',
|
|
|
params: {
|
|
|
GID: GidStr,
|
|
|
fieldname: datefield
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var sql = "";
|
|
|
sql = " BSNO='" + gid + "'";
|
|
|
_this.formMDEdit.getForm().findField('IS_PORTLOADDATE').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_PORTLOAD_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_ETD').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_ETA').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_DEST_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_DEST_RTCNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_PORTLOAD_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_ETD').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_ETA').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_DEST_CNT_TIME').setValue(false);
|
|
|
_this.formMDEdit.getForm().findField('IS_I_DEST_RTCNT_TIME').setValue(false);
|
|
|
_this.storeListLock.load({ params: { condition: sql },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (_this.storeListLock.getCount() > 0) {
|
|
|
for (var j = 0; j < _this.storeListLock.getCount(); j += 1) {
|
|
|
var member = _this.storeListLock.getAt(j);
|
|
|
var headfield = _this.formMDEdit.getForm().findField('IS_' + member.data.FIELDNAME);
|
|
|
headfield.setValue(true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) {
|
|
|
},
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
}
|
|
|
}, this);
|
|
|
}, //
|
|
|
|
|
|
onSelPutCtnClick: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = rec.data.BSNO;
|
|
|
var status = rec.data.IS_PUTCTN
|
|
|
if (status != 'true' && rec.data.PUTCTNAUDITSTATUS == '审核通过') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在锁定...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/PutCtn',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
PutDate: _this.AccDate
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
_this.winFeeCloseShow.close();
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onAuditSelPutCtnClick: function (type) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要审核发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
this.storePLList.removeAll();
|
|
|
var itype = '3';
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = rec.data.BSNO;
|
|
|
var status = rec.data.PUTCTNAUDITSTATUS;
|
|
|
if (type == '1') {
|
|
|
itype = '2';
|
|
|
|
|
|
if (status == '未审核' || status == '已录入' || status == '箱管确认' || status == '') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
} else if (type == '0') {
|
|
|
itype = '0';
|
|
|
if (status == '审核通过') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
} else if (type == '3') {
|
|
|
itype = '1';
|
|
|
if (status == '已录入' || status == '箱管确认' || status == '') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要审核发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在审核...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/AuditPutCtn',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
type: type
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnTkFitings/CtnKcView?istype=' + itype);
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onCancelSelPutCtnClick: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要取消发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = rec.data.BSNO;
|
|
|
var status = rec.data.IS_PUTCTN
|
|
|
if (status == 'true') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要取消发送放箱通知的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在锁定...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/CancelPutCtn',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
onSelLockClick: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要锁定的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = rec.data.BSNO;
|
|
|
var status = rec.data.ISCLOSE
|
|
|
if (status != 'true') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要锁定的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在锁定...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/LockBs',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
// _this.onDsQuery();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onCancelSelLockClick: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要取消锁定的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
var Gid = rec.data.BSNO;
|
|
|
var status = rec.data.ISCLOSE
|
|
|
if (status == 'true') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要取消锁定的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在锁定...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/CancelLockBs',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onViewLogClick: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要查看的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var bsno = '';
|
|
|
bsno =records[0].data.GID;
|
|
|
|
|
|
var openSet = "height=700, width=1024, toolbar=no, menubar=no,scrollbars=1, resizable=1,location=no, status=no,Top= " + (screen.height - 750) / 2 + ",Left= " + (screen.width - 1100) / 2
|
|
|
var openType = "_blank";
|
|
|
var openUrl = "";
|
|
|
openUrl = "../../MvcContainer/MsOpCtnBsCard/LogView?handle=check&bsno=" + bsno;
|
|
|
window.open(openUrl, openType, openSet);
|
|
|
|
|
|
},
|
|
|
|
|
|
//#region 批量申请返空调拨
|
|
|
|
|
|
ShenReturn: function (type) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要申请的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var shentitle = '确认申请返空';
|
|
|
var shenmsg = '返空信息:';
|
|
|
if (type == '3') {
|
|
|
shentitle = '确认申请调拨';
|
|
|
shenmsg = '调拨信息:';
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要申请的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
|
|
|
Ext.MessageBox.show({
|
|
|
title: shentitle,
|
|
|
msg: shenmsg,
|
|
|
width: 300,
|
|
|
buttons: Ext.MessageBox.OKCANCEL,
|
|
|
multiline: true,
|
|
|
fn: function (btn, text) {
|
|
|
if (btn == "ok") {
|
|
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在保存数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/ShenReturnPL',
|
|
|
scope: this,
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
type: type,
|
|
|
reason: text
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
Ext.MessageBox.hide();
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.Msg.show({
|
|
|
title: '请重试',
|
|
|
msg: '服务器响应出错',
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
ShenReturnBack: function (type) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要撤销申请的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
var shentitle = '撤销申请返空';
|
|
|
var shenmsg = '返空信息:';
|
|
|
if (type == '2') {
|
|
|
shentitle = '撤销申请调拨';
|
|
|
shenmsg = '调拨信息:';
|
|
|
}
|
|
|
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要撤销申请的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
|
|
|
|
|
|
Ext.MessageBox.confirm('提示', "确实要" + shentitle+"选中的【" + icount.toString() + "】票业务吗?", function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在保存数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/ShenReturnPL',
|
|
|
scope: this,
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
type: type
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
Ext.MessageBox.hide();
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.Msg.show({
|
|
|
title: '请重试',
|
|
|
msg: '服务器响应出错',
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, this);
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
//#region 批量业务处理
|
|
|
onModifyClick: function (menu, event) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要修改的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
var data = this.formModify.getForm().getValues();
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要修改的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg:'正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/modify',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
modifydata: Ext.JSON.encode(data)
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onModifyFXTZClick: function (menu, event) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要录入的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
if (rec.data.PUTCTNAUDITSTATUS == '' || rec.data.PUTCTNAUDITSTATUS== '已录入')
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
var data = this.formFXTZModify.getForm().getValues();
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要录的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/FXTZmodify',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
modifydata: Ext.JSON.encode(data)
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
ImportBs: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要修改的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var BSNO = records[0].data.APPLYNO;
|
|
|
|
|
|
this.storeBsList.load({ params: { bsno: BSNO } });
|
|
|
|
|
|
|
|
|
var panelBs = new Ext.Panel({
|
|
|
title: '业务明细',
|
|
|
layout: "border",
|
|
|
region: 'center',
|
|
|
frame: true,
|
|
|
split: true,
|
|
|
collapsed: false,
|
|
|
collapsible: true,
|
|
|
trackResetOnLoad: true,
|
|
|
items: [this.gridListBs]
|
|
|
});
|
|
|
|
|
|
winCustomDataShow = Ext.create('Ext.window.Window', {
|
|
|
title: "",
|
|
|
// closeAction: 'hide',
|
|
|
width: 1100,
|
|
|
height: 500,
|
|
|
layout: 'fit',
|
|
|
resizable: true,
|
|
|
modal: true,
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
items: [panelBs],
|
|
|
buttons: [{
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
winCustomDataShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
winCustomDataShow.show();
|
|
|
|
|
|
},
|
|
|
|
|
|
onImportYardData: function (button, event) {
|
|
|
var BSNO = "";
|
|
|
|
|
|
me = this;
|
|
|
|
|
|
var imgform = new Ext.FormPanel({
|
|
|
region: 'center',
|
|
|
labelWidth: 20,
|
|
|
frame: true,
|
|
|
autoScroll: false,
|
|
|
border: false,
|
|
|
fileUpload: true,
|
|
|
items: [{
|
|
|
xtype: 'fileuploadfield',
|
|
|
id: 'LoadExcel',
|
|
|
name: 'LoadExcel',
|
|
|
emptyText: '请选择EXCEL文件', //'请选择EXCEL文件',
|
|
|
fieldLabel: 'EXCEL', //'EXCEL',
|
|
|
buttonText: '选择文件', //'选择文件',
|
|
|
allowBlank: false,
|
|
|
width: 200,
|
|
|
buttonCfg:
|
|
|
{
|
|
|
iconCls: 'uploaddialog'
|
|
|
},
|
|
|
anchor: '98%'
|
|
|
}],
|
|
|
buttons: [{
|
|
|
text: '上传', //'上传',
|
|
|
type: 'submit',
|
|
|
handler: function () {
|
|
|
var UserFilePath = Ext.getCmp('LoadExcel').getValue();
|
|
|
if (!CheckFileExt(UserFilePath, /.xls|.xlsx/i)) {
|
|
|
Ext.Msg.show({ title: '错误', msg: '请确认你上传的文件为EXCEL文件!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); //
|
|
|
return;
|
|
|
}
|
|
|
if (!imgform.form.isValid()) { return; }
|
|
|
imgform.form.submit({
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/ImportYardData',
|
|
|
waitMsg: '正在处理数据...',
|
|
|
method: 'POST',
|
|
|
params: {
|
|
|
bsno: BSNO
|
|
|
},
|
|
|
success: function (form, action) {
|
|
|
|
|
|
win.close(this);
|
|
|
var result = action.result;
|
|
|
var record = result.data;
|
|
|
_this.storeYardDataList.removeAll();
|
|
|
_this.storeYardDataList.loadData(record);
|
|
|
if (_this.storeYardDataList.getCount() > 0) {
|
|
|
_this.winYardDataShow.show();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要更新的数据!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); //
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
failure: function (form, action) {
|
|
|
form.reset();
|
|
|
if (action.failureType == Ext.form.Action.SERVER_INVALID)
|
|
|
Ext.MessageBox.alert(Zi.LAN.JingGao, action.result.errors.msg);
|
|
|
}
|
|
|
|
|
|
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
text: '关闭', //'关闭',
|
|
|
type: 'submit',
|
|
|
handler: function () {
|
|
|
win.close(this);
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
var win = new Ext.Window({
|
|
|
title: Zi.LAN.ShangChuanEXCEL, //"上传EXCEL",
|
|
|
width: 380,
|
|
|
height: 120,
|
|
|
modal: true,
|
|
|
resizable: false,
|
|
|
border: false,
|
|
|
items: imgform
|
|
|
|
|
|
});
|
|
|
win.show();
|
|
|
|
|
|
return;
|
|
|
},
|
|
|
onUpdateYardDataClick: function () {
|
|
|
var selections = this.gridListYardDataList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要更新的信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/UpdateYardData',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
winYardDataShow.close();
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
addBsDetail: function (bstype) {
|
|
|
|
|
|
|
|
|
var selections = this.gridListBs.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要提取的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var data = selections[0].data;
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
//var data = this.formModify.getForm().getValues();
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/ImportBs',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
modifydata: Ext.JSON.encode(data),
|
|
|
bstype: bstype
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.storeList.reload();
|
|
|
winCustomDataShow.close();
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
CreateOverFee: function (feetype) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/SaveFeeDRPL',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
feetype: feetype
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
CreateDcFee: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/SaveDCFeeCRPL',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
feetype: feetype
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
CreateGzFee: function (closedate) {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
if (rec.data.ISSHORTRENTCTN || (rec.data.ISSHORTRENTCTN=='1'))
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/SaveGZFeeDRPL',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas,
|
|
|
closedate: closedate
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
CreateNLYFee: function () {
|
|
|
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
icount = 0;
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
bodyAddDatas.push(rec);
|
|
|
icount = icount + 1;
|
|
|
}
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要生成的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在操作数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/SaveNLYFeeDRPL',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: '错误', msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
//#region 费用批量处理
|
|
|
|
|
|
onPiLiangFeeAddClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var thisbsno = '';
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要添加费用的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var FeeAddEdit = new Shipping.FeeAddEdit({
|
|
|
|
|
|
});
|
|
|
FeeAddEdit.StoreList = this.storePLList;
|
|
|
FeeAddEdit.StoreDateCurr.load({ params: { optype: "OpCtnBsCard", bsno: thisbsno } });
|
|
|
FeeAddEdit.stroplb = 'OpCtnBsCard';
|
|
|
// FeeAddEdit.StoreUnit.load({ params: { bsno: this.bsno, bstype: "op_railway" } });
|
|
|
FeeAddEdit.formname = this.formname;
|
|
|
FeeAddEdit.show();
|
|
|
return;
|
|
|
},
|
|
|
onPiLiangFeeEditClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var thisbsno = '';
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要添加费用的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/PiLiangFeeEdit');
|
|
|
//var PiliangCtnFee = new Shipping.PiliangCtnFee({
|
|
|
|
|
|
//});
|
|
|
//PiliangCtnFee.StoreList = this.storePLList;
|
|
|
//PiliangCtnFee.LoadData();
|
|
|
//PiliangCtnFee.show();
|
|
|
//return;
|
|
|
},
|
|
|
|
|
|
onPiLiangViewFitingCtnKcClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要查看的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnTkFitings/CtnKcView');
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onPiLiangRepairClearingEditClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var thisbsno = '';
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要修改的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
DsOpenEditWin('/MvcContainer/MsOpCtnBsCard/PiLiangRepairClearing');
|
|
|
//var PiliangCtnFee = new Shipping.PiliangCtnFee({
|
|
|
|
|
|
//});
|
|
|
//PiliangCtnFee.StoreList = this.storePLList;
|
|
|
//PiliangCtnFee.LoadData();
|
|
|
//PiliangCtnFee.show();
|
|
|
//return;
|
|
|
},
|
|
|
|
|
|
|
|
|
onPiLiangRepairAddClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var thisbsno = '';
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要添加维修改装的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var RepairAddEdit = new Shipping.RepairAddEdit({
|
|
|
|
|
|
});
|
|
|
RepairAddEdit.StoreList = this.storePLList;
|
|
|
RepairAddEdit.stroplb = 'OpCtnBsCard';
|
|
|
// FeeAddEdit.StoreUnit.load({ params: { bsno: this.bsno, bstype: "op_railway" } });
|
|
|
RepairAddEdit.formname = this.formname;
|
|
|
RepairAddEdit.show();
|
|
|
return;
|
|
|
},
|
|
|
|
|
|
onPiLiangClearingAddClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var thisbsno = '';
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (this.storePLList.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要添加维修改装的业务信息!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var ClearingAddEdit = new Shipping.ClearingAddEdit({
|
|
|
|
|
|
});
|
|
|
ClearingAddEdit.StoreList = this.storePLList;
|
|
|
ClearingAddEdit.stroplb = 'OpCtnBsCard';
|
|
|
// FeeAddEdit.StoreUnit.load({ params: { bsno: this.bsno, bstype: "op_railway" } });
|
|
|
ClearingAddEdit.formname = this.formname;
|
|
|
ClearingAddEdit.show();
|
|
|
return;
|
|
|
},
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
getCondition: function () {
|
|
|
var form = this.formSearch.getForm();
|
|
|
if (!form.isValid()) {
|
|
|
Ext.Msg.alert('提示', '查询条件赋值错误,请检查。');
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
var sql = '';
|
|
|
|
|
|
|
|
|
var BSNO = form.findField('BSNO').getValue();
|
|
|
sql = sql + getAndConSql(sql, BSNO, " ((ISNULL(BSNO,'')+' '+ISNULL(CUSTNO,'')+' '+ISNULL(I_CUSTNO,'')+' '+ISNULL(MBLNO,'')+' '+ISNULL(I_MBLNO,'') like '%" + BSNO + "%')) ");
|
|
|
// sql = sql + getAndConSql(sql, BSNO, " (BSNO like '%" + BSNO + "%' ) ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var CTNNO = form.findField('CTNNO').getValue();
|
|
|
var i = CTNNO.indexOf(",");
|
|
|
if (i > 0) {
|
|
|
var slist = CTNNO.split(",");
|
|
|
var feeGidSql = '';
|
|
|
for (var i = 0; i < slist.length; i += 1) {
|
|
|
var feeGId = "'" + slist[i] + "'";
|
|
|
if (feeGidSql == '') {
|
|
|
feeGidSql = feeGId;
|
|
|
} else {
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
}
|
|
|
}
|
|
|
// sql = " B.CTNNO in (" + feeGidSql + ") ";
|
|
|
sql = sql + " (B.CTNNO IN (" + feeGidSql + ") OR B.CTNGID IN (select GID from code_ctntk where CTNNO IN (" + feeGidSql + ") OR PCTNNO IN (" + feeGidSql + ") OR (GID IN (SELECT LINKGID FROM Code_CtnTkBefore WHERE CTNNO IN (" + feeGidSql + ")))) ) ";
|
|
|
} else
|
|
|
sql = sql + getAndConSql(sql, CTNNO, " (B.CTNNO like '%" + CTNNO + "%' or B.CTNGID IN (select GID from code_ctntk where CTNNO like '%" + CTNNO + "%' or PCTNNO like '%" + CTNNO + "%' OR GID IN (SELECT LINKGID FROM Code_CtnTkBefore WHERE CTNNO LIKE '%" + CTNNO + "%')) ) ");
|
|
|
|
|
|
|
|
|
if (this.CheckPORTLOAD_CNT_TIME.checked) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " (PORTLOAD_CNT_TIME IS NULL AND PRE_CNT_TIME is not null AND DATEDIFF([day],PRE_CNT_TIME,GETDATE())>7) ");
|
|
|
}
|
|
|
if (this.CheckETD.checked) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " (ETD IS NULL AND PORTLOAD_CNT_TIME IS NOT NULL AND DATEDIFF([day],PORTLOAD_CNT_TIME,GETDATE())>7) ");
|
|
|
}
|
|
|
if (this.CheckETA.checked) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " (ETA IS NULL AND PREETA IS NOT NULL AND ETD IS NOT NULL AND DATEDIFF([day],PREETA,GETDATE())>7) ");
|
|
|
}
|
|
|
if (this.CheckDEST_RTCNT_TIME.checked) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " (DEST_RTCNT_TIME IS NULL AND ETA IS NOT NULL AND DATEDIFF([day],ETA,GETDATE())>7) ");
|
|
|
}
|
|
|
if (this.CheckPORTLOAD_CNT_TIME.checked || this.CheckETD.checked || this.CheckETA.checked || this.CheckDEST_RTCNT_TIME.checked) {
|
|
|
if (this.MsOpCtnCQTXIsOnly == 1) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " (APPLYNO IN (SELECT APPLYNO FROM V_OP_BS WHERE OP='" + SHOWNAME + "')) ");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (this.CheckInsurance.checked) {
|
|
|
var ss = '1';
|
|
|
sql = sql + getAndConSql(sql, ss, " EXISTS (select 1 from ch_fee f WHERE f.BSNO=B.GID and F.FEENAME='保险费' and f.gid not in (select FEEID from op_ctninsurance) ) ");
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var CUSTOMERNAME = form.findField('CUSTOMERNAME').getValue();
|
|
|
sql = sql + getAndConSql(sql, CUSTOMERNAME, "CUSTOMERNAME='" + CUSTOMERNAME + "'");
|
|
|
|
|
|
var expDateBgn = form.findField('ETDbgn').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDateBgn, "ETD>='" + expDateBgn + "'");
|
|
|
|
|
|
var expDateEnd = form.findField('ETDend').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDateEnd, "ETD<='" + expDateEnd + " 23:59:59'");
|
|
|
|
|
|
var ONLYNEW = form.findField('ONLYNEW').getValue();
|
|
|
if (isTrue(ONLYNEW)) {
|
|
|
sql = sql + getAndConSql(sql, ONLYNEW, " GID in (select gid from v_top_opctnbscard) and CTNNO IN (SELECT CTNNO FROM CODE_CTNTK) ");
|
|
|
}
|
|
|
|
|
|
|
|
|
return sql;
|
|
|
},
|
|
|
OprationSwap: function () {
|
|
|
var ret = new Array();
|
|
|
ret[0] = this.OprationStatus;
|
|
|
ret[1] = this.storeList;
|
|
|
ret[2] = this.SelectedRecord;
|
|
|
ret[3] = this.storePLList;
|
|
|
return ret;
|
|
|
},
|
|
|
|
|
|
|
|
|
Print: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.GID;
|
|
|
}
|
|
|
|
|
|
|
|
|
var sortstr = '';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
Ext.Msg.wait('正在组织数据, 请稍侯..');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在组织数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/GetDataListStr',
|
|
|
scope: this,
|
|
|
params: {
|
|
|
condition: _this.sqlcontext,
|
|
|
printstr: 'true',
|
|
|
sort: sortstr
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
Ext.MessageBox.hide();
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var returnstr = jsonresult.data;
|
|
|
var printType = 'MSOPCTNBSCARD';
|
|
|
var sql1 = returnstr;
|
|
|
|
|
|
var sql2 = "Select GID 编号";
|
|
|
sql2 = sql2 + ",BSNO 业务编号 , CTNNO 箱号, CUR_PORT 当期位置, GOODSNAME 货物名称 ";
|
|
|
sql2 = sql2 + " , MBLNO 主提单号, CUSTNO 委托编号, CUSTOMERNAME 委托单位, PORTLOAD_STATOIN 起运港场站, GOODSNAME 货物名称";
|
|
|
sql2 = sql2 + " ,PORTLOAD_CNT_TIME 提箱日期 ,PRE_CNT_TIME 预计提箱日期, LOADFACTORY 装货工厂";
|
|
|
sql2 = sql2 + ", PORTLOAD 起运港, ETD 开船日期 ,DESTPORT 目的港 , ETA 到港日期 ,PREETA 预抵日期, AGENTNAME 目的港代理";
|
|
|
sql2 = sql2 + " , DEST_CNT_TIME 目的港提箱日期 ,DEST_RTCNT_TIME 目的港还箱日期 ,DESTPORT_STATOIN 目的港堆存场站 ";
|
|
|
sql2 = sql2 + " , DESTPORT_FREE_DAYS 免费箱使天数, DESTPORT_OVER_DAYS 超期天数,DESTPORT_OVER_DAYS_FEE 箱使费天, DESTPORT_OVER_DAYS_AMT 超期箱使费 ,DETAIN_CTN_DAYS 滞箱天数 ";
|
|
|
sql2 = sql2 + " ,I_MBLNO 进口主提单号, I_CUSTNO 进口委托编号,I_PORTLOAD 进口堆存场站 ";
|
|
|
sql2 = sql2 + " ,I_PORTLOAD_CNT_TIME 进口提箱日期 ";
|
|
|
sql2 = sql2 + " ,I_PORTLOAD 进口起运港 ,I_ETD 进口开船日期 ,i_DESTPORT 进口目的港, I_ETA 进口到港日期 ";
|
|
|
sql2 = sql2 + " , I_DEST_CNT_TIME 进口目的港提箱日期 ,I_DEST_RTCNT_TIME 进口目的港还箱日期 ,I_DESTPORT_STATOIN 进口目的港堆存场站 ";
|
|
|
sql2 = sql2 + " from op_ctnbscard where GID='" + bsno + "'";
|
|
|
var sql3 = "";
|
|
|
var sql4 = "";
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6, '');
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '请重试',
|
|
|
msg: '服务器响应出错',
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
PrintSelect: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
var selectedRecords = [];
|
|
|
var storeadd = null;
|
|
|
selectedRecords = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
if (selectedRecords.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要打印的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var sortstr = 'CTNNO';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
var feeGidSql = '';
|
|
|
for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
var record = selectedRecords[i];
|
|
|
var feeGId = "'" + record.get('GID') + "'";
|
|
|
if (feeGidSql == '') {
|
|
|
feeGidSql = feeGId;
|
|
|
} else {
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.GID;
|
|
|
}
|
|
|
|
|
|
var printType = 'MSOPCTNBSCARDSELECT';
|
|
|
var sql1 = "Select op_ctnbscard.GID 编号";
|
|
|
sql1 = sql1 + ",BSNO 业务编号 , CTNNO 箱号, CUR_PORT 当期位置, GOODSNAME 货物名称 ";
|
|
|
sql1 = sql1 + " , MBLNO 主提单号, CUSTNO 委托编号, CUSTOMERNAME 委托单位, PORTLOAD_STATOIN 起运港场站, GOODSNAME 货物名称";
|
|
|
sql1 = sql1 + " ,PORTLOAD_CNT_TIME 提箱日期,PRE_CNT_TIME 预计提箱日期 , LOADFACTORY 装货工厂";
|
|
|
sql1 = sql1 + ", PORTLOAD 起运港, ETD 开船日期 ,DESTPORT 目的港 , ETA 到港日期 ,PREETA 预抵日期, AGENTNAME 目的港代理";
|
|
|
sql1 = sql1 + " , DEST_CNT_TIME 目的港提箱日期 ,DEST_RTCNT_TIME 目的港还箱日期 ,DESTPORT_STATOIN 目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , DESTPORT_FREE_DAYS 免费箱使天数, DESTPORT_OVER_DAYS 超期天数,DESTPORT_OVER_DAYS_FEE 箱使费天, DESTPORT_OVER_DAYS_AMT 超期箱使费 ,DETAIN_CTN_DAYS 滞箱天数,TRUCKNAME 车队,TRUCKLINKNAME 车队联系人 ";
|
|
|
sql1 = sql1 + " ,I_MBLNO 进口主提单号, I_CUSTNO 进口委托编号,I_PORTLOAD 进口堆存场站 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD_CNT_TIME 进口提箱日期 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD 进口起运港 ,I_ETD 进口开船日期,i_DESTPORT 进口目的港,I_ETA 进口到港日期 ";
|
|
|
sql1 = sql1 + " , I_DEST_CNT_TIME 进口目的港提箱日期 ,I_DEST_RTCNT_TIME 进口目的港还箱日期 ,I_DESTPORT_STATOIN 进口目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , ClientSTATOIN.Tel 场站电话 ,ClientSTATOIN.CHIEF 场站联系人,ClientSTATOIN.ADDR 场站地址 ";
|
|
|
sql1 = sql1 + " from op_ctnbscard "
|
|
|
sql1 = sql1 + " Left join info_client ClientSTATOIN on ClientSTATOIN.SHORTNAME=op_ctnbscard.PORTLOAD_STATOIN ";
|
|
|
sql1 = sql1 + "WHERE op_ctnbscard.GID IN (" + feeGidSql + ") order by CTNNO ";
|
|
|
|
|
|
var sql2 = "select * from op_ctnbscard where GID='" + bsno + "'";
|
|
|
var sql3 = "SELECT [CTNNO] 罐号,[CTNPROP] 箱属,[NAMEPLATE] 铭牌信息 ,[OWNERCTN] 罐东 ,[MADEDATE] 制造年限";
|
|
|
sql3 = sql3 + ",(select ShowName from [user] where GID=code_ctntk.INPUTBY) as 录入人";
|
|
|
sql3 = sql3 + ",(select TOP 1 GOODSNAME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO";
|
|
|
sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 所装货";
|
|
|
// sql3 = sql3 + ",(select TOP 1 CUR_PORT FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
// sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 当前位置";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前位置 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前位置 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 下一日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 下一日期 DESC) as 下一日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 前装货 FROM v_tk_preGoodsName WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by PORTLOAD_CNT_TIME desc ) as 前装货 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 DEST_RTCNT_TIME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by DEST_RTCNT_TIME desc ) as 最后还箱日期 ";
|
|
|
sql3 = sql3 + " from code_ctntk";
|
|
|
sql3 = sql3 + " where (ISSTOPUSE=0 OR ISSTOPUSE IS NULL) AND CTNPROP in ('租赁箱','自有箱')";
|
|
|
sql3 = sql3 + " ORDER BY CTNNO ";
|
|
|
|
|
|
var sql4 = "Select op_ctnbscard.GID 编号";
|
|
|
sql4 = sql4 + ", op_ctnbscard.CTNNO 箱号,[dbo].F_GetRepairItems(op_ctnbscard.GID) 改装列表";
|
|
|
sql4 = sql4 + " from op_ctnbscard ";
|
|
|
sql4 = sql4 + "WHERE op_ctnbscard.GID IN (" + feeGidSql + ") order by op_ctnbscard.CTNNO ";
|
|
|
|
|
|
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
|
|
|
},
|
|
|
PrintSelectPutCtn: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
var selectedRecords = [];
|
|
|
var storeadd = null;
|
|
|
selectedRecords = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
if (selectedRecords.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要打印的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var sortstr = 'CTNNO';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
var feeGidSql = '';
|
|
|
for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
var record = selectedRecords[i];
|
|
|
if (record.get('PUTCTNAUDITSTATUS') == '审核通过' || record.get('PUTCTNAUDITSTATUS') == '已发送' || record.get('PUTCTNAUDITSTATUS') == '已发送邮件') {
|
|
|
var feeGId = "'" + record.get('GID') + "'";
|
|
|
if (feeGidSql == '') {
|
|
|
feeGidSql = feeGId;
|
|
|
} else {
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
if (feeGidSql == '') {
|
|
|
Ext.Msg.show({ title: '提示', msg: '必须审核后才可以打印,没有要打印的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.GID;
|
|
|
}
|
|
|
|
|
|
var printType = 'MSOPCTNBSCARDSELECTPUTCTN';
|
|
|
var sql1 = "Select op_ctnbscard.GID 编号";
|
|
|
sql1 = sql1 + ",BSNO 业务编号 , CTNNO 箱号, CUR_PORT 当期位置, GOODSNAME 货物名称 ";
|
|
|
sql1 = sql1 + " , MBLNO 主提单号, CUSTNO 委托编号, CUSTOMERNAME 委托单位, PORTLOAD_STATOIN 起运港场站, GOODSNAME 货物名称";
|
|
|
sql1 = sql1 + " ,PORTLOAD_CNT_TIME 提箱日期,PRE_CNT_TIME 预计提箱日期 , LOADFACTORY 装货工厂";
|
|
|
sql1 = sql1 + ", PORTLOAD 起运港, ETD 开船日期 ,DESTPORT 目的港 , ETA 到港日期 , AGENTNAME 目的港代理";
|
|
|
sql1 = sql1 + " , DEST_CNT_TIME 目的港提箱日期 ,DEST_RTCNT_TIME 目的港还箱日期 ,DESTPORT_STATOIN 目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , DESTPORT_FREE_DAYS 免费箱使天数, DESTPORT_OVER_DAYS 超期天数,DESTPORT_OVER_DAYS_FEE 箱使费天, DESTPORT_OVER_DAYS_AMT 超期箱使费 ,DETAIN_CTN_DAYS 滞箱天数,TRUCKNAME 车队,TRUCKLINKNAME 车队联系人 ";
|
|
|
sql1 = sql1 + " ,I_MBLNO 进口主提单号, I_CUSTNO 进口委托编号,I_PORTLOAD 进口堆存场站 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD_CNT_TIME 进口提箱日期 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD 进口起运港 ,I_ETD 进口开船日期,i_DESTPORT 进口目的港,I_ETA 进口到港日期 ";
|
|
|
sql1 = sql1 + " , I_DEST_CNT_TIME 进口目的港提箱日期 ,I_DEST_RTCNT_TIME 进口目的港还箱日期 ,I_DESTPORT_STATOIN 进口目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , ClientSTATOIN.Tel 场站电话 ,ClientSTATOIN.CHIEF 场站联系人,ClientSTATOIN.ADDR 场站地址 ";
|
|
|
sql1 = sql1 + " from op_ctnbscard "
|
|
|
sql1 = sql1 + " Left join info_client ClientSTATOIN on ClientSTATOIN.SHORTNAME=op_ctnbscard.PORTLOAD_STATOIN ";
|
|
|
sql1 = sql1 + " Left join op_ctnrepair on op_ctnrepair.LINKGID=op_ctnbscard.GID ";
|
|
|
|
|
|
sql1 = sql1 + "WHERE op_ctnbscard.GID IN (" + feeGidSql + ") order by CTNNO ";
|
|
|
|
|
|
var sql2 = "select * from op_ctnbscard where GID='" + bsno + "'";
|
|
|
var sql3 = "SELECT [CTNNO] 罐号,[CTNPROP] 箱属,[NAMEPLATE] 铭牌信息 ,[OWNERCTN] 罐东 ,[MADEDATE] 制造年限";
|
|
|
sql3 = sql3 + ",(select ShowName from [user] where GID=code_ctntk.INPUTBY) as 录入人";
|
|
|
sql3 = sql3 + ",(select TOP 1 GOODSNAME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO";
|
|
|
sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 所装货";
|
|
|
// sql3 = sql3 + ",(select TOP 1 CUR_PORT FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
// sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 当前位置";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前位置 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前位置 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 下一日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 下一日期 DESC) as 下一日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 前装货 FROM v_tk_preGoodsName WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by PORTLOAD_CNT_TIME desc ) as 前装货 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 DEST_RTCNT_TIME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by DEST_RTCNT_TIME desc ) as 最后还箱日期 ";
|
|
|
sql3 = sql3 + " from code_ctntk";
|
|
|
sql3 = sql3 + " where (ISSTOPUSE=0 OR ISSTOPUSE IS NULL) AND CTNPROP in ('租赁箱','自有箱')";
|
|
|
sql3 = sql3 + " ORDER BY CTNNO ";
|
|
|
|
|
|
var sql4 = "Select op_ctnbscard.GID 编号";
|
|
|
sql4 = sql4 + ", op_ctnbscard.CTNNO 箱号,[dbo].F_GetRepairItems(op_ctnbscard.GID) 改装列表";
|
|
|
sql4 = sql4 + " from op_ctnbscard ";
|
|
|
sql4 = sql4 + "WHERE op_ctnbscard.GID IN (" + feeGidSql + ") order by op_ctnbscard.CTNNO ";
|
|
|
|
|
|
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
Ext.Msg.wait('正在整理数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在生成...', //'正在生成...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/CreateSendMail',
|
|
|
params: {
|
|
|
bsno: feeGidSql,
|
|
|
bltype: '提箱单'
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (result.Success) {
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6,'', '', '', result.Data,'');
|
|
|
} else {
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
PrintViewSelectPutCtn: function (BSNO) {
|
|
|
|
|
|
_this = this;
|
|
|
|
|
|
|
|
|
|
|
|
var printType = 'MSOPCTNBSCARDSELECTPUTCTN';
|
|
|
var sql1 = "Select op_ctnbscard.GID 编号";
|
|
|
sql1 = sql1 + ",BSNO 业务编号 , CTNNO 箱号, CUR_PORT 当期位置, GOODSNAME 货物名称 ";
|
|
|
sql1 = sql1 + " , MBLNO 主提单号, CUSTNO 委托编号, CUSTOMERNAME 委托单位, PORTLOAD_STATOIN 起运港场站, GOODSNAME 货物名称";
|
|
|
sql1 = sql1 + " ,PORTLOAD_CNT_TIME 提箱日期,PRE_CNT_TIME 预计提箱日期 , LOADFACTORY 装货工厂";
|
|
|
sql1 = sql1 + ", PORTLOAD 起运港, ETD 开船日期 ,DESTPORT 目的港 , ETA 到港日期 , AGENTNAME 目的港代理";
|
|
|
sql1 = sql1 + " , DEST_CNT_TIME 目的港提箱日期 ,DEST_RTCNT_TIME 目的港还箱日期 ,DESTPORT_STATOIN 目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , DESTPORT_FREE_DAYS 免费箱使天数, DESTPORT_OVER_DAYS 超期天数,DESTPORT_OVER_DAYS_FEE 箱使费天, DESTPORT_OVER_DAYS_AMT 超期箱使费 ,DETAIN_CTN_DAYS 滞箱天数,TRUCKNAME 车队,TRUCKLINKNAME 车队联系人 ";
|
|
|
sql1 = sql1 + " ,I_MBLNO 进口主提单号, I_CUSTNO 进口委托编号,I_PORTLOAD 进口堆存场站 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD_CNT_TIME 进口提箱日期 ";
|
|
|
sql1 = sql1 + " ,I_PORTLOAD 进口起运港 ,I_ETD 进口开船日期,i_DESTPORT 进口目的港,I_ETA 进口到港日期 ";
|
|
|
sql1 = sql1 + " , I_DEST_CNT_TIME 进口目的港提箱日期 ,I_DEST_RTCNT_TIME 进口目的港还箱日期 ,I_DESTPORT_STATOIN 进口目的港堆存场站 ";
|
|
|
sql1 = sql1 + " , ClientSTATOIN.Tel 场站电话 ,ClientSTATOIN.CHIEF 场站联系人,ClientSTATOIN.ADDR 场站地址 ";
|
|
|
sql1 = sql1 + " from op_ctnbscard "
|
|
|
sql1 = sql1 + " Left join info_client ClientSTATOIN on ClientSTATOIN.SHORTNAME=op_ctnbscard.PORTLOAD_STATOIN ";
|
|
|
sql1 = sql1 + " Left join op_ctnrepair on op_ctnrepair.LINKGID=op_ctnbscard.GID ";
|
|
|
|
|
|
sql1 = sql1 + "WHERE op_ctnbscard.GID='" + BSNO + "' order by CTNNO ";
|
|
|
|
|
|
var sql2 = "select * from op_ctnbscard where GID='" + BSNO + "'";
|
|
|
var sql3 = "SELECT [CTNNO] 罐号,[CTNPROP] 箱属,[NAMEPLATE] 铭牌信息 ,[OWNERCTN] 罐东 ,[MADEDATE] 制造年限";
|
|
|
sql3 = sql3 + ",(select ShowName from [user] where GID=code_ctntk.INPUTBY) as 录入人";
|
|
|
sql3 = sql3 + ",(select TOP 1 GOODSNAME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO";
|
|
|
sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 所装货";
|
|
|
// sql3 = sql3 + ",(select TOP 1 CUR_PORT FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
// sql3 = sql3 + " ORDER BY PORTLOAD_CNT_TIME DESC) as 当前位置";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前位置 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前位置 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 当前日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 当前日期 DESC) as 当前日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 下一日期 FROM v_tk_cutdate WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " ORDER BY 下一日期 DESC) as 下一日期 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 前装货 FROM v_tk_preGoodsName WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by PORTLOAD_CNT_TIME desc ) as 前装货 ";
|
|
|
sql3 = sql3 + ",(select TOP 1 DEST_RTCNT_TIME FROM op_ctnbscard WHERE CTNNO=code_ctntk.CTNNO ";
|
|
|
sql3 = sql3 + " order by DEST_RTCNT_TIME desc ) as 最后还箱日期 ";
|
|
|
sql3 = sql3 + " from code_ctntk";
|
|
|
sql3 = sql3 + " where (ISSTOPUSE=0 OR ISSTOPUSE IS NULL) AND CTNPROP in ('租赁箱','自有箱')";
|
|
|
sql3 = sql3 + " ORDER BY CTNNO ";
|
|
|
|
|
|
var sql4 = "Select op_ctnbscard.GID 编号";
|
|
|
sql4 = sql4 + ", op_ctnbscard.CTNNO 箱号,[dbo].F_GetRepairItems(op_ctnbscard.GID) 改装列表";
|
|
|
sql4 = sql4 + " from op_ctnbscard ";
|
|
|
sql4 = sql4 + "WHERE op_ctnbscard.GID='" + BSNO + "' order by op_ctnbscard.CTNNO ";
|
|
|
|
|
|
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6, '', 'MSCHFEAUDITSEL', 1);
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onExportClick: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.GID;
|
|
|
}
|
|
|
|
|
|
|
|
|
var sortstr = '';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
Ext.Msg.wait('正在组织数据, 请稍侯..');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在组织数据...',
|
|
|
url: '/MvcContainer/MsOpCtnBsCard/GetDataListStr',
|
|
|
scope: this,
|
|
|
params: {
|
|
|
condition: _this.sqlcontext,
|
|
|
printstr: 'true',
|
|
|
sort: sortstr
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
Ext.MessageBox.hide();
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var returnstr = jsonresult.data;
|
|
|
var printType = 'MSOPCTNBSCARD';
|
|
|
var sql1 = returnstr;
|
|
|
sql1 = sql1.replace(/\+/g, "@@@")
|
|
|
sql1 = sql1.replace(/\>/g, "&&&")
|
|
|
sql1 = sql1.replace(/\</g, "%%%")
|
|
|
if (sql1 != '') {
|
|
|
GridExportBySql(sql1, this.formname, '业务卡列表.xls');
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.Msg.show({
|
|
|
title: '请重试',
|
|
|
msg: '服务器响应出错',
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
UploadFile: function (uploadFileType, title) {
|
|
|
|
|
|
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
selectedRecords = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
if (selectedRecords.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要上传文件的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var sortstr = 'CTNNO';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
var record = selectedRecords[0];
|
|
|
var feeGId = record.get('GID');
|
|
|
|
|
|
//var feeGidSql = '';
|
|
|
//for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
// var record = selectedRecords[i];
|
|
|
// var feeGId = "'" + record.get('GID') + "'";
|
|
|
// if (feeGidSql == '') {
|
|
|
// feeGidSql = feeGId;
|
|
|
// } else {
|
|
|
// feeGidSql = feeGidSql + "," + feeGId;
|
|
|
// }
|
|
|
//};
|
|
|
|
|
|
//if (feeGidSql == '') {
|
|
|
// Ext.Msg.show({ title: '提示', msg: '没有选择要上传文件的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
// return;
|
|
|
//}
|
|
|
|
|
|
|
|
|
var winUpload = Ext.create('Ext.window.Window', {
|
|
|
layout: 'fit',
|
|
|
title: '上传' + title,
|
|
|
width: 600,
|
|
|
height: 500,
|
|
|
modal: true,
|
|
|
plain: true,
|
|
|
autoScroll: true,
|
|
|
bodyStyle: "padding:5px 0 0 5px",
|
|
|
items: {
|
|
|
xtype: "panel",
|
|
|
layout: 'fit',
|
|
|
border: false,
|
|
|
frame: false,
|
|
|
autoScroll: true,
|
|
|
html: "<iframe scrolling='yes'width='100%' height='100%' frameborder='0' src='../../MvcContainer/MsOpCtnBsCard/UploadFile'></iframe>"
|
|
|
},
|
|
|
buttonAlign: "center",
|
|
|
buttons: [{
|
|
|
text: "关 闭",
|
|
|
handler: function () {
|
|
|
winUpload.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
PuploadFileType = uploadFileType;
|
|
|
SelectBsSql = feeGId;
|
|
|
winFXTZModifyShow = _this.winFXTZModifyShow;
|
|
|
extParentWinFrame = winUpload;
|
|
|
winUpload.show();
|
|
|
|
|
|
},
|
|
|
|
|
|
isotheropen: function () {
|
|
|
if (isNullorEmpty(this.opener())) return false;
|
|
|
return true;
|
|
|
}
|
|
|
, opener: function () {
|
|
|
return this.openertype;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|