コード例 #1
0
ファイル: OrderBusiness.cs プロジェクト: tvmindia/TVMWPty052
        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);
        }
コード例 #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);
        }
コード例 #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);
        }