|
|
@ -2188,6 +2188,7 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
|
|
|
|
|
|
|
|
logger.Debug($"更新:{newhead.主提单号};{newhead.DJYID}");
|
|
|
|
logger.Debug($"更新:{newhead.主提单号};{newhead.DJYID}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AfterSave(newhead.编号);
|
|
|
|
//DS6Data.SaveChanges();
|
|
|
|
//DS6Data.SaveChanges();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2301,9 +2302,10 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mark = 3.3m;
|
|
|
|
mark = 3.3m;
|
|
|
|
logger.Debug($"新增:{newhead.主提单号};{newhead.DJYID}");
|
|
|
|
|
|
|
|
DS6Data.SaveChanges();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DS6Data.SaveChanges();
|
|
|
|
|
|
|
|
logger.Debug($"新增:{newhead.主提单号};{newhead.DJYID}");
|
|
|
|
|
|
|
|
AfterSave(newhead.编号);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2327,6 +2329,28 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void AfterSave(string 编号) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//20230717 保存业务后,执行一个存储过程
|
|
|
|
|
|
|
|
using (DS6DataContext context = new DS6DataContext())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SqlParameter bsno = new SqlParameter("@bsno", 编号);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int count = context.Database.ExecuteSqlCommand("exec p_exec_accmonth @bsno", bsno);
|
|
|
|
|
|
|
|
context.SaveChanges();
|
|
|
|
|
|
|
|
logger.Debug($"AfterSave:{编号};{count}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
|
|
|
var str=JsonConvert.SerializeObject(e);
|
|
|
|
|
|
|
|
logger.Error($"AfterSave:{str}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region 原保存逻辑
|
|
|
|
#region 原保存逻辑
|
|
|
|
//public static void DingCangToDS6_OLD(JArray jarr)
|
|
|
|
//public static void DingCangToDS6_OLD(JArray jarr)
|
|
|
|