Пример #1
0
        /// <summary>
        /// Fetches the OrderNoteCollection by order id.
        /// </summary>
        /// <param name="orderId">The order id.</param>
        /// <returns></returns>
        public OrderNoteCollection FetchByOrderId(int orderId)
        {
            Query query = new Query(OrderNote.Schema).AddWhere(OrderNote.Columns.OrderId, orderId);
            OrderNoteCollection orderNoteCollection = new OrderNoteController().FetchByQuery(query);

            return(orderNoteCollection);
        }
Пример #2
0
 /// <summary>
 /// Fetches the OrderNoteCollection by order id.
 /// </summary>
 /// <param name="orderId">The order id.</param>
 /// <returns></returns>
 public OrderNoteCollection FetchByOrderId(int orderId)
 {
     Query query = new Query(OrderNote.Schema).AddWhere(OrderNote.Columns.OrderId, orderId);
       OrderNoteCollection orderNoteCollection = new OrderNoteController().FetchByQuery(query);
       return orderNoteCollection;
 }
Пример #3
0
 /// <summary>
 /// Loads the order notes.
 /// </summary>
 private void LoadOrderNotes()
 {
     OrderNoteCollection orderNoteCollection = new OrderNoteController().FetchByOrderId(orderId);
       rptrNotes.DataSource = orderNoteCollection;
       rptrNotes.DataBind();
 }