ESL相关功能。未完成,先做对瑞京内贸空运的功能修改

DS7_JinGang
ddlucky 2 years ago
parent 751453df1e
commit 6754eb5d4f

@ -14552,6 +14552,22 @@ namespace DSWeb.MvcShipping.Controllers
} }
#endregion #endregion
#region ESL相关业务调用
public ContentResult ESLWork(string WORKTYPE, string BSNO)
{
var result = new DBResult();
result = MsOpSeaeDAL.ESLWork(WORKTYPE,BSNO, CookieConfig.GetCookie_UserId(Request), Convert.ToString(Session["SHOWNAME"]), Convert.ToString(Session["COMPANYID"]));
var _result = BasicDataRefDAL.GetContentResult(result);
return _result;
}
#endregion
public ContentResult PiLiangZhengPiaoTiJiao(string bsno, int statusvalue) public ContentResult PiLiangZhengPiaoTiJiao(string bsno, int statusvalue)
{ {
string message = ""; string message = "";

@ -42,6 +42,7 @@ using DSWeb.Areas.MvcShipping.Comm;
using DSWeb.Areas.MvcShipping.DB; using DSWeb.Areas.MvcShipping.DB;
using Org.BouncyCastle.Bcpg; using Org.BouncyCastle.Bcpg;
using DSWeb.MvcShipping.DAL.MsCodeCtnEdi; using DSWeb.MvcShipping.DAL.MsCodeCtnEdi;
using DSWeb.MvcShipping.DAL.MsOpExpressDAL;
namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
{ {
@ -7968,6 +7969,53 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
return result; return result;
} }
static public DBResult ESLWork(string WORKTYPE, string BSNO, string userid, string username, string copmpanyid)
{
var result = new DBResult();
//var accCfg = MsSysThirdPartyAccount.MsSysThirdPartyAccountDAL.GetData($" CUSTOMERNAME='{order.CARRIER}' and THIRDPARTY='船公司账号' and USERID='" + userid + "' ");
//if (accCfg == null || string.IsNullOrWhiteSpace(accCfg.ACCOUNT) || string.IsNullOrWhiteSpace(accCfg.ACCOUNTPSW))
//{
// result.SetErrorInfo($"未在第三方账号信息中配置船公司【{order.CARRIER}】的网站账号、密码(第三方账号每人维护各自信息,客户名称需选择船公司,第三方软件为【船公司账号】)");
//}
try
{
if (WORKTYPE == "ETA")
{
}
//舱位分配查询
if (WORKTYPE == "CWFPCX")
{
}
//格式单批量接收
if (WORKTYPE == "ETA")
{
}
}
catch (Exception e)
{
result.SetErrorInfo(e.Message);
}
return result;
}
private static DBResult ESL_CANDO(string WORKTYPE, string BSNO, string userid, string username, string copmpanyid)
{
var result = new DBResult();
//看
return result;
}
} }
public class GLSFEEHead public class GLSFEEHead

@ -2927,7 +2927,28 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
_this.onSendToDJY('del'); _this.onSendToDJY('del');
} }
} }
//, {
// text: Zi.LAN.ESL, //"ESL业务执行",
// menu: [
// {
// text: Zi.LAN.ESL_ETA, //"ESL到港时间更新",
// handler: function (menu, event) {
// _this.ESLWork("ETA");
// }
// },
// {
// text: Zi.LAN.ESL_CWFPCX, //"ESL舱位分配查询",
// handler: function (menu, event) {
// _this.ESLWork("CWFPCX");
// }
// }, {
// text: Zi.LAN.ESL_GSDXZ, //"ESL格式单批量接收",
// handler: function (menu, event) {
// _this.ESLWork("GSDXZ");
// }
// }
// ]
//}
, { , {
text: '推送港联顺费用', text: '推送港联顺费用',
handler: function (menu, event) { handler: function (menu, event) {
@ -15989,6 +16010,59 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
}); });
} }
} }
, ESLWork: function (WORKTYPE) {
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/ESLWork',
params: {
WORKTYPE: WORKTYPE,
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 {
MsgTip("提示", result.Message, 2500);
}
} else {
Ext.Msg.show({ title: Zi.LAN.ChuoWu, msg: result.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
}
},
scope: this
});
}
}); });
function fnSearch() { function fnSearch() {

@ -683,4 +683,8 @@ Zi.LAN.rRECEIVERSALE = "接受方销售";
Zi.LAN.rRECEIVERDEPT = "接受方部门"; Zi.LAN.rRECEIVERDEPT = "接受方部门";
Zi.LAN.EDIRUSSIA = "俄罗斯(交通部)"; Zi.LAN.EDIRUSSIA = "俄罗斯(交通部)";
Zi.LAN.RememberQuery = "Save Query"; Zi.LAN.RememberQuery = "Save Query";
Zi.LAN.IRCODE = "CSR/IR号"; Zi.LAN.IRCODE = "CSR/IR号";
Zi.LAN.ESL = "ESL业务执行";
Zi.LAN.ESL_ETA = "ESL到港时间更新";
Zi.LAN.ESL_CWFPCX = "ESL舱位分配查询";
Zi.LAN.ESL_GSDXZ = "ESL格式单批量接收";

@ -711,6 +711,10 @@ Zi.LAN.rRECEIVERDEPT = "接受方部门";
Zi.LAN.EDIRUSSIA = "俄罗斯(交通部)"; Zi.LAN.EDIRUSSIA = "俄罗斯(交通部)";
Zi.LAN.RememberQuery = "记忆查询"; Zi.LAN.RememberQuery = "记忆查询";
Zi.LAN.IRCODE = "CSR/IR号"; Zi.LAN.IRCODE = "CSR/IR号";
Zi.LAN.ESL = "ESL业务执行";
Zi.LAN.ESL_ETA = "ESL到港时间更新";
Zi.LAN.ESL_CWFPCX = "ESL舱位分配查询";
Zi.LAN.ESL_GSDXZ = "ESL格式单批量接收";
//Zi.LAN. = ""; //Zi.LAN. = "";

Loading…
Cancel
Save