using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WMS.Model.CK;
namespace WMS.IData.ICK
{
public interface IPickingWaveGoods
{
///
/// 拼盘释放旧托盘
///
///
void DelCtlPickGoods(string ctl, string STORAGE_ID);
///
/// 自动获取站台号,平均分配
///
///
DataSet GetStation(string STORAGE_ID);
///
/// 根据出库单获取明细
///
///
///
DataTable GetOutDataId(string outId);
///
/// 更拣选数量
///
///
///
///
void UpdaPickNum(string pickId, string goodsId, decimal picnum);
DataTable GetTaskOutCtStand(string stand);
DataTable GetLocaStationAllData(string locID);
///
/// select status is 2
///
///
DataTable GetTaskOutStatus();
DataTable GetTaskOutStatus_0();
DataTable GetTaskOutStatus_Empty();
DataTable GetTaskMoveStatus();
///
/// select status is 2
///
///
///
DataTable GetTaskLocOutStatus(string loc);
bool GetPickData_BARCODE(string BARCODE);
bool getPickData(string locid);
bool getPickDataCount(int num);
bool getPickDataCount();
bool getLocS(string locid);
string getYckLoc(string layer);
DataTable getDecid(string decid);
DataTable getRemark(string locid);
DataTable getyck(string remark,string layer);
DataTable getYK(string ctl);
DataTable GetLocDataNo(string goodsId, decimal PACKING_NUM, string STORAGE_ID);
DataTable HandGoodsSts(string locid);
void DelHandGoods(string locid);
void UpDateSort(string locid, string sort);
///
/// 更新拣选的状态
///
///
///
///
///
///
///
///
///
///
void SerLocWaitInSts(string ctl, string goodsid, string barcode, string GOODS_NUM_SJ, string out_id, string status, string GoodsMeaSure, string PACKING_NUM);
DataTable GetTaskdataHand();
DataTable GetDataT_ck_orderDetall();
///
/// 手动出库
///
///
///
bool DEL_T_CK_ORDERS(string loc,string goodid);
//Insert_T_CK_ORDERS
bool Insert_T_CK_ORDERS(string sqlStr);
bool getPickDataProductionDate(string goodid, string production_date);
bool insert_t_ck_ordersDetall(string sqlStr);
bool GetDataErpData(string ORDER_ID);
bool update_t_ck_ordersDetall(string orderID, string goodsId);
bool delete_t_ckorder(string ORDER_ID);
DataTable GetLocHand();
void InsertHandGoods(PickingWaveGoodsModel model);
void UpdateErpData(string CK_ID, string goodsid);
DataTable GetErpCm(string locid);
///
/// 写完成
///
///
// void InsertIoErp(Model.Pak_io_complete ioComplete);
///
/// 获取ERP数据
///
///
DataTable GetDataErpData();
///
/// 任务下发到PLC写重量
///
///
void UpDateWghMisBak(string barcode, string wgh);
///
/// 下发任务到PLC置Status
///
///
void UpdateStsPIckEnd(string ProDucLotId,string sts);
///
/// 库存锁住
///
///
void UpdateMisStsLock(string barcode);
///
/// 删除明细
///
///
///
///
void DeleteProDucLotIdGoods(string ProDucLotId, string BARCODE, string localId);
///
/// 删除拣货明细增加备份表
///
///
///
///
void InsertProDucLotIdGoodsBack(string localId, string out_id);
// void InsertPickingWaveGoodsBack(string pickingID,string goodsId,string localId);
///
/// 出库更新库位表为空闲
///
void UpdateLocSts(string locId);
DataTable GetPickGoodsData(string ctl,string STORAGE_ID);
DataTable GetGoodsArea(string goodsId);
void DeletePickingWaveGoodsOut(string out_id);
void DeletePickingWaveGoods(string locId,string out_id);
///
/// 立体库获出库单明细
///
///
///
///
DataTable LtkgetPickData(string outStand);
///
/// 获取捡货明细
///
/// 捡货明细
DataTable GetPickingWaveGoodsDT(PickingWaveGoodsModel model);
void UpdatePickingWaveSlGoods(string localtion, string goodsId, string number, string puid);
///
/// 插入捡货明细信息
///
/// 捡货明细Model
/// 捡货明细编号
void InsertCK(string pickingid, string oldloc, string newloc, string plcid);
void InsertPickingWaveGoods(PickingWaveGoodsModel model);
void InsertTMISTOCK(string loc_id);
/////
///// 删除一个捡货单的捡货商品明细
/////
///// 捡货单ID
//void DeletePickingWaveGoods(string pickingID);
///
/// 向备份表中添加一个捡货单的捡货商品明细
///
/// 捡货单ID
void InsertPickingWaveGoodsBack(string pickingID, string goodsId, string localId);
///
/// 根据条码获取明细
///
///
///
DataTable GetPickDataBarcode(string barcode);
///
/// 获取该库位的是否已经满
///
///
///
DataTable getLocIdVolume(string locId);
}
}