修改新增SITC中转信息

master^2
jianghaiqing 4 days ago
parent a25ce7ef54
commit 5bd0ebe79f

@ -91,5 +91,203 @@ namespace Myshipping.Application
/// 付费方式代码
/// </summary>
public string PAYABLE { get; set; }
/// <summary>
/// 海丰扩展信息
/// </summary>
public SITCExtInfo SITCExt { get; set; }
}
public class SITCExtInfo
{
/// <summary>
/// 运程类型DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferType { get; set; }
/// <summary>
/// 运程类型名称DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferTypeName { get; set; }
/// <summary>
/// 一程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacity { get; set; }
/// <summary>
/// 一程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacityName { get; set; }
/// <summary>
/// 一程ETD
/// </summary>
public Nullable<DateTime> FstETD { get; set; }
/// <summary>
/// 一程船名
/// </summary>
public string FstVessel { get; set; }
/// <summary>
/// 一程航次号
/// </summary>
public string FstVoyno { get; set; }
/// <summary>
/// 一程装货港代码
/// </summary>
public string FstPortLoadCode { get; set; }
/// <summary>
/// 一程装货港名称
/// </summary>
public string FstPortLoad { get; set; }
/// <summary>
/// 一程卸货港代码
/// </summary>
public string FstPortDischargeCode { get; set; }
/// <summary>
/// 一程卸货港名称
/// </summary>
public string FstPortDischarge { get; set; }
/// <summary>
/// 一程港属类型LOCATION-本港)
/// </summary>
public string FstTransferLocType { get; set; }
/// <summary>
/// 一程港属类型名称LOCATION-本港)
/// </summary>
public string FstTransferLogTypeName { get; set; }
/// <summary>
/// 一程航线
/// </summary>
public string FstLaneName { get; set; }
/// <summary>
/// 二程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacity { get; set; }
/// <summary>
/// 二程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacityName { get; set; }
/// <summary>
/// 二程ETD
/// </summary>
public Nullable<DateTime> SecETD { get; set; }
/// <summary>
/// 二程船名
/// </summary>
public string SecVessel { get; set; }
/// <summary>
/// 二程航次号
/// </summary>
public string SecVoyno { get; set; }
/// <summary>
/// 二程装货港代码
/// </summary>
public string SecPortLoadCode { get; set; }
/// <summary>
/// 二程装货港名称
/// </summary>
public string SecPortLoad { get; set; }
/// <summary>
/// 二程卸货港代码
/// </summary>
public string SecPortDischargeCode { get; set; }
/// <summary>
/// 二程卸货港名称
/// </summary>
public string SecPortDischarge { get; set; }
/// <summary>
/// 二程港属类型LOCATION-本港)
/// </summary>
public string SecTransferLocType { get; set; }
/// <summary>
/// 二程港属类型名称LOCATION-本港)
/// </summary>
public string SecTransferLogTypeName { get; set; }
/// <summary>
/// 二程航线
/// </summary>
public string SecLaneName { get; set; }
/// <summary>
/// 三程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacity { get; set; }
/// <summary>
/// 三程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacityName { get; set; }
/// <summary>
/// 三程ETD
/// </summary>
public Nullable<DateTime> ThdETD { get; set; }
/// <summary>
/// 三程船名
/// </summary>
public string ThdVessel { get; set; }
/// <summary>
/// 三程航次号
/// </summary>
public string ThdVoyno { get; set; }
/// <summary>
/// 三程装货港代码
/// </summary>
public string ThdPortLoadCode { get; set; }
/// <summary>
/// 三程装货港名称
/// </summary>
public string ThdPortLoad { get; set; }
/// <summary>
/// 三程卸货港代码
/// </summary>
public string ThdPortDischargeCode { get; set; }
/// <summary>
/// 三程卸货港名称
/// </summary>
public string ThdPortDischarge { get; set; }
/// <summary>
/// 三程港属类型LOCATION-本港)
/// </summary>
public string ThdTransferLocType { get; set; }
/// <summary>
/// 三程港属类型名称LOCATION-本港)
/// </summary>
public string ThdTransferLogTypeName { get; set; }
/// <summary>
/// 三程航线
/// </summary>
public string ThdLaneName { get; set; }
}
}

