|
|
@ -2767,36 +2767,38 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
if (withdoc)
|
|
|
|
if (withdoc)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
JObject reqObj = new JObject();
|
|
|
|
JObject reqObj = new JObject
|
|
|
|
/*网站代号(sw)
|
|
|
|
{
|
|
|
|
卡号
|
|
|
|
/*网站代号(sw)
|
|
|
|
密码(md5加密后)
|
|
|
|
卡号
|
|
|
|
报关单号
|
|
|
|
密码(md5加密后)
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
报关单号
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
*/
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("yardid", yardid);
|
|
|
|
{ "yardid", yardid },
|
|
|
|
reqObj.Add("swcn", swcn);
|
|
|
|
{ "swcn", swcn },
|
|
|
|
reqObj.Add("swpw", swpw);
|
|
|
|
{ "swpw", swpw },
|
|
|
|
reqObj.Add("cdn", CUSTOMNO);
|
|
|
|
{ "cdn", CUSTOMNO },
|
|
|
|
reqObj.Add("billno", MBLNO);
|
|
|
|
{ "billno", MBLNO },
|
|
|
|
reqObj.Add("unicode", unicode);
|
|
|
|
{ "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");
|
|
|
|
//reqObj.Add("billno", "KMTCSIN2287541");
|
|
|
@ -2811,34 +2813,36 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!withdoc) {
|
|
|
|
if (!withdoc) {
|
|
|
|
|
|
|
|
|
|
|
|
JObject reqObj = new JObject();
|
|
|
|
JObject reqObj = new JObject
|
|
|
|
/*网站代号(sw)
|
|
|
|
{
|
|
|
|
卡号
|
|
|
|
/*网站代号(sw)
|
|
|
|
密码(md5加密后)
|
|
|
|
卡号
|
|
|
|
报关单号
|
|
|
|
密码(md5加密后)
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
报关单号
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
进出口标志(只有两个值) I(大写i): 进口, E: 出口
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
是否结关(只有两个值) 1:是,0:否
|
|
|
|
*/
|
|
|
|
string swcn = "2020030084935", string swpw = "8a5889ea8e53b257e2a3ba053979ee64"
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("card", swcn);
|
|
|
|
{ "card", swcn },
|
|
|
|
reqObj.Add("pwd", swpw);
|
|
|
|
{ "pwd", swpw },
|
|
|
|
reqObj.Add("ies", ies);
|
|
|
|
{ "ies", ies },
|
|
|
|
reqObj.Add("clear", clearance);//未结关
|
|
|
|
{ "clear", clearance },//未结关
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("cdnType", cdntype);//单据类型
|
|
|
|
{ "cdnType", cdntype },//单据类型
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("cdn", CUSTOMNO);
|
|
|
|
{ "cdn", CUSTOMNO },
|
|
|
|
reqObj.Add("bill", MBLNO);
|
|
|
|
{ "bill", MBLNO },
|
|
|
|
reqObj.Add("unicode", unicode);
|
|
|
|
{ "unicode", unicode },
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("start", starttime);//
|
|
|
|
{ "start", starttime },//
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("end", endtime);//
|
|
|
|
{ "end", endtime },//
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.Add("startNumber", "0");//
|
|
|
|
{ "startNumber", "0" },//
|
|
|
|
reqObj.Add("endNumber", "1");//
|
|
|
|
{ "endNumber", "1" },//
|
|
|
|
reqObj.Add("etps_category", etps_category);//
|
|
|
|
{ "etps_category", etps_category }//
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
reqObj.ToString(Newtonsoft.Json.Formatting.None);
|
|
|
|
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))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.trafName))
|
|
|
|
opseaihead.VESSEL = preDecHeadVo.trafName;
|
|
|
|
opseaihead.VESSEL = preDecHeadVo.trafName;
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.cusVoyageNo))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.cusVoyageNo))
|
|
|
|
opseaihead.VOYNO = preDecHeadVo.cusVoyageNo;
|
|
|
|
opseaihead.VOYNO = preDecHeadVo.cusVoyageNo;
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.iEDate))
|
|
|
|
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))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.distinatePortName))
|
|
|
|
opseaihead.PORTLOAD = preDecHeadVo.distinatePortName;
|
|
|
|
opseaihead.PORTLOAD = preDecHeadVo.distinatePortName;
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.customMasterName))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.customMasterName))
|
|
|
@ -3070,41 +3115,22 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.entryId))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.entryId))
|
|
|
|
opseaihead.CUSTOMNO = preDecHeadVo.entryId;
|
|
|
|
opseaihead.CUSTOMNO = preDecHeadVo.entryId;
|
|
|
|
//opseaihead.GOODSNAME
|
|
|
|
//opseaihead.GOODSNAME
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.packNo ))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.packNo))
|
|
|
|
opseaihead.PKGS = Convert.ToInt32(preDecHeadVo.packNo);
|
|
|
|
opseaihead.PKGS = Convert.ToInt32(preDecHeadVo.packNo);
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.wrapTypeName))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.wrapTypeName))
|
|
|
|
opseaihead.KINDPKGS = preDecHeadVo.wrapTypeName;
|
|
|
|
opseaihead.KINDPKGS = preDecHeadVo.wrapTypeName;
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.grossWt))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.grossWt))
|
|
|
|
opseaihead.KGS = Convert.ToDecimal(preDecHeadVo.grossWt);
|
|
|
|
opseaihead.KGS = Convert.ToDecimal(preDecHeadVo.grossWt);
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.netWt ))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.netWt))
|
|
|
|
opseaihead.NETWEIGHT = Convert.ToDecimal(preDecHeadVo.netWt);
|
|
|
|
opseaihead.NETWEIGHT = Convert.ToDecimal(preDecHeadVo.netWt);
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.transMode))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.transMode))
|
|
|
|
opseaihead.TRADETERM = preDecHeadVo.transMode;
|
|
|
|
opseaihead.TRADETERM = preDecHeadVo.transMode;
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.dDate))
|
|
|
|
if (!string.IsNullOrWhiteSpace(preDecHeadVo.dDate))
|
|
|
|
opseaihead.UPDATETIME = preDecHeadVo.dDate;
|
|
|
|
opseaihead.UPDATETIME = preDecHeadVo.dDate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//opseaihead.CUSTOMDATE=
|
|
|
|
//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
|
|
|
|
//opapplyhead.RelId
|
|
|
|
|
|
|
|
|
|
|
@ -3296,6 +3322,8 @@ namespace DSWeb.SoftMng.Controllers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
opapplyhead.CARGOVALUE = goodsvalue.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
if (updateseai)
|
|
|
|
if (updateseai)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
opseaihead.IMPORTVALUE = goodsvalue;
|
|
|
|
opseaihead.IMPORTVALUE = goodsvalue;
|
|
|
|