|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|