@ -1,5 +1,6 @@
using DocumentFormat.OpenXml.ExtendedProperties;
using Google.Protobuf.WellKnownTypes;
using Mapster.Utils;
using Myshipping.Application.EDI.ESL;
using MySqlX.XDevAPI.Common;
using Newtonsoft.Json;
@ -203,6 +204,30 @@ namespace Myshipping.Application.EDI.SITC
});
}
/*
1. OUTTRA
2. json clen1-3
3.线线 线0 线1
4. SITC
5. cCommodity 0
*/
if (InttrEdi.SITCExt != null && !string.IsNullOrWhiteSpace(InttrEdi.SITCExt.TransferType) && !InttrEdi.SITCExt.TransferType.Equals("DIRECT",StringComparison.OrdinalIgnoreCase))
{
//if (InttrEdi.SITCExt.TransferType.Equals("SECOND", StringComparison.OrdinalIgnoreCase))
//{
// postModel.extras.Add(new SitcApiPostModelExtra
// {
// ctype = "TRA",
// clen = 1,
// cnum = InttrEdi.SITCExt.FstShipCapacity == "MAIN" ? 1 : 0,
// vent = InttrEdi.SITCExt.FstVessel?.Trim(),
// humdity = InttrEdi.SITCExt.FstVoyno?.Trim(),
// soc = InttrEdi.SITCExt.FstLaneName?.Trim(),
// unit =
// });
//}
}
string json = JsonConvert.SerializeObject(postModel, Formatting.Indented, new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore
@ -573,6 +598,21 @@ namespace Myshipping.Application.EDI.SITC
/// 类型
/// </summary>
public string ctype { get; set; }
/// <summary>
/// 程次(TRA)
/// </summary>
public Nullable<int> clen { get; set; }
/// <summary>
/// 支线:0;干线:1(TRA)
/// </summary>
public Nullable<int> cnum { get; set; }
/// <summary>
/// 航线代码
/// </summary>
public string soc { get; set; }
}
public class SitcApiPostModelDangerInfo

@ -75,5 +75,195 @@ namespace Myshipping.Application.Entity
/// 付费方式代码
/// </summary>
public string PAYABLE { get; set; }
/// <summary>
/// 运程类型DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferType { get; set; }
/// <summary>
/// 运程类型名称DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferTypeName { get; set; }
/// <summary>
/// 一程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacity { get; set; }
/// <summary>
/// 一程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacityName { get; set; }
/// <summary>
/// 一程ETD
/// </summary>
public Nullable<DateTime> FstETD { get; set; }
/// <summary>
/// 一程船名
/// </summary>
public string FstVessel { get; set; }
/// <summary>
/// 一程航次号
/// </summary>
public string FstVoyno { get; set; }
/// <summary>
/// 一程装货港代码
/// </summary>
public string FstPortLoadCode { get; set; }
/// <summary>
/// 一程装货港名称
/// </summary>
public string FstPortLoad { get; set; }
/// <summary>
/// 一程卸货港代码
/// </summary>
public string FstPortDischargeCode { get; set; }
/// <summary>
/// 一程卸货港名称
/// </summary>
public string FstPortDischarge { get; set; }
/// <summary>
/// 一程港属类型LOCATION-本港)
/// </summary>
public string FstTransferLocType { get; set; }
/// <summary>
/// 一程港属类型名称LOCATION-本港)
/// </summary>
public string FstTransferLogTypeName { get; set; }
/// <summary>
/// 一程航线
/// </summary>
public string FstLaneName { get; set; }
/// <summary>
/// 二程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacity { get; set; }
/// <summary>
/// 二程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacityName { get; set; }
/// <summary>
/// 二程ETD
/// </summary>
public Nullable<DateTime> SecETD { get; set; }
/// <summary>
/// 二程船名
/// </summary>
public string SecVessel { get; set; }
/// <summary>
/// 二程航次号
/// </summary>
public string SecVoyno { get; set; }
/// <summary>
/// 二程装货港代码
/// </summary>
public string SecPortLoadCode { get; set; }
/// <summary>
/// 二程装货港名称
/// </summary>
public string SecPortLoad { get; set; }
/// <summary>
/// 二程卸货港代码
/// </summary>
public string SecPortDischargeCode { get; set; }
/// <summary>
/// 二程卸货港名称
/// </summary>
public string SecPortDischarge { get; set; }
/// <summary>
/// 二程港属类型LOCATION-本港)
/// </summary>
public string SecTransferLocType { get; set; }
/// <summary>
/// 二程港属类型名称LOCATION-本港)
/// </summary>
public string SecTransferLogTypeName { get; set; }
/// <summary>
/// 二程航线
/// </summary>
public string SecLaneName { get; set; }
/// <summary>
/// 三程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacity { get; set; }
/// <summary>
/// 三程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacityName { get; set; }
/// <summary>
/// 三程ETD
/// </summary>
public Nullable<DateTime> ThdETD { get; set; }
/// <summary>
/// 三程船名
/// </summary>
public string ThdVessel { get; set; }
/// <summary>
/// 三程航次号
/// </summary>
public string ThdVoyno { get; set; }
/// <summary>
/// 三程装货港代码
/// </summary>
public string ThdPortLoadCode { get; set; }
/// <summary>
/// 三程装货港名称
/// </summary>
public string ThdPortLoad { get; set; }
/// <summary>
/// 三程卸货港代码
/// </summary>
public string ThdPortDischargeCode { get; set; }
/// <summary>
/// 三程卸货港名称
/// </summary>
public string ThdPortDischarge { get; set; }
/// <summary>
/// 三程港属类型LOCATION-本港)
/// </summary>
public string ThdTransferLocType { get; set; }
/// <summary>
/// 三程港属类型名称LOCATION-本港)
/// </summary>
public string ThdTransferLogTypeName { get; set; }
/// <summary>
/// 三程航线
/// </summary>
public string ThdLaneName { get; set; }
}
}

