public static void InsertQty(InventoryQtyEntity entity) { CommonConst commonConst = new CommonConst(); DataCommand command = DataCommandManager.GetDataCommand("InsertQty"); command.SetParameterValue("@ProductMappingSysNo", entity.ProductMappingSysNo); command.SetParameterValue("@ProductDescription", ""); command.SetParameterValue("@InventoryQty", entity.InventoryQty); command.SetParameterValue("@CompanyCode", commonConst.CompanyCode); command.SetParameterValue("@StoreCompanyCode", commonConst.StoreCompanyCode); command.SetParameterValue("@InUser", commonConst.UserLoginName); command.SetParameterValue("@InventoryAlarmQty", commonConst.InventoryAlarmQty); command.ExecuteNonQuery(); }
private List <ProductEntity> FindProductListByInventoryQtyEntity(List <ProductEntity> list, InventoryQtyEntity inventoryQtEntity) { return(list.FindAll(item => item.SKU == inventoryQtEntity.SKU)); }