|
|
|
@ -186,7 +186,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
if (headData.ETD == "") headData.ETD = null;
|
|
|
|
|
if (headData.ETD2 == "") headData.ETD2 = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
if (headData.STLDATE == "") headData.STLDATE = null;
|
|
|
|
|
|
|
|
|
|
if (headData.ISSUEDATE == "") headData.ISSUEDATE = null;
|
|
|
|
@ -610,7 +610,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
if (OrderData.CBM == "") OrderData.CBM = "0";
|
|
|
|
|
if (OrderData.ETD == "") OrderData.ETD = null;
|
|
|
|
|
if (OrderData.ETD2 == "") OrderData.ETD2 = null;
|
|
|
|
|
if (OrderData.SUBMITDATE == "") OrderData.SUBMITDATE = null;
|
|
|
|
|
//if (OrderData.SUBMITDATE == "") OrderData.SUBMITDATE = null;
|
|
|
|
|
if (OrderData.STLDATE == "") OrderData.STLDATE = null;
|
|
|
|
|
|
|
|
|
|
if (OrderData.ISSUEDATE == "") OrderData.ISSUEDATE = null;
|
|
|
|
@ -919,7 +919,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
OrderData.ModelUIStatus = "E";
|
|
|
|
|
if (OrderData.ETD == "") OrderData.ETD = null;
|
|
|
|
|
if (OrderData.ETD2 == "") OrderData.ETD2 = null;
|
|
|
|
|
if (OrderData.SUBMITDATE == "") OrderData.SUBMITDATE = null;
|
|
|
|
|
//if (OrderData.SUBMITDATE == "") OrderData.SUBMITDATE = null;
|
|
|
|
|
if (OrderData.STLDATE == "") OrderData.STLDATE = null;
|
|
|
|
|
if (OrderData.CONFIRMDATE == "") OrderData.CONFIRMDATE = null;
|
|
|
|
|
if (OrderData.AUDITDATE == "") OrderData.AUDITDATE = null;
|
|
|
|
@ -1069,7 +1069,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
if (headData.STLDATE == "") headData.STLDATE = null;
|
|
|
|
|
|
|
|
|
|
if (headData.ISSUEDATE == "") headData.ISSUEDATE = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
// if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//var cntr = "";
|
|
|
|
|
//if (bodyList != null)
|
|
|
|
|
//{
|
|
|
|
@ -1268,7 +1268,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
if (headData.STLDATE == "") headData.STLDATE = null;
|
|
|
|
|
|
|
|
|
|
if (headData.ISSUEDATE == "") headData.ISSUEDATE = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
var cntr = "";
|
|
|
|
|
if (bodyList != null)
|
|
|
|
|
{
|
|
|
|
@ -1436,7 +1436,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
if (headData.ETD == "") headData.ETD = null;
|
|
|
|
|
if (headData.ETD2 == "") headData.ETD2 = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
if (headData.STLDATE == "") headData.STLDATE = null;
|
|
|
|
|
|
|
|
|
|
if (headData.ISSUEDATE == "") headData.ISSUEDATE = null;
|
|
|
|
@ -1465,7 +1465,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
{
|
|
|
|
|
var headData = JsonConvert.Deserialize<MsSeaeOrder>(data);
|
|
|
|
|
//if (!string.IsNullOrEmpty(headData.AUDITOPERATOR))
|
|
|
|
|
headData.AUDITOPERATOR = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
|
headData.AUDITOPERATOR = Convert.ToString(Session["SHOWNAME"]);
|
|
|
|
|
headData.AUDITDATE = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
headData.ORSTATUS = "0";
|
|
|
|
|
headData.DbOperationType = DbOperationType.DbotUpd;
|
|
|
|
@ -1477,7 +1477,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
if (headData.ETD == "") headData.ETD = null;
|
|
|
|
|
if (headData.ETD2 == "") headData.ETD2 = null;
|
|
|
|
|
if (headData.STLDATE == "") headData.STLDATE = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
|
|
|
|
|
if (headData.ISSUEDATE == "") headData.ISSUEDATE = null;
|
|
|
|
|
if (headData.CONFIRMDATE == "") headData.CONFIRMDATE = null;
|
|
|
|
@ -1584,23 +1584,21 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var headData = JsonConvert.Deserialize<MsSeaeOrder>(data);
|
|
|
|
|
DBResult result = null;
|
|
|
|
|
|
|
|
|
|
if (headData.AUDITOPERATOR == "" || headData.AUDITOPERATOR == null)
|
|
|
|
|
if (string.IsNullOrWhiteSpace( headData.AUDITOPERATOR ) || string.IsNullOrWhiteSpace(headData.AUDITOPERATOR2))
|
|
|
|
|
{
|
|
|
|
|
var ORDERAUDITMUSTBE = MsSysParamSetDAL.GetData("PARAMNAME='ORDERAUDITMUSTBE'");
|
|
|
|
|
if (ORDERAUDITMUSTBE.PARAMVALUE == "1")
|
|
|
|
|
{
|
|
|
|
|
//var ORDERAUDITMUSTBE = MsSysParamSetDAL.GetData("PARAMNAME='ORDERAUDITMUSTBE'");
|
|
|
|
|
//if (ORDERAUDITMUSTBE.PARAMVALUE == "1")
|
|
|
|
|
//{
|
|
|
|
|
var jsonRespose2 = new JsonResponse
|
|
|
|
|
{
|
|
|
|
|
Success = false,
|
|
|
|
|
Message = "审核人不能为空!",
|
|
|
|
|
Message = "审核人、订单确认人,均不能为空!",
|
|
|
|
|
Data = ""
|
|
|
|
|
};
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
T_ALL_DA T_ALL_DA = new T_ALL_DA();
|
|
|
|
|
var CUSTSERVICEID = T_ALL_DA.GetStrSQL("GID", "select top 1 GID from [user] where SHOWNAME='" + headData.CUSTSERVICE + "'");
|
|
|
|
|
|
|
|
|
@ -1635,7 +1633,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
if (headData.AUDITDATE == "") headData.AUDITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//提交审核日期
|
|
|
|
|
headData.SUBMITDATE = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
|
|
|
|
|
headData.SUBMITDATE = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
var modb = new ModelObjectDB();
|
|
|
|
|
result = modb.Save(headData);
|
|
|
|
@ -1781,7 +1779,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
if (headData.CONFIRMDATE == "") headData.CONFIRMDATE = null;
|
|
|
|
|
if (headData.AUDITDATE == "") headData.AUDITDATE = null;
|
|
|
|
|
if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
//if (headData.SUBMITDATE == "") headData.SUBMITDATE = null;
|
|
|
|
|
|
|
|
|
|
var modb = new ModelObjectDB();
|
|
|
|
|
DBResult result = modb.Save(headData);
|
|
|
|
|