using DataAynchronization.HW.DAL;
|
using HH.WMS.Entitys.Autobom;
|
using HH.WMS.Entitys.Basic;
|
using HH.WMS.Entitys.Common;
|
using HW.BLL;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace DataAynchronization.HW.BLL
|
{
|
/// <summary>
|
/// 包装规格表业务逻辑层
|
/// </summary>
|
/// <returns></returns>
|
/// <history>[HanHe(XDL)] CREATED 2018/09/08</history>
|
public class TN_AB_PACK_SPECBLL : BaseBLL
|
{
|
#region 获取包装规格表集合
|
/// <summary>
|
/// 获取包装规格表集合
|
/// </summary>
|
/// <param name="tableName">表名</param>
|
/// <returns>包装规格集合</returns>
|
/// <history>[HanHe(XDL)] CREATED 2018/09/08</history>
|
public List<TN_AB_PACK_SPECEntity> GetPackSpecList(string tableName)
|
{
|
return CreateDAL<TN_AB_PACK_SPECDAL>().GetPackSpecList(tableName);
|
}
|
#endregion
|
|
public SqlExecuteResult RemoveSynchLogData(List<TN_AB_PACK_SPECEntity> itemSpecList)
|
{
|
SqlExecuteResult result = new SqlExecuteResult();
|
string ArrayGuid = string.Empty;
|
//拼接ID
|
for (int i = 0; i < itemSpecList.Count; i++)
|
{
|
ArrayGuid += "'" + itemSpecList[i].CN_GUID + "',";
|
}
|
if (!string.IsNullOrEmpty(ArrayGuid))
|
{
|
ArrayGuid = ArrayGuid.TrimEnd(',');
|
}
|
//执行修改
|
if (!string.IsNullOrEmpty(ArrayGuid))
|
{
|
result = CreateDAL<TN_AB_PACK_SPECDAL>().RemoveSynchLogData(ArrayGuid);
|
}
|
return result;
|
}
|
}
|
}
|