|
|
|
@ -2767,36 +2767,38 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
if (withdoc)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
JObject reqObj = new JObject();
|
|
|
|
|
JObject reqObj = new JObject
|
|
|
|
|
{
|
|
|
|
|
/*网站代号(sw)
|
|
|
|
|
卡号
|
|
|
|
|
密码(md5加密后)
|
|
|
|
|
报关单号
|
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
|
*/
|
|
|
|
|
卡号
|
|
|
|
|
密码(md5加密后)
|
|
|
|
|
报关单号
|
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("yardid", yardid);
|
|
|
|
|
reqObj.Add("swcn", swcn);
|
|
|
|
|
reqObj.Add("swpw", swpw);
|
|
|
|
|
reqObj.Add("cdn", CUSTOMNO);
|
|
|
|
|
reqObj.Add("billno", MBLNO);
|
|
|
|
|
reqObj.Add("unicode", unicode);
|
|
|
|
|
{ "yardid", yardid },
|
|
|
|
|
{ "swcn", swcn },
|
|
|
|
|
{ "swpw", swpw },
|
|
|
|
|
{ "cdn", CUSTOMNO },
|
|
|
|
|
{ "billno", MBLNO },
|
|
|
|
|
{ "unicode", unicode },
|
|
|
|
|
|
|
|
|
|
reqObj.Add("ies", ies);
|
|
|
|
|
{ "ies", ies },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("clearance", clearance);//未结关
|
|
|
|
|
{ "clearance", clearance },//未结关
|
|
|
|
|
|
|
|
|
|
reqObj.Add("cdnType", cdntype);//单据类型
|
|
|
|
|
{ "cdnType", cdntype },//单据类型
|
|
|
|
|
|
|
|
|
|
reqObj.Add("starttime", starttime);//
|
|
|
|
|
{ "starttime", starttime },//
|
|
|
|
|
|
|
|
|
|
reqObj.Add("endtime", endtime);//
|
|
|
|
|
{ "endtime", endtime },//
|
|
|
|
|
|
|
|
|
|
reqObj.Add("etps_category", etps_category);//
|
|
|
|
|
{ "etps_category", etps_category }//
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//reqObj.Add("billno", "KMTCSIN2287541");
|
|
|
|
@ -2811,7 +2813,8 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
}
|
|
|
|
|
if (!withdoc) {
|
|
|
|
|
|
|
|
|
|
JObject reqObj = new JObject();
|
|
|
|
|
JObject reqObj = new JObject
|
|
|
|
|
{
|
|
|
|
|
/*网站代号(sw)
|
|
|
|
|
卡号
|
|
|
|
|
密码(md5加密后)
|
|
|
|
@ -2821,24 +2824,25 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
reqObj.Add("card", swcn);
|
|
|
|
|
reqObj.Add("pwd", swpw);
|
|
|
|
|
reqObj.Add("ies", ies);
|
|
|
|
|
reqObj.Add("clear", clearance);//未结关
|
|
|
|
|
{ "card", swcn },
|
|
|
|
|
{ "pwd", swpw },
|
|
|
|
|
{ "ies", ies },
|
|
|
|
|
{ "clear", clearance },//未结关
|
|
|
|
|
|
|
|
|
|
reqObj.Add("cdnType", cdntype);//单据类型
|
|
|
|
|
{ "cdnType", cdntype },//单据类型
|
|
|
|
|
|
|
|
|
|
reqObj.Add("cdn", CUSTOMNO);
|
|
|
|
|
reqObj.Add("bill", MBLNO);
|
|
|
|
|
reqObj.Add("unicode", unicode);
|
|
|
|
|
{ "cdn", CUSTOMNO },
|
|
|
|
|
{ "bill", MBLNO },
|
|
|
|
|
{ "unicode", unicode },
|
|
|
|
|
|
|
|
|
|
reqObj.Add("start", starttime);//
|
|
|
|
|
{ "start", starttime },//
|
|
|
|
|
|
|
|
|
|
reqObj.Add("end", endtime);//
|
|
|
|
|
{ "end", endtime },//
|
|
|
|
|
|
|
|
|
|
reqObj.Add("startNumber", "0");//
|
|
|
|
|
reqObj.Add("endNumber", "1");//
|
|
|
|
|
reqObj.Add("etps_category", etps_category);//
|
|
|
|
|
{ "startNumber", "0" },//
|
|
|
|
|
{ "endNumber", "1" },//
|
|
|
|
|
{ "etps_category", etps_category }//
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
reqObj.ToString(Newtonsoft.Json.Formatting.None);
|
|
|
|
|
|
|
|
|
@ -3048,13 +3052,54 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (updateseai) {
|
|
|
|
|
|
|
|
|
|
opapplyhead.VESSEL = preDecHeadVo.trafName;
|
|
|
|
|
opapplyhead.VOYNO = preDecHeadVo.cusVoyageNo;
|
|
|
|
|
opapplyhead.PORTDISCHARGE = preDecHeadVo.distinatePortName;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.ENTERP.Trim()))
|
|
|
|
|
opapplyhead.ENTERP = preDecHeadVo.consigneeCname;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.MBLNO.Trim()))
|
|
|
|
|
opapplyhead.MBLNO = preDecHeadVo.billNo;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.CUSTOMNO.Trim()))
|
|
|
|
|
opapplyhead.CUSTOMNO = preDecHeadVo.entryId;
|
|
|
|
|
//opseaihead.GOODSNAME
|
|
|
|
|
opapplyhead.PKGS = Convert.ToInt32(preDecHeadVo.packNo);
|
|
|
|
|
opapplyhead.KGS = Convert.ToDecimal(preDecHeadVo.grossWt);
|
|
|
|
|
opapplyhead.NETWEIGHT = Convert.ToDecimal(preDecHeadVo.netWt);
|
|
|
|
|
opapplyhead.CONTRACTNO = DecHead_Local.ContrNo;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.transMode))
|
|
|
|
|
opapplyhead.TRADETERM = preDecHeadVo.transMode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opapplyhead.ENTERP == null || string.IsNullOrEmpty(opapplyhead.ENTERP.Trim()))
|
|
|
|
|
opapplyhead.ENTERP = DecHead_Local.TradeName;
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.iEDate)) {
|
|
|
|
|
if (ies == "E") {
|
|
|
|
|
if (string.IsNullOrWhiteSpace(opapplyhead.ETD)) {
|
|
|
|
|
opapplyhead.ETD= DateTime.ParseExact(preDecHeadVo.iEDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture).ToString("yyyy-MM-dd");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (ies == "I")
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(opapplyhead.ETA))
|
|
|
|
|
{
|
|
|
|
|
opapplyhead.ETA = DateTime.ParseExact(preDecHeadVo.iEDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture).ToString("yyyy-MM-dd");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (updateseai)
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.trafName))
|
|
|
|
|
opseaihead.VESSEL = preDecHeadVo.trafName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.cusVoyageNo))
|
|
|
|
|
opseaihead.VOYNO = preDecHeadVo.cusVoyageNo;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.iEDate))
|
|
|
|
|
opseaihead.ETD = DateTime.ParseExact(preDecHeadVo.iEDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture).ToString("yyyy-MM-dd") ;
|
|
|
|
|
opseaihead.ETD = DateTime.ParseExact(preDecHeadVo.iEDate, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture).ToString("yyyy-MM-dd");
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.distinatePortName))
|
|
|
|
|
opseaihead.PORTLOAD = preDecHeadVo.distinatePortName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.customMasterName))
|
|
|
|
@ -3070,41 +3115,22 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.entryId))
|
|
|
|
|
opseaihead.CUSTOMNO = preDecHeadVo.entryId;
|
|
|
|
|
//opseaihead.GOODSNAME
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.packNo ))
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.packNo))
|
|
|
|
|
opseaihead.PKGS = Convert.ToInt32(preDecHeadVo.packNo);
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.wrapTypeName))
|
|
|
|
|
opseaihead.KINDPKGS = preDecHeadVo.wrapTypeName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.grossWt))
|
|
|
|
|
opseaihead.KGS = Convert.ToDecimal(preDecHeadVo.grossWt);
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.netWt ))
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.netWt))
|
|
|
|
|
opseaihead.NETWEIGHT = Convert.ToDecimal(preDecHeadVo.netWt);
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.transMode))
|
|
|
|
|
opseaihead.TRADETERM = preDecHeadVo.transMode;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.dDate))
|
|
|
|
|
opseaihead.UPDATETIME = preDecHeadVo.dDate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//opseaihead.CUSTOMDATE=
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
opapplyhead.VESSEL = preDecHeadVo.trafName;
|
|
|
|
|
opapplyhead.VOYNO = preDecHeadVo.cusVoyageNo;
|
|
|
|
|
opapplyhead.PORTDISCHARGE = preDecHeadVo.distinatePortName;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.ENTERP.Trim()))
|
|
|
|
|
opapplyhead.ENTERP = preDecHeadVo.consigneeCname;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.MBLNO.Trim()))
|
|
|
|
|
opapplyhead.MBLNO = preDecHeadVo.billNo;
|
|
|
|
|
if (string.IsNullOrEmpty(opapplyhead.CUSTOMNO.Trim()))
|
|
|
|
|
opapplyhead.CUSTOMNO = preDecHeadVo.entryId;
|
|
|
|
|
//opseaihead.GOODSNAME
|
|
|
|
|
opapplyhead.PKGS = Convert.ToInt32(preDecHeadVo.packNo);
|
|
|
|
|
opapplyhead.KGS = Convert.ToDecimal(preDecHeadVo.grossWt);
|
|
|
|
|
opapplyhead.NETWEIGHT = Convert.ToDecimal(preDecHeadVo.netWt);
|
|
|
|
|
opapplyhead.CONTRACTNO = DecHead_Local.ContrNo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opapplyhead.ENTERP == null || string.IsNullOrEmpty(opapplyhead.ENTERP.Trim()))
|
|
|
|
|
opapplyhead.ENTERP = DecHead_Local.TradeName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//opapplyhead.RelId
|
|
|
|
|
|
|
|
|
@ -3296,6 +3322,8 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
opapplyhead.CARGOVALUE = goodsvalue.ToString();
|
|
|
|
|
|
|
|
|
|
if (updateseai)
|
|
|
|
|
{
|
|
|
|
|
opseaihead.IMPORTVALUE = goodsvalue;
|
|
|
|
|