|
|
|
@ -1463,8 +1463,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
result = MsOpSeaeEdiDAL.CreateCustomList(headList, Convert.ToString(Session["USERID"]), Convert.ToString(Session["SHOWNAME"]), Convert.ToString(Session["COMPANYID"]), path, Convert.ToString(Session["COMPANYNAME"]), dcarrier, iscvessel, ftpset, remarks);
|
|
|
|
|
|
|
|
|
|
//增加费用
|
|
|
|
|
|
|
|
|
|
MakeFee(headList, filetype);
|
|
|
|
|
if(result.Success)
|
|
|
|
|
MakeFee(headList, filetype);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var jsonRespose = new JsonResponse { Success = result.Success, Message = result.Message, Data = result.Data };
|
|
|
|
@ -1502,7 +1502,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="bsnos">业务编号 逗号隔开的文本</param>
|
|
|
|
|
/// <param name="filetype">修改类型 B:新增 E:修改 D:删除</param>
|
|
|
|
|
private void MakeFee(List<MsOpSeae> headlist, string filetype)
|
|
|
|
|
private void MakeFee(List<MsOpSeae> headlist, string filetype,bool isfen=false)
|
|
|
|
|
{
|
|
|
|
|
var cangdaninfo = new CangDanPriceParam();
|
|
|
|
|
|
|
|
|
@ -1512,13 +1512,11 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var amount = 0M;
|
|
|
|
|
if (filetype == "B")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
amount = cangdaninfo.Price1;
|
|
|
|
|
}
|
|
|
|
|
if (filetype == "E")
|
|
|
|
|
{
|
|
|
|
|
amount = cangdaninfo.Price2;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (filetype == "D")
|
|
|
|
|
{
|
|
|
|
@ -1526,7 +1524,27 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
}
|
|
|
|
|
var USERID = Convert.ToString(Session["USERID"]);
|
|
|
|
|
|
|
|
|
|
MsChFeeDAL.MakeNewFee(USERID, item.BSNO, cangdaninfo.DJYName, 2, "舱单费", amount,"单票");
|
|
|
|
|
var 单量 = 1;
|
|
|
|
|
|
|
|
|
|
if (isfen)
|
|
|
|
|
{
|
|
|
|
|
if (filetype == "B")
|
|
|
|
|
{
|
|
|
|
|
amount = cangdaninfo.FenPrice1;
|
|
|
|
|
}
|
|
|
|
|
if (filetype == "E")
|
|
|
|
|
{
|
|
|
|
|
amount = cangdaninfo.FenPrice2;
|
|
|
|
|
}
|
|
|
|
|
if (filetype == "D")
|
|
|
|
|
{
|
|
|
|
|
amount = cangdaninfo.FenPrice3;
|
|
|
|
|
}
|
|
|
|
|
var 分单列表 = MsOpSeaeDAL.GetManifestList($" BSNO='{item.BSNO}' ");
|
|
|
|
|
单量 = 分单列表.Count();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MsChFeeDAL.MakeNewFee(USERID, item.BSNO, cangdaninfo.DJYName, "其它", 2, "舱单费", amount * 单量, "单票", 单量);
|
|
|
|
|
|
|
|
|
|
if (cangdaninfo.NeedYingFu) {
|
|
|
|
|
|
|
|
|
@ -1543,7 +1561,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
amount = cangdaninfo.Price6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MsChFeeDAL.MakeNewFee(USERID, item.BSNO, item.CUSTOMERNAME, 1, "舱单费", amount, "单票");
|
|
|
|
|
MsChFeeDAL.MakeNewFee(USERID, item.BSNO, item.CUSTOMERNAME, "其它", 1, "舱单费", amount, "单票", 单量);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1560,6 +1578,10 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
public decimal Price4 { get; set; } = 35M;
|
|
|
|
|
public decimal Price5 { get; set; } = 10M;
|
|
|
|
|
public decimal Price6 { get; set; } = 0M;
|
|
|
|
|
|
|
|
|
|
public decimal FenPrice1 { get; set; } = 35M;
|
|
|
|
|
public decimal FenPrice2 { get; set; } = 10M;
|
|
|
|
|
public decimal FenPrice3 { get; set; } = 0M;
|
|
|
|
|
public CangDanPriceParam() {
|
|
|
|
|
var paramvalue = MsSysParamSetDAL.GetSysParamValue("CangDanPrice");
|
|
|
|
|
|
|
|
|
@ -1573,6 +1595,9 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
Price4 = Convert.ToDecimal(paramvalueList[5]);
|
|
|
|
|
Price5 = Convert.ToDecimal(paramvalueList[6]);
|
|
|
|
|
Price6 = Convert.ToDecimal(paramvalueList[7]);
|
|
|
|
|
Price4 = Convert.ToDecimal(paramvalueList[8]);
|
|
|
|
|
Price5 = Convert.ToDecimal(paramvalueList[9]);
|
|
|
|
|
Price6 = Convert.ToDecimal(paramvalueList[10]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1824,6 +1849,11 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
var ftpset = MsCodeFtpSetDAL.GetData("EDINAME=''", Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
result = MsOpSeaeEdiDAL.CreateCustomListBill_HBLNO(headList, billList, Convert.ToString(Session["USERID"]), Convert.ToString(Session["SHOWNAME"]), Convert.ToString(Session["COMPANYID"]), path, Convert.ToString(Session["COMPANYNAME"]), dcarrier, iscvessel, ftpset, remarks, filetype);
|
|
|
|
|
|
|
|
|
|
//增加费用
|
|
|
|
|
if (result.Success)
|
|
|
|
|
MakeFee(headList, filetype);
|
|
|
|
|
|
|
|
|
|
var jsonRespose = new JsonResponse { Success = result.Success, Message = result.Message, Data = result.Data };
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
}
|
|
|
|
|