Esempio n. 1
0
        public static PayTypeRepresentation convertPayType(PayTypes payType)
        {
            PayTypeRepresentation convertedPayType = new PayTypeRepresentation()
            {
                id          = payType.payTypeID,
                payTypeName = payType.payTypeName
            };

            return(convertedPayType);
        }
Esempio n. 2
0
 /// <summary>
 /// 得到支付方式
 /// </summary>
 /// <returns></returns>
 protected virtual void SetPayTypes()
 {
     if (Orders == null || PayTypes == null || PayTypes.Count == 0)
     {
         return;
     }
     PayTypes = PayTypes.Where(it => Orders.All(s => s.PayTypes == null || s.PayTypes.Length == 0 || s.PayTypes.Contains(it.Name))).ToList();
     foreach (var payType in PayTypes)
     {
         payType.SetUrl();
     }
 }