@ -8246,6 +8246,10 @@ namespace Myshipping.Application
primaryModel.FEETYPE = multiline.FEETYPE;
primaryModel.PAYABLEEXT = multiline.PAYABLE;
ediModel.SITCExt = multiline.Adapt<SITCExtInfo>();
//这里做个检查
}
}
@ -12386,6 +12390,12 @@ namespace Myshipping.Application
result.succ = true;
result.extra = sitcModel;
var record = _repBookingMultiLineSplitRecord.AsQueryable().Where(a => a.BOOKING_ID == model.Id).OrderByDescending(a => a.CreatedTime).First();
if (record != null)
{
result.extra2 = record;
}
return result;
}

@ -70,5 +70,195 @@ namespace Myshipping.Application
/// 付费方式代码
/// </summary>
public string PAYABLE { get; set; }
/// <summary>
/// 运程类型DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferType { get; set; }
/// <summary>
/// 运程类型名称DIRECT-直达SECOND-二程THIRD-三程)
/// </summary>
public string TransferTypeName { get; set; }
/// <summary>
/// 一程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacity { get; set; }
/// <summary>
/// 一程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string FstShipCapacityName { get; set; }
/// <summary>
/// 一程ETD
/// </summary>
public Nullable<DateTime> FstETD { get; set; }
/// <summary>
/// 一程船名
/// </summary>
public string FstVessel { get; set; }
/// <summary>
/// 一程航次号
/// </summary>
public string FstVoyno { get; set; }
/// <summary>
/// 一程装货港代码
/// </summary>
public string FstPortLoadCode { get; set; }
/// <summary>
/// 一程装货港名称
/// </summary>
public string FstPortLoad { get; set; }
/// <summary>
/// 一程卸货港代码
/// </summary>
public string FstPortDischargeCode { get; set; }
/// <summary>
/// 一程卸货港名称
/// </summary>
public string FstPortDischarge { get; set; }
/// <summary>
/// 一程港属类型LOCATION-本港)
/// </summary>
public string FstTransferLocType { get; set; }
/// <summary>
/// 一程港属类型名称LOCATION-本港)
/// </summary>
public string FstTransferLogTypeName { get; set; }
/// <summary>
/// 一程航线
/// </summary>
public string FstLaneName { get; set; }
/// <summary>
/// 二程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacity { get; set; }
/// <summary>
/// 二程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string SecShipCapacityName { get; set; }
/// <summary>
/// 二程ETD
/// </summary>
public Nullable<DateTime> SecETD { get; set; }
/// <summary>
/// 二程船名
/// </summary>
public string SecVessel { get; set; }
/// <summary>
/// 二程航次号
/// </summary>
public string SecVoyno { get; set; }
/// <summary>
/// 二程装货港代码
/// </summary>
public string SecPortLoadCode { get; set; }
/// <summary>
/// 二程装货港名称
/// </summary>
public string SecPortLoad { get; set; }
/// <summary>
/// 二程卸货港代码
/// </summary>
public string SecPortDischargeCode { get; set; }
/// <summary>
/// 二程卸货港名称
/// </summary>
public string SecPortDischarge { get; set; }
/// <summary>
/// 二程港属类型LOCATION-本港)
/// </summary>
public string SecTransferLocType { get; set; }
/// <summary>
/// 二程港属类型名称LOCATION-本港)
/// </summary>
public string SecTransferLogTypeName { get; set; }
/// <summary>
/// 二程航线
/// </summary>
public string SecLaneName { get; set; }
/// <summary>
/// 三程运力类型MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacity { get; set; }
/// <summary>
/// 三程运力类型名称MAIN-干线BRANCH-支线)
/// </summary>
public string ThdShipCapacityName { get; set; }
/// <summary>
/// 三程ETD
/// </summary>
public Nullable<DateTime> ThdETD { get; set; }
/// <summary>
/// 三程船名
/// </summary>
public string ThdVessel { get; set; }
/// <summary>
/// 三程航次号
/// </summary>
public string ThdVoyno { get; set; }
/// <summary>
/// 三程装货港代码
/// </summary>
public string ThdPortLoadCode { get; set; }
/// <summary>
/// 三程装货港名称
/// </summary>
public string ThdPortLoad { get; set; }
/// <summary>
/// 三程卸货港代码
/// </summary>
public string ThdPortDischargeCode { get; set; }
/// <summary>
/// 三程卸货港名称
/// </summary>
public string ThdPortDischarge { get; set; }
/// <summary>
/// 三程港属类型LOCATION-本港)
/// </summary>
public string ThdTransferLocType { get; set; }
/// <summary>
/// 三程港属类型名称LOCATION-本港)
/// </summary>
public string ThdTransferLogTypeName { get; set; }
/// <summary>
/// 三程航线
/// </summary>
public string ThdLaneName { get; set; }
}
}

Loading…
Cancel
Save