140 lines
4.2 KiB
C#
140 lines
4.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using WMS.Model.Stock;
|
|
using System.Data;
|
|
|
|
namespace WMS.IData.IStock
|
|
{
|
|
public interface IStorageRep
|
|
{
|
|
#region 获得流水号
|
|
/// <summary>
|
|
/// 获得流水号
|
|
/// </summary>
|
|
string GetNextValNum();
|
|
#endregion
|
|
|
|
|
|
|
|
#region 查主表
|
|
/// <summary>
|
|
/// 获得仓库间调拨主表信息
|
|
/// </summary>
|
|
/// <param name="model">仓库间调拨Model</param>
|
|
/// <returns></returns>
|
|
DataTable GetStorageRepData(StorageRepModel model);
|
|
#endregion
|
|
#region 查明细
|
|
/// <summary>
|
|
/// 获得仓库间调拨明细表数据
|
|
/// </summary>
|
|
/// <param name="stoID">仓库间调拨ID</param>
|
|
/// <returns></returns>
|
|
DataTable GetStorageRepInfoData(string stoID);
|
|
#endregion
|
|
|
|
#region 同时新增 主表明细表数据
|
|
/// <summary>
|
|
/// 同时新增 主表明细表数据
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <param name="list"></param>
|
|
void InsertStorageRepData(StorageRepModel model, List<StorageRepInfoModel> list);
|
|
#endregion
|
|
#region 同时更新 主表明细表数据
|
|
/// <summary>
|
|
/// 同时更新 主表明细表数据
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <param name="list"></param>
|
|
void UpdateStorageRepData(StorageRepModel model, List<StorageRepInfoModel> list);
|
|
#endregion
|
|
#region 同时删除 主表明细表数据
|
|
/// <summary>
|
|
/// 同时删除 主表明细表数据
|
|
/// </summary>
|
|
/// <param name="strlis"></param>
|
|
void DeleteStorageRepData(List<string> strlis);
|
|
#endregion
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 单独新增明细
|
|
/// </summary>
|
|
/// <param name="lsit"></param>
|
|
void Add(List<StorageRepInfoModel> lsit);
|
|
|
|
|
|
/// <summary>
|
|
/// 单独删除明细
|
|
/// </summary>
|
|
/// <param name="list"></param>
|
|
void Delete(List<StorageRepInfoModel> list);
|
|
|
|
|
|
/// <summary>
|
|
/// 单独更新明细
|
|
/// </summary>
|
|
/// <param name="upFuc"></param>
|
|
/// <param name="insertFuc"></param>
|
|
/// <param name="delFuc"></param>
|
|
void NewStorageRepInfoFuc(StorageRepModel stM, List<StorageRepInfoModel> upFuc, List<StorageRepInfoModel> insertFuc, List<StorageRepInfoModel> delFuc);
|
|
|
|
|
|
|
|
#region 已废 删除
|
|
void DeleteStorageRep(List<StorageRepModel> model);
|
|
|
|
|
|
void DeleteStorageRepInfo(List<StorageRepInfoModel> model);
|
|
#endregion
|
|
#region 增主表
|
|
/// <summary>
|
|
/// 新增仓库间调拨主表数据
|
|
/// </summary>
|
|
/// <param name="model">仓库间调拨Model</param>
|
|
void InsertStorageRep(StorageRepModel model);
|
|
#endregion
|
|
#region 增明细
|
|
/// <summary>
|
|
/// 新增仓库间调拨明细表数据
|
|
/// </summary>
|
|
/// <param name="list">仓库间调拨明细Model集合</param>
|
|
void InsertStorageRepInfo(List<StorageRepInfoModel> list);
|
|
#endregion
|
|
|
|
#region 更主表
|
|
/// <summary>
|
|
/// 更新仓库间调拨主表信息
|
|
/// </summary>
|
|
/// <param name="model">仓库间调拨Model</param>
|
|
void UpdateStorageRep(StorageRepModel model);
|
|
#endregion
|
|
#region 更明细
|
|
/// <summary>
|
|
/// 更新仓库间调拨明细表数据
|
|
/// </summary>
|
|
/// <param name="list">仓库间调拨明细Model集合</param>
|
|
void UpdateStorageRepInfo(List<StorageRepInfoModel> list);
|
|
#endregion
|
|
#region 删主表
|
|
/// <summary>
|
|
/// 删除仓库间调拨主表数据
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
void DeleteStorageRep(List<string> model);
|
|
#endregion
|
|
#region 删明细
|
|
/// <summary>
|
|
/// 删除仓库间调拨明细表数据
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
void DeleteStorageRepInfo(List<string> model);
|
|
#endregion
|
|
|
|
}
|
|
}
|