using HH.WMS.CoreServer.DAL; using HH.WMS.Entitys.Algorithm; using HH.WMS.Entitys.Basic; using HH.WMS.Entitys.Common; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.CoreServer.BLL { public class BasicDataBLL :BaseBLL { public DataTable GetInventoryData() { return CreateDAL().GetInventoryData(); } public DataTable GetWarehouseData() { return CreateDAL().GetWarehouseData(); } public DataTable GetCustomerData() { return CreateDAL().GetCustomerData(); } public DataTable GetVendnrData() { return CreateDAL().GetVendnrData(); } public SqlExecuteResult UpdateInventoryCheckState(List itemEntityList) { return CreateDAL().UpdateInventoryCheckState(itemEntityList ); } public SqlExecuteResult UpdateWarehouseCheckState(List stockEntityList) { return CreateDAL().UpdateWarehouseCheckState(stockEntityList); } public SqlExecuteResult UpdateCustomerCheckState(List customEntityList) { return CreateDAL().UpdateCustomerCheckState(customEntityList); } public SqlExecuteResult UpdateVendnrCheckState(List vendnrEntityList) { return CreateDAL().UpdateVendnrCheckState(vendnrEntityList); } /// /// 调用autobom接口 保存item信息 /// /// /// public AutobomResult AddList(List itemEntityList) { string result = WebApiManager.HttpAutoBom_Post("Api/PLM/ItemRelease", JsonConvert.SerializeObject(itemEntityList)); List autobomRes = JsonConvert.DeserializeObject>(result); return autobomRes[0]; } public AutobomResult AddCusList(List customEntityList) { string result = WebApiManager.HttpAutoBom_Post("Api/PLM/CustomerRelease", JsonConvert.SerializeObject(customEntityList)); List autobomRes = JsonConvert.DeserializeObject>(result); return autobomRes[0]; } public AutobomResult AddVenList(List vendnrEntityList) { string result = WebApiManager.HttpAutoBom_Post("Api/PLM/SupplierRelease", JsonConvert.SerializeObject(vendnrEntityList)); List autobomRes = JsonConvert.DeserializeObject>(result); return autobomRes[0]; } } }