|
|
|
@ -1798,34 +1798,34 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
if (headData.HBLNO.Trim() == "" || headData.HBLNO == null)
|
|
|
|
|
{
|
|
|
|
|
var billnosethblno = MsSysBillNoSetDAL.GetData("OPLBNAME='海运出口' AND RULEBLNO='分提单号' ", companyid);
|
|
|
|
|
if (billnosethblno.BILLTYPE != "" && billnosethblno.ISAUTO == "1")
|
|
|
|
|
{
|
|
|
|
|
if (billnosethblno.CUSTOMHEAD != "")
|
|
|
|
|
{
|
|
|
|
|
var HBLCUSTOMHEAD = billnosethblno.CUSTOMHEAD;
|
|
|
|
|
var bssource = BasicDataRefDAL.GetSourceData("SOURCENAME='" + headData.BSSOURCE + "'");
|
|
|
|
|
var lanelist = BasicDataRefDAL.GetCodeLaneList();
|
|
|
|
|
var lane = lanelist.Find(x => x.LANE == headData.LANE);
|
|
|
|
|
var bstypelist = PubSysDAL.GetEnumValueList(97042, "");
|
|
|
|
|
var bstype = bstypelist.Find(x => x.EnumValueName == headData.BLTYPE);
|
|
|
|
|
HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
if (lane != null)
|
|
|
|
|
HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[LN]", lane.LANEID);
|
|
|
|
|
if (bstype != null)
|
|
|
|
|
HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BT]", bstype.EnumValueName_2);
|
|
|
|
|
// HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
// HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
|
|
|
|
|
var hblno = MsSysBillNoSetDAL.GetBillNoHblno(billnosethblno, headData.ETD.ToString().Trim(), headData.ACCDATE.ToString().Trim(), HBLCUSTOMHEAD);
|
|
|
|
|
headData.HBLNO = hblno;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var hblno = MsSysBillNoSetDAL.GetBillNo(billnosethblno, headData.ETD.ToString().Trim(), headData.ACCDATE.ToString().Trim(), "", headData.OP, headData.SALECORPID);
|
|
|
|
|
headData.HBLNO = hblno;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//var billnosethblno = MsSysBillNoSetDAL.GetData("OPLBNAME='海运出口' AND RULEBLNO='分提单号' ", companyid);
|
|
|
|
|
//if (billnosethblno.BILLTYPE != "" && billnosethblno.ISAUTO == "1")
|
|
|
|
|
//{
|
|
|
|
|
// if (billnosethblno.CUSTOMHEAD != "")
|
|
|
|
|
// {
|
|
|
|
|
// var HBLCUSTOMHEAD = billnosethblno.CUSTOMHEAD;
|
|
|
|
|
// var bssource = BasicDataRefDAL.GetSourceData("SOURCENAME='" + headData.BSSOURCE + "'");
|
|
|
|
|
// var lanelist = BasicDataRefDAL.GetCodeLaneList();
|
|
|
|
|
// var lane = lanelist.Find(x => x.LANE == headData.LANE);
|
|
|
|
|
// var bstypelist = PubSysDAL.GetEnumValueList(97042, "");
|
|
|
|
|
// var bstype = bstypelist.Find(x => x.EnumValueName == headData.BLTYPE);
|
|
|
|
|
// HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
// if (lane != null)
|
|
|
|
|
// HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[LN]", lane.LANEID);
|
|
|
|
|
// if (bstype != null)
|
|
|
|
|
// HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BT]", bstype.EnumValueName_2);
|
|
|
|
|
// // HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
// // HBLCUSTOMHEAD = HBLCUSTOMHEAD.Replace("[BS]", bssource.SOURCECODE);
|
|
|
|
|
|
|
|
|
|
// var hblno = MsSysBillNoSetDAL.GetBillNoHblno(billnosethblno, headData.ETD.ToString().Trim(), headData.ACCDATE.ToString().Trim(), HBLCUSTOMHEAD);
|
|
|
|
|
// headData.HBLNO = hblno;
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// var hblno = MsSysBillNoSetDAL.GetBillNo(billnosethblno, headData.ETD.ToString().Trim(), headData.ACCDATE.ToString().Trim(), "", headData.OP, headData.SALECORPID);
|
|
|
|
|
// headData.HBLNO = hblno;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -2254,7 +2254,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var strall = Encoding.Default.GetString(t).Replace("’", "'").Replace("‐", "-");
|
|
|
|
|
var strall = Encoding.Default.GetString(t).Replace("’", "'").Replace("‐", "-").Replace("–", "-");
|
|
|
|
|
return strall;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|