Beispiel #1
0
        /// <summary>
        /// 现场分配
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public Response <PreOrderAndPreOrderDetail> WorkersAlloctions(ManualAllocationRequest request)
        {
            Response <PreOrderAndPreOrderDetail> response = new Response <PreOrderAndPreOrderDetail> {
                Result = new PreOrderAndPreOrderDetail()
            };

            if (request == null)
            {
                ArgumentNullException ex = new ArgumentNullException("Proc_WMS_ManualAllocation request");

                return(response);
            }
            try
            {
                response.Result.DisInfo = new PreOrderAccessor().WorkersAlloctions(request.PodRequest, request.ID, request.Creator, request.CustomerId, request.Criterion, request.SqlProc);

                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                response.IsSuccess = false;
                LogError(ex);
            }
            return(response);
        }
Beispiel #2
0
        public string ManualAllocationSaveJson(ManualAllocationRequest request)
        {
            string message = "";

            try
            {
                message = new PreOrderAccessor().ManualAllocationSaveJson(request.PodRequest, request.ID, request.Creator);
            }
            catch (Exception ex)
            {
                message = ex.ToString();
                LogError(ex);
            }
            return(message);
        }