Ejemplo n.º 1
0
        public bool UpdateOrderCondition(string orderID)
        {
            bool flag = false;

            flag = new OrderBizDAO().UpdateOrderCondition(orderID);
            return(flag);
        }
Ejemplo n.º 2
0
        /// \brief This method GetById
        /// \details <b>Details</b>
        /// This method will get  order ID
        /// \return  void
        public Order GetById(string orderID)
        {
            var orders = new OrderBizDAO().GetOrders(orderID);

            if (orders.Count == 0)
            {
                return(null);
            }
            else
            {
                return(orders[0]);
            }
        }
Ejemplo n.º 3
0
        /// \brief This method Save
        /// \details <b>Details</b>
        /// This method will save order Info
        /// \return  void
        public bool Save()
        {
            bool flag = false;

            if (command == "UPDATE")
            {
                flag = new OrderBizDAO().UpdateOrder(this);
            }
            else if (command == "INSERT")
            {
                flag = new OrderBizDAO().InsertOrder(this);
            }

            return(flag);
        }
Ejemplo n.º 4
0
        private void loadTableData()
        {
            OrderBizDAO orderBiz = new OrderBizDAO();

            orderBiz.LoadOrderList(OrderList);
        }
Ejemplo n.º 5
0
        public List <Order> GetTrackerTrip(string orderID, string startCity, string endCity)
        {
            var orderList = new OrderBizDAO().GetTrackerTrip(orderID, startCity, endCity);

            return(orderList);
        }
Ejemplo n.º 6
0
        public List <Order> GetOrdersSummary(string orderStatus, string startDate, string endDate)
        {
            var orderList = new OrderBizDAO().GetOrdersSummary(orderStatus, startDate, endDate);

            return(orderList);
        }
Ejemplo n.º 7
0
        public List <Order> GetOrderDetailWithID(string orderID)
        {
            var orderList = new OrderBizDAO().GetOrderDetailWithID(orderID);

            return(orderList);
        }
Ejemplo n.º 8
0
        public List <Order> GetOrderDetail(string startCity, string endCity)
        {
            var orderList = new OrderBizDAO().GetOrderDetail(startCity, endCity);

            return(orderList);
        }
Ejemplo n.º 9
0
        /// \brief This method GetOrders
        /// \details <b>Details</b>
        /// This method will get  order
        /// \return  void
        public List <Order> GetOrders(string pattern)
        {
            var orderList = new OrderBizDAO().GetOrders(pattern);

            return(orderList);
        }
Ejemplo n.º 10
0
        /// \brief This method GetLastId
        /// \details <b>Details</b>
        /// This method will get last order ID
        /// \return  string
        public string GetLastId()
        {
            var orderID = new OrderBizDAO().GetLastOrderID(this);

            return(orderID);
        }
Ejemplo n.º 11
0
        /// \brief This method GetDestinateID
        /// \details <b>Details</b>
        /// This method will get destination city ID based on name
        /// \return  string
        public string GetDestinateID(string cityName)
        {
            var destinateCityID = new OrderBizDAO().GetDestinateCityIDbyName(cityName);

            return(destinateCityID);
        }
Ejemplo n.º 12
0
        /// \brief This method GetOriginalID
        /// \details <b>Details</b>
        /// This method will get original city ID based on name
        /// \return  string
        public string GetOriginalID(string cityName)
        {
            var originCityID = new OrderBizDAO().GetOriginCityIDbyName(cityName);

            return(originCityID);
        }