using Dapper; using Estsh.Core.Base; using Estsh.Core.Models; using Estsh.Core.Repositories; namespace Estsh.Core.Repository.IRepositories { public interface ISAPOrderImportRepository : IBaseRepository { #region 公共方法 public List getPartInfo(string partNo); public List getFactoryInfo(string factoryCode); public List getFactoryCode(); public List getErpWarehouseInfo(string erpWarehouse); public List getVendorInfo(string vendorCode); public List getCustomerInfo(string customCode); public bool ExecuteSqlTransaction(List SqlStrings); public bool ExecuteSqlTransaction(List SqlStrings, List Parameters,ref string msg); #endregion #region 采购计划 public string GetWeekNo(); public string GetOrderNo(); public string GetMonthOrderNo(); public string InsertSAPOData(); public string InsertMonthlyPlanData(); public List IfZDATE(string zdate, string lifnr, string zcjsj); public bool delDSPO(string zdate, string lifnr); public string updateSapDspo(string EBELN, string REVNO, int EVRTP, string LIFNR, string MATNR, string ZDEV_NUM, string UNIT, string PSTYP, string ZDATE, string ZCJSJ, string WERKS, string LGORT, string ZPZPS, string ZSTAS, decimal BSTRF); public string insertSapDspo(string EBELN, string REVNO, int EVRTP, string LIFNR, string MATNR, string ZDEV_NUM, string UNIT, string PSTYP, string ZDATE, string ZCJSJ, string WERKS, string LGORT, string ZPZPS, string ZSTAS, decimal BSTRF); public List getSapDspoInfo(string ebeln, string evrtp); #endregion #region 零星出入库 /// /// 根据编号和行号获取零星出入库指令信息 /// /// /// /// public List getSapMiscoInfo(string zinstNo, string zeile); public string getUpdateSapMisco(string ZINSTNO, string ZEILE, string WERKS, string LGORT, string MATNR, string ERFMG, string ERFME, string SOBKZ, string HTEXT, string ZZLZT, string ZACTION); public string getInsertSapMisco(string ZINSTNO, string ZEILE, string WERKS, string LGORT, string MATNR, string ERFMG, string ERFME, string SOBKZ, string HTEXT, string ZZLZT, string ZACTION); #endregion #region 非JIS发运 /// /// 根据编号和行号获取非JIS发运指令 /// /// /// /// public List getSapDnInfo(string vbeln, string postnr); public string getInsertSapDn(string VBELN, string POSNR, string WERKS, string LGORT, string LFDAT, string KUNNR, string MATNR, string KDMAT, string LFIMG, string MEINS); #endregion #region SAP供应商退货指令(SMRR/DMR) /// /// 根据编号和行号获取供应商退货指令信息 /// /// /// /// public List getSapRetoInfo(string zinstno, string zeile); public string getUpdateSapReto(string ZACTION, string ZINSTNO, string ZEILE, string LIFNR, string UMWRK, string MATNR, string LGORT, string ERFMG, string ERFME, string BKTXT, string ZQMD, string ZZLZT); public string getInsertSapReto(string ZACTION, string ZINSTNO, string ZEILE, string LIFNR, string UMWRK, string MATNR, string LGORT, string ERFMG, string ERFME, string BKTXT, string ZQMD, string ZZLZT); #endregion #region SAP NC入库指令 public List getSapMovoInfo(string refid, string zeile); public string getUpdateSapMovo(string REFID, string ACTION, string ZEILE, string WERKS, string LGORT, string UMLGO, string MATNR, string UMMAT, string ERFMG, string ERFME, string ZSTAT, string SOBKZ, string HTEXT, string ZZLZT, string SGTXT, string ORDTYP); public string getInsertSapMovo(string REFID, string ACTION, string ZEILE, string WERKS, string LGORT, string UMLGO, string MATNR, string UMMAT, string ERFMG, string ERFME, string ZSTAT, string SOBKZ, string HTEXT, string ZZLZT, string SGTXT, string ORDTYP); #endregion #region SAP 盘点表 public List getSapCycoInfo(string iblnr, string zeili); public string getInsertSapCyco(string IBLNR, string ZEILI, string MATNR, string MEINS, string WERKS, string LGORT, string ZSTAT, string SOBKZ, string ZXM, string ZDJBS, string XLOEK, string GJAHR); #endregion #region SAP 盘点调差指令 public List getSapDifoInfo(string iblnr, string zeili); public string getInsertSapDifo(string WERKS, string IBLNR, string ZEILI, string ZTZBS, string GJAHR); public List getCheckStockInfo(string orderNo); #endregion #region 销售退货收货指令 public List getSapRdnInfo(string vbeln, string postnr); public string getInsertSapRdn(string VBELN, string POSNR, string WERKS, string LGORT, string LFDAT, string KUNNR, string MATNR, string LFIMG, string MEINS); #endregion } }