示例#1
0
        public Response <string> AddPackageAndDetail(long ID, AddPackageAndDetailRequest request, int flag)
        {
            Response <string> response = new Response <string>();
            string            message  = "";

            try
            {
                message = new OrderManagementAccessor().AddPackageAndDetail(ID, request, flag);
                if (message == "")
                {
                    response.Result    = message;
                    response.IsSuccess = true;
                }
                else
                {
                    response.Result    = message;
                    response.IsSuccess = false;
                }
                return(response);
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
                response.Result    = message + ex.Message;
            }
            return(response);
        }
示例#2
0
 public IEnumerable <PackageInfo> GetPackageList(string ordernumber, string customerid, string warehousename)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.GetPackageList(ordernumber, customerid, warehousename));
     }
     catch (Exception ex)
     {
         return(new List <PackageInfo>());
     }
 }
示例#3
0
 public IEnumerable <OrderDetailInfo> GetOrderDetailList2(string ordernum, string customerid, string warehousename)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.GetOrderDetailList2(ordernum, customerid, warehousename));
     }
     catch (Exception ex)
     {
         return(new List <OrderDetailInfo>());
     }
 }
示例#4
0
 public IEnumerable <OrderInfo> GetOrderList(string customerid, string WarehouseName, string ExternOrderNumber)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.GetOrderList(customerid, WarehouseName, ExternOrderNumber));
     }
     catch (Exception ex)
     {
         return(new List <OrderInfo>());
     }
 }
示例#5
0
 public bool UpdateOrderStatus(string ReceiptNumber, string customerid, string warehousename, string Picker, string type)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.UpdateOrderStatus(ReceiptNumber, customerid, warehousename, Picker, type));
     }
     catch
     {
         return(false);
     }
 }
示例#6
0
 public IEnumerable <OrderDetailForRedisRF> GetOrderDetailListByOrderNumber(string ordernum, string CustomerID)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.GetOrderDetailListByOrderNumber(ordernum, CustomerID));
     }
     catch (Exception ex)
     {
         return(new List <OrderDetailForRedisRF>());
     }
 }
示例#7
0
 public bool UpdateOrderStatusByOrderNumber(string OrderNumber, string Picker, AddPackageAndDetailRequest request, string CustomerID)
 {
     try
     {
         OrderManagementAccessor accessor = new OrderManagementAccessor();
         return(accessor.UpdateOrderStatusByOrderNumber(OrderNumber, Picker, request, CustomerID));
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
示例#8
0
        /// <summary>
        /// 插入拣货表
        /// </summary>
        /// <param name="orderPicklist"></param>
        /// <returns></returns>
        public bool InsertPick(IEnumerable <OrderDetailForRedisRF> orderPicklist, string name)
        {
            bool IsSuccess = false;

            try
            {
                OrderManagementAccessor accessor = new OrderManagementAccessor();
                IsSuccess = accessor.InsertPick(orderPicklist, name);
            }
            catch (Exception ex)
            {
            }
            return(IsSuccess);
        }
示例#9
0
        public DataSet SaveExpressPackage(string ExpressNumber, string PackageType, long CustomerID, string WarehouseName)
        {
            DataSet EPR = new DataSet();

            try
            {
                OrderManagementAccessor accessor = new OrderManagementAccessor();
                EPR = accessor.SaveExpressPackage(ExpressNumber, PackageType, CustomerID, WarehouseName);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
示例#10
0
        public DataSet CheckExpress(string ExpressNumber, long CustomerID, string WarehouseName, string Type)
        {
            DataSet EPR = new DataSet();

            try
            {
                OrderManagementAccessor accessor = new OrderManagementAccessor();
                EPR = accessor.CheckExpress(ExpressNumber, CustomerID, WarehouseName, Type);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
示例#11
0
        public ExpressPackageResponse CheckExpress(string ExpressNumber, long CustomerID, string WarehouseName)
        {
            ExpressPackageResponse EPR = new ExpressPackageResponse();

            try
            {
                OrderManagementAccessor accessor = new OrderManagementAccessor();
                EPR = accessor.CheckExpress(ExpressNumber, CustomerID, WarehouseName);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
示例#12
0
 /// <summary>
 /// 根据波次号获取订单头和明细RF枪  爱库存
 /// </summary>
 /// <param name="OrderNumber"></param>
 /// <param name="BatchNumber"></param>
 /// <param name="QueryType"></param>
 /// <param name="msg"></param>
 /// <returns></returns>
 public OrderAndDetailModel RFGetOrderAndDetail_AKC(string PrintKey, out string msg)
 {
     msg = string.Empty;
     try
     {
         OrderAndDetailModel model = new OrderAndDetailModel();
         model = new OrderManagementAccessor().RFGetOrderAndDetail_AKC(PrintKey);
         msg   = "200";
         return(model);
     }
     catch (Exception ex)
     {
         msg = ex.Message.ToString();
         return(null);
     }
 }
示例#13
0
        public bool UpdatePackage(long ID, AddPackageAndDetailRequest request)
        {
            bool resualt = false;

            try
            {
                string             sql         = "";
                List <PackageInfo> Packagelist = request.packages.ToList();
                for (int i = 0; i < Packagelist.Count; i++)
                {
                    sql += "Update WMS_Package set ExpressNumber ='" + Packagelist[i].ExpressNumber + "' where PackageNumber='" + Packagelist[i].PackageNumber + "' and OID=" + Packagelist[i].OID + ";";
                }
                resualt = new OrderManagementAccessor().UpdatePackage(sql);
            }
            catch (Exception ex)
            {
                LogError(ex);
                resualt = false;
            }
            return(resualt);
        }
示例#14
0
        public Response <GetOrderByConditionResponse> GetPackageByCondition(long ID)
        {
            Response <GetOrderByConditionResponse> response = new Response <GetOrderByConditionResponse>()
            {
                Result = new GetOrderByConditionResponse()
            };

            try
            {
                OrderManagementAccessor accessor = new OrderManagementAccessor();
                response.Result    = accessor.GetPackageByCondition(ID);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.Exception = ex;
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
            }

            return(response);
        }