Exemplo n.º 1
0
        /// <summary>
        /// 打包
        /// </summary>
        /// <param name="Customer_Id">客户标识</param>
        /// <param name="Unit_Id">组织标识</param>
        /// <param name="maxRowCount">最大行数</param>
        /// <param name="startRowIndex">开始行号</param>
        /// <param name="bat_id">批次号</param>
        /// <returns></returns>
        public IList <InoutInfo> GetPosInoutListPackagedWeb(string Customer_Id, string Unit_Id, int maxRowCount, int startRowIndex, string bat_id)
        {
            //设置参数
            OrderSearchInfo orderSearchInfo = new OrderSearchInfo();

            orderSearchInfo.customer_id     = Customer_Id;
            orderSearchInfo.unit_id         = Unit_Id;
            orderSearchInfo.order_type_id   = "1F0A100C42484454BAEA211D4C14B80F";
            orderSearchInfo.order_reason_id = "2F6891A2194A4BBAB6F17B4C99A6C6F5";
            orderSearchInfo.StartRow        = startRowIndex;
            orderSearchInfo.EndRow          = startRowIndex + maxRowCount;

            //
            InoutService inoutService = new InoutService();
            //获取集合
            IList <InoutInfo> inoutInfoList = new List <InoutInfo>();

            inoutInfoList = inoutService.GetInoutListPackagedWeb(orderSearchInfo);
            if (inoutInfoList.Count > 0)
            {
                //修改获取的监控信息批次号
                InoutInfo inoutInfo = new InoutInfo();
                inoutInfo.bat_id        = bat_id;
                inoutInfo.InoutInfoList = inoutInfoList;
                bool b = inoutService.SetInoutUpdateUnDownloadBatIdWeb(Customer_Id, inoutInfo);
            }
            return(inoutInfoList);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 设置记录配送单打包批次号
        /// </summary>
        /// <param name="Customer_Id">客户标识</param>
        /// <param name="User_Id">用户标识</param>
        /// <param name="Unit_Id">组织标识</param>
        /// <param name="bat_id">批次号</param>
        /// <param name="inoutInfoList">配送单集合</param>
        /// <returns>true=成功,false=失败</returns>
        public bool SetDistributionBatInfo(string Customer_Id, string User_Id, string Unit_Id, string bat_id, IList <InoutInfo> inoutInfoList)
        {
            LoggingSessionInfo loggingSessionInfo = GetLoggingSessionInfo(Customer_Id, User_Id, Unit_Id);

            cPos.Service.InoutService server = new cPos.Service.InoutService();
            InoutInfo inoutInfo = new InoutInfo();

            inoutInfo.bat_id        = bat_id;
            inoutInfo.InoutInfoList = inoutInfoList;
            bool b = server.SetInoutUpdateUnDownloadBatIdWeb(Customer_Id, inoutInfo);

            return(b);
        }