|
|
|
@ -1498,17 +1498,11 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
|
|
|
|
|
items: [{
|
|
|
|
|
//labelWidth: 100,
|
|
|
|
|
fieldLabel: Zi.LAN.DJYMAILINFO,//'订舱时间',
|
|
|
|
|
flex: 1,
|
|
|
|
|
readOnly:true,
|
|
|
|
|
name: 'DJYMAILINFO'
|
|
|
|
|
}, {
|
|
|
|
|
items: [ {
|
|
|
|
|
//labelWidth: 100,
|
|
|
|
|
fieldLabel: Zi.LAN.DjyService,
|
|
|
|
|
format: 'Y-m-d',
|
|
|
|
|
flex: 2,
|
|
|
|
|
flex: 3,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
//xtype: 'datefield',
|
|
|
|
|
//labelWidth: 55,
|
|
|
|
@ -1516,17 +1510,69 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//labelWidth: 100,
|
|
|
|
|
fieldLabel: Zi.LAN.DjyDCYQ,//'订舱时间',
|
|
|
|
|
flex: 2,
|
|
|
|
|
fieldLabel: Zi.LAN.DjyDCYQ,//'订舱要求',
|
|
|
|
|
flex: 3,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'DCYQ'
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
//,
|
|
|
|
|
//{ xtype: "hiddenfield" },
|
|
|
|
|
//{ xtype: "hiddenfield" },
|
|
|
|
|
{ xtype: "hiddenfield" }
|
|
|
|
|
//{ xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
flex: 1,
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
//labelWidth: 100,
|
|
|
|
|
fieldLabel: Zi.LAN.DJYMAILINFO,//'订舱时间',
|
|
|
|
|
flex: 1,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'DJYMAILINFO'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
xtype: 'textfield',
|
|
|
|
|
//grow: true,
|
|
|
|
|
flex: 5,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
fieldLabel: Zi.LAN.DjyDCSPJG, //'订舱审批结果',
|
|
|
|
|
//height: 60,
|
|
|
|
|
name: 'DjyDCSPJG',
|
|
|
|
|
anchor: '100%'
|
|
|
|
|
}//, { xtype: "hiddenfield",flex: 2 }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
flex: 1,
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
xtype: 'textareafield',
|
|
|
|
|
grow: true,
|
|
|
|
|
flex: 2,
|
|
|
|
|
fieldLabel: Zi.LAN.REMARK, //'备注',
|
|
|
|
|
height: 60,
|
|
|
|
|
name: 'REMARK',
|
|
|
|
|
anchor: '100%'
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'textareafield',
|
|
|
|
|
grow: true,
|
|
|
|
|
fieldLabel: Zi.LAN.OTREMARK, //'备注',
|
|
|
|
|
height: 60,
|
|
|
|
|
name: 'OPERATORFAX',
|
|
|
|
|
anchor: '100%'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
|
|
|
|
|
|
}); //end this.formEdit
|
|
|
|
@ -4262,30 +4308,32 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
name: 'ISGAIQIAN'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
flex: 1,
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
xtype: 'textareafield',
|
|
|
|
|
grow: true,
|
|
|
|
|
flex: 2,
|
|
|
|
|
fieldLabel: Zi.LAN.REMARK, //'备注',
|
|
|
|
|
height: 60,
|
|
|
|
|
name: 'REMARK',
|
|
|
|
|
anchor: '100%'
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'textareafield',
|
|
|
|
|
grow: true,
|
|
|
|
|
fieldLabel: Zi.LAN.OTREMARK, //'备注',
|
|
|
|
|
height: 60,
|
|
|
|
|
name: 'OPERATORFAX',
|
|
|
|
|
anchor: '100%'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//, {
|
|
|
|
|
// xtype: 'container',
|
|
|
|
|
// layout: 'hbox',
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// defaultType: 'textfield',
|
|
|
|
|
// items: [
|
|
|
|
|
// {
|
|
|
|
|
// xtype: 'textareafield',
|
|
|
|
|
// grow: true,
|
|
|
|
|
// flex: 2,
|
|
|
|
|
// fieldLabel: Zi.LAN.REMARK, //'备注',
|
|
|
|
|
// height: 60,
|
|
|
|
|
// name: 'REMARK',
|
|
|
|
|
// anchor: '100%'
|
|
|
|
|
// }, {
|
|
|
|
|
// xtype: 'textareafield',
|
|
|
|
|
// grow: true,
|
|
|
|
|
// fieldLabel: Zi.LAN.OTREMARK, //'备注',
|
|
|
|
|
// height: 60,
|
|
|
|
|
// name: 'OPERATORFAX',
|
|
|
|
|
// anchor: '100%'
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
//}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@ -11987,77 +12035,19 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
text: Zi.LAN.QueDingFaSong, //"确定发送",
|
|
|
|
|
minWidth: 70,
|
|
|
|
|
handler: function () {
|
|
|
|
|
var BSNO = me.editRecord.get('BSNO');
|
|
|
|
|
|
|
|
|
|
var _form = Ext.getCmp("formDjyOrder");
|
|
|
|
|
var data = _form.getForm().getValues(false, false, false);
|
|
|
|
|
var str = Ext.JSON.encode(data);
|
|
|
|
|
|
|
|
|
|
var feeGidSql = '';
|
|
|
|
|
var selectedRecords = [];
|
|
|
|
|
selectedRecords = me.DocCM.selected.items;
|
|
|
|
|
if (selectedRecords.length > 0) {
|
|
|
|
|
for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
|
|
var rec = selectedRecords[i];
|
|
|
|
|
if (rec.data.GID == "*") //如果是新增但没有保存的数据,没有必要提交到后台
|
|
|
|
|
{
|
|
|
|
|
me.storeDocList.remove(selectedRecords[i]);
|
|
|
|
|
} else {
|
|
|
|
|
var feeGId = "" + rec.data.GID + "";
|
|
|
|
|
if (feeGidSql == '') {
|
|
|
|
|
feeGidSql = feeGId;
|
|
|
|
|
} else {
|
|
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
me.DoSendDjyOrder();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Ext.Msg.show({ title: '提示', msg: str, icon: Ext.MessageBox.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
url: '/CommMng/BasicDataRef/SendOpseaeEmailToDjy',
|
|
|
|
|
cors: true,
|
|
|
|
|
params: {
|
|
|
|
|
BSNO: BSNO,
|
|
|
|
|
str: str,
|
|
|
|
|
FileGidList: feeGidSql
|
|
|
|
|
},
|
|
|
|
|
//, {
|
|
|
|
|
//text: Zi.LAN.btndelete, //"删除",
|
|
|
|
|
//minWidth: 70,
|
|
|
|
|
//handler: function () {
|
|
|
|
|
|
|
|
|
|
//method: 'post',
|
|
|
|
|
success: function (response) {
|
|
|
|
|
var resultData = eval('(' + response.responseText + ')');//JSON字符串=>JSON对象
|
|
|
|
|
if (!resultData.Success) {
|
|
|
|
|
//失败
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '提示',
|
|
|
|
|
msg: resultData.Message,
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
//Ext.Msg.show({
|
|
|
|
|
// title: '提示',
|
|
|
|
|
// msg: resultData.Message,
|
|
|
|
|
// icon: Ext.MessageBox.OK,
|
|
|
|
|
// buttons: Ext.Msg.OK
|
|
|
|
|
//});
|
|
|
|
|
MsgTip("提示", resultData.Message);
|
|
|
|
|
|
|
|
|
|
me.GetLogic();
|
|
|
|
|
me.winDjyOrderShow.close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: Zi.LAN.btndelete, //"删除",
|
|
|
|
|
minWidth: 70,
|
|
|
|
|
handler: function () {
|
|
|
|
|
//}
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
, {
|
|
|
|
|
text: Zi.LAN.GuanBi, //"关闭",
|
|
|
|
|
minWidth: 70,
|
|
|
|
|
handler: function () {
|
|
|
|
@ -22000,6 +21990,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
var BSNO = this.Editdata.BSNO;
|
|
|
|
|
//此时加载一次该船公司的第三方账号
|
|
|
|
|
this.storeThirdAccount.load({
|
|
|
|
@ -22441,5 +22432,107 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, DoSendDjyOrder: function ()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var BSNO = me.editRecord.get('BSNO');
|
|
|
|
|
|
|
|
|
|
var _form = Ext.getCmp("formDjyOrder");
|
|
|
|
|
var data = _form.getForm().getValues(false, false, false);
|
|
|
|
|
var str = Ext.JSON.encode(data);
|
|
|
|
|
|
|
|
|
|
if (!data.THIRDACCOUNT)
|
|
|
|
|
{
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '提示',
|
|
|
|
|
msg: "必须选择船公司账号。如果没有,需要在第三方账号当中进行维护",
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var feeGidSql = '';
|
|
|
|
|
var selectedRecords = [];
|
|
|
|
|
selectedRecords = me.DocCM.selected.items;
|
|
|
|
|
if (selectedRecords.length > 0) {
|
|
|
|
|
for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
|
|
var rec = selectedRecords[i];
|
|
|
|
|
if (rec.data.GID == "*") //如果是新增但没有保存的数据,没有必要提交到后台
|
|
|
|
|
{
|
|
|
|
|
me.storeDocList.remove(selectedRecords[i]);
|
|
|
|
|
} else {
|
|
|
|
|
var feeGId = "" + rec.data.GID + "";
|
|
|
|
|
if (feeGidSql == '') {
|
|
|
|
|
feeGidSql = feeGId;
|
|
|
|
|
} else {
|
|
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Ext.Msg.wait(Zi.LAN.ZhengZaiCaoZuoShuJu);
|
|
|
|
|
//Ext.Msg.show({ title: '提示', msg: str, icon: Ext.MessageBox.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
//waitMsg: '正在发送请求',
|
|
|
|
|
url: '/CommMng/BasicDataRef/SendOpseaeEmailToDjy',
|
|
|
|
|
cors: true,
|
|
|
|
|
params: {
|
|
|
|
|
BSNO: BSNO,
|
|
|
|
|
str: str,
|
|
|
|
|
FileGidList: feeGidSql
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//method: 'post',
|
|
|
|
|
success: function (response) {
|
|
|
|
|
Ext.MessageBox.hide();
|
|
|
|
|
var resultData = eval('(' + response.responseText + ')');//JSON字符串=>JSON对象
|
|
|
|
|
if (!resultData.Success) {
|
|
|
|
|
|
|
|
|
|
//失败
|
|
|
|
|
this.Ext.Msg.show({
|
|
|
|
|
title: '提示',
|
|
|
|
|
msg: resultData.Message,
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
me.GetLogic();
|
|
|
|
|
//return;
|
|
|
|
|
me.winDjyOrderShow.close();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
//Ext.Msg.show({
|
|
|
|
|
// title: '提示',
|
|
|
|
|
// msg: resultData.Message,
|
|
|
|
|
// icon: Ext.MessageBox.OK,
|
|
|
|
|
// buttons: Ext.Msg.OK
|
|
|
|
|
//});
|
|
|
|
|
//MsgTip("提示", resultData.Message,1500);
|
|
|
|
|
me.GetLogic();
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: "提示",
|
|
|
|
|
msg: resultData.Message,
|
|
|
|
|
modal: false,
|
|
|
|
|
buttons: Ext.MessageBox.OK,
|
|
|
|
|
icon: Ext.MessageBox.INFO
|
|
|
|
|
});
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
Ext.MessageBox.hide();
|
|
|
|
|
Ext.Msg.hide();
|
|
|
|
|
me.winDjyOrderShow.close();
|
|
|
|
|
}, 1500);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|