YingHang
hanxuntao 6 months ago
commit 0f5c23a970

@ -2204,6 +2204,10 @@ SELECT @ps_BillNo as N'billno'";
if (ctnlist != null && ctnlist.Count > 0) if (ctnlist != null && ctnlist.Count > 0)
DS6Data.t_op_ctn.RemoveRange(ctnlist); DS6Data.t_op_ctn.RemoveRange(ctnlist);
var newctnList = head.GetCtnList(newhead.); var newctnList = head.GetCtnList(newhead.);
if (newctnList != null && newctnList.Count > 0) { if (newctnList != null && newctnList.Count > 0) {
DS6Data.t_op_ctn.AddRange(newctnList); DS6Data.t_op_ctn.AddRange(newctnList);
//logger.Debug($"新增ctn{newhead.主提单号};{newhead.DJYID}"); //logger.Debug($"新增ctn{newhead.主提单号};{newhead.DJYID}");
@ -2675,7 +2679,7 @@ SELECT @ps_BillNo as N'billno'";
newhead. = head.kgs.ToString() + "KGS"; newhead. = head.kgs.ToString() + "KGS";
newhead. = head.cbm.ToString() + "CBM"; newhead. = head.cbm.ToString() + "CBM";
newhead. = "";
if (ctnList != null && ctnList.Count > 0) { if (ctnList != null && ctnList.Count > 0) {
var = 0; var = 0;
@ -2714,7 +2718,8 @@ SELECT @ps_BillNo as N'billno'";
// newhead.货物尺码 += ctn.尺码.ToString() + "CBM"; // newhead.货物尺码 += ctn.尺码.ToString() + "CBM";
//} //}
} }
newhead. = $"提箱:{提箱}/{箱量} 返场:{返场}/{箱量}"; //20240612 改为依据返回报文内的数量直接变更
//newhead.提箱返场状态 = $"提箱:{提箱}/{箱量} 返场:{返场}/{箱量}";
} }
@ -3116,6 +3121,20 @@ SELECT @ps_BillNo as N'billno'";
return null; return null;
} }
public int Get( string )
{
var result = 0;
if (StatusLogs != null && StatusLogs.Exists(x => x.Status == ))
{
var = StatusLogs.First(x => x.Status == );
if (.Details != null )
{
result = .Details.Count();
}
}
return result;
}
class item class item
{ {
@ -3194,6 +3213,16 @@ SELECT @ps_BillNo as N'billno'";
return result; return result;
} }
public int get()
{
var result = 0;
foreach (var item in )
{
result += item.;
}
return result;
}
#region 箱型对应 #region 箱型对应
public int get1() public int get1()
{ {
@ -3749,6 +3778,14 @@ SELECT @ps_BillNo as N'billno'";
result. = Get(); result. = Get();
//20240612 改为依据返回报文内的数量直接变更
result. = "";
var = Get("提箱");
var = Get("返场");
var = .get();
result. = $"提箱:{提箱}/{箱量} 返场:{返场}/{箱量}";
return result; return result;
} }
@ -3807,6 +3844,15 @@ SELECT @ps_BillNo as N'billno'";
return result; return result;
} }
public static string GetCtnStatus()
{
var result = "";
return result;
}
public string dealGoodsinfo(string goodscode, string goodsname,string description,string hscode) { public string dealGoodsinfo(string goodscode, string goodsname,string description,string hscode) {
var result = ""; var result = "";

@ -369,9 +369,14 @@ namespace DSWeb.Areas.CommMng.DAL
var OPUserList = cdc.VW_user.Where(x => x.SHOWNAME == head.op).ToList(); var OPUserList = cdc.VW_user.Where(x => x.SHOWNAME == head.op).ToList();
if (OPUserList != null && OPUserList.Count > 0) { if (OPUserList != null && OPUserList.Count > 0)
{
OPUser = OPUserList[0]; OPUser = OPUserList[0];
} }
else {
SaveLog($"大简云操作[{head.op}]在东胜系统中不存在", "", "接收大简云订舱", "错误");
return;
}
var currentBill = DSWeb.MvcShipping.DAL.MsOpSeaeDAL.MsOpSeaeDAL.GetData($" B.DJYID={head.Id}", OPUser.USERID); var currentBill = DSWeb.MvcShipping.DAL.MsOpSeaeDAL.MsOpSeaeDAL.GetData($" B.DJYID={head.Id}", OPUser.USERID);

File diff suppressed because one or more lines are too long

@ -2817,13 +2817,13 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
if (BasicDataRefDAL.webconfig("FH")) { if (BasicDataRefDAL.webconfig("FH")) {
strSql.Append(" union all "); strSql.Append(" union all ");
strSql.Append(" select 20GP DW,0,0 "); strSql.Append(" select '20GP' DW,0,0 ");
strSql.Append(" union all "); strSql.Append(" union all ");
strSql.Append(" select 20TK DW,0,0 "); strSql.Append(" select '20TK' DW,0,0 ");
strSql.Append(" union all "); strSql.Append(" union all ");
strSql.Append(" select 40GP DW,0,0 "); strSql.Append(" select '40GP' DW,0,0 ");
strSql.Append(" union all "); strSql.Append(" union all ");
strSql.Append(" select 40HC DW,0,0 "); strSql.Append(" select '40HC' DW,0,0 ");
} }
return SetWMSINUnitData(strSql); return SetWMSINUnitData(strSql);

@ -1985,7 +1985,12 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
{ {
foreach (var orderfee in orderfeeList) foreach (var orderfee in orderfeeList)
{ {
MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "","","RMB","车辆成本"); //MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "","","RMB","车辆成本");
var newfee = ChFeeHelper.getChFee(USERID, headData.gId, "车辆费用", 2, orderfee.FEENAME, orderfee.AMOUNT, "单次", 1, "", "","");
newfee.BXGID = "任务生成";
cdc.ch_fee.Add(newfee);
} }
task.ISCOMPLETE = 1; task.ISCOMPLETE = 1;
cdc.op_task.AddOrUpdate(task); cdc.op_task.AddOrUpdate(task);
@ -2018,6 +2023,7 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
//MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, ""); //MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "");
var newfee = ChFeeHelper.getChFee(USERID, headData.gId, cust, 2, feename, (decimal)Fuel.JYAMOUNT, "单次", (decimal)Fuel.JYCOUNT, "", Fuel.JYTYPE+" "+Fuel.REMARK); var newfee = ChFeeHelper.getChFee(USERID, headData.gId, cust, 2, feename, (decimal)Fuel.JYAMOUNT, "单次", (decimal)Fuel.JYCOUNT, "", Fuel.JYTYPE+" "+Fuel.REMARK);
newfee.BXGID = "任务生成";
cdc.ch_fee.Add(newfee); cdc.ch_fee.Add(newfee);
} }
@ -2058,7 +2064,7 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
return result; return result;
} }
var feelist = cdc.ch_fee.Where(x => x.BSNO == headData.gId ).ToList(); var feelist = cdc.ch_fee.Where(x => x.BSNO == headData.gId && x.BXGID=="任务生成" ).ToList();
if (feelist != null && feelist.Count > 0) { if (feelist != null && feelist.Count > 0) {

Loading…
Cancel
Save