66 lines
1.9 KiB
C#
66 lines
1.9 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using WMS.Model.Stock;
|
|||
|
|
using System.Data;
|
|||
|
|
using WMS.IData;
|
|||
|
|
using WMS.Common;
|
|||
|
|
|
|||
|
|
namespace WMS.Business.Stock
|
|||
|
|
{
|
|||
|
|
public class BussAreaRepOut : IBussFactory
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取库区间调拨单明细结果集
|
|||
|
|
/// </summary>
|
|||
|
|
/// <returns>库区间调拨单明细</returns>
|
|||
|
|
public List<AreaRepOutModel> GetAreaRepOutList(AreaRepOutModel model)
|
|||
|
|
{
|
|||
|
|
DataTable table = DataProvider.Instance.AreaRepOut.GetAreaRepOutDT(model);
|
|||
|
|
|
|||
|
|
if (table != null)
|
|||
|
|
{
|
|||
|
|
List<AreaRepOutModel> AreaRepOutModel = ConvertHelper<AreaRepOutModel>.ConvertToList(table);
|
|||
|
|
return AreaRepOutModel;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return null;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 删除库区间调拨单明细
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="AreaRepOut">库区间调拨单明细</param>
|
|||
|
|
/// <returns>是否成功</returns>
|
|||
|
|
public string DeleteAreaRepOut(string areaRepOutID)
|
|||
|
|
{
|
|||
|
|
DataProvider.Instance.AreaRepOut.DeleteAreaRepOut(areaRepOutID);
|
|||
|
|
logList.Add(DataProvider.Instance.logData);
|
|||
|
|
|
|||
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|||
|
|
TaCmtOrRak();
|
|||
|
|
return ErrText;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 修改库区间调拨单明细
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="AreaRepOutModel">库区间调拨单明细Model</param>
|
|||
|
|
/// <returns>是否成功</returns>
|
|||
|
|
public string UpdateAreaRepOut(AreaRepOutModel areaRepOutModel)
|
|||
|
|
{
|
|||
|
|
DataProvider.Instance.AreaRepOut.UpdateAreaRepOut(areaRepOutModel);
|
|||
|
|
logList.Add(DataProvider.Instance.logData);
|
|||
|
|
|
|||
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|||
|
|
|
|||
|
|
TaCmtOrRak();
|
|||
|
|
return ErrText;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|