63 lines
1.9 KiB
C#
63 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 BussAreaRepIn : IBussFactory
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 获取库区间调拨单明细结果集
|
|||
|
|
/// </summary>
|
|||
|
|
/// <returns>库区间调拨单明细</returns>
|
|||
|
|
public List<AreaRepInModel> GetAreaRepInList(AreaRepInModel model)
|
|||
|
|
{
|
|||
|
|
DataTable table = DataProvider.Instance.AreaRepIn.GetAreaRepInDT(model);
|
|||
|
|
List<AreaRepInModel> AreaRepInModel = ConvertHelper<AreaRepInModel>.ConvertToList(table);
|
|||
|
|
|
|||
|
|
if (DataLogErrWrite(table, "获取库区间调拨单明细"))
|
|||
|
|
{
|
|||
|
|
return AreaRepInModel;
|
|||
|
|
}
|
|||
|
|
return null;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 删除库区间调拨单明细
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="AreaRepIn">库区间调拨单明细</param>
|
|||
|
|
/// <returns>是否成功</returns>
|
|||
|
|
public string DeleteAreaRepIn(string areaRepInID)
|
|||
|
|
{
|
|||
|
|
DataProvider.Instance.AreaRepIn.DeleteAreaRepIn(areaRepInID);
|
|||
|
|
logList.Add(DataProvider.Instance.logData);
|
|||
|
|
|
|||
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|||
|
|
TaCmtOrRak();
|
|||
|
|
return ErrText;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 修改库区间调拨单明细
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="AreaRepInModel">库区间调拨单明细Model</param>
|
|||
|
|
/// <returns>是否成功</returns>
|
|||
|
|
public string UpdateAreaRepIn(AreaRepInModel areaRepInModel)
|
|||
|
|
{
|
|||
|
|
DataProvider.Instance.AreaRepIn.UpdateAreaRepIn(areaRepInModel);
|
|||
|
|
logList.Add(DataProvider.Instance.logData);
|
|||
|
|
|
|||
|
|
Transaction = DataProvider.Instance.TranOracle;
|
|||
|
|
|
|||
|
|
TaCmtOrRak();
|
|||
|
|
return ErrText;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|