旧仓储出库增加日志记录 包括 出库的

保存,费用入账,取消费用入账,删除
dev
ddlucky 9 months ago
parent b289c5b5ed
commit a055268e5c

@ -141,7 +141,15 @@ namespace DSWeb.MvcShipping.Controllers
var headData = JsonConvert.Deserialize<VwWmsDetailModels>(data);
var bodyList = JsonConvert.Deserialize<List<VwWmsDetailModels>>(body);
var errorstr = "";
try
{
BasicDataRefDAL.SaveLog(data, Convert.ToString(Session["USERID"]), "仓储日志", "出库费用入账");
}
catch (Exception e)
{
}
#region 保存
if (bodyList != null)

@ -24,6 +24,7 @@ using System.Configuration;
using DSWeb.Areas.MvcShipping.Helper;
using NPOI.HSSF.Record;
using Quartz.Util;
using DSWeb.MvcShipping.Helper;
namespace DSWeb.MvcShipping.DAL.WMSOUT_GuiGeDAL
{
@ -973,8 +974,20 @@ namespace DSWeb.MvcShipping.DAL.WMSOUT_GuiGeDAL
#region 出库件数 返 入库库存//需求编号SR2017073000001
var strOutBSNO = gids.Replace(",", "','");
string strSql = "exec Proc_WMSOUT_DelByBSNO '" + strOutBSNO + "' ";
try {
string strSql = "exec Proc_WMSOUT_DelByBSNO '" + strOutBSNO + "' ";
var outhead = GetData($" BSNO='{strOutBSNO}'", "", strUserID);
var logstr = JsonConvert.Serialize(outhead);
BasicDataRefDAL.SaveLog(new { strSql, logstr }, strUserID, "仓储日志", "删除出库");
}
catch (Exception e) {
}
Database db = DatabaseFactory.CreateDatabase();
using (IDataReader reader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
{
@ -1877,6 +1890,17 @@ namespace DSWeb.MvcShipping.DAL.WMSOUT_GuiGeDAL
gids = "'" + gids.Trim().Replace(",", "','") + "'";
try {
var outhead = GetData($" BSNO in({gids})", "", strUserID);
var logstr = JsonConvert.Serialize(outhead);
BasicDataRefDAL.SaveLog(logstr, strUserID, "仓储日志", "出库费用入账");
}
catch (Exception e)
{
}
//20230128 改为
if (ConfigurationManager.AppSettings["DingTalkAuditWMSIN"] == "true")
{//向钉钉发送出库审批流程
@ -2138,6 +2162,17 @@ namespace DSWeb.MvcShipping.DAL.WMSOUT_GuiGeDAL
result.Success = false;
result.Message = "有“已提交的费用”,不允许取消入账,请重新操作!";
return result;
}
try {
var outhead = GetData($" BSNO in({gids})", "", strUserID);
var logstr = JsonConvert.Serialize(outhead);
BasicDataRefDAL.SaveLog(logstr, strUserID, "仓储日志", "出库取消入账");
}
catch (Exception e)
{
}
#endregion

Loading…
Cancel
Save