@ -2715,14 +2715,17 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
}
} ] ,
scope : this
} , '-' , {
} , '-'
, {
text : Zi . LAN . OtherCaoZuo , //"其他操作",
menu : [ {
text : Zi . LAN . BillEdit , //"提单信息",
handler : function ( menu , event ) {
_this . onBillEditClick ( menu , event ) ;
}
} , {
menu : [
{
text : Zi . LAN . BillEdit , //"提单信息",
handler : function ( menu , event ) {
_this . onBillEditClick ( menu , event ) ;
}
}
, {
text : Zi . LAN . plbs , //"批量生成函电",
menu : [ {
text : Zi . LAN . SaveSEAI , //"生成海运进口业务",
@ -2748,12 +2751,14 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this . SubCorpFee ( menu , event ) ;
}
} ]
} , {
text : Zi . LAN . FeeEdit , //"费用编辑",
handler : function ( menu , event ) {
_this . onFeeEditClick ( menu , event ) ;
}
} , {
}
, {
text : Zi . LAN . FeeEdit , //"费用编辑",
handler : function ( menu , event ) {
_this . onFeeEditClick ( menu , event ) ;
}
}
, {
text : Zi . LAN . plfee , //"批量生成函电",
menu : [ {
text : Zi . LAN . PiLiangFeeAdd ,
@ -2771,7 +2776,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this . onPiLiangAddFeeTemplate ( menu , event , 1 ) ;
}
} ]
} , {
}
, {
text : Zi . LAN . plbsedi , //"批量生成函电",
menu : [ {
text : Zi . LAN . UpOpStatus , //"批量状态更新",
@ -2789,22 +2795,26 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this . winModifyIssueShow . show ( ) ;
}
} ]
} , {
}
, {
text : Zi . LAN . InvPay , //"生成发票申请",
handler : function ( menu , event ) {
_this . onInvPayClick ( menu , event ) ;
}
} , {
}
, {
text : Zi . LAN . Letter , //"费用编辑",
handler : function ( menu , event ) {
_this . onLetterEditClick ( menu , event ) ;
}
} , {
}
, {
text : Zi . LAN . DocEdit , //"单据管理",
handler : function ( menu , event ) {
_this . onDocEditClick ( menu , event ) ;
}
} , {
}
, {
text : Zi . LAN . plcletter , //"批量生成函电",
menu : [
{
@ -2823,19 +2833,22 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this . onCreateletter ( '派车通知' ) ;
}
} ]
} , {
}
, {
text : Zi . LAN . TUISHENQING , //"申请推航次或退舱",
id : "btnShenTui" ,
handler : function ( menu , event ) {
_this . winTuiShow . show ( ) ;
}
} , {
}
, {
text : Zi . LAN . CANCELTUISHENQING , //"申请推航次或退舱",
id : "btnCancelShenTui" ,
handler : function ( menu , event ) {
_this . CancelDoTui ( ) ;
}
} , {
}
, {
text : Zi . LAN . TuiCangCaoZuo , //"退舱",
id : "btnOpTui" ,
menu : [
@ -2850,53 +2863,81 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this . onCancelShippingOrderClick ( '0' ) ;
}
} ]
} , {
}
, {
text : Zi . LAN . FDTZ , //"放单通知",
handler : function ( menu , event ) {
_this . onFDTZClick ( menu , event ) ;
}
} , {
}
, {
text : Zi . LAN . UNFDTZ , //"取消放单通知",
handler : function ( menu , event ) {
_this . onUNFDTZPLClick ( menu , event ) ;
}
} , {
text : Zi . LAN . fnLoad , //"提单状态查询",
handler : function ( menu , event ) {
var selections = _this . gridList . getSelectionModel ( ) . getSelection ( ) ;
if ( selections . length == 0 ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : Zi . LAN . QingXianXuanZeYeWu , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
, {
text : Zi . LAN . fnLoad , //"提单状态查询",
handler : function ( menu , event ) {
var selections = _this . gridList . getSelectionModel ( ) . getSelection ( ) ;
if ( selections . length == 0 ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : Zi . LAN . QingXianXuanZeYeWu , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
var record = selections [ 0 ] ;
steplay . fnLoad ( record . data . MBLNO , record . data . BSNO ) ;
}
var record = selections [ 0 ] ;
}
, {
text : Zi . LAN . fnLoad , //"提单状态查询",
handler : function ( menu , event ) {
var selections = _this . gridList . getSelectionModel ( ) . getSelection ( ) ;
if ( selections . length == 0 ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : Zi . LAN . QingXianXuanZeYeWu , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
var record = selections [ 0 ] ;
steplay . fnLoad ( record . data . MBLNO , record . data . BSNO ) ;
}
}
steplay . fnLoad ( record . data . MBLNO , record . data . BSNO ) ;
}
}
, {
text : '批量整票提交' , //"批量整票提交",
handler : function ( menu , event ) {
_this . onPiLiangZhengPiaoTiJiaoClick ( menu , event , 1 ) ;
}
} , {
, {
text : '批量整票提交' , //"批量整票提交",
handler : function ( menu , event ) {
_this . onPiLiangZhengPiaoTiJiaoClick ( menu , event , 1 ) ;
}
}
, {
text : '取消整票提交' , //"批量整票提交",
handler : function ( menu , event ) {
_this . onPiLiangZhengPiaoTiJiaoClick ( menu , event , 0 ) ;
}
} , {
}
, {
text : '发送大简云运踪订阅' ,
handler : function ( menu , event ) {
_this . onSendToDJY ( 'send' ) ;
}
} , {
}
, {
text : '取消大简云运踪订阅' ,
handler : function ( menu , event ) {
_this . onSendToDJY ( 'del' ) ;
}
} ] ,
}
, {
text : '推送港联顺费用' ,
handler : function ( menu , event ) {
_this . onSendGLSFee ( ) ;
}
}
] ,
scope : this
} , '-' , {
} , '-'
, {
iconCls : "btnotherinf" ,
menu : [
{
@ -3033,7 +3074,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
}
} ] ,
scope : this
} , '-' , {
} , '-'
, {
text : '显示Cover' ,
id : 'btnCover' ,
handler : function ( button , event ) {
@ -3055,7 +3097,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
} ,
scope : this
} , {
}
, {
text : '创建跑单' ,
id : 'btnRunBill' ,
handler : function ( button , event ) {
@ -3063,7 +3106,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
this . onCreateRunBill ( button , event ) ;
} ,
scope : this
} , this . CheckSaveQuery ]
}
, this . CheckSaveQuery ]
} ) ;
//#endregion
@ -15681,6 +15725,270 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
scope : this
} ) ;
}
, onSendGLSFee : function ( ) {
var selections = this . GridCheckBoxModel . selected . items ;
if ( selections . length == 0 ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : Zi . LAN . QingXianXuanZeYeWu , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ; //请先选择要更新的业务!
return ;
}
var BSNOStr = '' ;
for ( var i = 0 ; i < selections . length ; i ++ ) {
var rec = selections [ i ] ;
var BSNO = "'" + rec . data . BSNO + "'" ;
if ( BSNOStr == '' )
BSNOStr = BSNO ;
else {
BSNOStr = BSNOStr + ',' + BSNO ;
}
}
if ( BSNOStr == '' ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : Zi . LAN . QingXianXuanZeYeWu , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
else
{
Ext . Ajax . request ( {
waitMsg : '' ,
url : '/MvcShipping/MsOpSeae/SendGLSFee' ,
params : {
BSNO : BSNOStr
} ,
callback : function ( options , success , response ) {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success != true ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : result . Message , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
} else {
var checkresult = result . Data ;
this . ruleCheckNameArr _2 = [ ] ;
//var btnWarning = Ext.getCmp('btnRuleWarning');
//btnWarning.setText(checkresult.length + '');
for ( var idx = 0 ; idx < checkresult . length ; idx ++ ) {
var item = checkresult [ idx ] ;
var newrec = {
GID : item . GID ,
MBLNO : item . MBLNO ,
DESTINATION : item . DESTINATION ,
VESSEL : item . VESSEL ,
VOYNO : item . VOYNO ,
ETD : item . ETD ,
FEENAME : item . FEENAME ,
FEETYPEREF : item . FEETYPEREF ,
AMOUNT : item . AMOUNT ,
CURRENT : item . CURRENT
} ;
this . ruleCheckNameArr _2 . push ( newrec ) ;
}
if ( checkresult . length > 0 ) {
store = Ext . create ( 'Ext.data.Store' , {
autoLoad : true ,
fields : [
{
name : 'MBLNO' , type : "string"
}
, {
name : 'GID' , type : "string"
}
, {
name : 'DESTINATION' , type : "string"
}
, {
name : 'VESSEL' , type : "string"
} , {
name : 'VOYNO' , type : "string"
} , {
name : 'ETD' , type : "string"
} , {
name : 'FEENAME' , type : "string"
} , {
name : 'FEETYPEREF' , type : "string"
} , {
name : 'AMOUNT' , type : "string"
} , {
name : 'CURRENT' , type : "string"
} ] ,
data : [ ]
} ) ;
var _GridCheckBoxModel = Ext . create ( 'Ext.selection.CheckboxModel' ) ;
this . rulegrid = Ext . create ( 'Ext.grid.Panel' , {
id : "RuleResultGrid" ,
store : store ,
selModel : _GridCheckBoxModel ,
viewConfig : {
enableTextSelection : true , //允许复制数据
} ,
columns : [
{
text : "GID" ,
dataIndex : 'GID' ,
hidden : true ,
width : 100
} , {
text : "提单号" ,
dataIndex : 'MBLNO' ,
sortable : true ,
width : 100
} , {
text : "目的港" ,
dataIndex : 'DESTINATION' ,
sortable : true ,
width : 100
} , {
text : "船名" ,
dataIndex : 'VESSEL' ,
sortable : true ,
width : 100
} , {
text : "航次" ,
dataIndex : 'VOYNO' ,
sortable : true ,
width : 100
} , {
text : "ETD" ,
dataIndex : 'ETD' ,
sortable : true ,
width : 110
} , {
text : "费用名称" ,
dataIndex : 'FEENAME' ,
sortable : true ,
width : 100
} , {
text : "收付方向" ,
dataIndex : 'FEETYPEREF' ,
sortable : true ,
width : 100
} , {
text : "金额" ,
dataIndex : 'AMOUNT' ,
sortable : true ,
width : 100
} , {
text : "币别" ,
dataIndex : 'CURRENT' ,
sortable : true ,
width : 50
}
] ,
forceFit : true ,
split : true ,
region : 'center'
} ) ;
this . winGLSFeeListForm = Ext . create ( 'Ext.window.Window' , {
title : "港联顺费用推送" ,
width : 800 ,
height : 550 ,
plain : true ,
layout : "border" ,
iconCls : "addicon" ,
resizable : false ,
draggable : false ,
collapsible : true ,
closeAction : 'close' ,
closable : true ,
modal : 'true' ,
buttonAlign : "center" ,
bodyStyle : "padding:0 0 0 0" ,
items : [ this . rulegrid ] ,
buttons : [
{
text : "确定发出" ,
minWidth : 70 ,
handler : function ( ) {
var selections = _GridCheckBoxModel . selected . items ;
if ( selections . length == 0 ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : "请选择费用" , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ; //请先选择要更新的业务!
return ;
}
var GIDs = '' ;
for ( var i = 0 ; i < selections . length ; i ++ ) {
var rec = selections [ i ] ;
var GID = rec . data . GID ;
if ( GIDs == '' )
GIDs = GID ;
else {
GIDs = GIDs + ',' + GID ;
}
}
Ext . Ajax . request ( {
waitMsg : '' ,
url : '/MvcShipping/MsOpSeae/DoSendGLSFee' ,
params : {
BSNO : BSNOStr ,
GIDs : GIDs
} ,
callback : function ( options , success , response ) {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success != true ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : result . Message , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
} else {
MsgTip ( "提示" , "发送完成" , 3000 ) ;
}
}
}
} ) ;
}
} ,
{
text : Zi . LAN . GuanBi , //"关闭",
minWidth : 70 ,
handler : function ( ) {
me . winGLSFeeListForm . close ( ) ;
}
}
]
} ) ;
store . loadData ( this . ruleCheckNameArr _2 ) ;
this . winGLSFeeListForm . show ( ) ;
for ( i = 0 ; i < store . getCount ( ) ; i += 1 ) {
this . rulegrid . getSelectionModel ( ) . selectAll ( ) ;
}
}
else {
//Ext.Msg.show({ title: Zi.LAN.TiShi, msg: "校验完成,无不合规内容", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
//MsgTip("提示", "校验完成,无不合规内容", 1200);
}
}
} else {
}
} ,
scope : this
} ) ;
}
}
} ) ;
function fnSearch ( ) {