|
|
@ -26,6 +26,7 @@ using DSWeb.TruckMng.Helper.Repository;
|
|
|
|
using DSWeb.MvcShipping.DAL.MsInfoClient;
|
|
|
|
using DSWeb.MvcShipping.DAL.MsInfoClient;
|
|
|
|
using DSWeb.Areas.MvcShipping.Models.Message.VGM;
|
|
|
|
using DSWeb.Areas.MvcShipping.Models.Message.VGM;
|
|
|
|
using DSWeb.Common.DB;
|
|
|
|
using DSWeb.Common.DB;
|
|
|
|
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -206,6 +207,15 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 主分单保存
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="opstatus"></param>
|
|
|
|
|
|
|
|
/// <param name="data"></param>
|
|
|
|
|
|
|
|
/// <param name="CargoBody"></param>
|
|
|
|
|
|
|
|
/// <param name="CargoDelBody"></param>
|
|
|
|
|
|
|
|
/// <param name="BSNO"></param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
private DBResult DoSave ( string opstatus, string data, string CargoBody, string CargoDelBody, out string BSNO )
|
|
|
|
private DBResult DoSave ( string opstatus, string data, string CargoBody, string CargoDelBody, out string BSNO )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -216,6 +226,21 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
if (headData.BLTYPE == "国内分单" && string.IsNullOrWhiteSpace( headData.HBLNO))
|
|
|
|
if (headData.BLTYPE == "国内分单" && string.IsNullOrWhiteSpace( headData.HBLNO))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
////增加判断 如果主单号与现存的其它分单主单号一样 禁止保存
|
|
|
|
|
|
|
|
//var condition = $" B.BLTYPE='国内分单' and B.MBLNO='{headData.MBLNO}' and B.MBLNO<>'' and B.BSNO<>'{headData.BSNO}'";
|
|
|
|
|
|
|
|
//if (opstatus == "add")
|
|
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
// condition = $" B.BLTYPE='国内分单' and B.MBLNO='{headData.MBLNO}' and B.MBLNO<>'' ";
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
//var oldhead = MsOpAirnDAL.GetData(condition);
|
|
|
|
|
|
|
|
//if (!string.IsNullOrWhiteSpace(oldhead.MBLNO)) {
|
|
|
|
|
|
|
|
// //当前存在一个主单号相同的分单 不允许保存
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// result.SetErrorInfo("主单号与现有业务重复,不允许保存!");
|
|
|
|
|
|
|
|
// BSNO = "";
|
|
|
|
|
|
|
|
// return result;
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
headData.HBLNO = PubSysDAL.GetBillNo("0201");
|
|
|
|
headData.HBLNO = PubSysDAL.GetBillNo("0201");
|
|
|
|
//headData.CREATETIME = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
|
|
|
|
//headData.CREATETIME = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
|
|
|
|
}
|
|
|
|
}
|
|
|
|