@ -14150,70 +14150,377 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, {
var rec = selections [ 0 ] ;
var BSNO = rec . data . BSNO ;
if ( rec . data . ISSUETYPE == '' ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : '签单方式不能为空!' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
if ( this . BLMUSTBEQR == 1 && rec . data . ISSUETYPE == '正本' && ( rec . data . BLISSUESTATUS != '提单签入' && rec . data . BLISSUESTATUS != '驳回提单签入' ) ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : '只有已提单签入的正本提单,才允许放单通知!' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
_this = this ;
Ext . Ajax . request ( {
waitMsg : Zi . LAN . ZhengZaiCaoZuoShuJu ,
url : '/MvcShipping/MsOp_BLISSUE/ GetBLINFO ',
url : '/MvcShipping/MsOp_BLISSUE/CanCheckOut' ,
async : false ,
params : {
BSNO : "'" + BSNO + "'"
BSNO : BSNO
} ,
callback : function ( options , success , response ) {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success ) {
var _html = "<span style=\"clear:both;\">" ;
_this . 结费类型 = result . data [ 0 ] . 结费类型 . replace ( "<span style=\"colorred\">" , " " ) . replace ( "</span>" , " " ) ;
_this . 欠费超期 = result . data [ 0 ] . 欠费超期 ;
_this . 累计欠费 = result . data [ 0 ] . 累计欠费 ;
_this . 信用额度 = result . data [ 0 ] . 信用额度 ;
if ( ! result . Success ) {
//Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
//});
if ( result . Message . indexOf ( "此票被财务扣单" ) >= 0 ) {
Ext . Msg . show ( {
title : '提示' ,
msg : result . Message ,
icon : Ext . MessageBox . ERROR ,
buttons : Ext . Msg . OK
} ) ;
} else {
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 结费类型 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 欠费超期 + "</p></span>" ;
if ( result . data [ 0 ] . 超期欠费 != '' )
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 超期欠费 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 累计欠费 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 信用额度 + "</p></span>" ;
_html = _html + "<br></br>" ;
Ext . MessageBox . confirm ( Zi . LAN . TiShi , result . Message , function ( btn ) {
if ( btn == 'yes' ) {
Ext . Ajax . request ( {
waitMsg : Zi . LAN . ZhengZaiCaoZuoShuJu ,
url : '/MvcShipping/MsOp_BLISSUE/GetBLINFO' ,
async : false ,
params : {
BSNO : "'" + BSNO + "'"
} ,
callback : function ( options , success , response ) {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success ) {
var _html = "<span style=\"clear:both;\">" ;
_this . 结费类型 = result . data [ 0 ] . 结费类型 . replace ( "<span style=\"colorred\">" , " " ) . replace ( "</span>" , " " ) ;
_this . 欠费超期 = result . data [ 0 ] . 欠费超期 ;
_this . 累计欠费 = result . data [ 0 ] . 累计欠费 ;
_this . 信用额度 = result . data [ 0 ] . 信用额度 ;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 结费类型 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 欠费超期 + "</p></span>" ;
if ( result . data [ 0 ] . 超期欠费 != '' )
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 超期欠费 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 累计欠费 + "</p></span>" ;
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result . data [ 0 ] . 信用额度 + "</p></span>" ;
_html = _html + "<br></br>" ;
if ( result . data [ 0 ] . IS欠费超期 == "yes" ) {
_html = _html + "  <span style=\"color:#900000;text-decoration:none;\">欠费超期</span>" ;
}
if ( result . data [ 0 ] . IS累计欠费 == "yes" ) {
_html = _html + "  <span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>" ;
}
_html = _html + "</span><br></br>" ;
Ext . getCmp ( "FDINFO" ) . update ( _html ) ;
} else {
return ;
}
} else {
return ;
}
} ,
scope : this
} ) ;
if ( result . data [ 0 ] . IS欠费超期 == "yes" ) {
_html = _html + "  <span style=\"color:#900000;text-decoration:none;\">欠费超期</span>" ;
}
if ( result . data [ 0 ] . IS累计欠费 == "yes" ) {
_html = _html + "  <span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>" ;
Ext . getCmp ( "MainPanel" ) . SelectedRecord = rec ;
Ext . getCmp ( "winFDTZShow" ) . show ( ) ;
} else {
return ;
}
} ) ;
}
_html = _html + "</span><br></br>" ;
Ext . getCmp ( "FDINFO" ) . update ( _html ) ;
} else {
//return;
}
else {
Ext . getCmp ( "MainPanel" ) . SelectedRecord = rec ;
_this . DoFDTZ ( ) ;
}
} else {
return ;
Ext . Msg . show ( {
title : '提示' ,
msg : result . Message ,
icon : Ext . MessageBox . ERROR ,
buttons : Ext . Msg . OK
} ) ;
}
} ,
scope : this
}
} ) ;
Ext . getCmp ( "MainPanel" ) . SelectedRecord = rec ;
Ext . getCmp ( "winFDTZShow" ) . show ( ) ;
//Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/CanCheckOut',
// async: false,
// params: {
// BSNO: BSNO
// },
// 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
// //});
// if (result.Message.indexOf("此票被财务扣单") >= 0) {
// Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
// });
// } else {
// Ext.MessageBox.confirm(Zi.LAN.TiShi, result.Message, function (btn) {
// if (btn == 'yes') {
// Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].欠费超期 + "</p></span>";
// if (result.data[0].超期欠费 != '')
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].超期欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "  <span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "  <span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// return;
// }
// } else {
// return;
// }
// },
// scope: this
// });
// Ext.getCmp("MainPanel").SelectedRecord = rec;
// Ext.getCmp("winFDTZShow").show();
// } else {
// return;
// }
// });
// }
// }
// else {
// Ext.getCmp("MainPanel").SelectedRecord = rec;
// _this.DoFDTZ();
// }
// } else {
// Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
// });
// }
// }
//});
//if (rec.data.ISSUETYPE == '') {
// Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '签单方式不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
// return;
//}
//if (this.BLMUSTBEQR == 1 && rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
// Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
// return;
//}
//_this = this;
//Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].欠费超期 + "</p></span>";
// if (result.data[0].超期欠费 != '')
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].超期欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>  " + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "  <span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "  <span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// //return;
// }
// } else {
// return;
// }
// },
// scope: this
//});
//Ext.getCmp("MainPanel").SelectedRecord = rec;
//Ext.getCmp("winFDTZShow").show();
} ,
DoFDTZ : function ( REASON ) {
onFDTZPLClick : function ( ) {
Ext . define ( 'MsOp_BLISSUEmb' , {
extend : 'Ext.data.Model' ,
idProperty : 'GID' ,
fields : [
{ name : 'GID' , type : 'string' } ,
{ name : 'BSNO' , type : 'string' } ,
{ name : 'BLNO' , type : 'string' } ,
{ name : 'HBLNO' , type : 'string' } ,
{ name : 'ZDFD' , type : 'string' } ,
{ name : 'BLNAME' , type : 'string' } ,
{ name : 'BLSTATUS' , type : 'string' } ,
{ name : 'BLORDERNO' , type : 'string' } ,
{ name : 'ISSUETYPE' , type : 'string' } ,
{ name : 'OPNAME' , type : 'string' } ,
{ name : 'OPTIME' , type : 'string' } ,
{ name : 'BSINKNO' , type : 'string' } ,
{ name : 'REMARK' , type : 'string' } ,
{ name : 'DELFLAG' , type : 'string' } ,
{ name : 'EXPRESSCORP' , type : 'string' } ,
{ name : 'EXPRESSNO' , type : 'string' } ,
{ name : 'ISADD' , type : 'string' } ,
{ name : 'PUTSINGLETIME' , type : 'string' } ,
{ name : 'PUTSINGLE' , type : 'string' } ,
{ name : 'PAYTIME' , type : 'string' } ,
{ name : 'PAYRMB' , type : 'string' } ,
{ name : 'PAYUSD' , type : 'string' } ,
{ name : 'BLTYPE' , type : 'string' } ,
{ name : 'CUSTNO' , type : 'string' } ,
{ name : 'CUSTOMERNAME' , type : 'string' } ,
{ name : 'SALE' , type : 'string' } ,
{ name : 'ACCTYPE' , type : 'string' } ,
{ name : 'ETD' , type : 'string' } ,
{ name : 'STLDATE' , type : 'string' } ,
{ name : 'CARRIER' , type : 'string' } ,
{ name : 'VESSEL' , type : 'string' } ,
{ name : 'VOYNO' , type : 'string' } ,
{ name : 'OP' , type : 'string' } ,
{ name : 'BLISSUESTATUS' , type : 'string' } ,
{ name : 'TSFD' , type : 'string' } ,
{ name : 'XYTS' , type : 'string' } ,
{ name : 'CQTS' , type : 'string' } ,
{ name : 'SJTS' , type : 'string' } ,
{ name : 'RMBNODR' , type : 'string' } ,
{ name : 'USDNODR' , type : 'string' } ,
{ name : 'TTLNODR' , type : 'string' } ,
{ name : 'TTLDR' , type : 'string' } ,
{ name : 'OPLBNAME' , type : 'string' } ,
{ name : 'SPREMARK' , type : 'string' }
]
} ) ;
var _op _blissue = Ext . create ( 'MsOp_BLISSUEmb' , {
'GID' : '' ,
'BSNO' : this . SelectedRecord . data . BSNO ,
'BLNO' : this . SelectedRecord . data . MBLNO ,
'BLNAME' : '提单' ,
'BLSTATUS' : '' ,
'BLORDERNO' : '' ,
'ISSUETYPE' : this . SelectedRecord . data . ISSUETYPE ,
'OPNAME' : '' ,
'OPTIME' : '' ,
'BSINKNO' : '' ,
'REMARK' : '' ,
'DELFLAG' : '0' ,
'EXPRESSCORP' : '' ,
'EXPRESSNO' : '' ,
'ISADD' : '0' ,
'PUTSINGLETIME' : '' ,
'PUTSINGLE' : '' ,
'PAYTIME' : '' ,
'PAYRMB' : '0' ,
'PAYUSD' : '0'
} ) ;
var bodyList = [ ] ;
bodyList . push ( _op _blissue ) ;
var jsonBody = ConvertRecordsToJsonAll ( bodyList ) ;
if ( jsonBody == '' ) {
return ;
}
Ext . Ajax . request ( {
waitMsg : '正在操作数据' ,
url : '/MvcShipping/MsOp_BLISSUE/FDTZ' ,
params : {
USERID : USERID ,
data : jsonBody ,
REASON : REASON
} ,
callback : function ( options , success , response ) {
if ( success ) {
this . winFDTZShow . close ( ) ;
Ext . getCmp ( "REASON" ) . setValue ( "" ) ;
this . storeList . reload ( ) ;
//this.onRefreshClick();
}
} ,
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
} ,
onFDTZPLClick : function ( ) {
var selections = this . gridList . getSelectionModel ( ) . getSelection ( ) ;
if ( selections . length == 0 ) {
@ -14371,122 +14678,6 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, {
} ,
DoFDTZ : function ( REASON ) {
Ext . define ( 'MsOp_BLISSUEmb' , {
extend : 'Ext.data.Model' ,
idProperty : 'GID' ,
fields : [
{ name : 'GID' , type : 'string' } ,
{ name : 'BSNO' , type : 'string' } ,
{ name : 'BLNO' , type : 'string' } ,
{ name : 'HBLNO' , type : 'string' } ,
{ name : 'ZDFD' , type : 'string' } ,
{ name : 'BLNAME' , type : 'string' } ,
{ name : 'BLSTATUS' , type : 'string' } ,
{ name : 'BLORDERNO' , type : 'string' } ,
{ name : 'ISSUETYPE' , type : 'string' } ,
{ name : 'OPNAME' , type : 'string' } ,
{ name : 'OPTIME' , type : 'string' } ,
{ name : 'BSINKNO' , type : 'string' } ,
{ name : 'REMARK' , type : 'string' } ,
{ name : 'DELFLAG' , type : 'string' } ,
{ name : 'EXPRESSCORP' , type : 'string' } ,
{ name : 'EXPRESSNO' , type : 'string' } ,
{ name : 'ISADD' , type : 'string' } ,
{ name : 'PUTSINGLETIME' , type : 'string' } ,
{ name : 'PUTSINGLE' , type : 'string' } ,
{ name : 'PAYTIME' , type : 'string' } ,
{ name : 'PAYRMB' , type : 'string' } ,
{ name : 'PAYUSD' , type : 'string' } ,
{ name : 'BLTYPE' , type : 'string' } ,
{ name : 'CUSTNO' , type : 'string' } ,
{ name : 'CUSTOMERNAME' , type : 'string' } ,
{ name : 'SALE' , type : 'string' } ,
{ name : 'ACCTYPE' , type : 'string' } ,
{ name : 'ETD' , type : 'string' } ,
{ name : 'STLDATE' , type : 'string' } ,
{ name : 'CARRIER' , type : 'string' } ,
{ name : 'VESSEL' , type : 'string' } ,
{ name : 'VOYNO' , type : 'string' } ,
{ name : 'OP' , type : 'string' } ,
{ name : 'BLISSUESTATUS' , type : 'string' } ,
{ name : 'TSFD' , type : 'string' } ,
{ name : 'XYTS' , type : 'string' } ,
{ name : 'CQTS' , type : 'string' } ,
{ name : 'SJTS' , type : 'string' } ,
{ name : 'RMBNODR' , type : 'string' } ,
{ name : 'USDNODR' , type : 'string' } ,
{ name : 'TTLNODR' , type : 'string' } ,
{ name : 'TTLDR' , type : 'string' } ,
{ name : 'OPLBNAME' , type : 'string' } ,
{ name : 'SPREMARK' , type : 'string' }
]
} ) ;
var _op _blissue = Ext . create ( 'MsOp_BLISSUEmb' , {
'GID' : '' ,
'BSNO' : this . SelectedRecord . data . BSNO ,
'BLNO' : this . SelectedRecord . data . MBLNO ,
'BLNAME' : '提单' ,
'BLSTATUS' : '' ,
'BLORDERNO' : '' ,
'ISSUETYPE' : this . SelectedRecord . data . ISSUETYPE ,
'OPNAME' : '' ,
'OPTIME' : '' ,
'BSINKNO' : '' ,
'REMARK' : '' ,
'DELFLAG' : '0' ,
'EXPRESSCORP' : '' ,
'EXPRESSNO' : '' ,
'ISADD' : '0' ,
'PUTSINGLETIME' : '' ,
'PUTSINGLE' : '' ,
'PAYTIME' : '' ,
'PAYRMB' : '0' ,
'PAYUSD' : '0'
} ) ;
var bodyList = [ ] ;
bodyList . push ( _op _blissue ) ;
var jsonBody = ConvertRecordsToJsonAll ( bodyList ) ;
if ( jsonBody == '' ) {
return ;
}
if ( _this . IS欠费超期 == 'yes' ) {
Ext . Msg . show ( { title : Zi . LAN . TiShi , msg : '欠费超期,不允许放单通知!' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
return ;
}
Ext . Ajax . request ( {
waitMsg : Zi . LAN . ZhengZaiCaoZuoShuJu ,
url : '/MvcShipping/MsOp_BLISSUE/FDTZ' ,
params : {
USERID : USERID ,
data : jsonBody ,
REASON : REASON
} ,
callback : function ( options , success , response ) {
if ( success ) {
this . winFDTZShow . close ( ) ;
Ext . getCmp ( "REASON" ) . setValue ( "" ) ;
this . storeList . reload ( ) ;
//this.onRefreshClick();
}
} ,
failure : function ( response , options ) {
Ext . Msg . show ( { title : Zi . LAN . JingGao , msg : Zi . LAN . FuWuQiXiangYingChuCuo , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
} ,
success : function ( response , options ) { } ,
scope : this
} ) ; //end Ext.Ajax.request
} ,
getFDINFO : function ( result ) {
var _html = "<span style=\"clear:both;\">" ;
_this = this ;