118 lines
3.3 KiB
C#
118 lines
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
using WMS.Common;
|
|
using WMS.IData;
|
|
using WMS.Model.Stock;
|
|
|
|
namespace WMS.Business.Stock
|
|
{
|
|
public class BussAdjustListInfo : IBussFactory
|
|
{
|
|
#region 查询所有明细
|
|
/// <summary>
|
|
/// 查询所有明细
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
public List<AdjustListInfoModel> GetAdjustList(AdjustListInfoModel model)
|
|
{
|
|
DataTable dt = DataProvider.Instance.AdjustListInfo.GetAdjustList(model); ;
|
|
List<AdjustListInfoModel> list = new List<AdjustListInfoModel>();
|
|
list = ConvertHelper<AdjustListInfoModel>.ConvertToList(dt);
|
|
|
|
return list;
|
|
}
|
|
#endregion
|
|
|
|
#region 新增库存调整单明细
|
|
/// <summary>
|
|
/// 新增库存调整单明细
|
|
/// </summary>
|
|
/// <param name="list">库存调整单明细实体集合</param>
|
|
/// <returns></returns>
|
|
public string ExecListAdd(List<AdjustListInfoModel> list)
|
|
{
|
|
|
|
|
|
foreach (AdjustListInfoModel model in list)
|
|
{
|
|
DataProvider.Instance.AdjustListInfo.ExecListAdd(model);
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|
}
|
|
|
|
logList.Add(DataProvider.Instance.logData);
|
|
TaCmtOrRak();
|
|
|
|
return this.ErrText;
|
|
}
|
|
#endregion
|
|
|
|
#region 修改
|
|
/// <summary>
|
|
/// 修改
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
public string ExecListUpdate(AdjustListInfoModel model)
|
|
{
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|
|
|
DataProvider.Instance.AdjustListInfo.ExecListUpdate(model);
|
|
|
|
logList.Add(DataProvider.Instance.logData);
|
|
TaCmtOrRak();
|
|
|
|
return this.ErrText;
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
public string Get_StrLoc(string LOCATION_ID)
|
|
{
|
|
return DataProvider.Instance.AdjustListInfo.Get_StrLoc(LOCATION_ID);
|
|
}
|
|
|
|
#region 删除库调整单明细存
|
|
/// <summary>
|
|
/// 删除库调整单明细存
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
public string DelList(AdjustListInfoModel model)
|
|
{
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|
|
|
DataProvider.Instance.AdjustListInfo.DelList(model);
|
|
logList.Add(DataProvider.Instance.logData);
|
|
TaCmtOrRak();
|
|
|
|
return this.ErrText;
|
|
}
|
|
#endregion
|
|
public void AddInvertory( string loc, string sation)
|
|
{
|
|
string plcId = DataProvider.Instance.AutoRkData.GetPlcId();
|
|
|
|
DataProvider.Instance.AdjustList.AddInvertory(plcId, loc, sation);
|
|
}
|
|
public DataTable GetIncertory()
|
|
{
|
|
return DataProvider.Instance.AdjustList.GetIncertory();
|
|
}
|
|
#region 获取流水号
|
|
/// <summary>
|
|
/// 获取流水号
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string GetSerialNum()
|
|
{
|
|
return DataProvider.Instance.AdjustListInfo.GetSerialNum();
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|