Exemple #1
0
 private Query GetShippingStatusQuery()
 {
     return(new BooleanQuery
     {
         {
             new TermQuery(new Term(FieldDefinition.GetFieldName <OrderSearchShippingStatusDefinition>(),
                                    ShippingStatus.ToString())),
             Occur.MUST
         }
     });
 }
Exemple #2
0
        private string GetStatusTitle(ShippingStatus status)
        {
            switch (status)
            {
            case ShippingStatus.OutForDelivery:
                return("Out for Delivery");

            case ShippingStatus.PickedUp:
                return("Picked up");

            case ShippingStatus.ReceivedOrder:
                return("Received order");

            default:
                return(status.ToString());
            }
        }