|
|
|
@ -75,6 +75,7 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
postModel.deliveryName = InttrEdi.BSLIST[0].PLACEDELIVERY;
|
|
|
|
|
postModel.porId = InttrEdi.BSLIST[0].PLACERECEIPTID;
|
|
|
|
|
postModel.porName = InttrEdi.BSLIST[0].PLACERECEIPT;
|
|
|
|
|
postModel.poWtatName = InttrEdi.BSLIST[0].TRANSPORT;
|
|
|
|
|
postModel.vesselName = InttrEdi.BSLIST[0].VESSEL;
|
|
|
|
|
postModel.lineCode = InttrEdi.BSLIST[0].ESLLINECODE;
|
|
|
|
|
postModel.voyNo = InttrEdi.BSLIST[0].VOYNO;
|
|
|
|
@ -102,10 +103,11 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
postModel.weight = InttrEdi.BSLIST[0].KGS;
|
|
|
|
|
postModel.cube = InttrEdi.BSLIST[0].CBM;
|
|
|
|
|
postModel.packages = InttrEdi.BSLIST[0].PKGS;
|
|
|
|
|
postModel.packingType = InttrEdi.BSLIST[0].KINDPKGS;
|
|
|
|
|
postModel.packageDesc = InttrEdi.BSLIST[0].KINDPKGS;
|
|
|
|
|
postModel.marks = InttrEdi.BSLIST[0].MARKS;
|
|
|
|
|
postModel.cargoDesc = InttrEdi.BSLIST[0].DESCRIPTION;
|
|
|
|
|
postModel.cargoType = InttrEdi.BSLIST[0].CARGOID;
|
|
|
|
|
postModel.cargoType = CargoIdStr(InttrEdi.BSLIST[0].CARGOID);
|
|
|
|
|
postModel.isDanger = InttrEdi.BSLIST[0].CARGOID == "D" ? true : false;
|
|
|
|
|
postModel.isRf = InttrEdi.BSLIST[0].CARGOID == "R" ? true : false;
|
|
|
|
|
postModel.contactInfo = InttrEdi.BSLIST[0].OpEmail;
|
|
|
|
@ -128,6 +130,7 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
{
|
|
|
|
|
postModel.extras = new List<SitcApiPostModelExtra>();
|
|
|
|
|
SitcApiPostModelExtra e = new SitcApiPostModelExtra();
|
|
|
|
|
e.ctype = "RF";
|
|
|
|
|
e.tempMin = InttrEdi.BSLIST[0].TEMPMIN;
|
|
|
|
|
e.tempMax = InttrEdi.BSLIST[0].TEMPMAX;
|
|
|
|
|
e.tempSetting = InttrEdi.BSLIST[0].TEMPSET;
|
|
|
|
@ -177,7 +180,31 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 货物类型翻译
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cargoId"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private static string CargoIdStr(string cargoId)
|
|
|
|
|
{
|
|
|
|
|
if (cargoId == "S")
|
|
|
|
|
{
|
|
|
|
|
return "ORDI";
|
|
|
|
|
}
|
|
|
|
|
else if (cargoId == "R")
|
|
|
|
|
{
|
|
|
|
|
return "REEF";
|
|
|
|
|
}
|
|
|
|
|
else if (cargoId == "D")
|
|
|
|
|
{
|
|
|
|
|
return "DNGR";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class SitcApiPostModel
|
|
|
|
|
{
|
|
|
|
@ -226,6 +253,11 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string porName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 中转港名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string poWtatName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船名
|
|
|
|
|
/// </summary>
|
|
|
|
@ -361,6 +393,11 @@ namespace Myshipping.Application.EDI.SITC
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int packages { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 包装类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string packingType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 包装类型
|
|
|
|
|
/// </summary>
|
|
|
|
|