|
|
@ -111,6 +111,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
head.CUSTSERVICE = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
head.CUSTSERVICE = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
head.SALE = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
head.SALE = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
head.SALEDEPT = Convert.ToString(Session["DEPTNAME"]);
|
|
|
|
head.SALEDEPT = Convert.ToString(Session["DEPTNAME"]);
|
|
|
|
|
|
|
|
head.BSNO = "topseae" + Guid.NewGuid().ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (handle == "copyadd") {
|
|
|
|
if (handle == "copyadd") {
|
|
|
|
head.INPUTBY = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
head.INPUTBY = Convert.ToString(Session["SHOWNAME"]);
|
|
|
@ -137,6 +138,12 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
public ContentResult Save(string opstatus, string data, string data2, string data3, string body)
|
|
|
|
public ContentResult Save(string opstatus, string data, string data2, string data3, string body)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Convert.ToString(Session["COMPANYID"]).ToString().Trim() == "" || Convert.ToString(Session["USERID"]).ToString().Trim() == "" || Convert.ToString(Session["CODENAME"]).ToString().Trim() == "" || Convert.ToString(Session["SHOWNAME"]).ToString().Trim() == "" || Convert.ToString(Session["DEPTNAME"]).ToString().Trim() == "")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var jsonRespose2 = new JsonResponse { Success = false, Message = "登录超时,请退出系统重新登录!" };
|
|
|
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var headData = JsonConvert.Deserialize<MsSeaeOrder>(data.Replace("}", ",") + data2.Replace("{", "").Replace("}", ",") + data3.Replace("{", ""));
|
|
|
|
var headData = JsonConvert.Deserialize<MsSeaeOrder>(data.Replace("}", ",") + data2.Replace("{", "").Replace("}", ",") + data3.Replace("{", ""));
|
|
|
|
var bodyList = JsonConvert.Deserialize<List<MsSeaeOrderCtn>>(body);
|
|
|
|
var bodyList = JsonConvert.Deserialize<List<MsSeaeOrderCtn>>(body);
|
|
|
|
var isPost = true;
|
|
|
|
var isPost = true;
|
|
|
@ -152,7 +159,10 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
errorstr = "主提单号重复";
|
|
|
|
errorstr = "主提单号重复";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(headData.BSNO)) {
|
|
|
|
|
|
|
|
headData.BSNO = "topseae" + System.Guid.NewGuid().ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opstatus == "add")
|
|
|
|
if (opstatus == "add")
|
|
|
|