Esempio n. 1
0
        public List <OrderDetail> GetAllOrdersList(string ID)
        {
            //  return _orderRepository.GetAllOrdersList(ID);
            List <OrderDetail> OrderList = null;

            try
            {
                OrderList = _orderRepository.GetAllOrdersList(ID);
                if (OrderList != null)
                {
                    for (int i = 0; i < OrderList.Count; i++)
                    {
                        if (OrderList[i].ProductSpecXML1 != null && OrderList[i].ProductSpecXML1 != "")
                        {
                            OrderList[i].AttributeValues = _commonBusiness.GetAttributeValueFromXML(OrderList[i].ProductSpecXML1);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(OrderList);
        }
Esempio n. 2
0
        public Bookings GetBookings(int BookingID)
        {
            Bookings bookingObj = null;

            try
            {
                bookingObj = _bookingsRepository.GetBookings(BookingID);
                if (bookingObj.ProductSpecXML != null)
                {
                    bookingObj.AttributeValues = _commonBusiness.GetAttributeValueFromXML(bookingObj.ProductSpecXML);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(bookingObj);
        }
Esempio n. 3
0
        public Quotations GetQuotations(int QuotationsID)
        {
            Quotations QuotationsObj = null;

            try
            {
                QuotationsObj = _QuotationsRepository.GetQuotations(QuotationsID);
                if (QuotationsObj.ProductSpecXML != null)
                {
                    QuotationsObj.AttributeValues = _commonBusiness.GetAttributeValueFromXML(QuotationsObj.ProductSpecXML);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(QuotationsObj);
        }