|
|
|
@ -1186,8 +1186,8 @@ Ext.extend(Shipping.MsOpSeaeTaskView, Ext.Panel, {
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEILDVALUE',
|
|
|
|
|
header: '值',
|
|
|
|
|
width: 150
|
|
|
|
|
header: '新值',
|
|
|
|
|
width: 250
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
@ -1195,6 +1195,13 @@ Ext.extend(Shipping.MsOpSeaeTaskView, Ext.Panel, {
|
|
|
|
|
this.gridTaskFieldValueList = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeTaskFieldValueList,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
tbar: [{
|
|
|
|
|
text: '更新业务数据',
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
this.uptaskbs();
|
|
|
|
|
},
|
|
|
|
|
scope: this
|
|
|
|
|
}],
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
@ -1478,6 +1485,7 @@ Ext.extend(Shipping.MsOpSeaeTaskView, Ext.Panel, {
|
|
|
|
|
this.panelFee.show();
|
|
|
|
|
|
|
|
|
|
} else if (tasktype == 'MSC BC') {
|
|
|
|
|
this.storeTaskFieldValueList.load();
|
|
|
|
|
this.tabSeaepanel.remove(this.panelfee);
|
|
|
|
|
this.tabSeaepanel.remove(this.panelpdf);
|
|
|
|
|
}
|
|
|
|
@ -1637,6 +1645,46 @@ Ext.extend(Shipping.MsOpSeaeTaskView, Ext.Panel, {
|
|
|
|
|
},
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
uptaskbs: function () {
|
|
|
|
|
var BSNO = this.editRecord.get('BSNO').toString().trim();
|
|
|
|
|
var bodydatas = [];
|
|
|
|
|
for (var i = 0; i < this.storeTaskFieldValueList.getCount(); i += 1) {
|
|
|
|
|
var member = this.storeTaskFieldValueList.getAt(i);
|
|
|
|
|
bodydatas.push(member);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
|
|
|
|
|
Ext.Msg.wait('正在更新数据');
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
waitMsg: '正在更新数据', //'正在保存数据...',
|
|
|
|
|
url: '/MvcShipping/MsOpTask/updatetaskbs',
|
|
|
|
|
scope: this,
|
|
|
|
|
params: {
|
|
|
|
|
bsno: BSNO,
|
|
|
|
|
body: jsonBody
|
|
|
|
|
},
|
|
|
|
|
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: 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 });
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '提示',
|
|
|
|
|
msg: '服务器响应出错',
|
|
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onUpTransStatusClick: function (transstatus) {
|
|
|
|
|
|
|
|
|
|