예제 #1
0
        public DataSet SaveExpressPackage(string ExpressNumber, string PackageType, long CustomerID, string WarehouseName, string PackageCode)
        {
            DataSet EPR = new DataSet();

            try
            {
                OrderECManagementAccessor accessor = new OrderECManagementAccessor();
                EPR = accessor.SaveExpressPackage(ExpressNumber, PackageType, CustomerID, WarehouseName, PackageCode);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
예제 #2
0
        public DataSet CheckExpress(string ExpressNumber, long CustomerID, string WarehouseName, string Type)
        {
            DataSet EPR = new DataSet();

            try
            {
                OrderECManagementAccessor accessor = new OrderECManagementAccessor();
                EPR = accessor.CheckExpress(ExpressNumber, CustomerID, WarehouseName, Type);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
예제 #3
0
        public ExpressPackageResponse CheckExpress(string ExpressNumber, long CustomerID, string WarehouseName)
        {
            ExpressPackageResponse EPR = new ExpressPackageResponse();

            try
            {
                OrderECManagementAccessor accessor = new OrderECManagementAccessor();
                EPR = accessor.CheckExpress(ExpressNumber, CustomerID, WarehouseName);
            }
            catch (Exception ex)
            {
                LogError(ex);
            }
            return(EPR);
        }
예제 #4
0
        public Response <string> UpdateOrderExpressInfo(IEnumerable <OrderInfo> orders, long CustomerID)
        {
            Response <string> response = new Response <string>();

            try
            {
                OrderECManagementAccessor accessor = new OrderECManagementAccessor();
                response.Result    = accessor.UpdateOrderExpressInfo(orders, CustomerID);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.Exception = ex;
                response.IsSuccess = false;
            }

            return(response);
        }
예제 #5
0
        public Response <GetOrderByConditionResponse> ExternOrderNumberCheck(List <OrderNumbers> list, long CustomerID)
        {
            Response <GetOrderByConditionResponse> response = new Response <GetOrderByConditionResponse>()
            {
                Result = new GetOrderByConditionResponse()
            };

            try
            {
                OrderECManagementAccessor accessor = new OrderECManagementAccessor();
                response.Result    = accessor.ExternOrderNumberCheck(list, CustomerID);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.Exception = ex;
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
            }
            return(response);
        }