BoxEquip_ShelfPos.cs 1.8 KB
using DeviceLibrary;
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnlineStore.DeviceLibrary
{
    public partial class BoxEquip
    {
        /// <summary>
        /// 从服务器获取库位点位数据P1
        /// </summary>
        /// <param name="inOutParam"></param>
        /// <returns></returns>
        public LineMoveP GetMovePFromServer(BoxEquip_Config config, InOutPosInfo posInfo)
        {
            //try
            //{
            //Dictionary<string, string> paramMap = new Dictionary<string, string>();
            //paramMap.Add("PosInfo", JsonHelper.SerializeObject(inOutParam.PosInfo));
            //    string server = GetAddr("/service/store/GetMovePFromServer", null);
            //    DateTime startTime = DateTime.Now;
            //    LineMoveP resultdata = HttpHelper.PostJson<Dictionary<string, string>, LineMoveP>(server, paramMap, 2000, true);
            //    LogUtil.info("GetMovePFromServer " + FormUtil.GetSpanStr(DateTime.Now - startTime) + "  【" + server + "】");
            //    if (resultdata == null)
            //    {
            //        LogUtil.info("GetMovePFromServer【 " + movepos + "】 没有收到服务器反馈");
            //        return 0;
            //    }
            //    else if (resultdata.data != null)
            //    {
            //            return resultdata;
            //    }
            //    return 0;
            //}
            //catch (Exception ex)
            //{
            //    LogUtil.error("GetMovePFromServer: " + ex.ToString());
            //}
            //return string.Empty;
            return new LineMoveP();
        }
        
    }
}